Log in

View Full Version : QuickSync decoding with LAV through Avisynth?


kypec
7th November 2014, 17:31
I have Pentium G3420 and it supports video decoding over QuickSync HW accelerator just fine when played back MKV container with VC1 codec, I checked this with MPC-HC and external LAV filters.
However, I can't figure out how to force this QS decoder for the same file when using the script below:
DirectShowSource("D:\The_Mummy_RAW.mkv", seek=true, audio=false, video=true, convertfps=false, seekzero=false, timeout=60000, logmask=35)
Crop(0,132,-0,-132)
AssumeFPS("ntsc_film", sync_audio=false)
When I run my script in AVSMeter the CPU usage is too high and inspecting LAV tray icon shows that QS decoder is inactive. :(
Is it even possible to enable QS decoding for AVS scripts so that I could spare my CPU power for x264 encoding?

feisty2
7th November 2014, 17:42
dgdecim

Groucho2004
7th November 2014, 18:03
A quick search brought this (http://forum.doom9.org/showpost.php?p=1652157&postcount=104) up. Not sure if it works.

kypec
7th November 2014, 18:30
Yeah, I completely forgot that Donald had developed DGDecIM. It's just pity that it's not being actively maintained though. I've been using his DGDecNV quite happily for a long time but since I built my new rig with no discrete GPU card...
However, it looks like I found elegant solution from another developer - pistacho, his MVCsource.dll (http://forum.doom9.org/showthread.php?p=1660014#post1660014) is extremely easy to use and preliminary testing looks promising. Decoding rate improved from ~97 to ~187 fps while CPU usage decreased from 77% to 21% when QS is used instead of SW decoder. Of course, elementary video stream must be demuxed first but that is just a tiny price to pay for such great performance improvement and eac3to served well for this purpose.