INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: CoreAVC / DXVA with MC16  (Read 5877 times)

lowjoel

  • World Citizen
  • ***
  • Posts: 159
CoreAVC / DXVA with MC16
« on: October 02, 2011, 08:01:46 pm »

Hello,

A while back I managed to configure CoreAVC to work with MC16 with DXVA hardware acceleration (I'm playing on a laptop, so both GPU and CPU are a little on a slow side -- Mobility Radeon 3400 HD / Mobile C2D 2.4GHz) However, with more recent builds of MC (or due to my Windows reinstall!) DXVA no longer seems to be used when decoding videos.

I've tried searching around but I can't find a solution that works. Any help would be much appreciated :)


P/s: incidentally, I noticed when using Red October Std, it defaults to using ffdshow-tryouts even when CoreAVC is installed -- has opinion swayed towards thinking that ffdshow is better for most people?
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #1 on: October 02, 2011, 09:09:24 pm »

Choose RO standard plus additional filters. Then choose CoreAVC under other filters. That should work for you. You will not be able to use madvr for rendering with DXVA. You can with CUDA if you had an nvidia gpu. Also, you must have a recent versio of CoreAVC (3.0) in order to have been doing DXVA with an ATi GPU. I was about to tell you you couldn't have been doing it, but decided to check if they'd finally implemented it. I stopped using it after v2.5, when I preferred the LAVCUVID filters since they're not just limited to h.264. Looks like Corecodec have caught up a bit and reduced their prices in the face of (free) competition from Nev.
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #2 on: October 02, 2011, 09:20:21 pm »

Thanks fitbrit.

I guess I wasn't too clear. I'm running CoreAVC 3 currently with the Enhanced Video Renderer, DXVA has been enabled in the CoreAVC settings dialog.

Filter Graph Info:

    Filter 'JRiver Audio Renderer'
        CLSID: {A4002F8E-510F-442C-8AD3-F9C7B23FB394}
        Host:
        Input Pin 'In'
            Connected to pin 'Output' of filter 'LAV Audio Decoder (auto-configured)'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

    Filter 'JRiver Subtitle Renderer'
        CLSID: {F74E834C-9C98-43ED-89B1-19A9DF82E774}
        Host:
        Input Pin 'In'
            Connected to pin 'Subtitle' of filter 'LAV Source Splitter'
            Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD}  Sub type Unknown GUID Name: {326444F7-686F-47FF-A4B2-C8C96307B4C2}, Format type Unknown GUID Name: {326444F7-686F-47FF-A4B2-C8C96307B4C2}

    Filter 'Enhanced Video Renderer'
        CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
        Host: c:\windows\syswow64\evr.dll
        Input Pin 'EVR Input0'
            Connected to pin 'Output' of filter 'CoreAVC Video Decoder'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_NV12, Format type FORMAT_VideoInfo2
        Input Pin 'EVR Input1'

    Filter 'CoreAVC Video Decoder'
        CLSID: {09571A4B-F1FE-4C60-9760-DE6D310C7C31}
        Host: c:\program files (x86)\corecodec\coreavc professional edition\coreavcdecoder.ax
        Input Pin 'Input'
            Connected to pin 'Output' of filter 'JRiver Video Monitor'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO
        Output Pin 'Output'
            Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_NV12, Format type FORMAT_VideoInfo2

    Filter 'LAV Audio Decoder (auto-configured)'
        CLSID: {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
        Host: \\Server\Users\Joel\Application Data\J River\Media Center 16\Plugins\lav\LAVAudio.ax
        Input Pin 'Input'
            Connected to pin 'Output' of filter 'JRiver Audio Monitor'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Output'
            Connected to pin 'In' of filter 'JRiver Audio Renderer'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

    Filter 'JRiver Video Monitor'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Video' of filter 'LAV Source Splitter'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO
        Output Pin 'Output'
            Connected to pin 'Input' of filter 'CoreAVC Video Decoder'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO

    Filter 'JRiver Audio Monitor'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Audio' of filter 'LAV Source Splitter'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Output'
            Connected to pin 'Input' of filter 'LAV Audio Decoder (auto-configured)'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx

    Filter 'LAV Source Splitter'
        CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
        Host: \\Server\Users\Joel\Application Data\J River\Media Center 16\Plugins\lav\LAVSplitter.ax
        Output Pin 'Video'
            Connected to pin 'Input' of filter 'JRiver Video Monitor'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {31435641-0000-0010-8000-00AA00389B71}, Format type FORMAT_MPEG2_VIDEO
        Output Pin 'Audio'
            Connected to pin 'Input' of filter 'JRiver Audio Monitor'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Subtitle'
            Connected to pin 'In' of filter 'JRiver Subtitle Renderer'
            Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD}  Sub type Unknown GUID Name: {326444F7-686F-47FF-A4B2-C8C96307B4C2}, Format type Unknown GUID Name: {326444F7-686F-47FF-A4B2-C8C96307B4C2}
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #3 on: October 02, 2011, 10:03:45 pm »

Sorry, read my post again and there's another ambiguity: even changing the renderer to Enhanced Video Renderer and enabling DXVA in CoreAVC's settings does not cause CoreAVC to hardware accelerate (the tray icon is blue)
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: CoreAVC / DXVA with MC16
« Reply #4 on: October 03, 2011, 08:44:18 am »

