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)

bat999 06-01-2011 07:41 PM

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


 
@ KSV
As with the CBS website in the previous post (from chap Location: Ukraine).
This 60 Minutes clip also gives a 'false positive' live flag.
__http://www.cbsnews.com/video/watch/?id=7316962n

Quote:

RTMP Server v2.3 SVN-r569a
(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 : -2000

rtmpdump -r "rtmp://cnetmedia.fcod.llnwd.net:1935/a3706/d1?ovpfv=1.1" -a "a3706/d1?ovpfv=1.1" -f "LNX 10,1,102,64" -W "http://cnettv.cnet.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/2_8_0/CBSI_PLAYER.swf" -p "http://www.cbsnews.com/video/watch/?id=7316962n" --live -C Z: -y "mp4:media/2011/02/03/60_sadatrewind_0203_598.m4v" -o 60_sadatrewind_0203_598.flv
It downloads OK only if I run the command without the --live switch.

KSV 06-02-2011 09:57 AM

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


 
Quote:

Originally Posted by placebo (Post 29613)
the common user doesnt need the patch, or do we need it? it's for information purposes only, isnt it?

patch is not required for windows users because package binaries are already compiled with it.

i have fixed detection of live flag. I also fixed another problem when batch file is directly used and rtmpdump parameters contain % symbol e.g %2F %2D etc.. in that case window was replacing % symbols resulting in non working batch file. now i am escaping these symbols with %, means %2F will be stored as %%2F so it can be used from within batch file. if you are copying batch file command to use on console you should replace %% with % or command may not work properly.

Package
Code:

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

http://pastebin.com/E7W8vKqB
for patch users, if you have applied any of my previous patch it would be better to revert to r569 and then apply this patch.

bat999 06-02-2011 11:20 AM

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


 
Quote:

Originally Posted by KSV (Post 29683)
for patch users, if you have applied any of my previous patch it would be better to revert to r569 and then apply this patch.

@ KSV
Hi
I've modified the rtmpsrv.c file by changing the 4 lines from your latest patch that deal with the live flag.
Then re-compiled.
It seems to have cured the 'false positive' issue for that 60 Minutes clip.
Thanks.

Quote:

RTMPDump v2.3 SVN-r569b
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Live : No
rtmpdump -r "rtmp://cnetmedia.fcod.llnwd.net:1935/a3706/d1?ovpfv=1.1" -a "a3706/d1?ovpfv=1.1" -f "LNX 10,1,102,64" -W "http://cnettv.cnet.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/2_8_0/CBSI_PLAYER.swf" -p "http://www.cbsnews.com/video/watch/?id=7316962n" -C Z: -y "mp4:media/2011/02/03/60_sadatrewind_0203_598.m4v" -o 60_sadatrewind_0203_598.flv


All times are GMT -6. The time now is 07:37 AM.