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

Paul Kendall paul at kcbbs.gen.nz
Mon Aug 18 05:46:05 BST 2008


On Sunday 17 August 2008 20:11:52 Mike Russell wrote:
> 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

Doing the skip loop filter is good, but changing the thread should be done in 
the playback profiles screens. Where you select the de-interlacers you can 
specify the number of CPUs.

Cheers,
Paul



More information about the mythtvnz mailing list