DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

This is the home of QuickSync (aka Intel Media SDK) stuff.
Post Reply
User avatar
hydra3333
DG Approved/Moose Approved
Posts: 254
Joined: Wed Oct 06, 2010 3:34 am
Contact:

DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by hydra3333 »

Hello.

Very interested in this for 2 processors; an i3820/8800GT and an i4670/N650.

a) Do you have any info on relative merits of DGDecIM vs the DGDecNV tool ?

b) from the notes.txt file,
"6. HW decoding is broken for VC1 with Intel graphics drivers earlier than 3496 beta. Either install a driver equal or greater than 3496 beta, or use SW decoding."
I'm having a little trouble locating an intel link to intel QuickSync drivers, could you point the way ?

Thanks
User avatar
hydra3333
DG Approved/Moose Approved
Posts: 254
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by hydra3333 »

Oh. A comparison.
http://neuron2.net/board/viewtopic.php? ... t=10#p2967
Now, where did I see a comment about VP6 ?
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by admin »

a) For features, obviously DGDecNV is way better. For performance, they are comparable for raw decoding if you use VP6. For deinterlacing, DGDecNV is way faster.

b) That refers to the video driver version. Check the Intel site for latest video drivers.

If you have an nVidia VP5/VP6 card, I would always prefer DGDecNV. DGDecIM was made only for people without a good nVidia card.

Sorry, I can't tell you what you saw. :lol:
User avatar
hydra3333
DG Approved/Moose Approved
Posts: 254
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by hydra3333 »

neuron2 wrote:Sorry, I can't tell you what you saw. :lol:
:)

My old 8800GT is a noisy but nice power hog and is a VP2.
http://en.wikipedia.org/wiki/Nvidia_Pur ... HD.29_GPUs
I wonder if it's worth replacing with a 750 for about au$190 ?

This comparison is interesting, but I wonder what the difference will be in terms of using DGDecNV ?
http://www.hwcompare.com/17275/geforce- ... e-gtx-750/
http://www.hwcompare.com/17460/geforce- ... tx-750-ti/
http://www.hwcompare.com/17279/geforce- ... tx-750-ti/
ie I'm not sure of what speed difference to expect for mainly mpeg2 going from the 8800 to the 750 ...

edit:
https://forums.geforce.com/default/topi ... 8/#4199838
purevideo (vpX) is only for decoding video, it has nothing to do with encoding. for gpu based encoding the cuda cores are being used, and the 770 has much more cores, so it will be faster.
however the 750 has a new, much faster h.264 encoder, accessed through the nvenc api. if there's software that uses nvenc, the 750 may be faster. but i am not aware of any such software.
Any pointers on where to find "software that uses nvenc" ?
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by admin »

750 Ti will literally obliterate an 8800 on all counts. I would upgrade in a heartbeat.

Sorry, I can't advise you about nvenc stuff. Videohelp would be a better place to ask.

When I get my 750 Ti in not too long, I may get more involved in GPU encoding.
User avatar
hydra3333
DG Approved/Moose Approved
Posts: 254
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by hydra3333 »

neuron2 wrote:750 Ti will literally obliterate an 8800 on all counts. I would upgrade in a heartbeat.
OK, going out to buy after I check I have 2 slots free :)
neuron2 wrote:Sorry, I can't advise you about nvenc stuff. Videohelp would be a better place to ask.
When I get my 750 Ti in not too long, I may get more involved in GPU encoding.
That got my heartbeat racing.
User avatar
hydra3333
DG Approved/Moose Approved
Posts: 254
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by hydra3333 »

With this

Code: Select all

REM input is .mpg (mpeg2 1440x1080i TFF) output is mpeg4 576i 
"avs2yuv.exe" "Man About The House.avs" -o -   | "x264-x64.exe" - --stdin y4m --thread-input --frames "128818" --profile high --level 4.1 --reset slow --interlaced --tff --no-cabac --crf 18 --sar 64:45 --colormatrix bt470bg -o "Man About The House-temp.MP4"

Code: Select all

