View Single Post
  #9  
Old 05-24-2011, 05:55 AM
bat999 bat999 is offline
Senior Member
 
Join Date: Apr 2011
Location: UK
Posts: 131
bat999 is on a distinguished road
Default

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


Quote:
Originally Posted by KSV View Post
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
Reply With Quote