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
  #1  
Old 05-22-2011, 06:29 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 05-23-2011, 02:00 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

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


Quote:
Originally Posted by chap View Post
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
Reply With Quote
  #3  
Old 05-23-2011, 02:46 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap 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
it will be easy to do but i can't understand the purpose of adding --live switch to every command executed by rtmpsrv
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.

Last edited by chap : 05-23-2011 at 09:21 AM.
Reply With Quote
  #4  
Old 05-23-2011, 01:33 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

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
Reply With Quote
  #5  
Old 05-23-2011, 01:52 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 05-23-2011, 02:30 PM
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
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?
Reply With Quote
  #7  
Old 05-23-2011, 11:32 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV 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 bat999 View Post
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
Reply With Quote
  #8  
Old 05-23-2011, 11:45 PM
Stream Recorder
 
Posts: n/a
Default

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


Quote:
Originally Posted by svnpenn View Post
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
Reply With Quote
  #9  
Old 05-24-2011, 06: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
  #10  
Old 05-24-2011, 09:10 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

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.


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

Last edited by chap : 05-24-2011 at 10:47 AM.
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 12:21 AM.


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