[RESOLVED] MKV demux support
[RESOLVED] MKV demux support
Now that I discovered that Eac3to encoding to ac3 is buggish, I have to extract every stream from Matroska containers and then encode audio from DTS to AC3 with ffmpeg. Then I have to process MKV again with DGIndexNV to have the dgi.
Could you please implement matroska demux, even using external mkvtoolnix package? Audio is a must, subs and chapters a nice plus.
Thanks.
Could you please implement matroska demux, even using external mkvtoolnix package? Audio is a must, subs and chapters a nice plus.
Thanks.
Re: Feature Requests
Audio demux from MKV is already supported. Please clarify your request.
Re: Feature Requests
OK, that's already on my list. I'll see what I can do when I finish some ongoing bug squashing.
Re: Feature Requests
Got it.
Re: Feature Requests
I have converted the MKV audio demuxing to be just like transport stream audio demuxing (they now share the same dialog, etc.) and it works very well. I have to do the same for MP4 before I can give it to you. After that I will look into subs and chapters.
Re: Feature Requests
MP4 is converted now too. Just have to thoroughly test it and revise the manual before slipstreaming.
Re: Feature Requests
OK, I have slipstreamed it.
Now, Guest 2, if you want me to do anything with MKV chapters and subs please provide
some suitable test streams. Thank you.
Now, Guest 2, if you want me to do anything with MKV chapters and subs please provide
some suitable test streams. Thank you.
Re: Feature Requests
Thanks. I will test it thoroughly.
http://www107.zippyshare.com/v/gVOT9uoc/file.html
There are video, 4 audio streams, subs and chapters too.
MKV stream demux
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.
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.
Re: MKV stream demux
Thank you for your testing and feedback.
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.Guest 2 wrote: ↑Mon Feb 12, 2018 6:45 amAs 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.
I'll hold off on doing anything about that pending the further development noted above.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 have blurays, so you can help by telling me which app and how you run it in order to get chapters and subs.I can send you an entire BD converted to mkv to give you lot of material to work on but how?
I'll look into it as part of further development.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.
Re: MKV stream demux
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.
Re: Feature Requests
Great, thank you!
Re: Feature Requests
If you have a decrypting app running in the background MKVToolNix, pointed at the main mpls, will also extract the movie directly
Re: Feature Requests
Tested and you can't grab chapter.txt from MakeMKV.
Easiest way is to use Eac3to https://forum.doom9.org/showthread.php?t=125966 (??? becomes ??? dunno why)
with some GUI such as HdBrStreamExtractor https://drive.google.com/file/d/0B3TNxv ... sp=sharing
Re: Feature Requests
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.
* 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.
Re: Feature Requests
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.
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.
Re: Feature Requests
I have slipstreamed the cited fixes. Have at it.
Re: Feature Requests
You are most welcome.
Re: Feature Requests
With MKV
Dolby Atmos is extracted but the file type (thd) is not written with the file name
Example
Clip B
Extracted audio name is written as B, should be B.thd
Adding .thd to the file name makes it a valid sound track
The HD variants of DTS, including DTS X, are named properly
Dolby Atmos is extracted but the file type (thd) is not written with the file name
Example
Clip B
Extracted audio name is written as B, should be B.thd
Adding .thd to the file name makes it a valid sound track
The HD variants of DTS, including DTS X, are named properly
Re: Feature Requests
Please provide a test clip for analysis. Thank you.
I need to know which text identifier is used, e.g., like "A_VORBIS". I can see that my code does not add the extension when the identifier is not on my list, and I don't have anything for Dolby Atmos right now. I'll check the MKV spec to see if it is listed there.
I need to know which text identifier is used, e.g., like "A_VORBIS". I can see that my code does not add the extension when the identifier is not on my list, and I don't have anything for Dolby Atmos right now. I'll check the MKV spec to see if it is listed there.
Re: Feature Requests
Uploading test clip now
Will let you know when it is ready
Will let you know when it is ready