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-22-2011 05:29 PM

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


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

KSV 05-23-2011 01:00 AM

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


 
Quote:

Originally Posted by chap (Post 29284)
Can you change the code of rtmpsrv, rtmpdump to run with the --live parameter by default.

it will be easy to do but i can't understand the purpose of adding --live switch to every command executed by rtmpsrv :confused:

chap 05-23-2011 01:46 AM

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


 
Quote:

Originally Posted by KSV (Post 29290)
it will be easy to do but i can't understand the purpose of adding --live switch to every command executed by rtmpsrv :confused:

To download from sites such as http://www.bloomberg.com/tv/.
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!

rtmpdump -r "rtmp://cp87869.live.edgefcs.net/live" -a "live" -f "WIN 10,3,181,14
" -W "http://player.ooyala.com/static/cacheable/0261332be7c05b71a1386fd805d97228
/player_v2.swf/[[DYNAMIC]]/4" -p "http://www.bloomberg.com/tv/" -C B:0 -y "us_30
0@21006" -o us_300@21006.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: couldn't contact swfurl http://player.ooyala.com/static/cac
heable/0261332be7c05b71a1386fd805d97228/player_v2.swf/[[DYNAMIC]]/4 (HTTP error
403)
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound
with parameter --live

Quote:

C:\Documents and Settings\Администратор\Мои документы\STREAM\rtmpdump-2.3-window
s\rtmpdump-2.3\rtmpexplorer\Server>rtmpdump -r "rtmp://cp87869.live.edgefcs.net/
live" -a "live" -f "WIN 10,3,181,14" -W "http://player.ooyala.com/static/cacheab
le/0261332be7c05b71a1386fd805d97228/player_v2.swf/[[DYNAMIC]]/2" -p "http://www.
bloomberg.com/tv/" -C B:0 -y "us_300@21006" -o us_300@21006.flv -v
RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: couldn't contact swfurl http://player.ooyala.com/static/cac
heable/0261332be7c05b71a1386fd805d97228/player_v2.swf/[[DYNAMIC]]/2 (HTTP error
403)
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: width 640.00
INFO: height 360.00
INFO: framerate 25.00
INFO: videodatarate 1000.00
INFO: videocodecid avc1
INFO: audiodatarate 64.00
INFO: audiocodecid mp4a
916.835 kB / 4.09 sec
not to add the setting manually.
If is not difficult for you, could you please do it? Thanks.

KSV 05-23-2011 12:33 PM

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


 
rtmpsrv was not even checking for the live flag. i have added the code to check for live flag in play packet and if present add it to the command line.



Code:

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

svnpenn 05-23-2011 12:52 PM

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


 
can you upload to dropbox or something? mediafire link is not working

bat999 05-23-2011 01:30 PM

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


 
Quote:

Originally Posted by KSV (Post 29318)
rtmpsrv was not even checking for the live flag. i have added the code to check for live flag in play packet and if present add it to the command line.

Hi
Can you explain how to do that when compiling for Linux?
Or will you submit it as a patch?

KSV 05-23-2011 10:32 PM

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


 
Quote:

Originally Posted by bat999 (Post 29323)
Hi
Can you explain how to do that when compiling for Linux?
Or will you submit it as a patch?

Here is the diff file.
Code:

http://pastebin.com/TuD9UgpZ

Stream Recorder 05-23-2011 10:45 PM

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


 
Quote:

Originally Posted by svnpenn (Post 29320)
can you upload to dropbox or something? mediafire link is not working

The mediafire link works just fine. If you have problem with it on your computer, try to use fetch.io

bat999 05-24-2011 05:55 AM

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


 
Quote:

Originally Posted by KSV (Post 29329)
Here is the diff file.
Code:

http://pastebin.com/TuD9UgpZ

Thanks for that.
It's working now with Ubuntu Linux.:)
Quote:

ron@ubuntu:~$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT && rtmpsrv
[sudo] password for ron:
RTMP Server v2.3 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 : -1000

rtmpdump -r "rtmp://cp87869.live.edgefcs.net/live" -a "live" -f "LNX 10,1,102,64" -W "http://player.ooyala.com/static/cacheable/b8ee4b1861a67da6040e06a1498a9f7d/player_v2.swf/[[DYNAMIC]]/3" -p "http://www.bloomberg.com/tv/" --live -C B:0 -y "us_300@21006" -o us_300@21006.flv

Closing connection... done!

^CCaught signal: 2, cleaning up, just a second...
ron@ubuntu:~$ sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
ron@ubuntu:~$ rtmpdump -r "rtmp://cp87869.live.edgefcs.net/live" -a "live" -f "LNX 10,1,102,64" -W "http://player.ooyala.com/static/cacheable/b8ee4b1861a67da6040e06a1498a9f7d/player_v2.swf/[[DYNAMIC]]/3" -p "http://www.bloomberg.com/tv/" --live -C B:0 -y "us_300@21006" -o us_300@21006.flv
RTMPDump v2.3 r569a
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: couldn't contact swfurl http://player.ooyala.com/static/cach...player_v2.swf/[[DYNAMIC]]/3 (HTTP error 403)
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: width 640.00
INFO: height 360.00
INFO: framerate 25.00
INFO: videodatarate 1000.00
INFO: videocodecid avc1
INFO: audiodatarate 64.00
INFO: audiocodecid mp4a
1679.916 kB / 8.17 sec^C

chap 05-24-2011 08:10 AM

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


 
KSV
Quote:

rtmpsrv was not even checking for the live flag. i have added the code to check for live flag in play packet and if present add it to the command line.
Thanks for that.:cool:


I want to ask if you can somehow pass parameters from rtmpsusk to rtmpdump. It it real?
For example at this link _http://www.ustream.tv/sfshiba RTMPexplorer can not download, but rtmpsusk can.

But rtmpdump can download. Parameters were taken from rtmpsusk.
Quote:

Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.

C:\Documents and Settings\Администратор\Мои документы\STREAM\rtmpdump-2.3-window
s\rtmpdump-2.3>"C:\Documents and Settings\Администратор\Мои документы\STREAM\rtm
pdump-2.3-windows\rtmpdump-2.3\rtmpdump569.exe" -r "rtmp://ustream.fc.llnwd.net:
1935/ustream/test" -a "ustream/test" -W "http://cdn1.ustream.tv/swf/4/viewer.rsl
.650.swf" -p "http://www.ustream.tv/sfshiba" -y "ustream@llnw_1_317016_live_1"
-o ustream.flv -v
RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: framerate 30.00
INFO: width 640.00
INFO: height 480.00
INFO: videocodecid avc1
INFO: videodatarate 600.00
INFO: videokeyframe_frequency125.00
INFO: audiocodecid mp4a
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: audiodatarate 96.00
2130.252 kB / 17.07 sec


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