Quantcast Watching h.264 videos using DirectX Video Acceleration (DXVA) >> My collection of short anime reviews
imouto.my background image - Tsunetsuki Matoi of Sayonara Zetsubou Sensei

Watching H.264 videos using DirectX Video Acceleration (DXVA)

Shortlink of this post – http://wp.me/PrgSo-2n (you can use this link in your forum/BBS/IRC/twitter/facebook etc. messages) || Download the PDF version of this page here.

nVidia GPU users – you may optionally read here.

Nowadays, many anime fansub groups released their files in H.264 format, which can be pretty taxing for older CPUs (like non-dual core Semprons/Celerons). This will be apparent with high definition anime titles like the one I have reviewed in this blog here, here and here. With DXVA, you should be able to play those videos smoothly with less performance penalty upon your CPU.

This guide is the same as the one I posted at BakaBT forum here, although this page is the first place where updates will be done first. This guide mostly catered for anime fansub viewers (with emphasis on subtitles), but can also be used for viewing all kind of H.264 videos too which doesn't have one.

TABLE OF CONTENTS

CHANGELOG
BEFORE YOU START
FILES YOU NEED FOR TROUBLESHOOTING
TEST VIDEO FILES
EXPECTED RESULT AFTER DOING THIS TUTORIAL
—> THE TUTORIAL ITSELF <—
DXVA IN ACTION
NOTES
TROUBLESHOOTING

CHANGELOG

20 July 2010 – Added table of contents for better navigation of this extremely long page that cause some performance problems in Mozilla Firefox. DXVA Checker updated to latest version.

 

BEFORE YOU START…

Below are the things you need to use DirectX Video Acceleration (DXVA) to accelerate those CPU-hungry H.264 videos you see a lot here in this anime review blog:-

  1. Windows Vista or 7 (with the latest service pack you can get):- With Catalyst 10.4, ATI has followed Intel's footsteps and only made fully-featured functional DXVA acceleration (that includes playback of videos that do not conform to Blu-ray standards) available under these two operating systems. If you use Windows XP, even if you have an ATI GPU with UVD2.x ASIC decoding silicon, you won't get the new benefits offered by Catalyst 10.4. DXVA-assisted playback is still possible under Windows XP, but only for Blu-ray-compliant videos. For Intel GPU users, Windows Vista or 7 is mandatory.

    If Windows XP is really a must for you (you have an im ortant applications that runs only on XP etc.), consider switching to an nVidia GPU and use the CoreAVC 2 CUDA method for reliable playback of all non-test user-generated H.264 videos out there.

    My recommendation: Windows 7 Home Premium (buy here) minimum so that you can have the option to use Microsoft DTV-DVD Video Decoder available in Windows Media Player 12. Therefore Windows 7 N should not be used.

  2. A qualifying video card that supports DXVA:- A list of them are available at the bottom of this tutorial. For ATI AGP GPU users, the improvements available in Catalyst 10.4, even if you use Windows Vista or 7 (playback of Blu-ray-compliant videos should still be available though). Therefore consider getting a PCI-E GPU or any supporting ATI IGP chipsets. Please note that ATI GPU with UVD1.x (UVD, UVD+) only see limited, but still remarkable improvements for decoding out-of-spec videos.

    My recommendation: Any qualifying nVidia GPUs, with the emphasis on the ones with PureVideo4 ASIC. See the list at the bottom of this page to see which nVidia GPUs has such ASIC. Fermi GTX470/480 are not recommended though, unless you are gaming. Fermi GTX460 are recommended, as it is now are able to bitstream HD audio codecs and are beasts in gaming when put in SLI configuration.

  3. Media Player Classic – HomeCinema:- This tutorial will use the beta version build 1862. It can be downloaded from here (mirror) (changelog). MediaInfo.dll now comes packaged into the archive too, so no need for a separate download. Please use 32-bit binary only even if you use 64-bit version of Windows.

FILES YOU NEED FOR TROUBLESHOOTING

  1. DXVA Checker – Download here (you can check whether your card is DXVA-capable and you will need this for troubleshooting). Original website.
  2. GPU-Z – Download here (shows detailed information about your GPU).
  3. CPU-Z – Download here (shows detailed information about your CPU).
  4. DirectX End-user runtime (February 2010) – Download here. Install this if you have d3dx9.dll error message when using MPC-HC.
  5. Microsoft .NET 4 Framework – Download here. Needed for EVR/EVR custom presenter and also to run DXVA Checker.
  6. Update for Windows Vista (KB971512) – Download here. Backport of some of Windows 7 features such as DirectX 11 for Windows Vista.
  7. Haali Media Splitter – Download from here (original website).

 

TEST VIDEO FILES

If you have problems enabling DXVA, please test your setup with the three compliant videos first. If the problem is repeatable, make screenshots of your DXVA Checker, CPU-Z and GPU-Z results and make a comment in the comment section below.

  • Blu-ray-compliant test video file 1The Melancholy of Haruhi Suzumiya NCED theme (Hare Hare Yukai) SD video with karaoke soft-sub – download here.
  • Blu-ray-compliant test video file 2Clannad NCED theme (Dango Daikazoku) 720p with karaoke soft-sub – download here.
  • Blu-ray-compliant test video file 3 – Kanon NCOP theme (Last Regret) 1080p with soft-sub – download here.
  • Out-of-spec test video file 4James Bond: Quantum of Solace 1080p trailer – download here.
  • Out-of-spec test video file 5AIR NCOP theme (Tori no Uta) multi-angle 1080p with karaoke softsubs – download here.
  • Out-of-spec test video file 6BBC Planet Earth: From Pole to Pole opening clip – download here.

Download all 6 test videos above in one single archived zip file here (806MB). No need to wait 10 minutes to download the separate files individually. The links above still can be used if you do not want all of them.
EDIT: IT COMES TO MY ATTENTION THAT YOU WILL NEED A PREMIUM ACCOUNT TO DOWNLOAD FILES OVER 400MB. IF YOU DO NOT HAVE ONE, YOU CAN STILL DOWNLOAD THE VIDEOS INDIVIDUALLY FREE OF CHARGE!!

If any files cannot be downloaded, make a comment below.

 

