Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Mythtvnz

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

 

 

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded


mikerussellnz at gmail

Aug 17, 2008, 1:11 AM

Post #1 of 14 (1637 views)
Permalink
H264 Performance - Patch to enable skip loop filtering and use 2 threads.

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


paul at kcbbs

Aug 17, 2008, 9:46 PM

Post #2 of 14 (1598 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

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

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


amphibem at gmail

Aug 22, 2008, 5:11 PM

Post #3 of 14 (1562 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

I am trying to setup my 5200 X2 to play TV3 and have a couple of questions
about these settings:

1) Where is 'libs/libmythtv/avformatdecoder.cpp'? I have a /lib (which has
no libmythtv folder) but not /libs. I am using Mythbuntu if it is important.
As noted below I think i have this skipping and would like to fix it.

2) What exactly are others running for playback profiles? I have tried a
couple, have currently set it to 'Slim' but with max CPU's set to 2 for all
for entry's. For all I get around 50%-70% CPU on TV3 but with the freezing
every 2secs or so. I assume this is the skipping the quoted fix is for.

All the other channels work, it is just TV3 I need to sort out.

Cheers

Andrew

On Mon, Aug 18, 2008 at 4:46 PM, Paul Kendall <paul[at]kcbbs.gen.nz> wrote:

> 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
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>


paul at kcbbs

Aug 22, 2008, 6:14 PM

Post #4 of 14 (1560 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

On Saturday 23 August 2008 12:11:19 Andrew Richards wrote:
> I am trying to setup my 5200 X2 to play TV3 and have a couple of questions
> about these settings:
>
> 1) Where is 'libs/libmythtv/avformatdecoder.cpp'? I have a /lib (which has
> no libmythtv folder) but not /libs. I am using Mythbuntu if it is
> important. As noted below I think i have this skipping and would like to
> fix it.
>
> 2) What exactly are others running for playback profiles? I have tried a
> couple, have currently set it to 'Slim' but with max CPU's set to 2 for all
> for entry's. For all I get around 50%-70% CPU on TV3 but with the freezing
> every 2secs or so. I assume this is the skipping the quoted fix is for.
>
> All the other channels work, it is just TV3 I need to sort out.
>
> Cheers
>
> Andrew
>
> On Mon, Aug 18, 2008 at 4:46 PM, Paul Kendall <paul[at]kcbbs.gen.nz> wrote:
> > 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
> >
> > _______________________________________________
> > mythtvnz mailing list
> > mythtvnz[at]lists.linuxnut.co.nz
> > http://lists.ourshack.com/mailman/listinfo/mythtvnz
> > Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

You need the source, then apply the patch and rebuild mythtv.

Cheers,
Paul

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


amphibem at gmail

Aug 23, 2008, 1:40 PM

Post #5 of 14 (1535 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

Sorry what source are you refering to? I have your patches applied from
your repository already, that part is working fine.

Paul Kendall wrote:
> On Saturday 23 August 2008 12:11:19 Andrew Richards wrote:
>
>> I am trying to setup my 5200 X2 to play TV3 and have a couple of questions
>> about these settings:
>>
>> 1) Where is 'libs/libmythtv/avformatdecoder.cpp'? I have a /lib (which has
>> no libmythtv folder) but not /libs. I am using Mythbuntu if it is
>> important. As noted below I think i have this skipping and would like to
>> fix it.
>>
>> 2) What exactly are others running for playback profiles? I have tried a
>> couple, have currently set it to 'Slim' but with max CPU's set to 2 for all
>> for entry's. For all I get around 50%-70% CPU on TV3 but with the freezing
>> every 2secs or so. I assume this is the skipping the quoted fix is for.
>>
>> All the other channels work, it is just TV3 I need to sort out.
>>
>> Cheers
>>
>> Andrew
>>
>> On Mon, Aug 18, 2008 at 4:46 PM, Paul Kendall <paul[at]kcbbs.gen.nz> wrote:
>>
>>> 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
>>>
>>> _______________________________________________
>>> mythtvnz mailing list
>>> mythtvnz[at]lists.linuxnut.co.nz
>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>
>
> You need the source, then apply the patch and rebuild mythtv.
>
> Cheers,
> Paul
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


paul at kcbbs

Aug 23, 2008, 2:38 PM

Post #6 of 14 (1534 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

