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 > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-28-2010, 11:06 AM
puterboy puterboy is offline
Junior Member
 
Join Date: Nov 2010
Posts: 5
puterboy is on a distinguished road
Default

www.newyankee.com - Rtmpdump stream download REWINDS every 10-20 seconds


I am using the following rtmpdump command to download a stream:

rtmpdump -r rtmp://e1f1.simplecdn.net/play/ -y /newyankeeonline/NYW_409_Wheelbarrow -o temp2.flv

From the CLI you can repeatedly see the progress indicator - XXX.XXX kB / YY.YY sec (Z.Z%) - move forward incrementally, then skip backwords a few seconds, then start moving forward incrementally for 10-20 seconds, then skip back a few seconds, etc.

The exact timing and number of 'rewinds' varies each time resulting in a downloaded flv file that is approximately 1.5 - 3 times the stated size. Of course, when you view the file, you see the video rewind and replay correspondingly.

I am able to download the file without errors using Moyea FLV downloader so the problem doesn't seem to be with the stream per-se.

I have also tried changing the buffer (-b) using anywhere from 0 to 10000. I also played with the timeout and tried adding '-W http://www.newyankee.com/flash/mwplayer.swf' None of this helped.

Interestingly, it seemed to work just fine last week...

Any thoughts on what might be going wrong here?
Reply With Quote
  #2  
Old 12-02-2010, 08:44 AM
puterboy puterboy is offline
Junior Member
 
Join Date: Nov 2010
Posts: 5
puterboy is on a distinguished road
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


Interestingly, it seems to download fine with mplayer (though the download is real time) using:
mplayer -dumpstream -dumpfile temp2.flv "rtmp://e1f1.simplecdn.net/play/newyankeeonline/NYW_409_Wheelbarrow"

I'm wondering whether the problem has anything to do with rtmpdump seeming to download the file *too* fast. It downloads 308MB (of a 25 minute stream that should really only be 177MB) in a little over 7 minutes.

Is there any way to get rtmpdump to download more in real time?
Reply With Quote
  #3  
Old 12-02-2010, 09:03 AM
Stream Recorder
 
Posts: n/a
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


Quote:
Originally Posted by puterboy View Post
Is there any way to get rtmpdump to download more in real time?
rtmpsuck allows to record in real time.
Reply With Quote
  #4  
Old 12-02-2010, 09:28 AM
puterboy puterboy is offline
Junior Member
 
Join Date: Nov 2010
Posts: 5
puterboy is on a distinguished road
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


I couldn't find any documentation on rtmpsuck other than that it is a "transparent proxy" and thus seems to need another client to actually access the stream.

I was hoping to find a way to "throttle" rtmpdump to test my hypothesis that it is messing up because it is trying to download too fast.

But more generally, any idea why mplayer would work but rtmpdump wouldn't? I assumed (perhaps mistakenly) that they shared a fair bit of code.
Reply With Quote
  #5  
Old 12-02-2010, 10:03 AM
Stream Recorder
 
Posts: n/a
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


Quote:
Originally Posted by puterboy View Post
But more generally, any idea why mplayer would work but rtmpdump wouldn't? I assumed (perhaps mistakenly) that they shared a fair bit of code.
They seem to use the same librtmp library, so there should be no any difference unless different versions are used.
Reply With Quote
  #6  
Old 12-03-2010, 04:20 PM
Stream Recorder
 
Posts: n/a
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


Please try to use the --live parameter in rtmpdump and let me know whether it helps or not.
Reply With Quote
  #7  
Old 03-29-2011, 04:28 AM
Stream Recorder
 
Posts: n/a
Default

Re: Rtmpdump stream download REWINDS every 10-20 seconds


You can also download video from _http://www.newyankee.com/online.php with Replay Media Catcher 4. But you need to turn off super download and set client buffer to 1 second (See Tools -> Settings -> RTMP Download Tweaks).
Reply With Quote
  #8  
Old 10-01-2013, 02:30 AM
drbmn drbmn is offline
Member
 
Join Date: May 2012
Posts: 145
drbmn is on a distinguished road
Default

Re: www.newyankee.com - Rtmpdump stream download REWINDS every 10-20 seconds


This is because librtmp is sending pause/unpause when Stream BufferEmpty.
You can see this by turn on debug message "-V", and you will see,

DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: RTMP_SendPause, 1, pauseTime=0
DEBUG: Invoking pause

I try disable sending pause by comment out the following line in librtmp/rtmp.c,

if (!(r->Link.lFlags & RTMP_LF_BUFX))
break;

Only comment the first line, and let the break command uncommented,

// if (!(r->Link.lFlags & RTMP_LF_BUFX))
break;

It works!
Reply With Quote
  #9  
Old 10-01-2013, 02:32 AM
drbmn drbmn is offline
Member
 
Join Date: May 2012
Posts: 145
drbmn is on a distinguished road
Default

Re: www.newyankee.com - Rtmpdump stream download REWINDS every 10-20 seconds


This is because librtmp is sending pause/unpause when Stream BufferEmpty.
You can see this by turn on debug message "-V", and you will see,

DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: RTMP_SendPause, 1, pauseTime=0
DEBUG: Invoking pause

I try disable sending pause by comment out the following line in librtmp/rtmp.c,

if (!(r->Link.lFlags & RTMP_LF_BUFX))
break;

Only comment the first line, and let the break command uncommented,

// if (!(r->Link.lFlags & RTMP_LF_BUFX))
break;

It works!

----
http://bugmenot.com/view/stream-recorder.com
Reply With Quote
  #10  
Old 10-01-2013, 03:27 AM
drbmn drbmn is offline
Member
 
Join Date: May 2012
Posts: 145
drbmn is on a distinguished road
Default

Re: www.newyankee.com - Rtmpdump stream download REWINDS every 10-20 seconds


Or you can just turn on "--live" option, so that it won't send pause on buffer empty, but the seek option will be disabled.

----
http://bugmenot.com/view/stream-recorder.com
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:29 AM.


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