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

Mailing List Archive: MythTV: Mythtvnz

Anyone successfully using CoreAVC for h264 decoding ?

 

 

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


g.woollett at irl

Aug 31, 2008, 2:28 PM

Post #1 of 7 (804 views)
Permalink
Anyone successfully using CoreAVC for h264 decoding ?

I've been trying to get this to go, I've patched, built and installed
the modified code as stated in the coreavc-for-linux pages on google

When I run this

dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449


>> I get this

No id specified, assuming test mode
Opening device
len: 992
ProductVersion: 1.7.0
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete


After following the instructions when I run mythfrontend there is no speedup on TV3.
"top" doesn't report dshowserver as a process that is gobbling CPU.

What are the settings in the playback menu that I should be using to ensure its use?
What is the best way to find out why it isn't working?

Thanks
Graeme




_______________________________________________
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/


g.woollett at irl

Aug 31, 2008, 7:35 PM

Post #2 of 7 (785 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

snip
> No id specified, assuming test mode
> Opening device
> len: 992
> ProductVersion: 1.7.0
> Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
> Decoder is capable of YUV output (flags 0x2b)
> Setting fmt
> Starting
> Initialization is complete
>
>
> After following the instructions when I run mythfrontend there is no speedup on TV3.
> "top" doesn't report dshowserver as a process that is gobbling CPU.
>
> What are the settings in the playback menu that I should be using to ensure its use?
> What is the best way to find out why it isn't working?
>
> Thanks
> Graeme
>
>
>
>
Doh! forgot this line

cp <path to coreavc-for-linux>/mythtv/dshowcodecs ~/.mythtv


_______________________________________________
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

Aug 31, 2008, 8:01 PM

Post #3 of 7 (787 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

On Mon, September 1, 2008 2:35 pm, Graeme Woollett wrote:
> snip
>> No id specified, assuming test mode
>> Opening device
>> len: 992
>> ProductVersion: 1.7.0
>> Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
>> Decoder is capable of YUV output (flags 0x2b)
>> Setting fmt
>> Starting
>> Initialization is complete
>>
>>
>> After following the instructions when I run mythfrontend there is no
>> speedup on TV3.
>> "top" doesn't report dshowserver as a process that is gobbling CPU.
>>
>> What are the settings in the playback menu that I should be using to
>> ensure its use?
>> What is the best way to find out why it isn't working?
>>
>> Thanks
>> Graeme
>>
>>
>>
>>
> Doh! forgot this line
>
> cp <path to coreavc-for-linux>/mythtv/dshowcodecs ~/.mythtv
>

So what is the performance like now on TV1 and TV3?



--------------------------------------------
Steven Ellis - Technical Director
OpenMedia Limited - The Home of myPVR
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/


graeme.joy at paradise

Sep 1, 2008, 1:00 AM

Post #4 of 7 (771 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

After I included the cp directshow came to life :-)
TV3 is now watchable but large screen changes/movement are not fluid.

dhsowserver CPU usage varies a lot, between 90and 120%/40% idle for TV3
with the "normal" playback profile

TV1&2 are around 70-80% with Piha rescue, this prog is not HD though

front end is crashing reasonably frequently with the following-
2008-09-01 19:00:37.711 AFD: Found DirectShow filter
2008-09-01 19:00:37.712 AFD: Opened codec 0xa8f35c30, id(H264) type(Video)
2008-09-01 19:00:37.712 AFD: codec AAC_LATM has 2 channels
2008-09-01 19:00:37.712 AFD Error: Could not find decoder for codec
(AAC_LATM), ignoring.
2008-09-01 19:00:37.712 AFD: codec AC3 has 6 channels
2008-09-01 19:00:37.712 AFD: Opened codec 0xa8faae30, id(AC3) type(Audio)
2008-09-01 19:00:39.054 NVP: Prebuffer wait timed out 10 times.
2008-09-01 19:10:14.446 Mixer unable to find control Master 1
2008-09-01 19:10:14.446 mixer unable to find control Master 1
Segmentation fault

