View Single Post
  #8  
Old 10-01-2013, 01: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