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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd October 2013, 15:14   #21  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
That's what I feared.
For DXVA in avisynth with a Nvidia card, shouldn't we use DGDecNV ?
Music Fan is offline   Reply With Quote
Old 3rd October 2013, 20:15   #22  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,484
Well I would suggest DGDecNV for gpu decoding on an Nvidia card but it would CUDA decoding, not DXVA.

I would bet a bit of money Nev will not implement anything for DXVA on XP or anything special for XP.. XP really is too old at this point (typing on an XP machine at work atm ).
Asmodian is offline   Reply With Quote
Old 3rd October 2013, 20:30   #23  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
It's old but still used a lot. Is it so hard to code for XP compared to Win7 ?
I hope ffdshow's team will do something in the kind of LAV DXVA copyback for XP.

What's the difference between decoding by CUDA and DXVA ?
Music Fan is offline   Reply With Quote
Old 3rd October 2013, 20:36   #24  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Strictly speaking, it is CUVID, not CUDA, that performs the decoding for DGDecNV. CUVID is an API to the PureVideo engine.
Guest is offline   Reply With Quote
Old 7th October 2013, 21:40   #25  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,787
CUVID works on XP.

Don't expect any improvements to ffdshow. Its project has been pretty much dead for more than a year.
__________________
MPC-HC 2.6.1
clsid is offline   Reply With Quote
Old 7th October 2013, 22:29   #26  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Didn't know that, bad news.

Quote:
CUVID works on XP
Ok but I need DXVA copyback for my ATI.
Music Fan is offline   Reply With Quote
Old 8th October 2013, 19:02   #27  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,787
Copy-back is a feature of DXVA2, which requires Vista or above. It is not a limitation that is specific to the implementation in LAV.
__________________
MPC-HC 2.6.1
clsid is offline   Reply With Quote
Old 8th October 2013, 19:28   #28  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Ok, so there is no hope for my configuration.
Music Fan is offline   Reply With Quote
Old 14th March 2014, 17:46   #29  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Hi,
is it still impossible to use DXVA decoding with Avisynth on Windows XP ?
As I said above a few months ago, I'd like to use my ATI's GPU with avisynth, which can be done with LAV but not on XP. And as clsid said, Copy-back is a feature of DXVA2, which requires Vista or above.
Thus I wonder if another way than copyback to use DXVA decoding with Avisynth exists or would be technically possible.
Music Fan is offline   Reply With Quote
Old 14th March 2014, 17:48   #30  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,407
DXVA1, which is used on Windows XP, is extremely limited. You won't be able to use it with AviSynth. You should switch to a newer OS if thats a requirement for you.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 14th March 2014, 17:59   #31  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Ok, but I'd like to understand why MPC-HC (and maybe other players) can use DXVA on XP and Avisynth can't.
Is it because players do real time and Avisynth needs a kind of buffer memory (to store decoded frames) to allow slower than real time rendering, which wouldn't be possible with DXVA1 ?
Music Fan is offline   Reply With Quote
Old 14th March 2014, 18:23   #32  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,407
All you can do with DXVA1 is decode the video and then immediately show it on the screen (for playback). AviSynth needs to process the image to do its job, thats just not possible with DXVA1.
You don't need to fully understand it to accept that its impossible.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 14th March 2014, 18:58   #33  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
I understand, you answered my question. I guess that's what is called copy-back and that it's impossible with DXVA1.
CUDA looks different on that point because it can be used with Avisynth on XP, thanks to DGDecNV.
Music Fan is offline   Reply With Quote
Old 26th April 2014, 16:29   #34  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Hi,
I do have Windows 7 64 now but I still can't make LAV work with Avisynth ;
Quote:
Originally Posted by detmek View Post
Yes, with DirectShowSource() or DSS2() (if you have Haali Splitter) and LAV Video decoder set to DXVA-Copyback.
I don't have Haali Splitter, is it also needed for DirectShowSource() (which I tried but DXVA-Copyback stays inactive) or only for DSS2() ?
I got picture (I opened my script in Virtual Dub) but as I see "inactive" below DXVA-Copyback in LAV's video decoder window, I guess the video is decoded by another filter.
Music Fan is offline   Reply With Quote
Old 26th April 2014, 17:01   #35  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,787
You must access the settings of LAV by clicking on its tray icon to see the correct decoder state. Clicking on the Start menu shortcut loads another instance, which shows <inactive> because that instance of the filter is in fact not active!
__________________
MPC-HC 2.6.1
clsid is offline   Reply With Quote
Old 27th April 2014, 00:16   #36  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
I don't see its tray icon
But I believe LAV's copyback is not used because my CPU is around 45 % when I play this script while it's only around 3% when I play the TS file (the same than the one in my script) in MPC-HC (which use GPU).
Music Fan is offline   Reply With Quote
Old 27th April 2014, 20:24   #37  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,787
Win7DSFilterTweaker can help you set LAV Video as preferred decoder.
__________________
MPC-HC 2.6.1
clsid is offline   Reply With Quote
Old 28th April 2014, 09:30   #38  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
Thanks, I will try this.
Music Fan is offline   Reply With Quote
Old 28th April 2014, 13:11   #39  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,787
It works now when I play an Avisynth script opened in Virtual Dub (I see active for dxva2cb when I click on LAV's tray icon), but the CPU usage for a 1080p24 h264 video is around 20 %, which is quiet high for DXVA.
With MPC-HC 32 bit (installed on Win 7 pro 64) set also on LAV DXVA copyback playing the same video (without Avisynth), CPU usage is around 13 %.
I'm astonished by this difference because my script is very simple, one line (it was just for the test) ;
directshowsource(F:\my video.mp4")
I guess it means Avisynth needs more resources than MPC-HC because the decoder is exactly the same.
With Microsoft decoder instead of LAV's (chosen with Win7DSFilterTweaker), CPU usage is around 40 % (twice dxva2cb).

Before to install MPC-HC 32 bit (for compatibility with Avisynth 32 bit), I installed MPC-HC 64 bit and the CPU usage was around only 3 % with 1080p videos ! I used the default setting (DXVA activated but I don't know if LAV was used).
I had the same result (3 %) with MPC-HC 32 bit on XP 32 bit.
Does it mean that MPC-HC 32 bit works better on 32 bit OS than on 64 bit OS ?

Last edited by Music Fan; 28th April 2014 at 13:27.
Music Fan 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 02:35.


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