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 11-12-2011, 05:15 PM
specialguy29 specialguy29 is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
specialguy29 is on a distinguished road
Default

Server metadata ("duration") segmenting rtmp stream causing downloaded flv to skip


I'm a new rtmpdump user and this is my first post, so my apologies in advance if someone has already solved this issue.

rtmpdump-2.3-windows.zip 2010-Jun-30 23:28:50 885.5K
Windows7

I've devised a horrifically clumsy and exceedingly labored solution for downloading one of my favorite classical music radio shows with rtmpdump.

Using (AFAIK) fairly generic settings for rtmpdump (see URL below) this particular rtmp server periodically sends out metadata that looks like it might be chopping the stream up into tiny segments. (see pic below) I'm guessing this metadata helps with seeking within the file while streaming, but unfortunately this plays havoc when playing the downloaded flv/mp3 file in that it seems to lose its place around the boundary of each tiny segment. It skips forward or backward in its timeline, sometimes replaying a tiny bit of what was just played.

I forced rtmpdump to ignore the metadata and download the file as a live stream by adding -v switch. This seemed to work at first, but it quickly stopped at a given point just like it did in Replay Media Catcher. After a few more tries (there is no resuming live streams) it seemed that the stopping point remained consistent at around 10mb.

I guessed that the server might not be getting a ping or ping response so I started playing the stream in the webpage flashplayer while with downloading it in rtmpdump (see pic below). This way when the file reached the 10mb limit pausing both the flashplayer and rtmpdump, I could click around rapidly (seek) in the timeline of the player (usually took about 10x) until both would resume. I'm not certain why this works, but when I don't catch the 10mb limit and click on the flashplayer, rtmpdump quits with a message that reads: "

ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 419 .....Download may be incomplete...(), try resuming"

I think that seeking in the flashplayer pings the rtmp server letting it know to keep streaming.

I'm hoping someone more knowledgeable than me might have a better solution that doesn't involve me having to babysit the webstream while I download it.

Thanks in advance to anyone who is willing to take this on. :-)

Here's the metadata from the server:



Here's a successfull download while playing/monitoring the file in the webpage flashplayer:



Here's the URL. To see the pausing at 10mb, copy/paste this URL in rtmpdump. To see the metadata/skipping version, delete the -v switch at the end before pasting.

Code:
rtmpdump -r "rtmp://archivemedia.publicradio.org/music" -a "music" -f "WIN 11,0,1,152" -W "http://pipedreams.publicradio.org/www_publicradio/tools/media_player/player.swf" -p "http://symphonycast.publicradio.org/www_publicradio/tools/media_player/popup.php?name=symphonycast/2011/07/25/symphonycast2_20110725_128" -y "mp3:ondemand/symphonycast/2011/07/25/symphonycast2_20110725_128" -o "fileout.flv" -v

Last edited by chap : 11-12-2011 at 06:37 PM.
Reply With Quote
  #2  
Old 11-12-2011, 06:03 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Server metadata ("duration") segmenting rtmp stream causing downloaded flv to ski


Quote:
I'm hoping someone more knowledgeable than me might have a better solution that doesn't involve me having to babysit the webstream while I download it.
use rtmpdump 2.4 (no pausing at 10mb)
http://stream-recorder.com/forum/sho...1&postcount=44

You can download the stream without opening webpage(checked up)

Last edited by chap : 11-12-2011 at 06:39 PM.
Reply With Quote
  #3  
Old 11-12-2011, 07:26 PM
specialguy29 specialguy29 is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
specialguy29 is on a distinguished road
Default

Re: Server metadata ("duration") segmenting rtmp stream causing downloaded flv to ski


Quote:
Originally Posted by chap View Post
use rtmpdump 2.4 (no pausing at 10mb)
http://stream-recorder.com/forum/sho...1&postcount=44

You can download the stream without opening webpage(checked up)
Thank you for the quick reply and for pointing me to a more recent version of rtmpdump.

Unfortunately the new 2.4 version doesn't seem to be making a difference.

Like v2.3, rtmpdump v2.4 will download the whole .flv file very quickly (without the -v switch) , but resulting file skips because of the metainfo messages interspersed within the capture. (see first pic in original post).

But when the -v switch is turned on, version 2.4, like the previous version, stops downloading after about 10mb (see pic below)

Screenshot of both failed attemps with the -v switch (live stream switch) turned on so that rtmpdump ingores metainfo messages. Click thumbnail for full-size screenshot:



Again, thank you for helping me!
Reply With Quote
  #4  
Old 11-13-2011, 12:11 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Server metadata ("duration") segmenting rtmp stream causing downloaded flv to ski


i used your posted command line without opening any other webpage and it works fine without any cut at 10MB mark.

Code:
RTMPDump v2.4 GIT-2011-11-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:   duration              4032.31
18429.766 kB / 1135.99 sec (28.1%)
Reply With Quote
  #5  
Old 11-13-2011, 08:53 AM
specialguy29 specialguy29 is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
specialguy29 is on a distinguished road
Default

Re: Server metadata ("duration") segmenting rtmp stream causing downloaded flv to ski


Quote:
Originally Posted by KSV View Post
i used your posted command line without opening any other webpage and it works fine without any cut at 10MB mark.

Code:
RTMPDump v2.4 GIT-2011-11-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:   duration              4032.31
18429.766 kB / 1135.99 sec (28.1%)
Thank you for taking the time to test my command line.

I guess the problem has something to do with my computer setup because no matter what I try, it cuts off at around 10mb.
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:45 AM.


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