EXPECTED RESULT AFTER DOING THIS TUTORIAL

nVidia GPUs:-

  • nVidia GPU users (with 191.xx drivers or later) + Windows Vista or 7 = can play all 6 test video files with ease. AIR NCOP theme (Tori no Uta) may become an exception if your CPU is slow, thus you may have to disable karaoke subtitle animation.
  • nVidia GPU users (with 191.xx drivers or later) + Windows XP = can play the first 5 test videos, but not the BBC Planet Earth clip. The issue with AIR NCOP theme (Tori no Uta) also applies. nVidia GPU users who insists on Windows XP for whatever reasons, should consider using the CoreAVC 2 method.

ATI GPUs:-

  • ATI GPUs with UVD2.x (PCI-E or IGP) + Catalyst 10.4 drivers + Windows Vista or 7 = can play test video 2 to 6, but not The Melancholy of Haruhi Suzumiya NCED theme (Hare Hare Yukai). Success probability is 98%. The issue with AIR NCOP theme (Tori no Uta) also applies.
  • ATI GPUs with UVD/UVD+ (PCI-E or IGP) + Catalyst 10.4 drivers + Windows Vista or 7 = can play test videos 2 and 3 reliably. The Melancholy of Haruhi Suzumiya NCED theme (Hare Hare Yukai) is not playable with DXVA. Should also be able to play test video file 4 to 6 but with less successful probability compared to ATI UVD2.x GPU users.  The issue with AIR NCOP theme (Tori no Uta) also applies.
  • ATI GPUs  regardless of UVD version (AGP) + Catalyst 10.4 drivers + Windows XP/Vista/7 = can only play test video 1 to 3.
  • ATI GPUs regardless of UVD version (PCI-E or IGP) + Catalyst 10.4 and older + Windows XP = can only play test video 1 to 3.
  • ATI GPUs regardless of UVD version (PCI-E, IGP or AGP) + Catalyst 10.3 or older + Windows XP/Vista/7 = can only play test video 1 to 3.

Intel GPUs:-

  • Intel G45/Clarkdale/Arrandale (with any recent drivers) + Windows Vista or 7 = can play all 6 test videos with ease. The issue with AIR OP theme (Tori no Uta) still applies. Reminder: while Intel GPUs can play the three out-of-spec video files made available here reliably, the same cannot be said for other out-of-spec videos floating out there. Successful probability for those files is 90%.
  • Intel G45/Clarkdale/Arrandale + Windows XP = UPGRADE TO WINDOWS VISTA OR 7.

Other GPUs such as PowerVR’s Intel GMA500 or S3 Chrome = can only play test video 1 to 3.

 

TUTORIAL

  1. Step 1 – Installing MPC-HC & Haali Media Splitter.
  2. Step 2 – Opening the 'Option' window.
  3. Step 3 – Enabling MPC-HC internal subtitle engine.
  4. Step 4 – Choosing DXVA-compliant video renderers.
  5. Step 5 – Choosing the right splitters and decoders.
  6. Step 6 – Eliminating potential problematic DirectShow decoders/filters that may cause DXVA playback to not work.
  7. Step 7 – Configuring MPC-HC internal subtitle engine.
  8. Step 8 – Configuring EVR custom presenter/VMR9 renderless video renderers.

STEP 1

Download and install the MPC-HC from the link above. Unzip it where you wanted. If you have an existing MPC-HC installation (if you have CCCP or K-Lite Mega Pack), overwrite it with this copy. After that, start the program.

In the example above, I deleted the MPC-HC executables that comes with CCCP and replaced it with the new MPC-HC version (mpc-hc.exe) in its place. Just so you know, since build 1448, the executable has been renamed to mpc-hc.exe.

Download the latest version of Haali Media Splitter from the link provided above. During the setup process, when you arrived at the stage depicted below, unselect the option ‘Associate .mkv and .mka files with Windows Media Player’ before proceeding with the setup process.

If you somewhat skipped the process above, go to Start Menu —> All Programs —> Haali Media Splitter —> Media Splitter Settings (Windows 7 default start path, YMMV), and set the option ‘Use custom media type for H.264′ to ‘No’, as shown below.

 

STEP 2

Press O (or go to View —> Options) to open the Options window, that should look like below.

 

STEP 3

Go to Playback section, and make sure that Autoload Subtitles is checked. This will automatically disable DirectVobSub (auto-loading version), so no need to kill it in step 6. If you do not need subtitles, also enable this option so that DirectVobSub/vsfilter is blocked.

 

STEP 4

Go to Output section, and depending on your operating system, select the appropriate output you have to use. For Windows XP users, you can choose VMR7/9 renderless (if you need subtitles) plus overlay mixer and VM7/9 windowed (if you do not need subtitles – such as playing anime in AVI format that has hard subtitles, for example Dattebayo releases) while for Windows Vista/7 users, choose EVR custom presenter regardless of your subtitles needs. Keep EVR buffers as low as possible (3). If you choose renderers that did not support subtitles, DirectVobSub (auto-loading version) must be blocked in Step 6.

As I now use Windows 7, further steps will show that I am using EVR Custom Presenter.

 

STEP 5

Go to Internal Filters section and under Source Filters, make sure Matroska, MP4/MOV and Ogg is unticked. Then go to Transform Filter, and ensure that ‘H264/AVC (DXVA)’ and ‘H264/AVC (FFmpeg)’ are selected.

Then double click the selected ‘H264/AVC (DXVA)’ entry to open up its property page, as shown below.

So here is what you have to do depending on what GPU + driver + operating system combination you have:-

  • nVidia users + whatever OS used = don’t do anything here, click OK and go to the next step.
  • Other GPUs (PowerVR’s Intel GMA500 or S3 Chrome) = don’t do anything here, click OK and go to the next step.
  • ATI GPUs (PCI-E or IGP ) with Catalyst 10.4 + Windows Vista or 7 = Set the option 'DXVA(H264) Compatibility Check' to 'Skip all checks', enable ‘Disable DXVA for SD’ option, click OK and go to the next step. Leave other settings as shown above.
  • ATI GPUs (PCI-E, AGP or IGP) with Catalyst 10.3 or older + Windows XP/Vista/7 = don’t do anything here, click OK and go to the next step.
  • ATI GPUs (AGP) with Catalyst 10.4 or older + Windows XP/Vista/7 = don’t do anything here, click OK and go to the next step.
  • ATI GPUs (PCI-E, AGP or IGP) with Calayst 10.4 or older + Windows XP = don’t do anything here, click OK and go to the next step.
  • Intel G45/Clarkdale/Arrandale + Windows Vista/7 = Set the option ‘DXVA(H264) Compatibility check’ to ‘Skip all checks’, click OK and go to the next step.
  • Intel G45/Clarkdale/Arrandale + Windows XP = UPGRADE TO WINDOWS VISTA OR 7.

