[RESOLVED] Unable to generate dgi via cmdline on Win 10 x64 in usual way

Support forum for DGDecNV
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

[RESOLVED] Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

Hello,

I have recently switched from Windows 7 to Windows 10 and have some issue with generating dgi file via cmdline.

if I run this simple example from cmdline

Code: Select all

DGIndexNV -i test.m2v -o test.dgi -e
It just open the window and wait till I hit left or right arrow on keyboard. After the hit it starts generate dgi file. It doesnt matter if the input is m2v or h264 or i am using x32 or x64 version of dgindexnv.

Did you ever see such issue? This is really important feature for me to be able generate dgi from cmdline without pressing any key for further processing in another software. In Windows 7 I had never such problem.

If you want I can give you remote access on my computer to check it.

Thank you
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

Hi AJR. Thanks for your report. I'll try to recreate that today and see what happens. More later...

Win 10...what a headache!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

I'm not able to duplicate it. Can you give me your INI file contents please?

You're just typing the command in a cmd.exe window? Or are you doing this programmatically in some other way?

What version of DGDecNV and what is your graphics card?
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

I have tried both typing in cmd or do simple bat file.

INI:

Code: Select all

Version=DGIndexNV 2051
Window_Position=152,93
Info_Window_Position=1483,266
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=1
MRUList[0]=C:\Users\admin\Desktop\x64\test.m2v
MRUList[1]=
MRUList[2]=
MRUList[3]=
Enable_Info_Log=1
Loop_Playback=0
AVC_Extension=264
MPG_Extension=m2v
VC1_Extension=vc1
HEVC_Extension=265
Deinterlace=1
UsePF=1
AlwaysCrop=1
UseD3D=0
Snapped=0
ResponseOnAudioMismatch=0
Enable_Audio_Demux=1
CUDA_Device=255
Decode_Modes=0,0,0,0
Full_Info=0
Bare_Demux=0
Disable_Encrypted_Audio_Warning=0
Fine_Cropping=1
If I procesing it with third party tools I use just more parameters: -a -h -e but the issue is the same.

DGDecNV is latest 2051 x64, to be sure I have downloaded yesterday the newest one.

The Windows are fresh install of Enterprise edition x64 (build 1511) we use at work. I did not do the update from Win7.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

I need to know the graphics card type please.
User avatar
MeteorRain
Posts: 130
Joined: Fri Jul 25, 2014 4:04 pm
Location: New Jersey

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by MeteorRain »

Have never seen that on my Windows 10 Pro, except sometimes the NV fails to initialize and stops DGNV from working.
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

nVidia GeForce 850M GTX
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

Hmm :scratch:

What happens if you open the DGIndexNV GUI and then do Save Project?

I'm groping in the dark a bit here.
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

If I go through the GUI it works normally.
Can you connect via Teamviewer and check on my computer?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

To do anything useful on your computer I'd have to install Visual Studio and put my source code on your system. The former is possible but not the latter.

So the way to go is to make a series of debug builds for you that lets me trace how far things have gone and to see where things are getting held up. I'll try to get that started ASAP.

One more question: If you defocus the cmd window and then hit the arrow key does it start up, or is it the case that the cmd window has to be focused when you hit the arrow key?
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

DGDecNV windows has to be focused else it doesnt work even with the arrow keys. Also work if i hit one of these buttons, look at picture. I guess the arrows on keyboard are just shortcuts for these buttons, arent they?
Attachments
buttons.PNG
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

Ah, you need to have DGIndexNV focused, not the command window. If so, OK, we are getting somewhere. Yes, the arrows are shortcuts for the buttons. Please answer this: if you simply click on the DGIndexNV title bar does it release things or must it be one of the arrow keys? If that is not enough then pull down the Options and hover over Playback Speed. What is checked? Then select Normal and tell me if it releases things. Your answers will allow me to better target the debug build.

Also, please provide me with a stream sample that behaves this way for you. Yes, you may say that all your streams do it, but still I need to do a step-by-step analysis, and the next step is to see your stream. Thank you.
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

Yes you are right, DGIndexNV need to be focused not the cmdline window.

I am not sure what exactly you think by Title Bar. I have tried click on everything on the DGIndexNV window and only click on the buttons or click on the timeline bar (in picture yellow) release the things and dgi file is created.

In Playback speed i have Normal.