myth[at]mercury:~$ Parent process 21839 died unexpectedly

the aac_Latm error I guess is largely due to a fix in avformat.cpp that
allowed it to compile cleanly

2008-09-01 19:49:05.089 AFD: Opened codec 0xa6411f80, id(H264) type(Video)
2008-09-01 19:49:05.089 AFD: codec AAC_LATM has 2 channels
2008-09-01 19:49:05.089 AFD Error: Could not find decoder for codec
(AAC_LATM), ignoring.
2008-09-01 19:49:05.089 AFD: Opened codec 0xa64b40a0, id(DVB_SUBTITLE)
type(Subtitle)
2008-09-01 19:49:05.089 NVP: Disabling Audio, params(0,-1,-1)
2008-09-01 19:49:41.475 NVP: prebuffering pause
2008-09-01 19:50:05.244 NVP: prebuffering pause


On TV1 and 2 with this build I don't have any sound, TV3 DVB-T and DVB-S
are OK

The directshow build is less stable than others, I think I'll need to
stick with DVB-S a little longer or the WAF will take a hammering...


_______________________________________________
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 4, 2008, 3:13 PM

Post #5 of 7 (711 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

On 1/09/2008, at 8:00 PM, Graeme Woollett wrote:

> After I included the cp directshow came to life :-)
> TV3 is now watchable but large screen changes/movement are not fluid.
>
> dhsowserver CPU usage varies a lot, between 90and 120%/40% idle for
> TV3
> with the "normal" playback profile
>
> TV1&2 are around 70-80% with Piha rescue, this prog is not HD though
>
> front end is crashing reasonably frequently with the following-
> 2008-09-01 19:00:37.711 AFD: Found DirectShow filter
> 2008-09-01 19:00:37.712 AFD: Opened codec 0xa8f35c30, id(H264)
> type(Video)
> 2008-09-01 19:00:37.712 AFD: codec AAC_LATM has 2 channels
> 2008-09-01 19:00:37.712 AFD Error: Could not find decoder for codec
> (AAC_LATM), ignoring.
> 2008-09-01 19:00:37.712 AFD: codec AC3 has 6 channels
> 2008-09-01 19:00:37.712 AFD: Opened codec 0xa8faae30, id(AC3)
> type(Audio)
> 2008-09-01 19:00:39.054 NVP: Prebuffer wait timed out 10 times.
> 2008-09-01 19:10:14.446 Mixer unable to find control Master 1
> 2008-09-01 19:10:14.446 mixer unable to find control Master 1
> Segmentation fault
>
> myth[at]mercury:~$ Parent process 21839 died unexpectedly
>
> the aac_Latm error I guess is largely due to a fix in avformat.cpp
> that
> allowed it to compile cleanly
>
> 2008-09-01 19:49:05.089 AFD: Opened codec 0xa6411f80, id(H264)
> type(Video)
> 2008-09-01 19:49:05.089 AFD: codec AAC_LATM has 2 channels
> 2008-09-01 19:49:05.089 AFD Error: Could not find decoder for codec
> (AAC_LATM), ignoring.
> 2008-09-01 19:49:05.089 AFD: Opened codec 0xa64b40a0, id(DVB_SUBTITLE)
> type(Subtitle)
> 2008-09-01 19:49:05.089 NVP: Disabling Audio, params(0,-1,-1)
> 2008-09-01 19:49:41.475 NVP: prebuffering pause
> 2008-09-01 19:50:05.244 NVP: prebuffering pause
>
>
> On TV1 and 2 with this build I don't have any sound, TV3 DVB-T and
> DVB-S
> are OK
>
> The directshow build is less stable than others, I think I'll need to
> stick with DVB-S a little longer or the WAF will take a hammering...
>

New tests with CoreAVC 1.7. CPU is 3600+ running in performance mode
of 2GHz. and CPU scaling disabled

