Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: donjworks on February 14, 2007, 09:50:29 AM

Title: Larger Buffer for Mpeg Viewer?
Post by: donjworks on February 14, 2007, 09:50:29 AM
Hello,

Is there any way to increase the buffer size for the mpeg viewer? (eg. Patch, some setting I havent seen) Cause I really am tired of chopping up my movies into 5 minute segments.

Thanks....
Title: Re: Larger Buffer for Mpeg Viewer?
Post by: bascule on February 14, 2007, 09:56:29 AM
In a word, no.

From the Wiki:
Quote from: http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer
Current limitations
Audio decoding and .mpg file parsing were added to mpegplayer on 1 January 2007. This is still a work-in-progress and is missing the following major features:
Rebuffering - mpegplayer just buffers as much video as it can fit into your player's memory, plays it and then stops. It doesn't refill the buffer and continue playing. A/V sync - mpegplayer doesn't yet attempt to maintain accurate audio/video synchronisation.
Seeking - seeking (i.e. fast-forward and rewind) is not implemented.
Limited audio samplerate - audio must be sampled at 44.1KHz, other samplerates will play, but at the wrong speed.
Volume control - there is no volume control from within mpegplayer.
Anyone is welcome to download the source and implement these features.
Title: Re: Larger Buffer for Mpeg Viewer?
Post by: AlexP on February 14, 2007, 09:57:56 AM
Only by opening your player, replacing the ram chips with larger ones ....

i.e. no.  It already uses all the memory your player has.
Title: Re: Larger Buffer for Mpeg Viewer?
Post by: soap on February 14, 2007, 12:09:28 PM
Quote
Is there any way to increase the buffer size for the mpeg viewer? (eg. Patch, some setting I havent seen) Cause I really am tired of chopping up my movies into 5 minute segments.
Quote
In a word, no.
Quote
It already uses all the memory your player has.
Let me clarify.
On all targets except the 60GB 5th generation iPod, Rockbox uses all available RAM for buffering already.
You, donjworks, have a 2GB Nano if memory serves me correctly, and thus all your RAM is already in play.


60GB 5th generation iPod owners - if you are willing to compile your own builds, there is a patch http://www.rockbox.org/tracker/task/5472 to make your battle station fully operational buffer larger.
A word of warning, though, is that in runtime testing I am seeing little battery life improvement with the larger buffer, and that is under ideal circumstances.  If you frequently skip tracks, discard playlists, power cycle, or any other behavior which causes buffer refilling, you very likely will see decreased battery runtime due to the double-sized buffer.  (well, actually due to the drive access needed to fill said buffer with data which gets discarded)
Title: Re: Larger Buffer for Mpeg Viewer?
Post by: jacksont123 on February 15, 2007, 08:23:06 PM
I was able to watch 1/2 straight of video with audio on my iriver H10...