DGDemux development

TufInside
Posts: 1
Joined: Wed Nov 06, 2019 9:51 pm

Re: DGDemux development

Post by TufInside » Wed Nov 06, 2019 9:56 pm

Probably a stupid question but will this be able to scan playlists (like eac3to) instead of having to manually point to a specific playlist ?

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

Re: DGDemux development

Post by Rocky » Wed Nov 06, 2019 10:00 pm

"scan playlists (like eac3to)"

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

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

Re: DGDemux development

Post by Rocky » Mon Nov 11, 2019 2:53 pm

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.

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

Re: DGDemux development

Post by Rocky » Tue Nov 12, 2019 12:37 pm

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.

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

Re: DGDemux development

Post by Rocky » Wed Nov 13, 2019 11:48 am

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.

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

Re: DGDemux development

Post by Rocky » Wed Nov 13, 2019 5:23 pm

Please re-download 1.0.0.1 as there was a boo-boo in the video demuxing.

gonca
Posts: 722
Joined: Sun Apr 08, 2012 6:12 pm

Re: DGDemux development

Post by gonca » Wed Nov 13, 2019 6:49 pm

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

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

Re: DGDemux development

Post by Rocky » Wed Nov 13, 2019 9:31 pm

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?

gonca
Posts: 722
Joined: Sun Apr 08, 2012 6:12 pm

Re: DGDemux development

Post by gonca » Thu Nov 14, 2019 5:57 am

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

borderline
Posts: 2
Joined: Thu Nov 14, 2019 6:01 am

Re: DGDemux development

Post by borderline » Thu Nov 14, 2019 6:35 am

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

Post Reply