Page 1 of 37

DGDemux development

Posted: Mon Nov 04, 2019 10:55 am
by Rocky
DGDemux (Bluray/UHD demuxer supporting seamless branching) is coming along nicely. It was actually quite hard to disable all the licensing. If it was easy it would be easy for the crackers. ;)

Looking at a test release this week if all goes well.

Latest version: http://rationalqm.us/dgdemux/DGDemux_1004.rar

Re: DGDemux development

Posted: Mon Nov 04, 2019 5:01 pm
by Rocky
Made good progress today! I have a beta ready except for the manual. So tomorrow looks real good. Or maybe I'll write the manual after swimming tonight and get it out today. :scratch:

Whee!

Re: DGDemux development

Posted: Mon Nov 04, 2019 6:15 pm
by Dion
Looking forward to this.. eac3to is kinda vaporware atm.. So will be nice to have a more supported demuxer.

Re: DGDemux development

Posted: Mon Nov 04, 2019 8:14 pm
by Rocky
Dion wrote:
Mon Nov 04, 2019 6:15 pm
eac3to is kinda vaporware atm
Thank you for the post Dion. Always great to hear from you.

eac3to still does what it does (including stuff that DGDemux cannot do). People say it works fine for many use cases but has not been fully evolved for other cases, such as seamless branching. Developers have to be allowed to set their priorities. Flak for not adding MKV support to DGIndex? DGindex is not on the radar. madshi continues to do great things for the community. He will always be a hero for Rocky and Bullwinkle. Standing on the shoulders of giants!

Hehe, it was harder than expected to suppress the creation of the DGI file. Opened "nul" instead of the normal DGI path and everything transparently follows. Squirrely-wuirrely, wouldn't you say?

Re: DGDemux development

Posted: Mon Nov 04, 2019 8:30 pm
by Bullwinkle
Snort snort!

Stand on my shoulders. You want giant?

https://www.mentalfloss.com/article/594 ... bout-moose

Not just the body, Meese cognitive powers are off the chart. Come to Daddy.

Re: DGDemux development

Posted: Tue Nov 05, 2019 7:27 am
by Bullwinkle
Good morning, culture lovers and hoomins!

Hardy har, Rock is still sleeping so let's sneak out this alpha:

http://rationalqm.us/dgdemux/DGDemux_1000.rar

Worked fine on the three disks we have ripped here. Still gonna be some glitches to fix, fer sure. Please accompany any trouble reports with a description of the disk and a link where it can be purchased.

Re: DGDemux development

Posted: Wed Nov 06, 2019 9:28 am
by DJATOM
So it's only for mpls files... I thought DGDemux will support regular demuxing, as DGIndexNV does :scratch:

Re: DGDemux development

Posted: Wed Nov 06, 2019 9:42 am
by Rocky
The goal was two-fold: 1) Help people with their seamless branching disks, and 2) lure some new people into the DG world. Nevertheless it could be extended to general demuxing without undermining demand for DGDecNV and I will consider that.

Re: DGDemux development

Posted: Wed Nov 06, 2019 2:24 pm
by Dion
DJATOM wrote:
Wed Nov 06, 2019 9:28 am
So it's only for mpls files... I thought DGDemux will support regular demuxing, as DGIndexNV does :scratch:
Ya MKV support would be a huge plus too imo.

On a side note.. Will this be command line only? or is there a gui planned as well?

Re: DGDemux development

Posted: Wed Nov 06, 2019 2:47 pm
by Rocky
I could just remove the test for *.mpls. Everything else would then magically work, as in DGIndexNV. ;)

When I complete the CLI functionality (info option and selective demux option), anyone can write a DGDemuxGUI. Personally, I already have DGIndexNV. :lol:

Re: DGDemux development

Posted: Wed Nov 06, 2019 8:56 pm
by TufInside
Probably a stupid question but will this be able to scan playlists (like eac3to) instead of having to manually point to a specific playlist ?

Re: DGDemux development

Posted: Wed Nov 06, 2019 9:00 pm
by Rocky
"scan playlists (like eac3to)"

Don't know about eac3to. What exactly are you asking for? Scan playlists means what?

Re: DGDemux development

Posted: Mon Nov 11, 2019 1:53 pm
by Rocky
We're back in the shop for repairs. The main issue is that the audio gaps processing relies on knowing the video frame rate. But DGIndexNV obtained that from the CUVID decoder parsing. Since the CUVID code was removed, now the frame rate is seen as 0fps. Not good. So I am adding back the old-fashioned manual parsing to get the frame rate.

Re: DGDemux development

Posted: Tue Nov 12, 2019 11:37 am
by Rocky
OK, working good now. Below is the current to-do list with completed stuff marked [DONE]. I'll probably release this as a beta today or tomorrow after some additional testing.

To-Do:

The DTS audio gets tagged with 1536 which is the core audio but the
actual DTS is DTS MA. E.g: PID 1101 C+L+R+SL+SR 48 1536 eng DELAY 0ms.dts

The listing when no output is specified should show THD embedded stream.

DTS express streams are not demuxed.

Doesn't demux the secondary video.

Need DTS audio gaps processing?

Demux simultaneously forced-only subtitle stream and normal stream.

Split by chapters, i.e., Japanese disks with one episode per M2TS.

Needs a GUI.

Linux version.

------------------------------------------------------------------------

[DONE] Create destination directory if it does not exist.

[DONE] Verify handling of mark_type != 1. E.g., Terminators 2, 95 chapters
extracted when 72 is claimed to be correct.

[DONE] Fix missing Frame_Rate for all video types.

[DONE] Info only option and stream selection.