SetMTmode(mode=3,threads=8) # start with mode=5 forAVIsource http://forum.doom9.org/showthread.php?p=1067216#post1067216 
setmemorymax(1024)  
DGSource("Man About The House.dgi",deinterlace=2,resize_w=720,resize_h=576) #deinterlace=2 means double rate deinterlacing  
SetMTmode(mode=2) # 
AssumeTFF() 
Assumefps(25) 
trim(1,-999999) # fix a double-framerate bug in NV per http://forum.doom9.org/showthread.php?p=1391556#post1391556 
#LAST.HEIGHT==1080 ? AddBorders(int left, int top, int right, int bottom) : LAST 
LAST.HEIGHT==1080 ? AddBorders(0,0,0,8) : LAST 
AssumeTFF() #choose the SAME field order like before deinterlacing 
SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace. 
AssumeTFF() #choose the SAME field order like before deinterlacing 
AssumeFPS(25) 
LAST.HEIGHT==1088 ? cropbottom(8) : LAST 
ColorMatrix(interlaced=true,mode="Rec.709->Rec.601") 
SetPlanarLegacyAlignment(True) 
I get about 9-10fps on the 8800GT. I wonder if I was able to feed the .avs directly into the 32bit version of x264 then it'd be quicker ?

edit: no, approximately the same speed :)
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder and Frame Server

Post by admin »

Sorry, I don't know anything about avs2yuv and this forum is for support of my tools only. I suggest that you ask about that at Videohelp forum.

Regarding transcode rates, any improvement due to speeding up the decoding will depend on a lot of factors, but especially the load of the encoding part. Don't expect miracles but some improvement is likely.
DAE avatar
pat357
Posts: 9
Joined: Wed Jan 04, 2012 7:33 pm
Location: Antwerp, BELGIUM
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by pat357 »

For some bizar reason, I can get DGIndexIM to work on my Hasswel 4770 (with 4600 graphics) to work.
I''ve been using DGdecNV since the begining, first on my GTX 570 and now on my GTX 680.

It seems that DGIndexIM is confused by the presents of the GTX 570 card, and generates a strange looking .INI file

Up clickng the DGIndexIM.exe, I get an error like this :
DGIndex_error.png
Error starting DGindexIM
Also a .INI is created like this :

Code: Select all

Version=DGIndexIM beta 20
Window_Position=100,100
Info_Window_Position=100,100
Process_Priority=2
Playback_Speed=3
AVS_Template_Folder=
AVS_Template_File=template.avs
AVS_Enable_Template=1
AVS_Overwrite=0
Full_Path_In_Files=0
MRUList[0]=
MRUList[1]=
MRUList[2]=
MRUList[3]=
Enable_Info_Log=0
Loop_Playback=0
AVC_Extension=264
MPG_Extension=m2v
VC1_Extension=vc1
Deinterlace=0
UsePF=0
AlwaysCrop=1
UseD3D=0
Snapped=0
ResponseOnAudioMismatch=1
Enable_Audio_Demux=1
CUDA_Device=255
Decode_Modes=0,1,0
Full_Info=1
Bare_Demux=0
[/size]

It's at least suspicious that it contains "CUDA_Device=255" .... it looks more like an INI file for my DGdecNV !!!
I tried to copy my "license.txt" from my DGdecNV in to the DGIndexIM directory, but no avail.
Notice that the " machine ID" is indentical to the one displayed by DGdecNV v2048, so I thougth maybe ...but no.

I really would like to see DGIndexIM working on this machine !
Note that for different other apps like FFDshow decoders, LAV-video decoders, QSVenc encoder,... Quicksync is working and a hardware API level 1.11 is reported.
Also it looks likeDGmvcsource v1.00b23 seems to be using the HW decoder based on the much higher decoding FPS that are reported. It displays an error like

Code: Select all

AVSMeter 1.9.4.0 (x86) by Groucho2004
AviSynth 2.60, build:Feb 20 2015 [03:16:45] (2.6.0.5) (MT)
Analysing script |
Return on error:[b] error code 1,  sample_decode.cpp       66[/b]

