Bug in chapters extraction

Support forum for DGDecNV
Post Reply
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Bug in chapters extraction

Post by Boulder »

This one occurs with Matroska files. It can be reproduced with this small file which has a chapter mark every 7 seconds: https://drive.google.com/file/d/1nEMOLi ... sp=sharing

1) Open in DGIndexNV
2) Select the audio track and chapters for demuxing
3) Save the project

Demuxing works fine, but an error box pops up at the end:
dgindex1.png
Then it turns out it had created two chapter files and corresponding QP files.
dgindex2.png
Testclip_chapters.txt is the correct one, I don't know where that other one came from. Based on the content, it looks like a chapter list for some movie so maybe it's from some recent project I've done on a disc structure?

Testclip_chapters.txt

Code: Select all

CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 1
CHAPTER02=00:00:07.000
CHAPTER02NAME=Chapter 2
CHAPTER03=00:00:14.000
CHAPTER03NAME=Chapter 3
CHAPTER04=00:00:21.000
CHAPTER04NAME=Chapter 4
CHAPTER05=00:00:28.000
CHAPTER05NAME=Chapter 5
CHAPTER06=00:00:35.000
CHAPTER06NAME=Chapter 6
CHAPTER07=00:00:42.000
CHAPTER07NAME=Chapter 7
CHAPTER08=00:00:49.000
CHAPTER08NAME=Chapter 8
CHAPTER09=00:00:56.000
CHAPTER09NAME=Chapter 9
CHAPTER10=00:01:03.000
CHAPTER10NAME=Chapter 10
Testclip.chapters.txt

Code: Select all

CHAPTER01=00:00:00.000
CHAPTER01NAME=
CHAPTER02=00:07:21.566
CHAPTER02NAME=
CHAPTER03=00:11:29.230
CHAPTER03NAME=
CHAPTER04=00:16:46.756
CHAPTER04NAME=
CHAPTER05=00:20:15.047
CHAPTER05NAME=
CHAPTER06=00:28:26.997
CHAPTER06NAME=
CHAPTER07=00:33:44.898
CHAPTER07NAME=
CHAPTER08=00:40:19.834
CHAPTER08NAME=
CHAPTER09=00:44:26.080
CHAPTER09NAME=
CHAPTER10=00:49:25.629
CHAPTER10NAME=
CHAPTER11=00:54:36.773
CHAPTER11NAME=
CHAPTER12=01:00:41.596
CHAPTER12NAME=
CHAPTER13=01:09:33.544
CHAPTER13NAME=
CHAPTER14=01:13:16.058
CHAPTER14NAME=
CHAPTER15=01:22:09.258
CHAPTER15NAME=
CHAPTER16=01:27:56.897
CHAPTER16NAME=
CHAPTER17=01:31:35.615
CHAPTER17NAME=
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

CLPI for an MKV file. This should be interesting. Thank you for the sample. No 20 questions with Boulder!
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

I could not duplicate the issue with build 238. What build are you running?

I just opened the MKV, checked in demux that the audio and chapters were enabled, and then did save project. There was no popup and no double files created.
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Bug in chapters extraction

Post by Boulder »

A-ha.. this one seems to be a bit tricky bugger.