On Sunday 24 August 2008 08:40:38 Andrew Richards wrote:
> Sorry what source are you refering to? I have your patches applied from
> your repository already, that part is working fine.
>
Ok, if you have the sources from my repository then the file you need to edit
in in there under 'libs/libmythtv/avformatdecoder.cpp'.

You then need to rebuild the whole thing.

Paul

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


amphibem at gmail

Aug 23, 2008, 2:48 PM

Post #7 of 14 (1543 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

OK that may be beyond my Linux foo, will come back to this after I get
my primary PVR MediaPortal working again.

Cheers for your help

Andrew

Paul Kendall wrote:
> On Sunday 24 August 2008 08:40:38 Andrew Richards wrote:
>
>> Sorry what source are you refering to? I have your patches applied from
>> your repository already, that part is working fine.
>>
>>
> Ok, if you have the sources from my repository then the file you need to edit
> in in there under 'libs/libmythtv/avformatdecoder.cpp'.
>
> You then need to rebuild the whole thing.
>
> Paul
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


paul at kcbbs

Aug 23, 2008, 2:52 PM

Post #8 of 14 (1538 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

On Sunday 24 August 2008 09:48:01 Andrew Richards wrote:
> OK that may be beyond my Linux foo, will come back to this after I get
> my primary PVR MediaPortal working again.
>
> Cheers for your help

Sure thing.
I may actually look at having a way to configure this in the UI as I think
other people are going to need it. i.e. the Norwegians and the UK ITV people.

Paul
>
> Andrew
>
> Paul Kendall wrote:
> > On Sunday 24 August 2008 08:40:38 Andrew Richards wrote:
> >> Sorry what source are you refering to? I have your patches applied from
> >> your repository already, that part is working fine.
> >
> > Ok, if you have the sources from my repository then the file you need to
> > edit in in there under 'libs/libmythtv/avformatdecoder.cpp'.
> >
> > You then need to rebuild the whole thing.
> >
> > Paul
> >
> > _______________________________________________
> > mythtvnz mailing list
> > mythtvnz[at]lists.linuxnut.co.nz
> > http://lists.ourshack.com/mailman/listinfo/mythtvnz
> > Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


amphibem at gmail

Aug 23, 2008, 3:26 PM

Post #9 of 14 (1539 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

OK thanks for all you have done, I will keep an eye out for those changes.

Paul Kendall wrote:
> On Sunday 24 August 2008 09:48:01 Andrew Richards wrote:
>
>> OK that may be beyond my Linux foo, will come back to this after I get
>> my primary PVR MediaPortal working again.
>>
>> Cheers for your help
>>
>
> Sure thing.
> I may actually look at having a way to configure this in the UI as I think
> other people are going to need it. i.e. the Norwegians and the UK ITV people.
>
> Paul
>
>> Andrew
>>
>> Paul Kendall wrote:
>>
>>> On Sunday 24 August 2008 08:40:38 Andrew Richards wrote:
>>>
>>>> Sorry what source are you refering to? I have your patches applied from
>>>> your repository already, that part is working fine.
>>>>
>>> Ok, if you have the sources from my repository then the file you need to
>>> edit in in there under 'libs/libmythtv/avformatdecoder.cpp'.
>>>
>>> You then need to rebuild the whole thing.
>>>
>>> Paul
>>>
>>> _______________________________________________
>>> mythtvnz mailing list
>>> mythtvnz[at]lists.linuxnut.co.nz
>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz[at]lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


amphibem at gmail

Sep 13, 2008, 4:51 PM

Post #10 of 14 (1227 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

Hey all,

I am bringing this topic back up as I have been working to apply the
skiploopfilter patch, and after having gone through the process I still have
skipping on TV3. So I would like to knwo if I have made the correct changes
to the code, and how I can check that my new build has skiploopfilter
applied.

The details of what I have done are at
TechReport<http://techreport.com/forums/viewtopic.php?f=7&t=61663>and
my
blog <http://www.geekzone.co.nz/amphibem>, here is a simplied version:

1) Got the source of '0.21.0+fixes18254+ffmpeg15219+latm-0pk1' and changed
/libs/mythtv/avformatdecoder.cpp around line 1588 to