Active MT Mode: 0

Number of frames:                20000
Length (hh:mm:ss.ms):     00:06:40.000
Frame width:                      3840
Frame height:                     2160
Framerate:                      50.000 (100/2)
Colorspace:                       YV12

Frames processed:               20000 (0 - 19999)
FPS (min | max | average):      8.935 | 1437 | 862.8
CPU usage (average):            12%
Thread count:                   2
Memory usage (phys | virt):     174 | 300 MB
Time (elapsed):                 00:00:23.181
[/size]

I guess the reported 862 FPS for a 2160x3840 are not possible using software....

Just for completeness , report from intel sysinfo :

Code: Select all

Intel Media SDK System Analyzer (32 bit)

The following versions of Media SDK API are supported by platform/driver:

	Version	Target	Supported	Dec	Enc
	1.0	HW	Yes		X	X	[Adapter 1]
	1.0	SW	Yes		X	X
	1.1	HW	Yes		X	X	[Adapter 1]
	1.1	SW	Yes		X	X
	1.3	HW	Yes		X	X	[Adapter 1]
	1.3	SW	Yes		X	X
	1.4	HW	Yes		X	X	[Adapter 1]
	1.4	SW	Yes		X	X
	1.5	HW	Yes		X	X	[Adapter 1]
	1.5	SW	Yes		X	X
	1.6	HW	Yes		X	X	[Adapter 1]
	1.6	SW	Yes		X	X
	1.7	HW	Yes		X	X	[Adapter 1]
	1.7	SW	Yes		X	X
	1.8	HW	Yes		X	X	[Adapter 1]
	1.8	SW	Yes		X	X

Graphics Devices:
	Name                                         Version             State
	NVIDIA GeForce GTX 570                       9.18.13.4475        Active
	Intel(R) HD Graphics 4600                    10.18.10.3960       Active

System info:
	CPU:	Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
	OS:	Microsoft Windows 7 Professional 
	Arch:	64-bits

Installed Media SDK packages (be patient...processing takes some time):

Installed Media SDK DirectShow filters:

Installed Intel Media Foundation Transforms:
  Intel® Hardware VC-1 Decoder MFT : {059A5BAE-5D7A-4C5E-8F7A-BFD57D1D6AAA}
  Intel® Hardware H.264 Decoder MFT : {45E5CE07-5AC7-4509-94E9-62DB27CF8F96}
  Intel® Hardware MPEG-2 Decoder MFT : {CD5BA7FF-9071-40E9-A462-8DC5152B1776}
  Intel® Quick Sync Video H.264 Encoder MFT : {4BE8D3C0-0515-4A37-AD55-E4BAE19AF471}
  Intel® Hardware Preprocessing MFT : {EE69B504-1CBF-4EA6-8137-BB10F806B014}
[/size]
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

You can't just click DGIndexIM.exe. You have to run it from a command shell and give it proper options.
DAE avatar
pat357
Posts: 9
Joined: Wed Jan 04, 2012 7:33 pm
Location: Antwerp, BELGIUM
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by pat357 »

Ok, I got it. It was so simple that I must have missed it. It uses the same .DGI files as DGDecNV, so I can choose between DGindexIM and DGIndexNV to make the indexes.

After testing on various H264 HD files (1080p / 1080I) I must say I'm impressed by it's speed compared to DGDecNV (on my GTX-680).

Next I moved on to 4K and alike stuff, but I bounced back ! :|
I could neither DGdecNV or DGDecIM get working with 4K media. This really wondered me as both my GTX-680 and the Intel graphic 4600 do both support 4K decoding.
DGMVCDecode works for me on 4k but as the docs stated, but it's not frame-correct and seeking is a NONO.

I've currently 2 questions :

