[RESOLVED] MKV demux support

Support forum for DGDecNV
User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 157
Joined: Mon Sep 20, 2010 2:18 pm

MKV stream demux

Post by tormento » Mon Feb 12, 2018 7:45 am

As far as I can see the process is a multiple pass: first is generation of DGI and then audio stream demux, one by one.

It is time consuming, compared to use DGIndexNV for dgi only and then some tool as gMKVExtractGUI.

The perfection would be demuxing while creating dgi.

And, little note, if you abort process during dgi creation, the app will become unresponsive until all streams will be output.

If you don't abort process, the app will become unresponsive at all untill all streams will be output.

I can send you an entire BD converted to mkv to give you lot of material to work on but how? :)

Edit: there are some size differences in audio stream sizes when extracting by DGIndexNV and when with gMKVExtractGUI (mkvmerge use).

From originale Star Wars I:

ita.dts from DGIndexNV 784.407.552
ita.dts from gMKVExtractGUI 784.408.576

eng.dts from DGIndexNV 4.917.922.068
eng.dts from gMKVExtractGUI 4.917.924.184

I have tried a small hex comparison the header seems the same but all the file content is different. Output audio seems the same.

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

Re: MKV stream demux

Post by admin » Mon Feb 12, 2018 11:31 am

Thank you for your testing and feedback.
tormento wrote:
Mon Feb 12, 2018 7:45 am
As far as I can see the process is a multiple pass: first is generation of DGI and then audio stream demux, one by one.

It is time consuming, compared to use DGIndexNV for dgi only and then some tool as gMKVExtractGUI.

The perfection would be demuxing while creating dgi.
That is correct. This is a first step intended to just automate the previous support. I agree that it would be better to do everything in one pass and I am looking into that.
And, little note, if you abort process during dgi creation, the app will become unresponsive until all streams will be output.

If you don't abort process, the app will become unresponsive at all untill all streams will be output.
I'll hold off on doing anything about that pending the further development noted above.
I can send you an entire BD converted to mkv to give you lot of material to work on but how? :)
I have blurays, so you can help by telling me which app and how you run it in order to get chapters and subs.
Edit: there are some size differences in audio stream sizes when extracting by DGIndexNV and when with gMKVExtractGUI (mkvmerge use).

From originale Star Wars I:

ita.dts from DGIndexNV 784.407.552
ita.dts from gMKVExtractGUI 784.408.576

eng.dts from DGIndexNV 4.917.922.068
eng.dts from gMKVExtractGUI 4.917.924.184

I have tried a small hex comparison the header seems the same but all the file content is different. Output audio seems the same.
I'll look into it as part of further development.

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

Re: MKV stream demux

Post by tormento » Mon Feb 12, 2018 12:09 pm

admin wrote:
Mon Feb 12, 2018 11:31 am
I have blurays, so you can help by telling me which app and how you run it in order to get chapters and subs.
The easiest way to rip a BD to mkv is using MakeMKV. There is a free key while still in beta which is

T-97pzDZ1bt6gLQbt9KpzffjEI0pRF_MjHnzDHBI@nwQIQpFmCmzpTlyzHfbI1ghXsR7

It's useless to rip entire BD, just the main stream with all audio, subs, etc.

I doesn't convert sup subtitles to srt but the stream classes in mkv are all the same and so should extraction.

I have doubts about chapters.txt (or xml) extraction. Will test later.

I suggest to you feed the mkv to newest version of MKVToolnix, to be sure it has the latest specifications. Useless to develope and later find it doesn't work on latest version.

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

Re: Feature Requests

Post by admin » Mon Feb 12, 2018 12:22 pm

Great, thank you!

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

Re: Feature Requests

Post by gonca » Mon Feb 12, 2018 4:34 pm

If you have a decrypting app running in the background MKVToolNix, pointed at the main mpls, will also extract the movie directly

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

Re: Feature Requests

Post by tormento » Tue Feb 13, 2018 5:51 am

admin wrote:
Mon Feb 12, 2018 12:22 pm
Great, thank you!
Tested and you can't grab chapter.txt from MakeMKV.

Easiest way is to use Eac3to https://forum.???.org/showthread.php?t=125966 (??? becomes ??? dunno why)

with some GUI such as HdBrStreamExtractor https://drive.google.com/file/d/0B3TNxv ... sp=sharing

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

Re: Feature Requests

Post by admin » Thu Feb 15, 2018 12:37 pm

I have these fixes:

* Select bar was not starting with the entire range filled when MKV/MP4 was opened.

* Demuxed audio was not matching mkvextract.

* Audio is now demuxed during DGI creation and does not hang the GUI.

I need to test a bit more and then slipstream later today. I will address the chapters/subs in the next phase.

jpsdr
Posts: 180
Joined: Tue Sep 21, 2010 4:16 am

Re: Feature Requests

Post by jpsdr » Fri Feb 16, 2018 4:33 am

If it can help, i'll share how i personnaly do things, once the BR is ripped (i personnaly use anyDVD for the rip).
With eac3to runned on the whole BR structure (on the root of the BR directories), i identify the the main files (m2ts and mpls).
If i need subtitles, i extract them with eac3to from m2ts file. I do also the same for audio. BTW, if there is a bug in eac3to with ac3, it should be reported... :?
Sometimes chapters are included in the m2ts files, but, personnaly, i've seen that only a very very few times. But in that case, chapters may probably be extracted with eac3to directly from the m2ts file.
Otherwise, i get chapters using Chaptergen http://www.chaptergen.co.nr/ feeding it with the mpls file identified in the first step.

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

Re: Feature Requests

Post by tormento » Fri Feb 16, 2018 7:23 am

jpsdr wrote:
Fri Feb 16, 2018 4:33 am
BTW, if there is a bug in eac3to with ac3, it should be reported
OT: it's not a bug with eac3to "per se". It's the libraries used to encode to ac3 and the author of eac3to seems not to want to update or to move to ffmpeg.

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

Re: Feature Requests

Post by admin » Fri Feb 16, 2018 9:01 am

I have slipstreamed the cited fixes. Have at it.

Post Reply