if (CODEC_ID_H264 == enc->codec_id)
{
VERBOSE(VB_PLAYBACK, LOC + "Turning off loop
filter");
enc->skip_loop_filter = AVDISCARD_ALL;
}

I now notice one of the other threads Steve Ellis had something similar, but
with some added code

VERBOSE(VB_PLAYBACK, LOC + "Enabling Fast decode
mode");
enc->flags |= CODEC_FLAG2_FAST;

I will add then when I do this again.

2) After that went through and did all the rebuilding then re-installing
stuff. Got message about version numbers and not being the maintainer but as
far as I can tell it all worked. However TV3 has not improved. So can I
check somewhere that the change in the code was affected? Or actually check
the skiploopfilter is enabled?

Regards,

Andrew

On 8/24/08, Andrew Richards <amphibem[at]gmail.com> wrote:
>
> OK thanks for all you have done, I will keep an eye out for those changes.
>
> Paul Kendall wrote:
>
>> On Sunday 24 August 2008 09:48:01 Andrew Richards wrote:
>>
>>
>>> OK that may be beyond my Linux foo, will come back to this after I get
>>> my primary PVR MediaPortal working again.
>>>
>>> Cheers for your help
>>>
>>>
>>
>> Sure thing.
>> I may actually look at having a way to configure this in the UI as I think
>> other people are going to need it. i.e. the Norwegians and the UK ITV
>> people.
>>
>> Paul
>>
>>
>>> Andrew
>>>
>>> Paul Kendall wrote:
>>>
>>>
>>>> On Sunday 24 August 2008 08:40:38 Andrew Richards wrote:
>>>>
>>>>
>>>>> Sorry what source are you refering to? I have your patches applied from
>>>>> your repository already, that part is working fine.
>>>>>
>>>>>
>>>> Ok, if you have the sources from my repository then the file you need to
>>>> edit in in there under 'libs/libmythtv/avformatdecoder.cpp'.
>>>>
>>>> You then need to rebuild the whole thing.
>>>>
>>>> Paul
>>>>
>>>> _______________________________________________
>>>> mythtvnz mailing list
>>>> mythtvnz[at]lists.linuxnut.co.nz
>>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>>
>>>>
>>> _______________________________________________
>>> mythtvnz mailing list
>>> mythtvnz[at]lists.linuxnut.co.nz
>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>
>>>
>>
>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz[at]lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>
>>
>


steven at openmedia

Sep 14, 2008, 2:29 AM

Post #11 of 14 (1217 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

On 14/09/2008, at 12:51 AM, Andrew Richards wrote:

> Hey all,
>
> I am bringing this topic back up as I have been working to apply the
> skiploopfilter patch, and after having gone through the process I
> still have skipping on TV3. So I would like to knwo if I have made
> the correct changes to the code, and how I can check that my new
> build has skiploopfilter applied.
>
> The details of what I have done are at TechReport and my blog, here
> is a simplied version:
>

Andrew - What spec is your CPU?

Steve


Steven Ellis - Technical Director
OpenMedia Limited
email - steven[at]openmedia.co.nz
website - http://www.openmedia.co.nz


amphibem at gmail

Sep 14, 2008, 11:10 AM

Post #12 of 14 (1208 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

Steve,

It is a 5200 X2 (2.6GHz). It uses around 60% CPU on TV3 and is capable
of 1080i playback using the PowerDVD8 codec under Windows.

Andrew

Steven Ellis wrote:
>
> On 14/09/2008, at 12:51 AM, Andrew Richards wrote:
>
>> Hey all,
>>
>> I am bringing this topic back up as I have been working to apply the
>> skiploopfilter patch, and after having gone through the process I
>> still have skipping on TV3. So I would like to knwo if I have made
>> the correct changes to the code, and how I can check that my new
>> build has skiploopfilter applied.
>>
>> The details of what I have done are at TechReport
>> <http://techreport.com/forums/viewtopic.php?f=7&t=61663> and my blog
>> <http://www.geekzone.co.nz/amphibem>, here is a simplied version:
>>
>
> Andrew - What spec is your CPU?
>
> Steve
>
>
> Steven Ellis - Technical Director
> OpenMedia Limited
> email - steven[at]openmedia.co.nz <mailto:steven[at]openmedia.co.nz>
> website - http://www.openmedia.co.nz <http://www.openmedia.co.nz/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>

_______________________________________________
mythtvnz mailing list
mythtvnz[at]lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


steven at openmedia

Sep 14, 2008, 12:35 PM

Post #13 of 14 (1201 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

On 14/09/2008, at 7:10 PM, Andrew Richards wrote:

> Steve,
>
> It is a 5200 X2 (2.6GHz). It uses around 60% CPU on TV3 and is capable
> of 1080i playback using the PowerDVD8 codec under Windows.

The 60% will be combined across the 2 CPUs so one core is running
100%. As ffmpeg's H.264 decoder still doesn't thread well enough it
isn't going to use the other core to do enough decoding for playback
to be smooth. PowerDVD's coded will either hardware accel or use both
cores.

Steve

>
>
> Andrew
>
> Steven Ellis wrote:
>>
>> On 14/09/2008, at 12:51 AM, Andrew Richards wrote:
>>
>>> Hey all,
>>>
>>> I am bringing this topic back up as I have been working to apply the
>>> skiploopfilter patch, and after having gone through the process I
>>> still have skipping on TV3. So I would like to knwo if I have made
>>> the correct changes to the code, and how I can check that my new
>>> build has skiploopfilter applied.
>>>
>>> The details of what I have done are at TechReport
>>> <http://techreport.com/forums/viewtopic.php?f=7&t=61663> and my blog
>>> <http://www.geekzone.co.nz/amphibem>, here is a simplied version:
>>>
>>
>> Andrew - What spec is your CPU?
>>
>> Steve
>>
>>
>> Steven Ellis - Technical Director
>> OpenMedia Limited
>> email - steven[at]openmedia.co.nz <mailto:steven[at]openmedia.co.nz>
>> website - http://www.openmedia.co.nz <http://www.openmedia.co.nz/>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz[at]lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

Steven Ellis - Technical Director
OpenMedia Limited
email - steven[at]openmedia.co.nz
website - http://www.openmedia.co.nz


amphibem at gmail

Sep 14, 2008, 12:43 PM

Post #14 of 14 (1203 views)
Permalink
Re: H264 Performance - Patch to enable skip loop filtering and use 2 threads. [In reply to]

Steve,

That would make sense then. I think PowerDVD is using multi-core, it
definitely isn't using hardware acceleration for the graphics in Nvidia 6100
onboard and HW acceleration is turned off.

So can I probably infer from this that somewhere around 3.0GHz (maybe a bit
less for Intel) is required to decode the H.264 stream, in software, without
skip loop filter? I have heard others here mention other issues such as
segfaults, but I am still looking to setup a myth box for Freeview|HD
eventually and don't mind just getting a grunty enough machine to do it, if
the requirements aren't too far out.

Andrew

On 9/15/08, Steven Ellis <steven[at]openmedia.co.nz> wrote:
>
>
> On 14/09/2008, at 7:10 PM, Andrew Richards wrote:
>
> Steve,
>
> It is a 5200 X2 (2.6GHz). It uses around 60% CPU on TV3 and is capable
> of 1080i playback using the PowerDVD8 codec under Windows.
>
>
> The 60% will be combined across the 2 CPUs so one core is running 100%. As
> ffmpeg's H.264 decoder still doesn't thread well enough it isn't going to
> use the other core to do enough decoding for playback to be smooth.
> PowerDVD's coded will either hardware accel or use both cores.
>
> Steve
>
>
>
> Andrew
>
> Steven Ellis wrote:
>
>
> On 14/09/2008, at 12:51 AM, Andrew Richards wrote:
>
>
> Hey all,
>
>
> I am bringing this topic back up as I have been working to apply the
>
> skiploopfilter patch, and after having gone through the process I
>
> still have skipping on TV3. So I would like to knwo if I have made
>
> the correct changes to the code, and how I can check that my new
>
> build has skiploopfilter applied.
>
>
> The details of what I have done are at TechReport
>
> <http://techreport.com/forums/viewtopic.php?f=7&t=61663> and my blog
>
> <http://www.geekzone.co.nz/amphibem>, here is a simplied version:
>
>
>
> Andrew - What spec is your CPU?
>
>
> Steve
>
>
>
> Steven Ellis - Technical Director
>
> OpenMedia Limited
>
> email - steven[at]openmedia.co.nz <mailto:steven[at]openmedia.co.nz<steven[at]openmedia.co.nz>
> >
>
> website - http://www.openmedia.co.nz <http://www.openmedia.co.nz/>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
>
> mythtvnz mailing list
>
> mythtvnz[at]lists.linuxnut.co.nz
>
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>
> Steven Ellis - Technical Director
> OpenMedia Limited
> email - steven[at]openmedia.co.nz
> website - http://www.openmedia.co.nz
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz[at]lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
>

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.