1. Is >1080 and 4K not supported by DGdecNV v2048 with GTX-680 ? I would be really surprised by this !
Is it just not implemented yet or should I look further at my site ?
I have a dozen files like this, but on every file I got "no video frames" in DGIndexNV (no video is displayed).
I still could create a DGI file, but on loading it in Avisynth I got nothing or a big green screen with "CUDA error" displayed.
Regarding HW, Cuvid and DXVA2 should both do 4k decoding on my GTX-680 /VP5 card IIRC. What could be wrong ? Besides Cuvid, I also tried also in CUDA mode and DXVA mode, but no avail. (all H264 material)
What I noticed was that the "SIZE" parameter in the .DGI was 0 x 0 and the FPS was also something like 0 /0.

2. The same for DGdecIM : 4K decoding should be supported by the HW, but I got nothing out of Avisynth ; the indexing using DGindexIM went OK and the created .DGI's looked OK (correct SIZE & valid FPS parameter).
Is it just not implemented yet or should I look further at my site ?
BTW, is it normal that DGindexIM goes to 100% and then stays that way without returning the CMD-prompt ? It never tells me it's finished, and I have todo "CTRL +C" after it says 100% to end it.

I'm looking forward to your answer ! Thanks !
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

pat357 wrote: I could neither DGdecNV or DGDecIM get working with 4K media. This really wondered me as both my GTX-680 and the Intel graphic 4600 do both support 4K decoding.
DGMVCDecode works for me on 4k but as the docs stated, but it's not frame-correct and seeking is a NONO.
Can you please link me to a small sample of your 4K videos? With that I can investigate and test things.

4K is not currently supported by DGDecNV. If support for it has been added to CUVID then I could implement it. I will check the latest CUVID version to see what it supports. For DGDecIM, if it works with DGMVCDecode then I should be able to support it in DGDecIM. That's where your sample becomes useful.

DGDecIM should not lock up at 100% CPU usage. Are you sure about that? Did you try just hitting return to see
if the prompt was alive?
DAE avatar
pat357
Posts: 9
Joined: Wed Jan 04, 2012 7:33 pm
Location: Antwerp, BELGIUM
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by pat357 »

admin wrote:
pat357 wrote: I could neither DGdecNV or DGDecIM get working with 4K media. This really wondered me as both my GTX-680 and the Intel graphic 4600 do both support 4K decoding.
DGMVCDecode works for me on 4k but as the docs stated, but it's not frame-correct and seeking is a NONO.
Can you please link me to a small sample of your 4K videos? With that I can investigate and test things.

4K is not currently supported by DGDecNV. If support for it has been added to CUVID then I could implement it. I will check the latest CUVID version to see what it supports. For DGDecIM, if it works with DGMVCDecode then I should be able to support it in DGDecIM. That's where your sample becomes useful.

DGDecIM should not lock up at 100% CPU usage. Are you sure about that? Did you try just hitting return to see
if the prompt was alive?
I'll upload a sample. How much frames do you need ? I suppose I can't cut it using DGspit ? Do you have a preferred (fast) upload side ?
I normally use DGindexNV to cut H264 media, but this won't work for now. ;)
The smallest I have is still a few 100MB , if that's OK with you.

The reason why I believe that Cuvid is ready for 4K is because Nercival's LAV filers play all my 4K media OK on my GTX-680 in Cuvid mode. OK, it's not fast, but mostly beyond real-time..but
still very useful with a heavy .AVS script that produces less then 10fps.

The weird thing is that *all* my H264/AVC 2160p/4K stuff plays file with DGmvcdecode / LAV-video Quicksync mode / FFDShow Quicksync mode and *none* seem to work with DGdecIM.
Can you please try it on your system so I' can stop pulling out my hair when trying to resolve this.

I use this in my Avisynth script :

Code: Select all

LoadPlugin("My_path_to_DGdecodeIM\DGdecodeIM.dll")
DGsource("file.dgi" , engine=1, debug=true)
I tried engine=0 and 2, but no avail for 2160p/4K H264/AVC encoded media.

I think you misunderstood me about the problem with DGindexIM : the CPU is not 100%, i
t's the progress counter that's displayed when indexing.
When the progress counter reaches 100%, it stays there forever without returning the CMD prompt. It only happens with first manually creating the index like

Code: Select all