[DONE] FPS CLI option to force frame rate. Warning if FPS not detected.

[DONE] Verify angle numbering base 1 and fix if needed.

Re: DGDemux development

Posted: Wed Nov 13, 2019 10:48 am
by Rocky
Here is DGDemux 1.0.0.1. Note that you can now get a listing and you can demux only desired streams. See the DGDemux.txt file for details.

http://rationalqm.us/dgdemux/DGDemux_1001.rar

I am most interested in sync issues at this time. The way to test that is to demux the video and the audio stream of interest, and then mux them using mkvtoolnix. Then open the MKV in your player and see if there is sync throughout. Please report any sync issues. DO NOT use tsmuxer for this testing. It is unreliable.

Current to-do list:

The DTS audio gets tagged with 1536 which is the core audio but the
actual DTS is DTS MA. E.g: PID 1101 C+L+R+SL+SR 48 1536 eng DELAY 0ms.dts

DTS express streams are not demuxed.

Doesn't demux the secondary video.

Demux simultaneously forced-only subtitle stream and normal stream.

Split by chapters, i.e., Japanese disks with one episode per M2TS.

Needs a GUI.

Linux version.

Re: DGDemux development

Posted: Wed Nov 13, 2019 4:23 pm
by Rocky
Please re-download 1.0.0.1 as there was a boo-boo in the video demuxing.

Re: DGDemux development

Posted: Wed Nov 13, 2019 5:49 pm
by Guest
Picked a BD with THD
Did a demux and then two remuxes
First
Video + thd > in sync
Second
Video + embedded ac3 + pgs > in sync
However

Code: Select all

DGDemux -i E:\AUTOMATA_BD\BDMV\PLAYLIST\00000.mpls
works but

Code: Select all

DGDemux -i E:\AUTOMATA BD\BDMV\PLAYLIST\00000.mpls

DGDemux -i E:\"AUTOMATA BD"\BDMV\PLAYLIST\00000.mpls
Does not
Movies with longer titles could be cumbersome to those that don't use underscores

Re: DGDemux development

Posted: Wed Nov 13, 2019 8:31 pm
by Rocky
Great to hear that the streams are in sync. Thank you gonca for the testing.

Of course you are right to be concerned about spaces versus underscores. This would be correct:

DGDemux -i "E:\AUTOMATA BD\BDMV\PLAYLIST\00000.mpls"

Does that work?

Re: DGDemux development

Posted: Thu Nov 14, 2019 4:57 am
by Guest
DGDemux -i "E:\AUTOMATA BD\BDMV\PLAYLIST\00000.mpls"
works
All one long path, the whole thing has to be in quotes DOH, feel like Homer Simpson

Re: DGDemux development

Posted: Thu Nov 14, 2019 5:35 am
by borderline
Hi I wanted to test this with a Kino Lorber Blu-ray as many of them have a short (around ~11 second) logo in a separate m2ts that plays before the main feature. The logo m2ts has no audio or subtitle streams. If you handle these with eac3to by parsing the playlist eac3to doesn't delay the audio to account for the logo and any mkv muxes will end up out of sync. If you use eac3to directly with the movie m2ts its fine. MakeMKV works fine (it automatically skips the logo in the resulting mkv and adjusts the chapter times accordingly).

Anyhow for Naked Alibi by Kino Lorber:

Code: Select all

eac3to.exe "D:\NAKED ALIBI"
1) 00004.mpls, 00010.m2ts+00004.m2ts+00000.m2ts, 1:26:06
   - Chapters, 8 chapters
   - h264/AVC, 1080p24 /1.001 (16:9)

eac3to.exe "D:\NAKED ALIBI" 1)
M2TS, 1 video track, 2 audio tracks, 1 subtitle track, 1:26:06, 24p /1.001
1: Chapters, 8 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, 2.0 channels, 16 bits, 48kHz
   (core: DTS, 2.0 channels, 1509kbps, 48kHz)
4: AC3, 2.0 channels, 192kbps, 48kHz, 32ms
5: Subtitle (PGS)
DGDemux initially fails to detect a framerate, which is fine as it can be specified but even once specified it only detects the video track, no audio or subtitles. My guess would be its only parsing the initial logo m2ts.

Code: Select all

DGDemux.exe -i "D:\NAKED ALIBI\BDMV\PLAYLIST\00004.mpls" -fps 23.976

D:\NAKED ALIBI>
1011: Video

Re: DGDemux development

Posted: Thu Nov 14, 2019 9:23 am
by Rocky
Interesting. Thank you for the report. Can you please give me a link to buy that BD?

Re: DGDemux development

Posted: Thu Nov 14, 2019 10:03 am
by borderline

Re: DGDemux development

Posted: Thu Nov 14, 2019 10:17 am
by Rocky
Thank you. Ordered. Will arrive tomorrow.

Re: DGDemux development

Posted: Fri Nov 15, 2019 11:37 am
by Rocky
The license for DGDemux is revised as follows:

-----
DGDemux by Donald A. Graft may be freely used by end users directly
invoking the executable DGDemux.exe. DGDemux is not licensed
for use by, or for incorporation into, any third-party software,
unless explicit permission has been granted by Donald A. Graft
upon a request for the same. DGDemux.exe and its documentation are
copyrighted and may not be redistributed.

No guarantees of any kind are offered or implied for DGDemux.

Donald A. Graft
-----

Re: DGDemux development

Posted: Fri Nov 15, 2019 2:52 pm
by Rocky
Added a listing of the opened M2TS files and fixed the angle processing hopefully for good. Want to have a look at LPCM wrapping before making a new release.

Naked Alibi is ripping right now.