[mythtv-users] Playback problem -- random short pauses

Steven Adeff adeffs.mythtv at gmail.com
Tue May 17 16:49:55 UTC 2011


On Fri, May 6, 2011 at 9:46 AM, Kenneth Emerson
<kenneth.emerson at gmail.com> wrote:
> Last night I modified the routine RingBuffer.cpp
> (method: RingBuffer::CalcReadAheadThresh) to always choose the largest read
> block size.  Whether this was a proper change or not it did seem to
> eliminate the pauses I had been seeing.  I watched approximately four hours
> of recordings without any pausing of the video or audio.  I will leave this
> change in for a week to see if it has really solved the symptoms (if not the
> problem). At that point I might open a ticket with the patch.
> Here is the diff for anyone else brave enough to give it a try:
> diff --git a/mythtv/libs/libmythtv/RingBuffer.cpp
> b/mythtv/libs/libmythtv/RingBu
> index 8b59616..d4613d6 100644
> --- a/mythtv/libs/libmythtv/RingBuffer.cpp
> +++ b/mythtv/libs/libmythtv/RingBuffer.cpp
> @@ -816,7 +816,10 @@ void RingBuffer::CalcReadAheadThresh(void)
>      rbs            = (estbitrate > 5000)  ? KB128 : rbs;
>      rbs            = (estbitrate > 9000)  ? KB256 : rbs;
>      rbs            = (estbitrate > 18000) ? KB512 : rbs;
> -    readblocksize  = max(rbs,readblocksize);
> +    // readblocksize  = max(rbs,readblocksize); Ticket #8706:
> 8706_debug.diff
> +    //  Try to maximize readahead buffer. By KRE 05/04/2011
> +    rbs = KB512;
> +    readblocksize  = rbs;
>      // minumum seconds of buffering before allowing read
>      float secs_min = 0.25;
> Regards,
> Ken E.

Ken, any word on how the patch worked out after a week of use?


-- 
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette


More information about the mythtv-users mailing list