[RESOLVED] Crashing on MPEG2 streams

Support forum for DGDecNV
Post Reply
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

[RESOLVED] Crashing on MPEG2 streams

Post by djc5166 »

I have a few DVD VOBs that I'm trying to open in DGDecNV. As soon as I choose my VOBs and click open the program crashes. This is only happens on some files. Strangely if I remux my streams with makeMKV first, and open these in DGDecNV then everything works as expected, perhaps its just a problem handling some VOB containers?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

I'll be happy to look into it if you can give me a sample. Please use DGSplit to cut about the first 50 MB of the start of the VOB. Then if you can get the crash with that sample, please upload it somewhere and give me the link. Thank you.

If you can't make it happen with a sample, then please tell me the exact DVD and where to get it.
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

Seems to be an issue with opening VOBs directly from a physical disc or mounted ISO through DTlite.

Copying the VOBs to my machine first seems to fix the issue, so it does not show up in a DGSplit sample.

Still a bit strange, the original DGIndex does not seem to suffer from this problem. If the VOBs work from my machine, then it basically ends up being a non-issue.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

OK, thanks for the update. I will do some testing of the following scenarios and report back:

* across a network connection
* direct from disk
* mounted ISO

Everything is supposed to work but let's see...
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

Ah I think I see the issue...

Audio demuxing was enabled by default for me. It looks like DGIndexNV will crash if it cannot write out the audio streams upon loading a file. Opening streams from a mounted ISO will cause it, as it will be write protected, it looks like DGIndexNV tries to put the audio streams in the same directory as the video.

I just have to turn off the audio demuxing, I did not realize it was on.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

Sweet, thanks for that extra information. I'm spending today on this problem and will report back later.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

Can you please give me the exact steps to cause the crash?

I tried with a mounted ISO, an AnyDVD-loaded disk, and an unprotected disk. All open without problems. When I do Save Project I get an error pop-up saying you cannot save here. I will try across the network now.

Note that DGIndexNV does not try to open an output audio file on open, just when you do Save Project. So please do provide a step-by-step for me.
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

Few notes:
-These are all from my local machine, no network storage
-Tried with a physical and mounted bluray, no issues there. Only seems to be DVDs/VOBs
-I'm on windows 10 x64 build 1511
-Running 2xTitanX in SLI (Let me know if you need any other specs)

-When opening VOBs from a writable space, DGIndexNV preemptively creates the audio stream files (.ac3 in my case) there, they are about 8kb in size.
ex)
T80 2_0ch 48KHz 192Kbps DELAY 0ms.ac3
T81 2_0ch 48KHz 192Kbps DELAY 0ms.ac3

But, on saving the project, 2 different .ac3 streams are created with the project.dgi file
ex)
VTS_07_1 T80 2_0ch 48KHz 192Kbps DELAY 0ms.ac3
VTS_07_1 T81 2_0ch 48KHz 192Kbps DELAY 0ms.ac3

So it looks like the first two 8kb streams aren't written to again, I'm not sure what they would be for.
I'm guessing DGIndexNV crashes when it can't write these files


Steps:
Mount DVD iso (I'm using DTlite v10.2)
Or insert physical DVD (AnyDVDHD 7.6.7.0 running for encrypted discs)

Run DGIndexNV - b2051 (I'm using x64, although this will happen on both, run-as-admin doesn't seem to matter)
Audio->Audio Demux
Ensure "Enable Audio Processing" is checked

File->Open
select VOBs from DVD (single or multiple)
click OK on file list dialog

Windows returns "DGIndexNV.exe has stopped working"
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

djc5166 wrote:-When opening VOBs from a writable space, DGIndexNV preemptively creates the audio stream files (.ac3 in my case) there, they are about 8kb in size.
ex)
T80 2_0ch 48KHz 192Kbps DELAY 0ms.ac3
T81 2_0ch 48KHz 192Kbps DELAY 0ms.ac3
Wow, that is shocking. Obviously that shouldn't happen. Let me see if I can duplicate it...
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

It's not happening for me. Can you please post your INI file contents? I'll do some code reading and see if I can determine where a rogue fopen may be happening.

I may have to make a debug load for you.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

OK, I think I know what is going on. Can you please use DGSplit to give me the first 50 MB of the first VOB?
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

Version=DGIndexNV 2051
Window_Position=1168,483
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=1
MRUList[0]=
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=0
UsePF=0
AlwaysCrop=1
UseD3D=0
Snapped=0
ResponseOnAudioMismatch=0
Enable_Audio_Demux=1
CUDA_Device=255
Decode_Modes=0,0,0,0
Full_Info=1
Bare_Demux=0
Disable_Encrypted_Audio_Warning=0
Fine_Cropping=0
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

admin wrote:OK, I think I know what is going on. Can you please use DGSplit to give me the first 50 MB of the first VOB?
This ends up happening on all the VOBs I have tried, as long as they were from a write protected space and Audio Demux was enabled, I can give you a sample of one though.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

Yes, please give me a sample.

I've already fixed it but I need your sample to test the fix. :lol:
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

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

Re: Crashing on MPEG2 streams

Post by admin »

Thank you. OK, the fix works.

Before I slipstream it for you, can you try something for me please?

Turn off audio demux. Then open the VOB from an unwritable place. Then turn on audio demux and do Save Project. What happens?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

I burnt your file to a disk and tried the Save Project. Windows refuses to save there. I'll go ahead and slipstream the fix into 2051.

Thank you, for pointing this out and helping with the debugging, djc5166.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Crashing on MPEG2 streams

Post by admin »

I slip-streamed the fix into 2051.
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: Crashing on MPEG2 streams

Post by djc5166 »

admin wrote:Thank you. OK, the fix works.

Before I slipstream it for you, can you try something for me please?

Turn off audio demux. Then open the VOB from an unwritable place. Then turn on audio demux and do Save Project. What happens?
It works as expected when I do this.
DAE avatar
djc5166
Posts: 15
Joined: Sat Jan 09, 2016 12:24 pm

Re: [RESOLVED] Crashing on MPEG2 streams

Post by djc5166 »

Thank you, outstanding software and support!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Crashing on MPEG2 streams

Post by admin »

Thank you. Have a great 2016 and lots of success for your projects.
Post Reply