[mythtvnz] H264 Performance - Patch to enable skip loop filtering and use 2 threads.

Mike Russell mikerussellnz at gmail.com
Sun Aug 17 09:11:52 BST 2008


Hi

I am using the MythTV source from http://pkendall.homeip.net/.   Everything
worked great, except I got skipping on TV3 (Opteron 2.5ghz dual core).
Using skiploopfilter and 2 threads on Mplayer sped things up enough to
prevent the skipping.  Couldnt find how to set the same options in mythtv,
So investigated it myself and found how to get the equivilant in MythTV.
Would be good if this sort of thing could be configured in Myth.

Thought this may be of help for some people that are having trouble with
skipping.

libs/libmythtv/avformatdecoder.cpp about line 1589.

                video_codec_id = kCodec_MPEG2; // default to MPEG2
                }

       +         if (CODEC_ID_H264 == enc->codec_id)
       +        {
       +           VERBOSE(VB_PLAYBACK, LOC + "Turning off loop filter");
       +             enc->skip_loop_filter = AVDISCARD_ALL;
       +             VERBOSE(VB_PLAYBACK, LOC + "Setting the thread count to
2");
       +             enc->thread_count = 2;
       +         }

                if (enc->codec)
                {

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/mythtvnz/attachments/20080817/af123eb4/attachment.htm 


More information about the mythtvnz mailing list