"DGindexIM -i  file.264 -o file.dgi"
The command prompt is never returned, even when the progress counter has 100% and the .dgi file is created.
DGindexNV has a "-e" parameter switch for this , I guess.



I remembered where I got a few samples, these are still there on :
http://xhmikosr.1f0.de/samples/
Just take the 2160p samples from the different clip directories.
I demuxed the using MKVextract (using a GUI) from MKVtoolnix v7.6.0.

Let me know if DGindexIM/DGdecodeIM works on your system.
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

The program ends, it just doesn't give a fresh prompt. Try hitting return and you will see.

Downloading samples...
DAE avatar
Aleron Ives
Moose Approved
Posts: 115
Joined: Fri May 31, 2013 8:36 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by Aleron Ives »

To my knowledge, VP9 cards should support HEVC UHD fully, but nVidia hasn't released any such cards yet. The GTX 960 is their newest offering and is still limited to the HEVC Main/Main 10 profiles. The new UHD Blu-ray standard isn't even in use yet, so all things UHD are pretty much still up in the air. There are no standard sources for UHD content yet, and there are no standard setups that are guaranteed to handle it, either. It's all going to be a mess for many months yet, as far as I can tell. My guess is it'll be at least a year until Don has what he needs to make DGDecNV "just work" with HEVC and UHD.
DAE avatar
pat357
Posts: 9
Joined: Wed Jan 04, 2012 7:33 pm
Location: Antwerp, BELGIUM
Contact:

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by pat357 »

Aleron Ives wrote:To my knowledge, VP9 cards should support HEVC UHD fully, but nVidia hasn't released any such cards yet. The GTX 960 is their newest offering and is still limited to the HEVC Main/Main 10 profiles. The new UHD Blu-ray standard isn't even in use yet, so all things UHD are pretty much still up in the air. There are no standard sources for UHD content yet, and there are no standard setups that are guaranteed to handle it, either. It's all going to be a mess for many months yet, as far as I can tell. My guess is it'll be at least a year until Don has what he needs to make DGDecNV "just work" with HEVC and UHD.
Not sure about this...
I could be wrong but IIRC Nercival's LAV-filters do already decode H265/HEVC media using the HW decoder available in NVidia cards like the GTX-960.
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

DGDecIM beta 21 now supports 2160p stuff. See the News post for details.
DAE avatar
olex99
Posts: 7
Joined: Sat Jan 30, 2016 4:17 am

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by olex99 »

What is the latest with DGDecIM in terms of stability of decoding compared to DGDecNV?

I currently use DGDecNV with a GTX 970 but I'm thinking of falling back to the IGPU which is a Intel HD 4400 and selling the 970 as I don't use it for games anymore. I only use DGDecNV to decode the videos, I don't do any deinterlacing or cropping/resizing through it and my videos are either MPEG2 or AVC at a max of 1080 I/P. I understand that DGDecIM doesn't have the same features as DGDecNV but for pure decoding are they roughly the same? I also don't particularly care about performance as I use QTGMC to deinterlace so that is my major bottleneck anyway.
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

For pure decoding they are roughly comparable. But as you have both why don't you do some testing?

If it were me, I would keep the 970. DGDecIM is unlikely to be further evolved while DGDecNV remains under active development/maintenance. For example, DGDecNV supports HEVC while DGDecIM does not and likely will not ever do so.
User avatar
tormento
DG Approved/Moose Approved
Posts: 446
Joined: Mon Sep 20, 2010 2:18 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by tormento »

admin wrote:DGDecIM is unlikely to be further evolved while DGDecNV remains under active development/maintenance. For example, DGDecNV supports HEVC while DGDecIM does not and likely will not ever do so.
That's a pity. It's the only way for me to get DGDec and OpenCL coexhist in the same script in Win10 x64.
User avatar
admin
Site Admin
Posts: 4457
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecIM QuickSync-Enabled AVC/MPEG2/VC1 Decoder vs DGDecNV

Post by admin »

Can't be the only way because other people have no problems with it.
Post Reply