We are now going to Step 6, which is the most important step in this tutorial. This step is very important at ensuring that hardware acceleration will work at all.

 

STEP 6

Here, we go to the External Filters section, because we have to eliminate intermediaries between the MPC internal decoder and the renderer. It should look like below.

http://chihaya.imouto.my/tutorial_DXVA5/step6part1.jpg

Now ask yourself whether you have installed programs like ffdshow in your computer. If you have installed codec packs such as K-Lite Codec Pack or CCCP, then you may have ffdshow Video Decoder. In that case, click Add Filter and you will see a dialog window like below.

Select ‘ffdshow Video Decoder' and click OK, then you will see the previous window populated with ‘ffdshow Video Decoder’ entry selected before.

Here, click Block to prevent ffdshow Video Decoder from being loaded by MPC-HC.

Repeat it with entries that you think will prevent the MPC-HC internal decoder from being connected straight to the renderer (either VMR9 renderless or EVR custom presenter). ffdshow video decoder and DirectVobSub (auto-loading version) are the main culprits that will do so. There could be others that I do not know. If you have done Step 3, DirectVobSub is killed automatically and you do not have to do so here, but if you choose to use video renderers that did not support subtitles like Overlay Mixer or VMR7 windowed, you have to block it here too. If you have other H.264 decoders installed in your computer, such as the ffdshow DXVA Video Decoder, CoreAVC Video Decoder, Cyberlink H.264/AVC decoder, DivX H.264 Decoder and Arcsoft Video Decoder, you should also block them here so that MPC-HC will not load them.

 

STEP 7

Go to Subtitles section, and set ‘Allow animation when buffering’ is ticked (for those who has low-powered CPU like Intel Atom, untick this option). As long as that option is enabled, the option ‘Sub pictures to buffer’ is not exactly important (set it to 10 if you have 512MB RAM – lower if you have less), but if this option is set to zero, subtitle animation will always be enabled (therefore to disable subtitle animation, the buffer must not be zero and ‘Allow animation when buffering’ is disabled). This will allow those anime OP/ED/insert themes that has soft karaoke effects to be displayed correctly. The appropriate renderer must also be selected in Step 4 above. With the latest MPC-HC, frame drops can be reduced to almost zero even if karaoke effects are turned on.

For ‘Maximum Texture Resolution’ option, set it to ‘Desktop’ with ‘Round up to power of two’ unchecked. This should give you very sharp-looking subtitles but remember, the higher the resolution is, the higher the CPU resources will be used. You can lower this setting to reduce CPU utilization.

Then go to the Subtitles/Default Style section, and full tick the option ‘Position subtitles relative to the video frame’ just like the screenshot below. This will ensure that subtitles will be rendered within the video picture, allowing more accuracy for positional subtitles such as signboards etc.

This step did not apply if you do not watch videos that do not have soft subtitles.

And that’s about all you should do in the Options window.  Click Apply to apply all changes you have made, and then click OK to close the Options window.

 

STEP 8

Right-click within MPC-HC video area, go to Renderer Settings —> GPU Control and make sure that all three options within it (Flush GPU before VSync, Flush GPU after Present and Wait for flushes), just like the screenshot below.

If you use Windows XP or use Windows Vista/7 with Aero disabled, right-click within MPC-HC video area, go to Renderer Settings —> VSync and tick any of the options there to prevent tearing. Alternative VSync is recommended for ATI GPU users, the Accurate VSync is for everyone while VSync is similar to the ‘Lock Back-buffer option in the previous stable MPC-HC build (build 908).

I use Windows 7 with Aero enabled, thus those three Vsync settings above doesn’t apply to me.

If you use Windows Vista/7 with Aero enabled, go to Renderer Settings —>Presentation and ensure that the option Disable Desktop Composition is not ticked. If it somehow was ticked, untick it. If you are masochist enough to enable it, you have to select one of the VSync methods above or else you will get tearing. This option is useless in Windows XP (and you have to select a VSync method above).

Enable Frame Time Correction option should always be checked, regardless of what some people may think.

10-bit RGB option is optional (your GPU will actually have to support this feature). Disable if you want to take screenshots of the video being played. D3D Fullscreen Mode been made obsolete by the three VSync options above (and by Aero in Windows Vista/7), but if you use Windows XP and the VSync options and GPU Flushes cannot stop tearing when playing videos, this method is still the most foolproof way to stop tearing. If you have to resort to this, the option D3D Fullscreen GUI Support allows you to use context menu to operate MPC-HC without having to exit the application.

Again, right click within MPC-HC video area, go to Renderer Settings —> Output Range and select between 0 – 255 or 16 – 235, depending on what B&W level your display device is calibrated to. Read your display device manual for more information. Usually, computer monitors (LCD or CRT) are calibrated to 0-255 level, and TV is usually set to 16-235. But many high definition TVs nowadays are calibrated to 0-255, and some of them can have both, depending on what HDMI socket being used! Read the display's manual for more information.

 

DXVA IN ACTION

Reference system – Windows 7 Ultimate + AMD Athlon2 X2 250 3.0Ghz + 4GB RAM + nVidia GT240 + nVidia Forceware 195.62.

Download links for these test videos are available at the top of this page.

Blu-ray-compliant test video file 1The Melancholy of Haruhi Suzumiya NCED theme (Hare Hare Yukai) SD video with karaoke soft-sub.

Click here to see the full-resolution image.

Blu-ray-compliant test video file 2Clannad NCED theme (Dango Daikazoku) 720p with karaoke soft-sub.

Click here to see the full-resolution image.

