Search found 28 matches

by domy
Thu May 21, 2020 1:46 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

You can now give my tool a playlist file instead of a list of segments :)
by domy
Sat May 16, 2020 4:36 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Alright guys, here it is: https://github.com/domyd/mlp 0.1 release: https://github.com/domyd/mlp/releases (only Windows x64 for now) I've tested it on Monsters University UHD and Toy Story 4 UHD and it works perfectly. It turns out that if you remove all duplicate audio frames, the final audio lengt...
by domy
Sat May 16, 2020 6:17 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Got the audio matching working beautifully. Improving the CLI UX, cleaning up the output and adding at least the minimum amount of error handling :P

Should have it done within the next day or so.
by domy
Thu May 14, 2020 2:40 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

I've had success with extracting the audio data at the ends of a THD stream. It turns out that if two segments overlap by a frame, they match almost perfectly. Almost. Have some samples from Monsters University (signed 32-bit, but really 24-bit, integers): Last THD frame of 00055 (segment 1), channe...
by domy
Wed May 13, 2020 3:10 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

A little status update on my THD prototype: I've gotten my application to the point where I can give it a list of m2ts files and it gives me a THD file where all the segments are cut in line with the Bresenham algorithm (and it decodes correctly with ffmpeg :)). While the sync is now spot on through...
by domy
Fri May 08, 2020 4:23 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

So the end result is that after appending all THD frames of all segments together, you find all double-major frames and for each one, delete the preceding minor frame. And it just so happens that double-majors only occur at the start of a segment. Did I get that right? Do you ever manipulate the con...
by domy
Fri May 08, 2020 3:27 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

@Rocky

What do you do, exactly, in order to delete the minor frame at the end of a THD stream? Do you do anything special when appending two THD streams together? I want to try and see if I can turn the theoretically perfect THD algorithm into practice.
by domy
Mon May 04, 2020 10:27 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

@Rocky I wrote it up in my previous post a few pages back . I've kept it up to date, that's the latest version I got. Just paste it in a new .ps1 file and call it from the powershell console like in the given examples. So far, the duplicated audio I've seen is always at the [minor-first major] boun...
by domy
Sun May 03, 2020 7:53 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Interesting, although I don't follow your full reasoning. I think it would be no problem to delete two minors at the end. We can delete only by frame so it is going to matter where the desync occurs relative to the frame boundaries. Maybe an example could help me to understand you better. Yeah, sin...
by domy
Sat May 02, 2020 1:31 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Did you test the MONSTERS EAC3 stream? We have an unconfirmed report that it is off by 4 seconds using my test build. renols and myself could not duplicate it. Monsters University 00800 1101 I assume? Audacity reports 6228.416 seconds, which is within 0.02 of the video length, so that's pretty good...
by domy
Sat May 02, 2020 8:07 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Thanks! You said you could maybe cut the maximum desync by half (40 to 20 samples). What is your thinking there? If it is safe to cut 2 (or more) minor frames off at the end of the stream, instead of only 1, you could remove frames until the accumulated overrun is less than +20 samples. Then you wou...
by domy
Fri May 01, 2020 12:15 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Yeah, I'm a developer :) I think I've found a way to determine exactly at which gaps frames should be deleted for optimum sync. Turns out that for Monsters University, you wanna cut at 129 of the total 134 gaps. What I do is keep track of a THD overrun (how much longer the THD stream is than the vid...
by domy
Thu Apr 30, 2020 7:05 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Oooohh, tell me more about the avisynth filter, Rocky; I've been looking for a way to show a waveform during playback. My method of checking AV sync is very ad-hoc and janky, but here goes: So, in order for us to check if some AV stream is in sync, we first need a reference - that is, an AV stream o...
by domy
Wed Apr 29, 2020 2:09 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

I'm on the Europe/Vienna time zone :) So the demuxed THD stream now keeps the double major frames of the individual segments, correct? I'm surprised ffmpeg doesn't complain about it, but it also shouldn't matter for decoding purposes. Correct. Why should it complain? I haven't destroyed any groups o...
by domy
Wed Apr 29, 2020 1:31 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

I've never gotten the "lossless check failed" warning on the original m2ts THD streams, so I'd say the warning is warranted. Do you have an m2ts where ffmpeg generated that warning? I ran your truehd tool on Toy Story 4's 110.m2ts, where the start frame doesn't overlap with the previous streams' fin...
by domy
Tue Apr 28, 2020 10:39 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Saw it in Audacity. I could send you the two THD streams from the m2ts files, maybe? What do you need?
by domy
Tue Apr 28, 2020 10:15 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

MakeMKV 1.15.1's Monsters University THD stream transcodes without errors to flac, only warnings (typical lossless check failed). Rocky, could you upload your truehd tool that shows input_timing and major/minor/double frames? I know that Toy Story 4 has two gaps where the audio frames do not overlap...
by domy
Mon Apr 27, 2020 11:50 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

That's a very insightful look into MakeMKV's behavior, Rocky. Thanks for that! I've got a couple clarifications/questions: What disc was that, with the 74 segments? Each THD bitstream ends with a major sync? I would not have expected that, since it makes very little sense to me - players don't need ...
by domy
Sat Apr 25, 2020 6:27 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

I can confirm that MakeMKV 1.15.1 doesn't exhibit any of the audio pop issues that previous versions did. I filed an issue on that a few months ago, and the Finding Nemo disc doesn't have the audible pop anymore (haven't tested the other discs, but I'm guessing they're good too).
by domy
Thu Apr 23, 2020 2:50 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

MakeMKV somehow manages to do THD gaps processing while also outputting a correct stream. I don't yet know how well it processes gaps, but its Monsters University THD stream is "only" about 42ms short by the end. That's better than no processing (which would make it about 110ms too long by the end),...
by domy
Sat Apr 18, 2020 3:47 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Sorry, let me clarify: I know that the THD stream is in fact 6228 seconds long. What I mean is that when you let ffmpeg transcode the THD stream, it spits out a bunch of errors and what comes out is only 6223 seconds long. I don't have any other way to analyze the actual audio samples but to go thro...
by domy
Sat Apr 18, 2020 12:38 pm
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Ahh, I was using powershell. It works with cmd. I'm using 00800.mpls, do-not-split unchecked, ffmpeg 4.2.2 as well. So, this is kind of a weird situation: If I import the THD core into Audacity, the length of the audio stream is 1:43:43.290 (298,717,920 samples). If I force ffmpeg to decode it by tr...
by domy
Sat Apr 18, 2020 4:51 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

No worries, it's nothing urgent at all :) I figured out how to bypass eac3to and make ffmpeg decode the THD stream while ignoring errors (ffmpeg -i file.thd -ac 1 out.thd, version 4.2.2), but it prints a lot of errors and the final flac file is 5 seconds short by the end for Monster's University (mo...
by domy
Fri Apr 17, 2020 11:16 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

Thank you so much for implementing THD gaps correction! :bravo: I'm trying to re-check the THD audio stream of some of my Pixar blu-rays with the new version, but ffmpeg/eac3to now fails to decode the THD stream due to checksum errors (is that something that can be fixed?). Your ffmpeg command to re...
by domy
Sun Apr 05, 2020 9:10 am
Forum: DGDemux
Topic: DGDemux development
Replies: 901
Views: 894782

Re: DGDemux development

I used eac3to to rip the THD from the m2ts and convert it to mono flac, so that I could open it up in Audacity and easily compare multiple segments/streams. For example:

Code: Select all

eac3to "BDMV\STREAM\00055.m2ts" 2: 1_55.flac -mono