Channel resolution dshowfilter mythfrontend
freeview|HD 720p 78 20
TV One 720p 84 22
TV 2 720p 75 22
TV 3 1080i 150 22
C4 576i 34 7
TVNZ 6 576i 30 7
TVNZ 7 576i 21 7

Some odd issues when switching between 720p and interlaced channels,
but otherwise load is ok even on TV3.

The mythfrontend load is reasonably reliable.

I also tried tweaking the de-blocking settings

~/bin/registercodec -r $REGISTRY -k \
"HKLM\\Software\\IniFileMapping\\CoreAVC\\Settings\\C:\\coreavc.ini" \
-v "deblock=9"

This appeared to reduce the CPU load by a few more percent.

Unlike Graeme I managed to get working audio on all of the channels.

Not really a bullet proof solution yet. Load is a lot better than pure
ffmpeg thanks to the CPU threading support, but I have a feeling if
ffmpeg gets better multi-core support it will beat CoreAVC.

Sadly the quality isn't there though. The Interlaced channels look a
little bit scrappy.

I think we need to hold out for better threading support in ffmpeg, or
the GSoC performance improvements using the GPU to accelerate the
decode.

Steve



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


g.woollett at irl

Sep 4, 2008, 5:00 PM

Post #6 of 7 (708 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

> New tests with CoreAVC 1.7. CPU is 3600+ running in performance mode
> of 2GHz. and CPU scaling disabled
>
> Channel resolution dshowfilter mythfrontend
> freeview|HD 720p 78 20
> TV One 720p 84 22
> TV 2 720p 75 22
> TV 3 1080i 150 22
> C4 576i 34 7
> TVNZ 6 576i 30 7
> TVNZ 7 576i 21 7
>
> Some odd issues when switching between 720p and interlaced channels,
> but otherwise load is ok even on TV3.
>
> The mythfrontend load is reasonably reliable.
>
> I also tried tweaking the de-blocking settings
>
> ~/bin/registercodec -r $REGISTRY -k \
> "HKLM\\Software\\IniFileMapping\\CoreAVC\\Settings\\C:\\coreavc.ini" \
> -v "deblock=9"
>
> This appeared to reduce the CPU load by a few more percent.
>
> Unlike Graeme I managed to get working audio on all of the channels.
My present build has audio working on all channels ;-)
>
> Not really a bullet proof solution yet. Load is a lot better than pure
> ffmpeg thanks to the CPU threading support, but I have a feeling if
> ffmpeg gets better multi-core support it will beat CoreAVC.
>
> Sadly the quality isn't there though. The Interlaced channels look a
> little bit scrappy.
>
> I think we need to hold out for better threading support in ffmpeg, or
> the GSoC performance improvements using the GPU to accelerate the decode.
>
> Steve
>
Changing to TV3 using Live TV crashes the frontend every so often,
otherwise its stable playing back TV3 if left alone.
Steve, are you getting _any_ shudder with large screen changes on TV3?
I have to agree with Steve, the picture quality the interlaced channels
isn't there yet.

I notice that CoreAVC 1.8 is out, there are some fixes to the
interlacing code. I wonder if it has the same sort of install process
as 1.7...


Graeme

_______________________________________________
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 4, 2008, 10:20 PM

Post #7 of 7 (702 views)
Permalink
Re: Anyone successfully using CoreAVC for h264 decoding ? [In reply to]

On 5/09/2008, at 12:00 PM, Graeme Woollett wrote:
>>

[ big crop]

> Changing to TV3 using Live TV crashes the frontend every so often,
> otherwise its stable playing back TV3 if left alone.

Yeah I have the same issues

>
> Steve, are you getting _any_ shudder with large screen changes on TV3?
> I have to agree with Steve, the picture quality the interlaced
> channels
> isn't there yet.
>

Yeah same issues. I haven't tried with the CoreAVC inbuilt de-
interlacer turned on yet

> I notice that CoreAVC 1.8 is out, there are some fixes to the
> interlacing code. I wonder if it has the same sort of install process
> as 1.7...
>

Nothing on the coreavc-for-linux mailing list about support yet


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

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.