[MPlayer-users] mplayer 1.0rc3 - initial amount to buffer

John Stirling js at reciva.com
Fri Apr 8 09:56:26 CEST 2011


Reimar Do"ffinger wrote:
> On Tue, Apr 05, 2011 at 04:41:33PM +0100, John Stirling wrote:
>   
>> Is there any way to specify an initial amount to buffer in seconds
>> rather than bytes ?
>>     
>
> No, that doesn't really work all that well.
> In latest SVN MPlayer does print how full the buffer is when paused,
> so that could possibly be (mis-)used to implement that kind of thing.
> Another possibility would be to add an option that makes MPlayer wait
> for the cache to fill for a certain amount of time.
>   
Thanks for the clarification.

Doesn't sound like it should be too difficult to add..

I think logic would be something like -

. add a MinSecondsToBuffer option
. on playback start request set MinBytesToBuffer to MaxBufferSize
. once we know the audio format, bitrate etc - adjust MinBytesToBuffer

Any rough pointers to the bits of code we'd need to hook into greatly 
appreciated. Otherwise we'll start digging around .




More information about the MPlayer-users mailing list