[RESOLVED] MKV demux support

Support forum for DGDecNV
gonca
Distinguished Member
Distinguished Member
Posts: 563
Joined: Sun Apr 08, 2012 6:12 pm

Re: MKV demux support

Post by gonca » Tue Mar 06, 2018 4:49 pm

In the PGS subtitle I tested that is how it works out
You can always manually enter a delay into mkvmerge
I merged the subtitles with the delays in the name, extracted them and they showed no difference
Note that I only use PGS subtitles

User avatar
admin
Site Admin
Posts: 3885
Joined: Thu Sep 09, 2010 3:08 pm

Re: MKV demux support

Post by admin » Tue Mar 06, 2018 5:15 pm

I'm going to remove it from subtitle filenames. It doesn't have the same significance as for audio because audio is expected to start right away with the video while the first sub may not come for a while, so the offset between the start of the video and the first subtitle block has no significance.

User avatar
admin
Site Admin
Posts: 3885
Joined: Thu Sep 09, 2010 3:08 pm

Re: MKV demux support

Post by admin » Tue Mar 06, 2018 5:35 pm

New version:

http://rationalqm.us/misc/DGIndexNV_test.exe

Removes DELAY from subtitles and fixes tormento's crash. Marked as slipstream 130 in preparation for release.

User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 158
Joined: Mon Sep 20, 2010 2:18 pm

Re: MKV demux support

Post by tormento » Wed Mar 07, 2018 11:11 am

gonca wrote:
Tue Mar 06, 2018 4:49 pm
You can always manually enter a delay into mkvmerge
MKVToolnix honors the delay you put to subs when muxing, I tried and asked on MKV thread too. I am asking how is possible to reverse engineer the delay when demuxing.

User avatar
admin
Site Admin
Posts: 3885
Joined: Thu Sep 09, 2010 3:08 pm

Re: MKV demux support

Post by admin » Wed Mar 07, 2018 11:37 am

I don't think it is possible, because there is no Delay field in MKV. It is just used during muxing to adjust all the timestamps. Once that adjustment is made, that delay value is gone and assuming the right value was used, you would not need to re-apply it if re-muxing. You would have to play the movie with subtitles enabled to see if the sync is good. If not, a new delay value can be specified during the re-mux.

I'm getting ready to slipstream this later today. Please advise if you find anything I should know about.

Thanks, everybody, for your assistance with the design and testing of this new feature. :hat:

User avatar
admin
Site Admin
Posts: 3885
Joined: Thu Sep 09, 2010 3:08 pm

Re: MKV demux support

Post by admin » Wed Mar 07, 2018 11:56 am

gonca wrote:
Tue Mar 06, 2018 4:42 pm
I suppose I should call you two guys the usual suspects now, huh?
Usual?
Not odd, rare, strange, etc?
Just usual/average :facepalm: ;)
Just a reference to a well-known film. I imagine that you and tormento could have easily been cast for roles there.

http://www.imdb.com/title/tt0114814/

gonca
Distinguished Member
Distinguished Member
Posts: 563
Joined: Sun Apr 08, 2012 6:12 pm

Re: MKV demux support

Post by gonca » Wed Mar 07, 2018 12:09 pm

Yep
I am the good looking one

gonca
Distinguished Member
Distinguished Member
Posts: 563
Joined: Sun Apr 08, 2012 6:12 pm

Re: MKV demux support

Post by gonca » Wed Mar 07, 2018 12:31 pm

tormento wrote:
Wed Mar 07, 2018 11:11 am
gonca wrote:
Tue Mar 06, 2018 4:49 pm
You can always manually enter a delay into mkvmerge
MKVToolnix honors the delay you put to subs when muxing, I tried and asked on MKV thread too. I am asking how is possible to reverse engineer the delay when demuxing.
I just repeated the experiment
Demuxed the PGS subtitle from a MKV file
Edited the name to give it a delay
Remuxed this PGS into the MKV
Extracted the PGS from the MKV
All 3 PGS streams (original, renamed, muxed/demuxed) have the exact same time codes and the extracted PGS stream, by gMKVExtract, has no delay in the name
MKVToolNix honours the delay when you manually enter it into the delay field
Please try it for yourself with a PGS subtitle

gonca
Distinguished Member
Distinguished Member
Posts: 563
Joined: Sun Apr 08, 2012 6:12 pm

Re: MKV demux support

Post by gonca » Wed Mar 07, 2018 12:43 pm

@tormento
MKVToolnix honors the delay you put to subs when muxing
When you asked on the other forum, did you notice everyone mentioned mkvmerge, which is a CLI app
You were also asked for a sample command line, the subtitle delay must be explicitly stated in the cmd line
Same as manually entering it into the delay field
I might be wrong or there could be a bug in MKVToolNix GUI
My money would be that delays in subtitles must be explicitly stated

User avatar
admin
Site Admin
Posts: 3885
Joined: Thu Sep 09, 2010 3:08 pm

Re: MKV demux support

Post by admin » Wed Mar 07, 2018 12:53 pm

NEWS.md 2006:

* mmg: new feature: Pre-set the "delay" input field for audio tracks if the file name
contains something like "DELAY XX" where XX is a number.

But only for audio, not subtitles. I tested this; only audio is auto-detected from the file name.

The reason it wasn't being picked up for my filenames was because I had an underscore rather than a space after the word DELAY. I will correct that for the slipstream. Thanks, guys, for bringing that to light.

DELAY pickup from the filename also has to be enabled in Preferences/Multiplexer/Default values.

Post Reply