Blu-ray-compliant test video file 3 – Kanon NCOP theme (Last Regret) 1080p with soft-sub.

Click here to see the full-resolution image.

Out-of-spec test video file 4James Bond: Quantum of Solace 1080p trailer.

Click here to see the full-resolution image.

Out-of-spec test video file 5AIR NCOP theme (Tori no Uta) multi-angle 1080p with karaoke softsubs.

Click here to see the full-resolution image.

Out-of-spec test video file 6 – BBC Planet Earth: From Pole to Pole opening clip.

Click here to see the full-resolution image.

 

NOTES

  • If you have ATI AGP cards, it is highly advisable that you upgrade to a PCI-E or IGP-based GPU.
  • If you use ATI PCI-E 1x GPU (instead of the normal PCI-E 16x interface), you have to disable the DisablePCIEx1LaneUVD option in the registry. You can do so with DXVA Checker as shown below.

  • Cards that support DXVA:-

    ATI:

    Radeon™ HD 3800 Series, Radeon™ HD 3600 Series, Radeon™ HD 3400 Series, Radeon™ HD 2600 Series, Radeon™ HD 2400 Series, Mobility Radeon™ HD 3600 Series, Mobility Radeon™ HD 3400 Series, Mobility Radeon™ HD 2600 Series, Mobility Radeon™ HD 2400 Series, Mobility Radeon™ HD 2300 Series, Radeon 780G integrated chipset – UVD 2 + AVP 2 (with Phenom only), Radeon HD 4xxx HD Series, Radeon HD 5xxx HD series.

    Source:  http://en.wikipedia.org/wiki/Unified_Video_Decoder

    Recommended ATI GPU (for those who doesn't play games – HTPC usage with minimum spec for hardware deinterlacing and AVIVO post-processing at the same time):-


    XFX ATI Radeon HD5670 1GB DDR5 PCI-Express x16

    Recommended ATI GPU (for gamers with no budget limits):-


    Visiontek ATI Radeon HD5870 1GB GDDR5 PCI-Express x16

    NOTE: Both ATI GPUs above sports UV2.2, which should allow L5.1@High video playback with Catalyst 10.4 or later, simultaneously with deinterlacing and post-processing. Ability to bitstream high-definition audio codecs such as Dolby TrueHD and DTS-HD MA exists in both GPUs.

    nVidia:

    All GeForce 8xxx cards and IGPs except GeForce 8800GTS/GTX with G80 core.  All GeForce 9xxx cards and IGPs.  All GeForce 2xx cards. All Fermi cards.

    Source: http://en.wikipedia.org/wiki/NVIDIA_PureVideo – any of the VP2, VP3, and VP4 GPUs can be used. When buying, make sure it has at least 256MB of video RAM (512MB if you use Windows XP). VP3 GPUs cannot decode videos with the following widths: 769-784, 849-864, 929-944, 1009-1024, 1793-1808, 1873-1888, 1953-1968, 2033-2048 pixels.

    Recommended nVidia GPU (for those who doesn't play games – HTPC usage with minimum spec for hardware deinterlacing and post-processing at the same time):


    EVGA nVidia GT220 1GB DDR2 PCI-Express 16x

    Recommended nVidia GPU (for gamers with no budget limits):


    EVGA nVidia GTX460 1GB GDDR5 PCi-Express 16x (in SLI mode)

    NOTE: While both GPUs sports PureVideo4 ASIC, the GT220 cannot bitstream high-definition audio codecs such as Dolby TrueHD or DTS-HD MA/HR and playing H.264 MVC codec used in 3D Blu-rays. GTX460 can do both. 

     

    Intel:

    Intel G45/Clarkdale/Arrandale IGPs: Windows Vista & 7 only (the latest drivers seems to be problem-free). Set at least 256MB of RAM for the IGPs, 512MB is better. Clarkdale/Arrandale GPUs are able to bitstream high-definition audio codecs such as Dolby TrueHD and DTS-HD MA.


    Intel Core i5 650 3.2Ghz Socket LGA1156 with Clarkdale GPU

    +


    Gigabyte GA-H55M-S2H motherboard.
     

  • Known issues with DXVA-enabled playback:-

    - Seeking (fast-forward or rewind) when DXVA is enabled will not be as smooth as playback with no hardware acceleration.

    - The dropped frames with soft-subtitles has largely been fixed with the latest final build, but you will still see some of it during seeking operations.

 

TROUBLESHOOTING

There are 3 test files available for you above to download so that you can test whether you managed to use DXVA on your computer or not. If you can’t, there are few things you should check:-

  1. Run DXVA Checker (download from the link above) and see if your card drivers exposed their DXVA capabilities.

    DXVA Checker result for AMD ATI HD5770.

    DXVA Checker result for nVidia GeForce GT220.

  2. Under your card's name/model, the ModeH264_VLD_NoFGT (ATI and nVidia GPUs) or ModeH264_VLD_NoFGT_ClearVideo (Intel GPUs) should exist (alongside with their supported resolutions) and will confirm your GPU capability to accelerate H.264 decoding.
  3. If you see empty space under your card’s name instead like below:-

    You won’t be able to use DXVA in MPC-HC, even if your card supports it. Try reinstalling drivers and then rerun DXVA Checker again to see whether it has been fixed. If it isn’t fixed, you may have to reformat your computer and reinstall Windows.

  4. When posting a comment for help, please state:-

    - Your operating system, inclusive whether it is 32-bit or 64-bit.

    - Exhaustive information about your card. Information needed are GPU model (e.g. ATI 3450 or nVidia 9600GT), driver version (e.g. ATI Catalyst 8.12 or nVidia Detonator 178.24 – plus whether you use manufacturer drivers or ATI/nVidia drivers), video memory (e.g. 256MB, 512MB; 256MB is the minimum requirement) and most importantly, the interface (e.g. AGP or PCI-E; PCI cards do not work). If you have AGP cards (ATI only, because nVidia DXVA cards has no AGP versions), you also have to state the manufacturer of your motherboard chipset (e.g. Intel, AMD, ViA and nVidia) and whether you use the DVI-HDMI dongle.

    - Screenshots of DXVA Checker, CPU-Z and GPU-Z results. Put them somewhere in sites like photobucket or imageshack and post the link to them here. You cannot embed pictures BTW.

    - The version of MPC-HC used.Please also make sure that your problem can be repeated with any of the three test files (Haruhi Suzumiya, Clannad and Kanon – not the Quantum of Solace trailer or  the AIR OP theme either).

  5. When asked to use third-party DXVA codecs instead of MPC-HC internal decoders, you can do so by following the instructions at this page.

Click the ‘Older Comments’ link to see, well, older comments for this blog post.

Written by ranpha on Jul 24,2008 in: |

2,159 Comments »

  • Quizzelbuck says:

    I jammed a computer in side an old Nintendo Entertainment System. It has a 1.7 GHZ epia board/cpu in it, and an 8600GT. I spent $600 on this thing and countless hours trying to get the machine to work. I was about to toss it out and start over with a bigger budget until i saw this. Now all my 720p and better files work, where before they just couldnt. Iron man in 720, The Dark Knight in 1080p, The new hulk in 1080p and all the bourne movies in 1080p/i play with out issue. Its all thanks to this article. Thanks so much!

  • Steve says:

    I get hardware decode straight-forward (2-3% load) BUT the framerates do drop noticeably on 720p mkv material. Unacceptable. PLus, using MPC-HC even on software decode mode I get screen tearing occasionally — what’s up with that? I don’t get that EVER using Windows media player.

    I got a Radeon 4670 too, so this is new hardware, not a several years old card. What’s the deal?

  • Helike says:

    I solved the black screen mystery. I blocked ffdshow video decoder, cyberlink h264, and the 2 directvobsubs

  • Helike says:

    I complete these steps but I got a black screen and no playback in MPC-HC. I have Core2Duo E6850 and Geforce 8800GTS.

  • Laurence says:

    @ranpha. It’s PCI and has 256MB Dedicated

  • Laurence says:

    @ranpha, The GPU is PCI and has 256MB dedicated ram.

  • Laurence says:

    Hi, The GPU is PCI, it has 256mb dedicated ram.

  • Dennis says:

    @ranpha — 10 December 2008 (Wednesday) @ 10:12 pm

    you are wright..! and yes i have vista… and I was mistaken the dxva checker..! my card does not support it dxva..!

    my cpu is up to 40/50% should it be wise to use powerdvd or will this give the same results..!?

    Anyway… Thank you allot..!!

    Regards

    Dennis

  • ranpha says:

    @Laurence

    That GPU of yours, uses PCI-E or PCI? More importantly, how much video RAM does it has?

  • Laurence says:

    G’day,

    I’ve been having trouble enabling DXVA. I recently bought a powercolor 2400HD Pro PCI which claims to have DXVA. I have vista 64bit SP1 installed and have catalyst 8.10 installed. I ran DXVA Checker and for some strange reason, I have 3 resolutions for Mpeg2 IDCT, A & B Decoding. However for H264 and VC-1, I have no resolutions available. I have tried installing driver 8.4-8.10, none of them have worked. The drivers on powercolor site and on the provided disk are only 32bit drivers.

    Any suggestions to what might fix this?

  • ranpha says:

    @Dennis.

    Are you using Vista?
    The best way to determine whether your card can really play H.264 video is to do a playback test in DXVA Checker.

    First, download the Utawarerumono test video from links above.

    Second, download the stand-alone filter from http://cid-94cc264fce430b66.skydrive.live.com/self.aspx/Public/MPCVideoDec.ax (xvidvideo.ru seems to be down), put it in drive C: and then perform ‘regsvr32 c:\MPCVideoDec.ax’ on an elevated commandline. no need to do this if you have PowerDVD installed.

    Third, download the DXVA Checker and run it.

    Fourth, click the ‘Check DirectShow Filters’ and browse for the Utawarerumono video you have downloaded. Wait for the result, make a screenshot of it and put the screenshot here.
    Example: http://poleeg.bay.livefilestore.com/y1pYkhU-aneXm7O0ojusUIW22wie6UqQ9j8P464iCY4Y-c-2GRAl9UHIN9xE28YUPMEfDJLvNjuc2Q/dxvachecker.jpg

  • dennis says:

    You had written this,

    @ranpha — 29 October 2008 (Wednesday) @ 4:26 pm

    The fact that only ModeH264_MoComp_NoFGT_PureVideo presents in your DXVA Checker proves it. Your card need to have ModeH264_VLD_NoFGT at least for DXVA to work.

    And I have checked mine and it shows: ModeH264_VLD_NoFGT DXVA2 NV12 (XFX GeForce 7950GT Extreme 512MB)
    So thats maybe strange isn’t it? thats why i hope my card can used DXVA.
    otherwise the check is not really reliable

    Regards

    Dennis

  • dennis says:

    Well not exactly it is the silent version XFX GeForce 7950GT Extreme 512MB

    Can we then say that all the chips higher then G80 are good en the G80 and lower are not ok for this? Maybe you have got a chip list for this?

    Manny thanks

  • ranpha says:

    @Dennis.

    If your card is like the one at http://www.xbitlabs.com/articles/video/display/geforce7950gt.html then it cannot use DXVA bitstreaming.

  • Dennis says:

    Hi,

    I have got a nvidia geforce 7950GT (GPU 71)
    I did the DXVA check

    ModeH264_VLD_NoFGT DXVA2 NV12 …is directly under the 7950gt card name I dont see mpc videodecoder or cyberlink…

    I installed exactly as above (with hard subs) cpu = 40% with a 1080p 5.1 mvk movie.

    I have got a intel core2 CPU 6300 @1.86GHz, 2.0GB RAM.

    I can not believe that I realy need 40%cpu..?

    any idea..? many thanks

  • Nus says:

    @Ranpha

    Finally my problem is gone. I can not belive it! DXVA works fine! I use now Sapphire HD2600 Pro AGP + AGP Hotfix 8.11 from Visiontek: http://www.visiontek.com/teksupport/drivers/8.11n_Vista_driver.html, Vista Ultimate SP1, MPC HC svn 918 Internal H.264/AVC Filter, AC3 Filter 1.51a, Haali Media Splitter 1.8.122.18, EVR Custom and i set HWUVD_BitstreamBufferType 1 + HWUVD_BitstreamMemoryRegion 1 but really i do not know what is that. Everything is OK! I tried The.Dark.Knight.2008.720p.BluRay.DTS.x264-ESiR and no error, it works fine without blocking.

  • ranpha says:

    The 908 build fixed some buffer overrun bug as shown in the changelog, maybe it was what caused your problem. Just keep using 906 build and upgrade later or you can file a bug report at the sourceforge tracker.

    The Haali Video Renderer is not available because Haali Media Splitter has been uninstalled.

  • Keksz says:

    Hi ranpha,

    I have multiple monitors:

    analog: 22″ LCD
    digital (dvi->hdmi): 37″ lcd tv

    I have fixed the problem, I have uninstalled the ATI driver and installed 8.5

    Earlier I could use the internal subtitle functions from ALL VERSION from MPC HC (for .SRT files too), but after the install and uninstall the “haali media splitter” (as described in your post) I couldn’t.
    And now the 1.1.908 stable version is not working.
    It is not responding and vista popups to close it.

    I need to use 1.1.906 and there is the subtitle function available again.
    I am able to play again the 1080p movies from my HDD.

    Only the Haali renderer is missing from the Options/Playback/Output screen:
    http://noob.hu/07/1207/outputhaali.jpg
    But I don’t know how to fix this.

  • ranpha says:

    @keksz (your post is in akismet spam trap so I only find out about it today).

    You have multiple monitors, what outputs did you use for both? Did the LCD TV connected to the HDMI port?
    For now try downgrading the driver to Catalyst 8.4 or 8.5.

  • Edgar says:

    Just for the record: Here’s the “new” DXVA Checker screenshot, with the ASUS Driver :)

    As you can see, seems like the latest Catalyst drivers still need some work…

  • Edgar says:

    Yes!!! IT WORKED !!!!

    I ran CCleaner and installed the drivers from the CD (ASUS), resetted the system and tried your test movies.

    It worked like a charm!!!
    2% Processor Load in your 1080p test movie!! Just freakin’ awesome!!

    To where should I send my Christmas present to you? :)

  • Edgar says:

    I’ll do that.
    I will try to clean all the trash… and, in the meantime, maybe wait for the next Catalyst release…

    I’ll keep in touch ;) Thanks a lot for all your help!

  • ranpha says:

    You are using the latest 8.11 drivers am I right?

    TYry fully uninstalling the drivers, cleaning the registry if needed, and install the drivers in the CD that comes with your GPU. In the end, I think the drivers is the culprit especially with a DXVA entry like that.

  • Edgar says:

    Negative, still the same thing… a Black Screen.

    DXVA still in use, though..

  • Keksz says:

    Hi,

    I have bought for a while a new hardware, only for HD movies.

    I have installed Vista Ultimate for DXVA, and used MPC HC for that.
    Without external codecs, like coreavc.

    After the install everything went very well. I could play 1080p movies with 3-5% CPU usage.
    I have the Gigabyte GA-MA78GM-S2H (AMD 780G) board, with HD 3200 (512MB from system memory), CPU AMD AMx2 4850E (but not overclocked, ~ 2500Mhz).

    After 2-3 months something went wrong. (In this time I have only downloaded once in the week the newest version of MPC HC (from xvidru), but nothing else.) I watched several 1080p movies without any problems.

    Since 2 weeks I have a lot of problems, first it was started with the digital panel problem. I couldn’t move the media player classic to the LCD TV, because the player stop to play and it was frozen.
    I have tried to solve this with installing directx redist from november. But nothing goes well.

    I have used the Windows Vista System Restore Utility, and restored a 1 week earlier version. The problem with the digital panel has been solved. But since I’m not able to watch the same 1080p movies as earlier. I have a CPU usage at 70-100% and for 720p movies I have a CPU usage at 30%. Which is not so good.

    Today I found your guide. But I had the same settings. Reinstalled directx redist november, downloaded the stable mpc hc, and nothing solved my problem.
    Therefor I have re-installed ATI driver (from version 8.8) to 8.11.

    But the problem is still there.

    If I start a movie and go to filters/mpc video decoder it shows me: H.264 bitstream decoder. no FGT
    So it should “work”, but I have CPU usage more than 30%…

    How can I fix this? What could cause this?

    DXVAChecker:
    http://noob.hu/07/1205/1_dxvacheck1.jpg
    http://noob.hu/07/1205/1_dxvacheck2.jpg
    http://noob.hu/07/1205/1_dxvacheck3.jpg

    Tested with : Suzumiya_Haruhi_no_Yuuutsu_-_C4_-_Special_Ending_-__Hitsuji__e569a2b7_.mkv

    http://noob.hu/07/1205/1_output.jpg
    http://noob.hu/07/1205/1_filters.jpg
    http://noob.hu/07/1205/1_h264_settings.jpg
    http://noob.hu/07/1205/1_internal_filters_available.jpg
    http://noob.hu/07/1205/1_filters_in_the_movie.jpg
    http://noob.hu/07/1205/1_dxva_enabled.jpg

    Movies I watched earlier doesn’t play smoothly, the picture is slow and the sound is out of sync.
    What should I do?

    Thanks,
    Keksz

  • rorky says:

    @ranpha

    I guess I am out of luck :( .

  • ranpha says:

    Try using the overlay mixer renderer (ignore subtitles first) and see if you can get images while still using DXVA.

  • Edgar says:

    Installed the latest DirectX, but that didn’t helped.

  • Edgar says:

    Doing a little googling, I’ve found another guy with an ATI 4670 that also followed your tutorial and successfully enabled DXVA!

    So I’m guessing i’m doing something wrong here…

    I’ve also tried VMR mixer mode and YUV mixing… same results, same black screen.

    I’ll try to install the latest DirectX as you suggest to see that if it fixes anything…

  • ranpha says:

    @Edgar

    Wow, if this really true, your card really can only accelerate H.264 videos in SD resolution (the Haruhi Suzumiya test video above). This is unbelievable. My suggestions would have been to ask you to revert to older drivers, but I think 8.10 is the oldest you can go.

    Now I am waiting for the test results, but based upon from the DXVA Checker screenshot, the Haruhi test video is the only video that will work.

    edit: If that’s the result, try turning on VMR mixer mode and YUV mixing. After that, try installing the newest DirectX November 2008 redistributable from the link above.

  • Edgar says:

    Ok, I’ve got another clue…

    Seems like it’s a problem with the VMR9 Renderless, because when I select it, the screen goes black, as I said, like the video was “blocked”, or something like that… However, when I check the MPC filter properties, It shows the DXVA as: “DXVA Mode: H.264 bitstream decoder, no FGT”, just as it should.

    I’ve tested this with your test videos (720p and 1080p) , as well as with other .mkvs…

  • Edgar says:

    Hi,

    Here goes the screenshot!

    http://i19.photobucket.com/albums/b191/cf_rodrigues/dxva_s.jpg

    In the meantime, I’ll try your test movies…

  • ranpha says:

    @Edgar

    Really, only that resolution? And no 1280×720 and 1920×1080?
    If that’s really true, you can only get H.264 acceleration for SD files only, no go for 720p or 1080i/p videos.
    Seriously, make a screenshot of your DXVA Checker and paste a link here. I want to see it with my eyes. If it really true, then someone at ATI driver department needs to be fired. Even the ATI 3200HD IGP (780G) and the lowly ATI 3450 HD can do better than that.

    For testing, please use the three test files here. Maybe the mkv files you have wasn’t encoded properly.

  • Edgar says:

    That is true, no other resolutions for that entry.
    Other entries give higher resolutions but, to my understanding, they don’t matter for H/W acceleration, right?
    I’ll try to post a screenshot…

    And I’ve tested with a couple .mkv I’ve had in here… Should I test with your test files?

    In my .mkv, the MPC Decoder filter info says, clearly, “Not using DXVA acceleration” while playing the movie…

    Is it the graphics card fault?

    Thanks in advance.

  • ranpha says:

    @rorky

    It is unfortunate, but from the DXVA Checker result screenshot, your GPU (7800 Go) did not support bit-stream DXVA. I think all nVidia 7xxx GPU did not support it.

  • rorky says:

    Thanks for great site, I followed your exact instructions but DXVA doesn’t seem to be working, I tried toggling different settings but it still won’t work, Can you please help me?, I posted all the screenshots at the below link.

    http://myownpagein.googlepages.com/dxva

    I am using latest nVidia drivers (180.70) for my Gefore 7800 Go. (Core Duo 2 GHz, 2GB RAM, using sample videos from this site)

    Thanks.

  • ranpha says:

    “ModeH264_VLD_NoFGT DXVA1 NV12 720×480″

    Only 720×480? No other resolutions? Can you make a screenshot of that DXVA Checker result?

    edit: BTW, I can assume that it happens with the test files above?

  • Edgar says:

    Hi, I need help getting through your great tutorial…

    I’ve done everything “by the book” and still cannot watch my .mkv using DXVA…
    I have a ATI 4670 with latest Catalyst drivers, bought it a couple weeks ago.

    With MPC-HC, I only get a black screen if I select VMR-9 Renderless…

    With VMR-7 it works, but it stutters so badly that’s almost unbelievable!

    I’ve even uninstalled ffdshow…

    With DXVAChecker, i have an entry that says:

    “ModeH264_VLD_NoFGT DXVA1 NV12 720×480″

    What else can I try ?

    Thanks in advance.

    E.

  • ranpha says:

    So it will only work when Lock back-buffer is disabled. So the only recourse you have left (which I did not like either) is to enable Direct3D Fullscreen (remove tearing) option, and disable Lock Back-buffer option. This will remove tearing (vertical desync as you call it) and still be able to use DXVA with subtitles.

  • Raphael Guerra says:

    Hi,

    sorry for the long time without any communication but I was very busy at the university. Well I downgraded my catalyst to 8.5 and if I choose WMR9 as a render I still get the bad decoding. Now I have catalyst 8.5, pwdvd 8 build 2217 and the latest directx. I gave up on using dxva with subtitle. The best I could manage to do was to watch the utaworumono video with WMR9 using dxva. No other x264 video worked properly and they are properly dxva encoded because it works under WMR7 and dxva.

    I noticed though that if I uncheck the buffer option it wokrs with WMR9 and dxva but I see vertical desync.

    My best
    Raphael Guerra.

  • hey Many thanks for this guide really help me i know that CCCP and its by far the best codec pack i’ve ever download 5/5

    thanks

  • Nus says:

    @Nikolaki

    Hi!

    Which agp hotfix do you use?

  • Nikolaki says:

    Many thanks for this guide. Downloaded the MPCHC 964 and the Haami Splitter. Playing 720p and 1080p smoothly on my P4 1.8GHz, HD2400 AGP at 29% and 88% CPU load respectively. Installed ATI AGP hotfix also. Amazing.

  • ranpha says:

    1. Not really sure about how System Restore works.

    2. If you copy MPCVideoDec.ax and regsvr32 it, you should still be able to install K-lite.

    3. peo@ahmygoddess.net (usable with Windows Live Messenger and Yahoo! Messenger too).

    4. If that’s the case, then MPCVideoDec.ax cannot be used. The same also applies with MPC-HC internal DXVA decoder. Just install PowerDVD8, install the latest update for the ClearVideo extension that the G45 uses, and you can use PowerDVD 8 H.264 decoder with MPC-HC (see my previous post #103) to accelerate High@L.4x (and below) high-definition H.264 videos. You do not have to use PowerDVD8 player at all. That PowerDVD 8 decoder should be usable in KMPlayer too, ask in their forum on how to do it.

    edit: And for G45-based GPUs, hardware acceleration only works in Vista. For XP, you will be out of luck.

  • Babak says:

    man i think i started bothering you with my stupid questions. but the thing is i afraid if i do these things maybe something will break in my sys and at the moment i can play 720p mkv files easily, so lets leave it for now.
    by the way
    1. is system restore point enable to rollback the system to its previous state, before copying and registering mpcvideodec.ax. if so maybe i should test these things.

    2. if i copy and register mpcvideodec.ax, then is it possible to install k-lite afterward? or maybe with first installing k-lite, mpcvideodec.ax automatically appear?

    3. can i have a persistent email of yours? i swear i’m not spammer or something. and i need your email for future help.

    4. you provided a link with a table of gpu’s in note section of tutorial. i just wanted to say that my gpu is the last row on that table. maybe if you look at that, you can have a better info about my gpu. because i didn’t get anything.

    thanks and regards

  • ranpha says:

    1. That’s why I want to see the DXVA Checker result. That will show you whether MPC-HC supports your card or not. In case that the result is favourable, you can just regsvr32 the MPCVideoDec.ax file, configure it in KMPlayer (ask at their forum on how to do it) and you can get hardware acceleration. But first and foremost, I need to see the result first.

    2. You need to install the Cyberlink PowerDVD 8 player to use its codec in MPC-HC or KMPlayer. Get the patch at the link above to get the latest version of the codec. After that you can use its codec in MPC-HC or KMPlayer.

  • Babak says:

    thanks man for answer.
    let me be more specific:
    at the moment i have only KM player in my system (no external codecs) so i don’t think dxva checker works. my questions are:
    1. about the file “MPCVideoDec.ax”. i read something here:
    http://www.kmplayer.com/forums/showthread.php?p=52002#post52002
    and i want to know if MPC don’t support 4500mhd, will this file works?

    2. as i said i have cyberlink power dvd player ultra, no codecs or something, just the player. will it work as external codec if i install the player?

    by the way i will check dxva checker and post the result here

  • ranpha says:

    Hmm… an Intel GMA 4500MHD GPU?

    Can you download DXVA Checker from the link above, run it and post screenshots of both pages of the result here? There’s something I want to know about that GPU of yours.

    To use Cyberlink PowerDVD 8 decoder in MPC-HC:-

    1. Install Cyberlink and patch it with latest patch from http://www.cyberlink.com/multi/download/patches_1_en_US.html
    2. In Step 5 above, untick H264/AVC (DXVA) and H264/AVC (ffmpeg).
    3. In Step 6 above, in addition of blocking ffdshow video decoder, DirectVobSub (auto loading version) and any other H.264 codecs like CoreAVC (if you have them installed), also load Cyberlink H.264/AVC Decoder (PDVD8) and set it to Prefer. Double-click on it to open its property page and make sure DXVA is enabled.
    4. Test whether DXVA is working with any of those test files above (Haruhi, Elfen Lied or Utawarerumono but not the Quantum of Solace trailer).

  • Babak says:

    i read the tutorial and my question is:

    i have a notebook with intel gma 4500mhd graphic card which it seems it’s not supported by MPC HC. you told i have to use external codec like power dvd. but you didn’t tell how. i purchased power dvd ultra player recently. i also downloaded MPCVideoDec.ax file. can i do something with these to things. so please tell me how.

  • ranpha says:

    Hm… so that website do not have 8.5 AGP hotfix:-

    Try downloading the ATI Catalyst 8.5 AGP Hotfix drivers from:-

    XP 32-bit – http://www.opendrivers.com/driver/271856/ati-radeon-agp-graphics-cards-driver-catalyst-8.5-hotfix-windows-xp-free-download.html
    XP 64-bit – http://www.opendrivers.com/driver/271857/ati-radeon-agp-graphics-cards-driver-catalyst-8.5-hotfix-windows-xp-x64-free-download.html
    Vista 32-bit – http://www.opendrivers.com/driver/271858/ati-radeon-agp-graphics-cards-driver-catalyst-8.5-hotfix-windows-vista-x32-free-download.html
    Vista 64-bit – http://www.opendrivers.com/driver/271859/ati-radeon-agp-graphics-cards-driver-catalyst-8.5-hotfix-windows-vista-x64-free-download.html

    Always use back-up server (opendrivers.com own servers) instead of the primary akamai servers.

    edit:- Just downloaded the XP 32-bit version and yes, it is indeed a real 8.5 AGP driver fix (8.493). Really make sure you download from back-up server. After you fill the captcha, you will be given an akamai link that will throw 403 errors on you and also a link to back-up server which should work. Will upload the 32-bit drivers to skydrive later.

    Vista 32-bit – http://cid-94cc264fce430b66.skydrive.live.com/self.aspx/Public/agp-hotfix%7C_vista32%7C_63479.exe

    XP 32-bit – http://cid-94cc264fce430b66.skydrive.live.com/self.aspx/Public/agp-hotfix%7C_xp32%7C_63478.exe

RSS feed for comments on this post. TrackBack URL


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you have any problems with the reCAPTCHA-enabled form, you can contact me using the contact form or by e-mailing me directly.
User's homepage links are nofollow-free.

Powered by WordPress [Secure Login]. Theme: TheBuckmaker. CopyPaste, Bauanleitung, BLOGbal.
Blog Directory | Quick Link Submission Approval in 24 Hours - Submit your Website Today | Promote my blog
Powered by: DNS Made Easy | imouto.my's Privacy Policy | About This Blog | Sitemap | Background image: Tsunetsuki Matoi (Sayonara Zetsubou Sensei)


This blog is best viewed in high definition, using Mozilla Firefox, Internet Explorer 7+, Opera 10.x+ or any Webkit-based browsers.
Blog DirectoryArtsArts BlogsBlog Directory & Search engineTop Arts blogsAdd to Technorati FavoritesBest Blogs Asia DirectoryJoin My Community at MyBloglog!blog directoryblog search directoryBlogarama - The Blog DirectoryFree web directory, click hereWebfeed (RSS/ATOM/RDF) submitted to http://www.feeds4all.nl
Blog Directory 001feedNuts Feed ProfileBlog DirectoryMy collection of short anime reviewsArts Blogs - Blog RankingsListed in LS Blogs the Blog Directory and Blog Search EngineBlogRankers.comBlog DirectoryReadABlog.com Blog Search EngineBlog RatingsTopOfBlogsBloglisting.net - The internets fastest growing blog directory
My collection of short anime reviews at Blogged
Creative Commons License
Unless noted otherwise, this work by ranpha (text only) is licensed under a Creative Commons Attribution 3.0 Unported License. All comments belongs to the respective Posters. Screenshots of all anime titles here belongs to their respective authors and companies.
Get listed in a premiere web site directory for free This site is listed under Anime Directory