[RESOLVED] Curious MKV not opening

Support forum for DGDecNV
User avatar
kebulek
Posts: 18
Joined: Thu Oct 14, 2010 10:16 am

Re: [RESOLVED] Curious MKV not opening

Post by kebulek »

Looks like it happens only with longer/bigger mkvs (not with short/small ones) made by VRD6 or MKVMerge 48. Old mkvs (v2) open immediately.

So do you have bigger mkv? Try remux it with new mkvmerge, open it with DGIndexNV and you'll see, hopefuly...
#1: GTX 750Ti 2048MB / 419.17 / Win7 SP1 64bit
#2: GT 1030 2048MB / 391.35 / Win7 SP1 64bit
#3: GT 620 1024MB / 391.35 / Win8.1 64bit
#4: Intel HD 4600 / 10.18.14.4578 / Win8.1 64bit
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

Link to mkvmerge 48 please? I have mkvtoolnix 21.0.0. How big is big enough? Can I simply mux some streams from a bluray, i.e., the source doesn't have to be an MKV?
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: Curious MKV not opening

Post by renols »

Hi.

I can confirm the same thing.

Link to latest mkvtoolnix is: https://mkvtoolnix.download/downloads.html#windows

The mkv file I have tested with has been made by mkvmerge v40, and mediainfo shows it as a mkv version 4 file.
The file is around 8GB in size.

With the most recent 212 it takes a while for the file to load. Making small jump at the start of the movie is almost instant, but the closer
you get to the end of the file, the longer it takes. Even small jumps at the end of the file takes more than 20 seconds. It is as if it has to parse the entire file each time a jump is made or something. Hence the jumps are almost instant at start of file, and takes long at end of file.

Tried the same file with build 210, and the loading is almost instant, and doing jumps with the slider is almost instant as well. It doesn't matter if you are at the start and then click the slider bar almost at the end, it just moves there instantly, whereas 212 can take more than 20 seconds to do the same thing.

I guess you can mux whatever into the mkv container and it will show the same issue.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

OK, I'm going to back out the change and go back to the drawing board. You seem to say that some version 4 files worked with 210. If so, then there is something else about the test.mkv that is curious. I'll try to get a backed-out version out tonight.
User avatar
kebulek
Posts: 18
Joined: Thu Oct 14, 2010 10:16 am

Re: Curious MKV not opening

Post by kebulek »

Maybe it's VRD6's fault and sometimes make a bad mkv? It's still new and full of bugs...
#1: GTX 750Ti 2048MB / 419.17 / Win7 SP1 64bit
#2: GT 1030 2048MB / 391.35 / Win7 SP1 64bit
#3: GT 620 1024MB / 391.35 / Win8.1 64bit
#4: Intel HD 4600 / 10.18.14.4578 / Win8.1 64bit
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

That's what I want to believe too, because looking more at my parser it was already properly ignoring version 4 things. My hack was totally non-kosher. I have no idea why it worked for test.mkv. Continuing tomorrow...
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: Curious MKV not opening

Post by renols »

Hi.

The mkv file I used has nothing to do with VideoRedo.

It is a plain encoded mkv file encoded with x264 (3015) and then muxed with mkvmerge v40 to add audio and some sup files.
It is that resulting mkv files I am opening in dgindexnv.

Whatever changed between 210 and 212 in the mkv parsing code has made a big difference when using the slider to jump forth and back on the timeline.

I hardly ever open mkv files in dgindexnv, and only tried it because I read this thread.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

Re-download 2053. I have backed out the MKV changes that caused this issue. Back to the drawing board on test.mkv.
DAE avatar
renols
Posts: 149
Joined: Tue Feb 22, 2011 2:34 am

Re: Curious MKV not opening

Post by renols »

Rocky wrote:
Sat Jul 25, 2020 7:29 am
Re-download 2053. I have backed out the MKV changes that caused this issue. Back to the drawing board on test.mkv.
Works as expected. Moving around on the slide bar is now instant again.