Looks like you cannot reproduce it by opening the application and doing one demux. I suspected that this may have something to do with the MRU list or something, so I simply copied my testclip multiple times, opened each one of them and saved a project (with demux enabled, didn't skip any track) to make sure the MRU list in memory contains only mkv files. I then opened one BD playlist and saved a project. Then, opened one mkv file after that and there the error is again.

Code: Select all

Version=DGIndexNV 236.0.0.0
Window_Position=479,380
Info_Window_Position=1445,380
Process_Priority=2
Playback_Speed=3
AVS_Template_Folder=
AVS_Template_File=template.avs
AVS_Template_File_Index=0
AVS_Enable_Template=1
AVS_Overwrite=0
Full_Path_In_Files=1
MRUList[0]=M:\Temp\testclip - Copy (2).mkv
MRUList[1]=H:\BDMV\PLAYLIST\00002.mpls
MRUList[2]=M:\Temp\testclip - Copy (3).mkv
MRUList[3]=M:\Temp\testclip - Copy.mkv
Enable_Info_Log=0
Loop_Playback=0
AVC_Extension=264
MPG_Extension=m2v
VC1_Extension=vc1
HEVC_Extension=265
Deinterlace=0
UsePF=0
UseD3D=0
Snapped=1
ResponseOnAudioMismatch=0
Enable_Demux=1
CUDA_Device=0
Decode_Modes=0,0,0,0
Full_Info=1
Bare_Demux=0
Disable_Encrypted_Audio_Warning=0
Force_Zoom=0
StrictAVC=0
PGSForcedOnly=0
Default_Save_Project_Path=
H2S_Settings=0,1,1500,0,0.42,1.00,1.000000,1.15,0.90,0.70
Do_Not_Split_THD=0
Optimize_For_HDD=1
Preview_Path=
Save_Chapters_As_Xml=0
Languages=
MKVExtract_Path=C:\Program Files\MKVToolNix\mkvextract.exe
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

Thank you. You say "I then opened one BD playlist and saved a project. Then, opened one mkv file after that and there the error is again." Did you close down DGIndexNV between these two opens, or you remained within DGIndexNV? I'll try to duplicate it both ways.

If you can give me a minimal detailed sequence of operations that creates the issue it would be really helpful. By detailed, I mean e.g. when you say "then open file.mkv" I need to know how you opened it, via MRU, via open, via drag and drop, etc. Also including all exits and restarts of DGIndexNV.

I tried simply opening a playlist and doing save project, then closed and reopened DGIndexNV and used Open to open the MKV file, finally saved project. No error was encountered. So I really need you to give a reliable detailed process if you can. Thank you for your report and testing.
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Bug in chapters extraction

Post by Boulder »

Sorry, meant to say that you need to keep the application open all the time, right from the start where I opened various mkv files and saved projects to make sure mkvs are the only ones in the MRU list. I ran into this one when I had DGIndexNV open for several days and started wondering why it happens.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

Yes, but how are you opening things? Do you close the opened stream first via Close? I need a reliable step-by-step because just experimenting I am unable to duplicate the error.

Finally, you must test with 237 or 238, not 236. There are known related issues in 236 that were corrected in 237.
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Bug in chapters extraction

Post by Boulder »

I never close the stream, I just hit F2 to open the file list dialog, delete the file and add the new one. I can reproduce the issue also with 238. Use the F2 and delete - add - select file - ok - save project chain like four times. Then open a BD playlist with the same approach, save the project, F2, delete the m2ts file and add an mkv file after that, save a project and it happens.

Damnit, you made me actually have to think how I work with the application :lol:
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

Ah, now you are cooking with gas. I've duplicated it in 238 with F2/delete/etc. I have to clear my 'open_via_mpls' flag upon F2/delete (treat it like Close). Should be a relatively easy fix.
you made me actually have to think
Thank you, Boulder, for your patience and remember, despite what Curly says, thinking is a good thing.
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Bug in chapters extraction

Post by Curly »

Rocky wrote:
Thu Dec 16, 2021 12:28 pm
despite what Curly says, thinking is a good thing
I resemble that remark.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

Sue me.
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Bug in chapters extraction

Post by Boulder »

Rocky wrote:
Thu Dec 16, 2021 12:28 pm
Ah, now you are cooking with gas. I've duplicated it in 238 with F2/delete/etc. I have to clear my 'open_via_mpls' flag upon F2/delete (treat it like Close). Should be a relatively easy fix.
you made me actually have to think
Thank you, Boulder, for your patience and remember, despite what Curly says, thinking is a good thing.
Great! I should know better, I'm often telling people to give me accurate reports of problems or I won't touch the issues at all :lol:
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

That whole Open dialog needs to be overhauled. Maybe Sherman is not too busy with his time travels, but if so, I'll take care of it. Levi wants to learn coding too, so who knows. Don't worry, we'll git 'er done!
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Bug in chapters extraction

Post by Rocky »

Please re-download 238. Your issue should be fixed. If not, please holler.
Post Reply