CoreAVC will only use HA on H.264 content. It looks like you are playing MPEG2.
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #5 on: October 03, 2011, 08:46:00 am »

It is a h264 I'm playing back -- stored in a Matroska container.

Edit: I've tried on two different media files, both are h.264 (one 720p, another 1080p), neither is rendered with HA.
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #6 on: October 03, 2011, 11:36:19 am »

It is a h264 I'm playing back -- stored in a Matroska container.

Edit: I've tried on two different media files, both are h.264 (one 720p, another 1080p), neither is rendered with HA.

Perhaps the video files are not DXVA compatible?
DXVA is a lot more picky about how the file was encoded than the CUDA/CUVID hardware acceleration. The number of reference frames makes a difference - some settings preclude DXVA. Nowadays most people are aware of this and they rip in a DXVA-friendly manner. DXVA problems were quite common in files ripped in 2008-2009 by those not in the know.
It's strange how the Filter Graph info thinks it's an mpeg2 steam you're trying to play. It must be h.264 if CoreAVC is being used at all, though.
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #7 on: October 03, 2011, 06:52:29 pm »

Looks like you're right - the media files aren't DXVA compatible. I had to dig through quite a few files before finding one that renders with DXVA... looks like I'll have to live with high CPU usage until I can get a new laptop  ;D
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #8 on: October 03, 2011, 09:34:27 pm »

Looks like you're right - the media files aren't DXVA compatible. I had to dig through quite a few files before finding one that renders with DXVA... looks like I'll have to live with high CPU usage until I can get a new laptop  ;D

You could switch to nVidia and let the card do hardware acceleration with CUVID/CUDA implementation; you could also run Red October HQ with something like a sub-$100 GTS450.

Ignore above... I see you're on a laptop. Similar specs to my Dell Studio 15.
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #9 on: October 03, 2011, 09:35:57 pm »

I'd love to, just that it's not currently possible to replace a laptop's graphic card, is it? I've actually been pro-nvidia for a long while, just that laptops come with limited discrete graphics options (until recently, at least -- this laptop has been with me for 2+ years already.)
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #10 on: October 03, 2011, 09:37:01 pm »

I'd love to, just that it's not currently possible to replace a laptop's graphic card, is it? I've actually been pro-nvidia for a long while, just that laptops come with limited discrete graphics options (until recently, at least -- this laptop has been with me for 2+ years already.)

Ha! I was editing my post while you were writing this. :)
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #11 on: October 03, 2011, 09:40:18 pm »

notably, without Hardware acceleration, this laptop's c2d can churn out a decent framerate most times (around 20ish) with CoreAVC except when dealing with a high-bitrate portion of the video file. Not jarring, but plenty of room for improvement... hence the desire for HA.

Even then, my test video which does allow DXVA to load comes out garbled (macro blocking)... some googling revealed that ATI's DXVA implementation only minimally achieves the blu-ray spec. which is annoying for videos kept for archival.
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #12 on: October 03, 2011, 10:44:06 pm »

2.4 GHz should be fast enough. Are you sure you haven't got a power-saving mode, or balanced mode enabled?
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #13 on: October 03, 2011, 10:57:09 pm »

Hmm, maybe what I'm seeing is not so much a reduced framerate but more of jitter. I'm not sure. For a test, I opened up the opening theme for the animes Air and Suzumiya Haruhi no Yuutsu (both have high bitrates, Air averages about 10mbps, SHnY averages 20mbps) and with task manager open CPU usage is a little over 1 core (60%)

What gives? :S
Logged

Trumpetguy

  • Citizen of the Universe
  • *****
  • Posts: 974
Re: CoreAVC / DXVA with MC16
« Reply #14 on: October 04, 2011, 03:44:47 am »

I have a nVidia system (new GPU, but four year old AMD triple core), and have been using CoreAVC until recently. On some movies, I get a lot of stutter even with CUDA hardware acceleration. Switched to Lav CUVID, and everything runs smoothly. This is maybe not relevant for you guys with ati gpus, but it shows that CoreAVC is not necessarily the most efficient decoder. Any others with similar experience?
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #15 on: October 04, 2011, 03:48:17 am »

It could very well be CoreAVC being the problem here, but at those bitrates, ffdshow just gives up -- really, the output is garbled beyond recognition (I tried and watched in horror.) So I guess for us folks stuck with ATI...
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: CoreAVC / DXVA with MC16
« Reply #16 on: October 04, 2011, 01:03:38 pm »

What's the refresh rate of your display and the fps of the material you're trying to play back? Do you have video clock on?
Logged

lowjoel

  • World Citizen
  • ***
  • Posts: 159
Re: CoreAVC / DXVA with MC16
« Reply #17 on: October 04, 2011, 06:08:46 pm »

23.98 fps on the video, and 60hz on the display. There's some mismatch there, but wouldn't it be rather difficult to have the display be an exact multiple of the video frame rate?

Video clock is off, turning it on doesn't seem to make much difference. I don't know, maybe I'm just being a bit too demanding of what I see, especially since I only can discern this when there's panning of the camera or fading in/out -- is it fair to the computer? haha.
Logged
Pages: [1]   Go Up