Do we know if that test.mkv file is even mkv compliant?

I don't know if Mediainfo can be trusted on this, but it shows MKV version 4, even for mkv files created years ago.

renols
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

renols wrote:
Sat Jul 25, 2020 9:05 am
Do we know if that test.mkv file is even mkv compliant
I don't know. How would you test that?
User avatar
kebulek
Posts: 18
Joined: Thu Oct 14, 2010 10:16 am

Re: Curious MKV not opening

Post by kebulek »

Maybe you can ask Mosu for an advice? :scratch:
#1: GTX 750Ti 2048MB / 419.17 / Win7 SP1 64bit
#2: GT 1030 2048MB / 391.35 / Win7 SP1 64bit
#3: GT 620 1024MB / 391.35 / Win8.1 64bit
#4: Intel HD 4600 / 10.18.14.4578 / Win8.1 64bit
DAE avatar
Guest

Re: Curious MKV not opening

Post by Guest »

As per mkvalidator
4 warnings about CUEs but the file is valid
test.png
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

Seems I'm not the only one that has had issues with this kind of MKV muxed by ffmpeg:

https://trac.ffmpeg.org/ticket/4774?cve ... num_hist=3
https://github.com/Nevcairiel/LAVFilters/issues/120
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

Output from EAC3TO:

C:\Users\Don\Downloads>c:\standalone\eac3to\eac3to test.mkv
MKV, 1 video track, 1 audio track, 1 subtitle track, 0:00:18, 50i
1: h264/AVC, 1080i50 (16:9)
2: AC3, Czech, 5.1 channels, 384kbps, 48kHz, dialnorm: -23dB
3: DVBSUB, Czech
Bitstream parsing for track 3 failed.
Demuxing this track may still produce correct results - or not.

Really tempted to dismiss this as a broken file. However, let's see if there is a fix/workaround before doing that.
User avatar
kebulek
Posts: 18
Joined: Thu Oct 14, 2010 10:16 am

Re: Curious MKV not opening

Post by kebulek »

BTW test.mkv surprisingly works with old DGIndexIM! :)
#1: GTX 750Ti 2048MB / 419.17 / Win7 SP1 64bit
#2: GT 1030 2048MB / 391.35 / Win7 SP1 64bit
#3: GT 620 1024MB / 391.35 / Win8.1 64bit
#4: Intel HD 4600 / 10.18.14.4578 / Win8.1 64bit
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

:wow:
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: Curious MKV not opening

Post by Rocky »

I found that the fixupCues() function in the original parser code does not work correctly when out-of-order PGS subtitle cues are present. DGDecIM never used cues at all so it was immune. DGDecNV uses the cues to speed up seeking in some circumstances. So I changed it so the PGS cues don't hose things up and it plays fine. That is consistent with the threads linked above, especially https://github.com/Nevcairiel/LAVFilters/issues/120. Maybe I will be a nice squirrel and give the details, or not. fixupCues() is less than 10 lines. Figure it out. Release underway together with the DGDemux 5.1/7.1 LPCM channel order fix.
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Re: Curious MKV not opening

Post by Bullwinkle »

Keep them guessing Rocky!

kebulek is Moose Approved.

Image
User avatar
Rocky
Posts: 3555
Joined: Fri Sep 06, 2019 12:57 pm

Re: [RESOLVED] Curious MKV not opening

Post by Rocky »

Fixed in DGDecNV slipstream 213.
User avatar
kebulek
Posts: 18
Joined: Thu Oct 14, 2010 10:16 am

Re: [RESOLVED] Curious MKV not opening

Post by kebulek »

Thank you!
#1: GTX 750Ti 2048MB / 419.17 / Win7 SP1 64bit
#2: GT 1030 2048MB / 391.35 / Win7 SP1 64bit
#3: GT 620 1024MB / 391.35 / Win8.1 64bit
#4: Intel HD 4600 / 10.18.14.4578 / Win8.1 64bit
Post Reply