techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > General Software

Reply
 
Thread Tools
Old Sep 5, 2009, 05:53 AM   #1
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

How to get hardware accelerated H264 playback (DXVA)

General information before we begin:

Comparison screenshots for your own testing, and what to expect.

1080P movie (Blu ray rip i made myself, so yes its a legal backup) using windows 7's codec and DXVA mode (see bottom of MPC-HC for evidence of this)
If it matters to anyone, its a 12.3GB file - so its not low bitrate, or heavily compressed.


You'll notice it has very low CPU usage - FYI, i'm going from 3-5% CPU usage with the show paused, due to background tasks (antivirus and such). so its very, VERY low.

Now we try again with the *same codec* with DXVA disabled.


GPU usage: 10% dropped to 2%
CPU usage: 6% raised to 40% (varying in different scenes, but 35-40% was a clear average - you can see spikes in the usage graph as i seeked back and forth numerous times trying to get a good screenshot)

Here is a screenshot of it working in windows media player. It NEEDS to be noted that for me to achieve this, i had to install the "DivX Technology preview" from their website - otherwise, i merely got FFDSHOW playing the files thanks to the CCCP codec pack i have installed, and only got software mode working.

Last edited by Mussels; Sep 5, 2009 at 12:58 PM.
Mussels is offline  
Reply With Quote
The Following 11 Users Say Thank You to Mussels For This Useful Post:
Old Sep 5, 2009, 05:54 AM   #2
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

The old post is hidden behind here.

Spoiler


update: the new CCCP beta 2010-04-03.exe includes FFDSHOWs new DXVA support. Unlike 7's codec, this one falls back to software mode on incompatible files - giving you the best of both worlds.

Simply set up the DXVA app in your start menu application as shown in these screenshots:







Then so long as MPC-HC is using FFDSHOW (default) you're gunna get DXVA running

Last edited by Mussels; Apr 5, 2010 at 11:23 AM.
Mussels is offline  
Reply With Quote
The Following 3 Users Say Thank You to Mussels For This Useful Post:
Old Sep 5, 2009, 05:54 AM   #3
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Placeholder post 3
list of known problems, and workarounds/solutions.

people can post now, but no need - there aint much to see yet :P


Nvidia:
CoreAVC with Cuda support enabled doesnt support files with 16 reference frames (which is one method to get better file quality at the expense of encoding time) or greater. It also doesnt like interlaced streams (Such as from a TV tuner) - the current version of CoreAVC is 1.9.5 and it has these issues, they should be fixed in a later version.

ATI:
Some files corrupt/dont play. I dont know why, but i can link to an example file for others to diagnose.
In order to disable DXVA yet use the same codec, all i'm doing is changing the rendering path to VMR9 instead of EVR custom. EVR custom doesnt corrupt when used with FFDSHOW or CoreAVC, so its the windows 7 codec or ATI's drivers at fault here.

Example with DXVA off:

Example with DXVA on:


Pretty easy to tell which ones not working right

Without an Nvidia card to test with, i cant tell if the problem is with windows 7 or ATI's drivers, but at this stage i beleive it to be ATI's drivers.

edit: the files above turned out to just be DXVA incompatible. Nvidias solution (and now with some update ATI drivers) DXVA just disables and drops to software mode on those files.


Edit: this no longer happens on ATI cards, they've updated the drivers so that it now plays corruption free, even on out of spec H264 files.

Last edited by Mussels; Oct 5, 2010 at 06:13 AM.
Mussels is offline  
Reply With Quote
The Following User Says Thank You to Mussels For This Useful Post:
Old Sep 5, 2009, 06:49 AM   #4
Zubasa
3500 Posts
 
Zubasa's Avatar
 
Join Date: Oct 2006
Location: Hong Kong, China
Posts: 3,700 (1.53/day)
Thanks: 586
Thanked 451 Times in 387 Posts

System Specs