Here is sample file, i dont have currently smaller one here (~350MB) but as I said before, I have tried more streams (m2v, h264) and this issue was with each of them.

Code: Select all

http://www.filedropper.com/test_15
Attachments
timeline.PNG
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

OK, thanks but you missed a key item for me. Here it is again:

[...] Then select Normal and tell me if it releases things. I mean select it again even if it already shows normal. Thank you.

Downloading your stream...
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

No change if select Normal again. I have to use buttons, arrows or timeline to release the things.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

OK, thanks AJR, that eliminates some possibilities and will better focus my test build.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

I have a first debug build for you.

First, get this DbgView utility:

http://rationalqm.us/misc/AJR/dbgview.exe

Open it. Pull down Edit/Filter Highlight. Change the Include field to DGIndexNV instead of *. Then OK. Then Edit/Clear Display and leave it open.

Then get the test build:

http://rationalqm.us/misc/AJR/DGIndexNV.exe

Then run your command line and while the window is stuck (don't hit arrow!) copy the full contents of the Dbgview window (enlarge the window if necessary but be sure to get all the lines) and give it to me here.

Thank you.
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

DebuView link is not working so I have doanloaded from Microsoft ;)
Here are the outputs:

stucked, without pressing anything

Code: Select all

[5960] DGIndexNV: ref 1
[5960] DGIndexNV: ref 2
[5960] DGIndexNV: ref 16
[5960] DGIndexNV: ref 3
[5960] DGIndexNV: ref 4
[5960] DGIndexNV: ref 5
[5960] DGIndexNV: ref 6
[5960] DGIndexNV: ref 7
[5960] DGIndexNV: ref 8
[5960] DGIndexNV: ref 9
[5960] DGIndexNV: ref 10
including pressed buttons, arrows or click on timeline:

Code: Select all

[5960] DGIndexNV: ref 1
[5960] DGIndexNV: ref 2
[5960] DGIndexNV: ref 16
[5960] DGIndexNV: ref 3
[5960] DGIndexNV: ref 4
[5960] DGIndexNV: ref 5
[5960] DGIndexNV: ref 6
[5960] DGIndexNV: ref 7
[5960] DGIndexNV: ref 8
[5960] DGIndexNV: ref 9
[5960] DGIndexNV: ref 10
[5960] DGIndexNV: ref 13
[5960] DGIndexNV: ref 11
[5960] DGIndexNV: ref 12
[5960] DGIndexNV: ref 14
[5960] DGIndexNV: ref 15
[5960] DGIndexNV: ref 16
[5960] DGIndexNV: ref 17
[5960] DGIndexNV: ref 18
[5960] DGIndexNV: ref 19
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

Thanks, it shows me where it gets stuck. Investigating further...
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

I found the problem. Give me a few hours to fix it and slipstream it for you. It's a race condition. Vroom vroom!!!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

Re-download 2051 and update DGIndexNV. Your terror should be a thing of the past. :lol:
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

Good to hear that. I was worry that it will stay in mistery level :)

Isnt strange that nobody other report this issues yet? Does it mean that part of your software run faster or slower on my system that this race condition appears only me?
DAE avatar
AJR
Posts: 106
Joined: Mon Jan 06, 2014 10:40 am

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by AJR »

Tried your new version and works fine.

Thank you very much!!!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by admin »

AJR wrote:Good to hear that. I was worry that it will stay in mistery level :)
I don't like mysteries, especially in supposedly deterministic systems of my own design. ;)

While we're talking about this I should say that finding the root cause of such a problem is often a difficult matter and we always seek to gather as much relevant information as we can to focus our efforts. In that regard, your contributions here stand out as an exemplar for all who seek to penetrate to the heart of matters.
Isnt strange that nobody other report this issues yet? Does it mean that part of your software run faster or slower on my system that this race condition appears only me?
Yes, that's what it means, slower to be specific. The hairy edge of the race timing probably got exposed more by Win 10 and I expect it would be only a matter of time before more reports would have come in. You're a pioneer. :lol:
User avatar
MeteorRain
Posts: 130
Joined: Fri Jul 25, 2014 4:04 pm
Location: New Jersey

Re: Unable to generate dgi via cmdline on Win 10 x64 in usual way

Post by MeteorRain »

admin wrote:It's a race condition.
Race condition is so much painful :scratch:
Post Reply