Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #111  
Old 05-19-2013, 04:03 PM
breaks breaks is offline
Junior Member
 
Join Date: May 2013
Posts: 1
breaks is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


http://www.mediafire.com/file/y40qsc...mpdump-2.4.zip returns an error. Please re-upload.
Reply With Quote
  #112  
Old 05-20-2013, 04:51 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by breaks View Post
http://www.mediafire.com/file/y40qsc...mpdump-2.4.zip returns an error. Please re-upload.
package re-uploaded.
Reply With Quote
  #113  
Old 05-20-2013, 06:19 PM
freez freez is offline
Senior Member
 
Join Date: Feb 2013
Posts: 105
freez is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Thanx ksv every thing works ok with latest patched files
Reply With Quote
  #114  
Old 05-21-2013, 09:52 PM
jhb50 jhb50 is offline
Member
 
Join Date: Nov 2011
Posts: 54
jhb50 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Has anyone compiled ffmpeg for windows with the librtmp provided by KSV, that they would be willing to share?
Reply With Quote
  #115  
Old 05-26-2013, 01:46 AM
mariner mariner is offline
Junior Member
 
Join Date: Jul 2012
Posts: 21
mariner is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Greetings KSV. Thanks for the updates. Appreciate if you can help with a few problems using the latest patch.

Code:
rtmpdump -r "rtmp://88.212.206.42:1935/archive" -a "archive" -f "WIN 11,7,700,202" -W "http://echomsk.onlinetv.ru/hd/player.swf" -p "http://echomsk.onlinetv.ru/hd/kaz_14052013_5/" -y "mp4:filarmonia/kaz_14052013_5hd.mp4" -o "14052013_5hd.flv"
1. The download keeps getting interrupted after a few minutes. It would resume recording from the beginning but write to the same file, rendering the file unusable. Using the -v flag seems to get around this issue. Any idea?

2. The downloaded file size reported appears to be incorrect. Getting consistent file size seems to be a hit and miss affair. How does one determine if the downloaded file size is correct?

Code:
rtmpdump -r "rtmp://88.212.206.42:193
5/archive" -a "archive" -f "WIN 11,7,700,202" -W "http://echomsk.onlinetv.ru/hd/
player.swf" -p "http://echomsk.onlinetv.ru/hd/kaz_14052013_5/" -y "mp4:filarmoni
a/kaz_14052013_5hd.mp4" -o "14052013_5hd.flv" -v
RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: trackinfo:
INFO:   timescale               90000.00
INFO:   length                  784149216.00
INFO:   language                eng
INFO: sampledescription:
INFO:   sampletype              mp4a
INFO:   timescale               90000.00
INFO:   length                  784148384.00
INFO:   language                eng
INFO: sampledescription:
INFO:   sampletype              avc1
INFO:   audiochannels           2.00
INFO:   audiosamplerate         90000.00
INFO:   videoframerate          25.00
INFO:   aacaot                  2.00
INFO:   avclevel                40.00
INFO:   avcprofile              77.00
INFO:   audiocodecid            mp4a
INFO:   videocodecid            avc1
INFO:   width                   1280.00
INFO:   height                  720.00
INFO:   frameWidth              1280.00
INFO:   frameHeight             720.00
INFO:   displayWidth            1280.00
INFO:   displayHeight           720.00
INFO:   framerate               25.00
INFO:   moovposition            28.00
INFO:   duration                8712.77
-455236.327 kB / 8712.75 sec (99.9%))
Download complete
3. At times rtmpdump would report the following error and crash.

Code:
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 20671
ERROR: WriteN, RTMP send error 10038 (5 bytes)
ERROR: WriteN, RTMP send error 10038 (5 bytes)
.
.
Many thanks and best regards.
Reply With Quote
  #116  
Old 05-27-2013, 07:36 PM
rtmpdumper1 rtmpdumper1 is offline
Junior Member
 
Join Date: May 2013
Posts: 4
rtmpdumper1 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


I just compiled this again on Mac OSX, applying the KSV patch following KSV's instructions, when I run it it shows me this :

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL


If it's correctly patched, is this what I should see?


I notice in the post before me it also says "GIT-2012-12-30 (Compiled by KSV)", but, perhaps this is because I am on a different OS?
Reply With Quote
  #117  
Old 05-27-2013, 07:44 PM
marktr marktr is offline
Junior Member
 
Join Date: Mar 2012
Posts: 11
marktr is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


@rtmpdumper1 The credits aren't in the patch itself but were in the windows binaries last time I checked. there is not a single reference to "(Compiled by KSV)" in it, if you look into it. After all, it is instead compiled by you

You should look at the output of the patch command to check whether it patched correctly. Then, if you build and install it system-wide, make sure that any existing librtmp in your system is superseded by this patched version.
Reply With Quote
  #118  
Old 05-27-2013, 09:02 PM
rtmpdumper1 rtmpdumper1 is offline
Junior Member
 
Join Date: May 2013
Posts: 4
rtmpdumper1 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


@marktr I looked through the patch and didn't see it, so I figured things were correct but wanted to make sure.

When I applied the patch, it patched each file and didn't throw an error, so I'm pretty sure it worked.

When you say to make sure any librtmp on the system is superseded by the patched version, I assume you mean the librtmp that gets installed into /usr/local/lib? I cd'd into the directory and this is what I found:

librtmp.0.dylib librtmp.a librtmp.dylib pkgconfig

How would I tell if that version is patched?


EDIT:
Just saw you posted over on the other thread. Seems everything is working as expected now. Thanks!
Reply With Quote
  #119  
Old 05-27-2013, 09:27 PM
marktr marktr is offline
Junior Member
 
Join Date: Mar 2012
Posts: 11
marktr is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by rtmpdumper1 View Post

(...snip...)

librtmp.0.dylib librtmp.a librtmp.dylib pkgconfig

How would I tell if that version is patched?
1) timestamp of the rtmp related files should suffice

2) if not, as you realized, if a feature the patch enables over stock rtmpdump starts working, it is a good enough indicator
Reply With Quote
  #120  
Old 05-28-2013, 11:48 AM
paxo paxo is offline
Junior Member
 
Join Date: May 2013
Posts: 3
paxo is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Latest KSV-rtmpdump causes an "Access denied" error in some US based servers. The latest version sends two bytes less in the connect packet than the previous one (sizes 495 vs 497.)