Quote:
Originally Posted by Mussels View Post
not much there yet as i'm getting ready to go to work, but theres enough for you to tell yourself if you're getting DXVA or not, based on CPU usage and GPU activity. (i'd assume your GPU activity numbers would be higher than mine, considering mines a higher end card - i was wrong about it being higher than 20%, however)
You have to consider that both of our card's gpus are clock at 500Mhz in UVD, and that HD decoding is not really memory intensive compare to games. (Explaining that the difference in memory bandwidth is non-existant.)
Decoding HD content is a walk in the park for both of our cards and that I was watching a 720p anime. (So the GPUs are in UVD state 1 which is 500Mhz)

Given that Avivo post-processing only takes around 1~2% of GPU load,
a constant 7% load on my 4850 should be an indication that I got DXVA in WMP, its around the same for MPC-HC.
__________________
ʃ( ◕ ‿‿ ◕ )ʅ
“but oh ze noes! i can't convert my porn to iphone so i can watch in the bus .. it doesnt support cuda / badaboom.” -W1zzard

Last edited by Zubasa; Sep 5, 2009 at 07:00 AM.
Zubasa is offline  
Reply With Quote
Old Sep 5, 2009, 08:36 AM   #5
Wile E
Power User
 
Wile E's Avatar
 
Join Date: Oct 2006
Location: Western PA (Pittsburgh suburbs)
Posts: 18,129 (7.48/day)
Thanks: 450
Thanked 3,825 Times in 3,123 Posts
Send a message via AIM to Wile E Send a message via Yahoo to Wile E

System Specs

CCCP needs to update to support this out of the box in WMP and WMC. I tried Sharky's Win7 Codec pack as well at some point, but I didn't like it as much. It didn't work as well with ps3 Media Server.
__________________

Visit Ashentech
“What the hell did you expect? Leave Vista under the pillow and the OS fairy would make it Win7?” -El Fiendo
“And Bring Mailman back god damnit, he is the Eric Cartman of TPU” -MRCL
Wile E is offline  
Reply With Quote
Old Sep 5, 2009, 12:59 PM   #6
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by Zubasa View Post
You have to consider that both of our card's gpus are clock at 500Mhz in UVD, and that HD decoding is not really memory intensive compare to games. (Explaining that the difference in memory bandwidth is non-existant.)
Decoding HD content is a walk in the park for both of our cards and that I was watching a 720p anime. (So the GPUs are in UVD state 1 which is 500Mhz)

Given that Avivo post-processing only takes around 1~2% of GPU load,
a constant 7% load on my 4850 should be an indication that I got DXVA in WMP, its around the same for MPC-HC.
CPU usage is a better indicator than GPU usage, since i get GPU usage even with DXVA disabled - we're talking a 3D OS, and even without acceleration the EVR rendering path is still rendering in 3D (this is clearly labelled in MPC-HC)

Note the "3D surfaces"

Quote:
Originally Posted by Wile E View Post
CCCP needs to update to support this out of the box in WMP and WMC. I tried Sharky's Win7 Codec pack as well at some point, but I didn't like it as much. It didn't work as well with ps3 Media Server.
The latest betas do, once you add 7's codec as a priority. while many people know how to do that, steps will be in post 2 when my pizza finishes being eaten.
edit: done

Last edited by Mussels; Sep 5, 2009 at 01:40 PM.
Mussels is offline  
Reply With Quote
Old Sep 5, 2009, 02:49 PM   #7
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

the encoded file must be level 4.1 to get DXVA to work on any card, its pointless to encode to level 5.1 when not even dedicated hardware can decode it, like Popcorn Hour etc

btw reference frames is a limitation of dxva, the higher the ref frames the non complaint dxva encode it will be

just use the built in h264/dxva decoder in mpc-hc
wiak is offline  
Reply With Quote
The Following User Says Thank You to wiak For This Useful Post:
Old Sep 5, 2009, 02:52 PM   #8
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by wiak View Post
the encoded file must be level 4.1 to get DXVA to work on any card, its pointless to encode to level 5.1 when not even dedicated hardware can decode it, like Popcorn Hour etc
i dont know the level stuff, but i've heard the 4.1 number bandied about - how can you tell what level a file was encoded with?
Mussels is offline  
Reply With Quote
Old Sep 5, 2009, 02:56 PM   #9
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

most of the files says it in the .nfo file, am not sure how to detect level, there is http://www.videohelp.com/tools/tsMuxeR to change level, but its still not recommended

find out what level 4.1 is at http://www.avsforum.com/avs-vb/showthread.php?t=972503

blu-ray h264 uses level 4.1
wiak is offline  
Reply With Quote
The Following User Says Thank You to wiak For This Useful Post:
Old Sep 5, 2009, 03:13 PM   #10
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

if your files displays corrupt just use software decode
btw most 720p x264/h264 encodes are level 4.1 now
wiak is offline  
Reply With Quote
Old Sep 5, 2009, 03:14 PM   #11
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by wiak View Post
if your files displays corrupt just use software decode
btw most 720p x264/h264 encodes are level 4.1 now
indeed, the problem is that there is no automated way to do it - so i have to use two different players, or swap back and forth between the settings. (my media PC struggles on 1080P sometimes without DXVA)
Mussels is offline  
Reply With Quote
Old Sep 5, 2009, 03:19 PM   #12
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

Quote:
Originally Posted by Mussels View Post
indeed, the problem is that there is no automated way to do it - so i have to use two different players, or swap back and forth between the settings. (my media PC struggles on 1080P sometimes without DXVA)
same here bro, hehe my media pc is a X2 5000+@2ghz, 2GB, Radeon HD 3200
i can play blu-ray at upto 1080p/40mbit, but i cant even play some 1080p files why? the guys that encode are not looking at the big picture, and dont care if it cant be decoded on slower pcs
wiak is offline  
Reply With Quote
Old Sep 5, 2009, 03:29 PM   #13
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

btw have you tried CoreAVC? and check cpu usage?
sometimes CoreAVC will decode realy well
wiak is offline  
Reply With Quote
Old Sep 5, 2009, 03:30 PM   #14
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

the files that were corrupting on me are encoded to level 5.0, and did not work even when changed back to 4.1 via the tools linked by wiak.

It seems windows media player is smart enough to automatically change codecs for those files, but MPC-HC isnt.

i mention coreAVC early on :P it just doesnt get hardware accel on ATI.

on my media PC, FFDSHOW cant do 1080P smoothly, while CoreAVC can - (60-80% CPU) whereas 7's built in codec (on properly encoded files) gets that to <10% - being borderline for lag free aint good when you have housemates leeching files off the PC over the network, and so on.
Mussels is offline  
Reply With Quote
Old Sep 5, 2009, 04:28 PM   #15
wiak
1000 Posts
 
wiak's Avatar
 
Join Date: Sep 2004
Location: Norway
Posts: 1,681 (0.53/day)
Thanks: 15
Thanked 199 Times in 156 Posts

CoreAVC CUDA is fake, it just uses DXVA hehe, i have heard
wiak is offline  
Reply With Quote
Old Sep 6, 2009, 02:34 AM   #16
Wile E
Power User
 
Wile E's Avatar
 
Join Date: Oct 2006
Location: Western PA (Pittsburgh suburbs)
Posts: 18,129 (7.48/day)
Thanks: 450
Thanked 3,825 Times in 3,123 Posts
Send a message via AIM to Wile E Send a message via Yahoo to Wile E

System Specs

Quote:
Originally Posted by Mussels View Post
The latest betas do, once you add 7's codec as a priority. while many people know how to do that, steps will be in post 2 when my pizza finishes being eaten.
edit: done
I can get it to work in both Zoom and MPC-HC, but I need it to work in Windows Media Player/Media Center, or I need a Media Center replacement that uses the necessary rendering paths. MPC doesn't cut it.
__________________

Visit Ashentech
“What the hell did you expect? Leave Vista under the pillow and the OS fairy would make it Win7?” -El Fiendo
“And Bring Mailman back god damnit, he is the Eric Cartman of TPU” -MRCL
Wile E is offline  
Reply With Quote
Old Sep 6, 2009, 03:15 AM   #17
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by wiak View Post
CoreAVC CUDA is fake, it just uses DXVA hehe, i have heard
it gets lower CPU usage than DXVA, support varied based on nvidia drivers (you needed a certain driver or up, in which nvidia stated in the release notes they added more CUDA support), and it has a different set of bugs than DXVA mode on nvidia cards.


Just because both modes are hardware accelerated, doesnt mean they're both DXVA.
Mussels is offline  
Reply With Quote
Old Sep 6, 2009, 03:16 AM   #18
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by Wile E View Post
I can get it to work in both Zoom and MPC-HC, but I need it to work in Windows Media Player/Media Center, or I need a Media Center replacement that uses the necessary rendering paths. MPC doesn't cut it.
then you need the divX thing i linked to, which adds WMF MKV support into WMP.
Mussels is offline  
Reply With Quote
Old Sep 6, 2009, 03:17 AM   #19
Wile E
Power User
 
Wile E's Avatar
 
Join Date: Oct 2006
Location: Western PA (Pittsburgh suburbs)
Posts: 18,129 (7.48/day)
Thanks: 450
Thanked 3,825 Times in 3,123 Posts
Send a message via AIM to Wile E Send a message via Yahoo to Wile E

System Specs

Quote:
Originally Posted by Mussels View Post
then you need the divX thing i linked to, which adds WMF MKV support into WMP.
Does it screw with Haali subtitle settings? I might have to try it.
__________________

Visit Ashentech
“What the hell did you expect? Leave Vista under the pillow and the OS fairy would make it Win7?” -El Fiendo
“And Bring Mailman back god damnit, he is the Eric Cartman of TPU” -MRCL
Wile E is offline  
Reply With Quote
Old Sep 6, 2009, 03:21 AM   #20
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by Wile E View Post
Does it screw with Haali subtitle settings? I might have to try it.
dont beleive so. they have a heap of patch notes saying it only works with one audio track and 'doesnt support subtitles' but i watched anime with softsubs and it played fine (albeit, the anime only has one audio and one subtitle track)
Mussels is offline  
Reply With Quote
Old Sep 6, 2009, 03:23 AM   #21
wolf2009
Guest
 
Posts: n/a (0/day)

Quote:
Originally Posted by Mussels View Post
i dont know the level stuff, but i've heard the 4.1 number bandied about - how can you tell what level a file was encoded with?
use mediainfo or Shift+F10 in latest builds of MPC-HC, and click on mediainfo tab.

also, you don't need to use Core AVC for Nvidia cards, just check the matroska filter and H.264 DXVA in internal filters and DXVA should be good.
 
Reply With Quote
Old Sep 6, 2009, 03:24 AM   #22
Wile E
Power User
 
Wile E's Avatar
 
Join Date: Oct 2006
Location: Western PA (Pittsburgh suburbs)
Posts: 18,129 (7.48/day)
Thanks: 450
Thanked 3,825 Times in 3,123 Posts
Send a message via AIM to Wile E Send a message via Yahoo to Wile E

System Specs

Quote:
Originally Posted by Mussels View Post
dont beleive so. they have a heap of patch notes saying it only works with one audio track and 'doesnt support subtitles' but i watched anime with softsubs and it played fine (albeit, the anime only has one audio and one subtitle track)
I hate to be so picky, it's just that while I'm not hooked directly to the TV, I need my subs and audio tracks preconfigured by Haali so that I can stream to the ps3, but then I need this stuff to work in Media Center as well, for when I am hooked to the TV.
__________________

Visit Ashentech
“What the hell did you expect? Leave Vista under the pillow and the OS fairy would make it Win7?” -El Fiendo
“And Bring Mailman back god damnit, he is the Eric Cartman of TPU” -MRCL
Wile E is offline  
Reply With Quote
Old Sep 6, 2009, 03:25 AM   #23
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by wolf2009 View Post
use mediainfo or Shift+F10 in latest builds of MPC-HC, and click on mediainfo tab.

also, you don't need to use Core AVC for Nvidia cards, just check the matroska filter and H.264 DXVA in internal filters and DXVA should be good.
indeed you dont need to, but its a lot better.

MPC-HC's internal H264 decoder is terrible, and barely works on most files. If the files encoded with a high bitrate its software decode isnt going to work at all - its higher than FFDSHOW. At least the other codecs have a chance to play in software mode if hardware mode fails.
Mussels is offline  
Reply With Quote
Old Sep 6, 2009, 03:26 AM   #24
Mussels
Doctor Moderator
 
Mussels's Avatar
 
Join Date: Oct 2004
Location: Bendigo, Australia (NOT THE USA)
Posts: 34,551 (10.97/day)
Thanks: 3,699
Thanked 8,689 Times in 6,389 Posts

System Specs

Quote:
Originally Posted by Mussels View Post
indeed you dont need to, but its a lot better.

MPC-HC's internal H264 decoder is terrible, and barely works on most files. If the files encoded with a high bitrate its software decode isnt going to work at all - its higher than FFDSHOW. At least the other codecs have a chance to play in software mode if hardware mode fails.

Quote:
Originally Posted by Wile E View Post
I hate to be so picky, it's just that while I'm not hooked directly to the TV, I need my subs and audio tracks preconfigured by Haali so that I can stream to the ps3, but then I need this stuff to work in Media Center as well, for when I am hooked to the TV.
Go to the link, signup, and post in their forum. They;re on beta 3 atm, and if you voice your concerns it may end up in beta 4. It aint ever gunna work any way except with DivX help, so you really should go nag them about it before its too late and they make it final.
Mussels is offline  
Reply With Quote
Old Sep 6, 2009, 03:27 AM   #25
Wile E
Power User
 
Wile E's Avatar
 
Join Date: Oct 2006
Location: Western PA (Pittsburgh suburbs)
Posts: 18,129 (7.48/day)
Thanks: 450
Thanked 3,825 Times in 3,123 Posts
Send a message via AIM to Wile E Send a message via Yahoo to Wile E

System Specs

Quote:
Originally Posted by Mussels View Post
indeed you dont need to, but its a lot better.

MPC-HC's internal H264 decoder is terrible, and barely works on most files. If the files encoded with a high bitrate its software decode isnt going to work at all - its higher than FFDSHOW. At least the other codecs have a chance to play in software mode if hardware mode fails.
Yeah, but their internal DXVA codec does great. You can enable one without the other.
__________________

Visit Ashentech
“What the hell did you expect? Leave Vista under the pillow and the OS fairy would make it Win7?” -El Fiendo
“And Bring Mailman back god damnit, he is the Eric Cartman of TPU” -MRCL
Wile E is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dead hardware - How to get rid of it? Maelstrom General Hardware 3 Mar 7, 2009 01:28 AM
The future of Hardware Accelerated Physics. DarkMatter Games 9 Sep 29, 2008 08:31 PM
ASUS Provides Hardware Accelerated Audio For Windows Vista Jimmy 2004 News 4 Jan 26, 2008 09:34 AM
KillerNIC to Get Hardware-Accelerated VoIP JacKz5o News 6 Nov 23, 2007 10:40 AM


All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts