Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

change the code of of rtmpsrv, rtmpdump to run with the --live parameter by default

(http://stream-recorder.com/forum/showthread.php?t=9150)

chap 05-24-2011 04:45 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
here http://www.105.net/sezioni/inradio/r...o=105%20Latino not working correctly rtmpsrv (does not transmit a command --live)
Quote:

RTMP Server v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
INFO: Live Flag : 0

rtmpdump -r "rtmp://fms.105.net:1935/live" -a "live" -f "WIN 10,3,181,14" -W "ht
tp://www.105.net/swf/player_instant_reply.swf?cnnl=6&streamRadio=105Lat ino&titol
oRadio=105 Latino&buffertime=2&logo=32x32_105latino.png&spieg a=0&autoplay=1/[[DY
NAMIC]]/3" -p "http://www.105.net/sezioni/inradio/radio/index.php?ch=6&webradio=
105%20Latino" -y "105Latino" -o 105Latino.flv

Closing connection... done!

RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound
after adding --live

Quote:

C:\Documents and Settings\Администратор\Мои документы\STREAM\rtmpdump-2.3-window
s\rtmpdump-2.3\rtmpexplorer\Server>rtmpdump -r "rtmp://fms.105.net:1935/live" -a
"live" -f "WIN 10,3,181,14" -W "http://www.105.net/swf/player_instant_reply.swf
?cnnl=6&streamRadio=105Latino&titoloRadio=105 Latino&buffertime=2&logo=32x32_105
latino.png&spiega=0&autoplay=1/[[DYNAMIC]]/3" -p "http://www.105.net/sezioni/inr
adio/radio/index.php?ch=6&webradio=105atino" -y "105Latino" -o 105Latino.flv -v

RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom
INFO: creationdate Thu May 19 16:06:33 2011
INFO: audiodevice Axia Wave09
INFO: audiosamplerate 48000.00
INFO: audiochannels 2.00
INFO: audioinputvolume 75.00
INFO: audiocodecid mp4a
INFO: audiodatarate 48.00
60.389 kB / 8.53 sec

KSV 05-29-2011 01:20 AM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
Quote:

Originally Posted by chap (Post 29382)
here http://www.105.net/sezioni/inradio/r...o=105%20Latino not working correctly rtmpsrv (does not transmit a command --live)

Live switch can only be detected when it is sent by client. but in case of these two streams they are not sending any live flag.

so how does their streams play in flash client but not in rtmpdump?

because rtmpdump was always sending the optional start flag in play packet and their servers refuses to play when start flag is non negative. i have modified this behavior and now start and duration flags will only be sent when explicitly defined. this will let these types of streams play without specifying --live flag. however there is another problem due to a hack used by rtmpdump for faster downloading of recorded (nonlive) files. whenever it receives a BufferEmpty message it sends Pause Unpause packets to force sending next buffer. this may create some anomalies in recorded files when stream is live and --live switch is not specified because live stream can only be received in realtime. if we disable this hack, everything will be fine for live streams but download speed for nonlive streams may be slow so i haven't disabled it.

in short if you know that stream is live and rtmpsrv or rtmpsuck can't detect live flag, it would be better to specify --live flag though rtmpdump can download without it now.

Quote:

Originally Posted by chap (Post 29370)
I want to ask if you can somehow pass parameters from rtmpsuck to rtmpdump.

it took some time to figure out. i have added some code to rtmpsuck and copied one function from rtmpsrv. now it willl save the commands in Command.bat just like rtmpsrv.

but why didn't rtmpsrv works with ustream?

because their client sends a channel parameter in connect packet and server responds with original url to connect with. rtmpsrv is faking the connect response so client is not able to connect to stream.

i will post the updated package and diff file later.

chap 05-29-2011 02:21 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
KSV
Quote:

i will post the updated package and diff file later.
We will wait, thanks a lot for your work,and detailed explanations.:cool:

chap 05-29-2011 02:55 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
http://stream-recorder.com/forum/sho...2&postcount=13
Quote:

You'll have to wait for a new version of rtmpdump that can handle flash 10 handshakes.
Can you enlighten on this issue.

I do not want to be intrusive, if we can make a fully transparent rtmpsusk (as someone said of the sponsors of this program).
Maybe then can be downloaded using rtmpsusk, this and similar video
http://www.youtube.com/watch?v=EW3x0TWAEfU&hd=1

KSV 05-30-2011 02:54 AM

Updated Package


 
rtmpdump r569 mod

Code:

http://www.mediafire.com/file/rnkld73d6ajbf9g/rtmpdump-2.3.zip
Patch file
Code:

http://pastebin.com/CKFyhGRv

chap 05-30-2011 12:16 PM

Re: Updated Package


 
Quote:

Originally Posted by KSV (Post 29565)
rtmpdump r569 mod
Code:

http://www.mediafire.com/file/rnkld73d6ajbf9g/rtmpdump-2.3.zip

Works fine.:cool:

KSV 05-31-2011 12:04 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
I found a problem with my previous patch and now fixed it. use the following package and patch instead of the previous one.

rtmpdump r569 mod
Code:

http://www.mediafire.com/file/3xen8pvudz3uukj/rtmpdump-2.3.zip
Patch:
Code:

http://pastebin.com/ZKNbfid6

placebo 05-31-2011 12:21 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
the common user doesnt need the patch, or do we need it? it's for information purposes only, isnt it?

looks nice. thanks for the great work!

chap 05-31-2011 02:03 PM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
KSV
Quote:

I found a problem with my previous patch and now fixed it. use the following package and patch instead of the previous one.
Yes, now rtmpdump not interrupted by injection without parameter --live (sometimes it was). Now we do not need to install(-- live). And the output parameters rtmpsusk, more informative, super simple.:cool: Thanks again.

chap 06-01-2011 02:07 AM

Re: change the code of of rtmpsrv, rtmpdump to run with the --live parameter by defau


 
http://www.cbs.com/primetime/how_i_m...lt&p lay=true

rtmpsrv569 (mod) gives an error (for some reason adds a parameter - live)
Code:

RTMP Server v2.3 r569 (Compiled by KSV)
 (c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

 Streaming on rtmp://0.0.0.0:1935
 WARNING: Trying different position for client digest!
 Live : Yes
 rtmpdump -r "rtmp://cp48590.edgefcs.net:1935/ondemand?ovpfv=1.1&?auth=dbEbPdGdea
 tb3b7dBdXdpcmaJbZd8cxaUdb-bn5E_a-h0-buy-FcyPgUse&aifp=v001&slist=video%2
 Ftemp_hd_gallery_video%2FCBS_Production%2F814%2F31 1%2F" -a "ondemand?ovpfv=1.1&?
 auth=dbEbPdGdeatb3b7dBdXdpcmaJbZd8cxaUdb-bn5E_a-h0-buy-FcyPgUse&aifp=v001&am
 p;slist=video%2Ftemp_hd_gallery_video%2FCBS_Produc tion%2F814%2F311%2F" -f "WIN 1
 0,3,181,14" -W "http://www.cbs.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/
 2_8_0/CBSI_PLAYER.swf" -p "http://www.cbs.com/primetime/how_i_met_your_mother/vi
 deo/?pid=Iw6UfcYTmf_i0j62MwONCjncCJCI7yF1&vs=Default&p lay=true" --live -C Z: -y
 "mp4:video/temp_hd_gallery_video/CBS_Production/814/311/CBS_HIMYM_623_CONTENT_CI
 AN__326440.mp4" -o CBS_HIMYM_623_CONTENT_CIAN__326440.flv

 Closing connection... done!

 RTMPDump v2.3 r569 (Compiled by KSV)
 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
 ERROR: RTMP_HashSWF: swfurl http://www.cbs.com/[[IMPORT]]/vidtech.cbsinteractive
 .com/player/2_8_0/CBSI_PLAYER.swf not found
 Connecting ...
 WARNING: HandShake: client signature does not match!
 INFO: Connected...
 ERROR: rtmp server sent error
 Starting Live Stream
 ERROR: RTMP_ReadPacket, failed to read RTMP packet header
 0.000 kB / 0.00 sec
 Download may be incomplete (downloaded about 0.00%), try resuming

without parameter - live

Code:

RTMP Server v2.3 r569 (Compiled by KSV)
 (c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

 Streaming on rtmp://0.0.0.0:1935
 WARNING: Trying different position for client digest!

 rtmpdump -r "rtmp://cp48590.edgefcs.net:1935/ondemand?ovpfv=1.1&?auth=dbEaubadFd
 mc0b2c3bOaVcwdCdkbiaqc6df-bn5E4p-h0-buy-EawPdXlf&aifp=v001&slist=video%2
 Ftemp_hd_gallery_video%2FCBS_Production%2F814%2F31 1%2F" -a "ondemand?ovpfv=1.1&?
 auth=dbEaubadFdmc0b2c3bOaVcwdCdkbiaqc6df-bn5E4p-h0-buy-EawPdXlf&aifp=v001&am
 p;slist=video%2Ftemp_hd_gallery_video%2FCBS_Produc tion%2F814%2F311%2F" -f "WIN 1
 0,3,181,14" -W "http://www.cbs.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/
 2_8_0/CBSI_PLAYER.swf" -p "http://www.cbs.com/primetime/how_i_met_your_mother/vi
 deo/?pid=Iw6UfcYTmf_i0j62MwONCjncCJCI7yF1&vs=Default&p lay=true" -C Z: -y "mp4:vi
 deo/temp_hd_gallery_video/CBS_Production/814/311/CBS_HIMYM_623_CONTENT_CIAN__326
 440.mp4" -o CBS_HIMYM_623_CONTENT_CIAN__326440.flv

 Closing connection... done!

 RTMPDump v2.3 r569 (Compiled by KSV)
 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
 ERROR: RTMP_HashSWF: swfurl http://www.cbs.com/[[IMPORT]]/vidtech.cbsinteractive
 .com/player/2_8_0/CBSI_PLAYER.swf not found
 Connecting ...
 INFO: Connected...
 Starting download at: 0.000 kB
 INFO: Metadata:
 INFO: duration 1292.70
 INFO: moovPosition 28.00
 INFO: width 640.00
 INFO: height 360.00
 INFO: videocodecid avc1
 INFO: audiocodecid mp4a
 INFO: avcprofile 100.00
 INFO: avclevel 40.00
 INFO: aacaot 2.00
 INFO: videoframerate 24.00
 INFO: audiosamplerate 22050.00
 INFO: audiochannels 2.00
 INFO: trackinfo:
 INFO: length 31023000.00
 INFO: timescale 24000.00
 INFO: language eng
 INFO: sampledescription:
 INFO: sampletype avc1
 INFO: length 28504063.00
 INFO: timescale 22050.00
 INFO: language eng
 INFO: sampledescription:
 INFO: sampletype mp4a
 5027.453 kB / 45.29 sec (3.5%)

Only one error,no longer met.


All times are GMT -6. The time now is 03:48 AM.