Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th June 2008, 10:15   #1  |  Link
vlada
Registered User
 
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
DXVA - how does it works?

Hi,

please let me help to understand how exactly DXVA works. What is and what is not possible. I heard a lot of different information and don't know what is true and what is not.

Please tell me if these statements are truth or not:

1) DXVA doesn't run in GPU, current graphics cards have a special chip dedicated to video decoding.

2) DXVA 1 can only display the decoded video, can't return it back to the application. So it can't be used in transcoding or NLE.

3) DXVA 2 can be used in NLE.

Now what exactly is the difference between DXVA 1 and 2? Is it a HW or SW issue or both? Thanks.

Edit: I can't change the thread name, if you can, please remove the last 's'.

Last edited by vlada; 9th June 2008 at 10:17.
vlada is offline   Reply With Quote
Old 9th June 2008, 13:51   #2  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
GPU's have built-in decoders for specific videos like H264, WMV9/VC-1 and MPEG-2.
Basically to have hardware video decoding the renderer must support dxva, thats why haali renderer does not support dxva.
DXVA1 requires vmr9 or overlay mixer and dxva2 requires evr.
depending on the gpu, operating system and video you may only have access to dxva1 or dxva2.
A 6800gs that's supports motion compensation with dxva1 for H264 will not have motion compensation for dxva2 because DX cannot translate the dxva1 instructions for use with dxva2 in vista.
Use this tool to see the available dxva modes your system supports, current version is 1.6.0.0. Also drag and drop a video to see the modes the codecs in your system support as well
__________________
In the school, the three guys met. Their relation had been changed in the season, and turned into three love stories.
Kado is offline   Reply With Quote
Old 10th June 2008, 03:56   #3  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Is that true with DXVA once data stream is sent to display memory, it cannot be sent back main memory?
roozhou is offline   Reply With Quote
Old 10th June 2008, 07:30   #4  |  Link
Casimir666
Registered User
 
Join Date: Jan 2007
Posts: 455
Quote:
Originally Posted by vlada View Post
2) DXVA 1 can only display the decoded video, can't return it back to the application. So it can't be used in transcoding or NLE.
DXVA1 was design for display only yes. There is a ugly method to catch the framebuffer after decoding, but only decoder can do that (i have done this for debug purpose only).
DXVA2 (as DXVA1) provide the uncompressed frame in a directX surface. This surface can be read to do something else than diplay if you like.

Mpc-hc filter cannot be used for transcoding at the moment, because DXVA2 processor is ask to the EVR. Using DXVA2 without EVR should be possible with Media Foundation but i haven't look for this.

Quote:
Originally Posted by vlada View Post
3) DXVA 2 can be used in NLE.
You mean to render NLE timeline? This will not play the video effects, and the problem will be to decode 2 streams at a time... I think i have seen somewhere a graphic card than can accelerate 2 DXVA streams at a time but I'm not sure of this.

Quote:
Originally Posted by vlada View Post
Now what exactly is the difference between DXVA 1 and 2? Is it a HW or SW issue or both?
Only software differences. Buffers and control structure send to the accelerator are identical for 2.
__________________
Tired of tearing?
Try this Media Player Classic mod : http://mpc-hc.sourceforge.net
Casimir666 is offline   Reply With Quote
Old 10th June 2008, 08:33   #5  |  Link
vlada
Registered User
 
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
Thank you for the answers. It's now much clearer to me.

As for NLE I meant if an editor can use DXVA for decoding video and then apply effects on it or transcode it to a different format. Decoding more streams at the same time will of course be a problem.

Also with DXVA2 I heard it would be possible to use a postprocessing filter (like ffdshow) during playback? Is this correct?

As for EVR I don't understand one thing - is it available only in Vista or can I use it in XP too? In MPC-HC there is written in needs Vista/.Net3. Does the slash stand for "and" or "or"? If I select EVR on my computer with XP and play a video, I can only see overlay mixer in filter list.
vlada is offline   Reply With Quote
Old 10th June 2008, 09:57   #6  |  Link
ranpha
Registered User
 
Join Date: Feb 2008
Posts: 334
Quote:
Originally Posted by vlada View Post
Thank you for the answers. It's now much clearer to me.

As for NLE I meant if an editor can use DXVA for decoding video and then apply effects on it or transcode it to a different format. Decoding more streams at the same time will of course be a problem.

Also with DXVA2 I heard it would be possible to use a postprocessing filter (like ffdshow) during playback? Is this correct?

As for EVR I don't understand one thing - is it available only in Vista or can I use it in XP too? In MPC-HC there is written in needs Vista/.Net3. Does the slash stand for "and" or "or"? If I select EVR on my computer with XP and play a video, I can only see overlay mixer in filter list.
You can't use ffdshow post-processing with DXVA2. Only hardware-based post-processing is possible.

The / in EVR refers to OR. Means you need to have Vista OR XP+.Net3 to use EVR.
ranpha is offline   Reply With Quote
Old 10th June 2008, 11:48   #7  |  Link
Yong
Registered User
 
Join Date: Jun 2004
Posts: 577
@vlada
EVR does not accept YV12, thats why you only see overlay mixer on filter list.
well, please correct me if im wrong
Yong is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


All times are GMT +1. The time now is 04:25.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.