Code:
DEBUG: Parsed protocol: 0
DEBUG: Parsed host    : cp48590.edgefcs.net
DEBUG: Parsed app     : ondemand/?auth=daEajbbdbd4bNcPcTavc7bTb_aCdudOdPab-brPnSq-h0-NaxPdXpe&aifp=v001&slist=video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/1024/887
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp48590.edgefcs.net
DEBUG: Port     : 1935
DEBUG: Playpath : mp4:video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/1024/887/CBS_LETTERMAN_3857_CONTENT_CIAN_764.mp4
DEBUG: tcUrl    : rtmp://cp48590.edgefcs.net:1935/ondemand/?auth=daEajbbdbd4bNcPcTavc7bTb_aCdudOdPab-brPnSq-h0-NaxPdXpe&aifp=v001&slist=video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/1024/887
DEBUG: app      : ondemand/?auth=daEajbbdbd4bNcPcTavc7bTb_aCdudOdPab-brPnSq-h0-NaxPdXpe&aifp=v001&slist=video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/1024/887
DEBUG: live     : no
DEBUG: timeout  : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer   : 03
DEBUG: HandShake: Server Uptime : 1503316640
DEBUG: HandShake: FMS Version   : 4.5.2.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG2: RTMP_SendPacket: fd=1844, size=495
DEBUG2:   0000:  03 00 00 00 00 01 ef 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 07 63 6f 6e 6e 65  63 74 00 3f f0 00 00 00   ...connect.?....
DEBUG2:   0010:  00 00 00 03 00 03 61 70  70 02 00 94 6f 6e 64 65   ......app...onde
DEBUG2:   0020:  6d 61 6e 64 2f 3f 61 75  74 68 3d 64 61 45 61 6a   mand/?auth=daEaj
DEBUG2:   0030:  62 62 64 62 64 34 62 4e  63 50 63 54 61 76 63 37   bbdbd4bNcPcTavc7
DEBUG2:   0040:  62 54 62 5f 61 43 64 75  64 4f 64 50 61 62 2d 62   bTb_aCdudOdPab-b
DEBUG2:   0050:  72 50 6e 53 71 2d 68 30  2d 4e 61 78 50 64 58 70   rPnSq-h0-NaxPdXp
DEBUG2:   0060:  65 26 61 69 66 70 3d 76  30 30 31 26 73 6c 69 73   e&aifp=v001&slis
DEBUG2:   0070:  74 3d 76 69 64 65 6f 2f  74 65 6d 70 5f 68 64 5f   t=video/temp_hd_
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  67 61 6c 6c 65 72 79 5f  76 69 64 65 6f 2f 43 42   gallery_video/CB
DEBUG2:   0010:  53 5f 50 72 6f 64 75 63  74 69 6f 6e 5f 4f 75 74   S_Production_Out
DEBUG2:   0020:  6c 65 74 5f 56 4d 53 2f  31 30 32 34 2f 38 38 37   let_VMS/1024/887
DEBUG2:   0030:  00 08 66 6c 61 73 68 56  65 72 02 00 0e 57 49 4e   ..flashVer...WIN
DEBUG2:   0040:  20 31 30 2c 30 2c 33 32  2c 31 38 00 05 74 63 55    10,0,32,18..tcU
DEBUG2:   0050:  72 6c 02 00 b4 72 74 6d  70 3a 2f 2f 63 70 34 38   rl...rtmp://cp48
DEBUG2:   0060:  35 39 30 2e 65 64 67 65  66 63 73 2e 6e 65 74 3a   590.edgefcs.net:
DEBUG2:   0070:  31 39 33 35 2f 6f 6e 64  65 6d 61 6e 64 2f 3f 61   1935/ondemand/?a
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  75 74 68 3d 64 61 45 61  6a 62 62 64 62 64 34 62   uth=daEajbbdbd4b
DEBUG2:   0010:  4e 63 50 63 54 61 76 63  37 62 54 62 5f 61 43 64   NcPcTavc7bTb_aCd
DEBUG2:   0020:  75 64 4f 64 50 61 62 2d  62 72 50 6e 53 71 2d 68   udOdPab-brPnSq-h
DEBUG2:   0030:  30 2d 4e 61 78 50 64 58  70 65 26 61 69 66 70 3d   0-NaxPdXpe&aifp=
DEBUG2:   0040:  76 30 30 31 26 73 6c 69  73 74 3d 76 69 64 65 6f   v001&slist=video
DEBUG2:   0050:  2f 74 65 6d 70 5f 68 64  5f 67 61 6c 6c 65 72 79   /temp_hd_gallery
DEBUG2:   0060:  5f 76 69 64 65 6f 2f 43  42 53 5f 50 72 6f 64 75   _video/CBS_Produ
DEBUG2:   0070:  63 74 69 6f 6e 5f 4f 75  74 6c 65 74 5f 56 4d 53   ction_Outlet_VMS
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  2f 31 30 32 34 2f 38 38  37 00 04 66 70 61 64 01   /1024/887..fpad.
DEBUG2:   0010:  00 00 0c 63 61 70 61 62  69 6c 69 74 69 65 73 00   ...capabilities.
DEBUG2:   0020:  40 6d e0 00 00 00 00 00  00 0b 61 75 64 69 6f 43   @m........audioC
DEBUG2:   0030:  6f 64 65 63 73 00 40 ab  ee 00 00 00 00 00 00 0b   odecs.@.........
DEBUG2:   0040:  76 69 64 65 6f 43 6f 64  65 63 73 00 40 6f 80 00   videoCodecs.@o..
DEBUG2:   0050:  00 00 00 00 00 0d 76 69  64 65 6f 46 75 6e 63 74   ......videoFunct
DEBUG2:   0060:  69 6f 6e 00 3f f0 00 00  00 00 00 00 00 00 09      ion.?..........
DEBUG: Invoking connect
INFO: Connected...
DEBUG2: RTMP_ReadPacket: fd=1844
DEBUG2:   0000:  03 00 00 00 00 00 86 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 06 5f 65 72 72 6f  72 00 3f f0 00 00 00 00   ..._error.?.....
DEBUG2:   0010:  00 00 05 03 00 05 6c 65  76 65 6c 02 00 05 65 72   ......level...er
DEBUG2:   0020:  72 6f 72 00 04 63 6f 64  65 02 00 1e 4e 65 74 43   ror..code...NetC
DEBUG2:   0030:  6f 6e 6e 65 63 74 69 6f  6e 2e 43 6f 6e 6e 65 63   onnection.Connec
DEBUG2:   0040:  74 2e 52 65 6a 65 63 74  65 64 00 0b 64 65 73 63   t.Rejected..desc
DEBUG2:   0050:  72 69 70 74 69 6f 6e 02  00 29 5b 20 41 63 63 65   ription..)[ Acce
DEBUG2:   0060:  73 73 4d 61 6e 61 67 65  72 2e 52 65 6a 65 63 74   ssManager.Reject
DEBUG2:   0070:  20 5d 20 3a 20 41 63 63  65 73 73 20 64 65 6e 69    ] : Access deni
DEBUG2: RTMP_ReadPacket: fd=1844
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  65 64 21 00 00 09                                  ed!...
DEBUG: RTMP_ClientPacket, received: invoke 134 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     _error>
DEBUG: Property: <Name:            no-name, NUMBER:     1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     error>
DEBUG: Property: <Name:               code, STRING:     NetConnection.Connect.Rejected>
DEBUG: Property: <Name:        description, STRING:     [ AccessManager.Reject ] : Access denied!>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG2: RTMP_ReadPacket: fd=1844
DEBUG2:   0000:  03 00 00 00 00 00 12 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 05 63 6c 6f 73 65  00 00 00 00 00 00 00 00   ...close........
DEBUG2:   0010:  00 05                                              ..
DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:     close>
DEBUG: Property: <Name:            no-name, NUMBER:     0.00>
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.


Debug of the previous working version (compiled in February if I remember correctly):

Code:
DEBUG2: RTMP_SendPacket: fd=1844, size=497
DEBUG2:   0000:  03 00 00 00 00 01 f1 14  00 00 00 00               ............
DEBUG2:   0000:  02 00 07 63 6f 6e 6e 65  63 74 00 3f f0 00 00 00   ...connect.?....
DEBUG2:   0010:  00 00 00 03 00 03 61 70  70 02 00 95 6f 6e 64 65   ......app...onde
DEBUG2:   0020:  6d 61 6e 64 2f 3f 61 75  74 68 3d 64 61 45 61 6a   mand/?auth=daEaj
DEBUG2:   0030:  62 62 64 62 64 34 62 4e  63 50 63 54 61 76 63 37   bbdbd4bNcPcTavc7
DEBUG2:   0040:  62 54 62 5f 61 43 64 75  64 4f 64 50 61 62 2d 62   bTb_aCdudOdPab-b
DEBUG2:   0050:  72 50 6e 53 71 2d 68 30  2d 4e 61 78 50 64 58 70   rPnSq-h0-NaxPdXp
DEBUG2:   0060:  65 26 61 69 66 70 3d 76  30 30 31 26 73 6c 69 73   e&aifp=v001&slis
DEBUG2:   0070:  74 3d 76 69 64 65 6f 2f  74 65 6d 70 5f 68 64 5f   t=video/temp_hd_
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  67 61 6c 6c 65 72 79 5f  76 69 64 65 6f 2f 43 42   gallery_video/CB
DEBUG2:   0010:  53 5f 50 72 6f 64 75 63  74 69 6f 6e 5f 4f 75 74   S_Production_Out
DEBUG2:   0020:  6c 65 74 5f 56 4d 53 2f  31 30 32 34 2f 38 38 37   let_VMS/1024/887
DEBUG2:   0030:  2f 00 08 66 6c 61 73 68  56 65 72 02 00 0e 57 49   /..flashVer...WI
DEBUG2:   0040:  4e 20 31 30 2c 30 2c 33  32 2c 31 38 00 05 74 63   N 10,0,32,18..tc
DEBUG2:   0050:  55 72 6c 02 00 b5 72 74  6d 70 3a 2f 2f 63 70 34   Url...rtmp://cp4
DEBUG2:   0060:  38 35 39 30 2e 65 64 67  65 66 63 73 2e 6e 65 74   8590.edgefcs.net
DEBUG2:   0070:  3a 31 39 33 35 2f 6f 6e  64 65 6d 61 6e 64 2f 3f   :1935/ondemand/?
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  61 75 74 68 3d 64 61 45  61 6a 62 62 64 62 64 34   auth=daEajbbdbd4
DEBUG2:   0010:  62 4e 63 50 63 54 61 76  63 37 62 54 62 5f 61 43   bNcPcTavc7bTb_aC
DEBUG2:   0020:  64 75 64 4f 64 50 61 62  2d 62 72 50 6e 53 71 2d   dudOdPab-brPnSq-
DEBUG2:   0030:  68 30 2d 4e 61 78 50 64  58 70 65 26 61 69 66 70   h0-NaxPdXpe&aifp
DEBUG2:   0040:  3d 76 30 30 31 26 73 6c  69 73 74 3d 76 69 64 65   =v001&slist=vide
DEBUG2:   0050:  6f 2f 74 65 6d 70 5f 68  64 5f 67 61 6c 6c 65 72   o/temp_hd_galler
DEBUG2:   0060:  79 5f 76 69 64 65 6f 2f  43 42 53 5f 50 72 6f 64   y_video/CBS_Prod
DEBUG2:   0070:  75 63 74 69 6f 6e 5f 4f  75 74 6c 65 74 5f 56 4d   uction_Outlet_VM
DEBUG2:   0000:  c3                                                 .
DEBUG2:   0000:  53 2f 31 30 32 34 2f 38  38 37 2f 00 04 66 70 61   S/1024/887/..fpa
DEBUG2:   0010:  64 01 00 00 0c 63 61 70  61 62 69 6c 69 74 69 65   d....capabilitie
DEBUG2:   0020:  73 00 40 6d e0 00 00 00  00 00 00 0b 61 75 64 69   s.@m........audi
DEBUG2:   0030:  6f 43 6f 64 65 63 73 00  40 ab ee 00 00 00 00 00   oCodecs.@.......
DEBUG2:   0040:  00 0b 76 69 64 65 6f 43  6f 64 65 63 73 00 40 6f   ..videoCodecs.@o
DEBUG2:   0050:  80 00 00 00 00 00 00 0d  76 69 64 65 6f 46 75 6e   ........videoFun
DEBUG2:   0060:  63 74 69 6f 6e 00 3f f0  00 00 00 00 00 00 00 00   ction.?.........
DEBUG2:   0070:  09                                                 .
DEBUG: Invoking connect
INFO: Connected...
Reply With Quote
Reply Post New Thread
Tags: , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:14 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons