Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Display Modes
Old 13th November 2025, 10:48   #1  |  Link
theliver9x
Registered User
 
Join Date: Oct 2019
Posts: 14
About "Skipping Identical Frames" on Eac3to?

Sometimes I get the message "Skipping identical DTS or AC3 frames (seamless branching).
That means it removed some frames from the original disc. So does it cause loss of original movie data and I am very worried that the software will cause the movie to lose some images making it not full content like the original movie that the producer made.
Can anyone explain this to me. Thanks.
theliver9x is offline   Reply With Quote
Old 13th November 2025, 13:32   #2  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,458
Audio frames are groups of digital-audio samples.

(Yes, the tech terminology sucks, the "pros" love to be unimaginative and prefer adding new meanings to old words -_-)

Therefore, no, eac3to doesn't remove images from the video streams.
BUT the removal of audio frames MAY cause loss of synchronization,
generally speaking,
but I admit that I have no experience with seamless branching :-/
__________________
«Your software patents have expired.»

Last edited by filler56789; 13th November 2025 at 13:33. Reason: grammar
filler56789 is offline   Reply With Quote
Old 13th November 2025, 14:17   #3  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Quote:
Originally Posted by filler56789 View Post
BUT the removal of audio frames MAY cause loss of synchronization, generally speaking :-/
No, the point of removing the audio frames is to maintain sync for seamless branching.
Columbo is offline   Reply With Quote
Old 13th November 2025, 18:17   #4  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,458
Quote:
Originally Posted by Columbo View Post
No, the point of removing the audio frames is to maintain sync for seamless branching.
Thanks for erasing the part that says that I might be wrong.
__________________
«Your software patents have expired.»
filler56789 is offline   Reply With Quote
Old 13th November 2025, 19:05   #5  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,374
Quote:
Originally Posted by Columbo View Post
No, the point of removing the audio frames is to maintain sync for seamless branching.
This is how multiple M2TS files are generated: the cut is exact in video frames, but it cannot be exact in audio frames at the same time.

Therefore, audio frames are repeated at the end of one M2TS file and the beginning of the next, compensated for by timestamps, and these must be removed to generate complete audio while maintaining synchronization.
tebasuna51 is offline   Reply With Quote
Old 13th November 2025, 20:54   #6  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Yes, exactly what I said.
Columbo is offline   Reply With Quote
Old 14th November 2025, 08:04   #7  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,374
Quote:
Originally Posted by Columbo View Post
Yes, exactly what I said.
Of course, I just wanted to explain the reason.
tebasuna51 is offline   Reply With Quote
Old 14th November 2025, 11:55   #8  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Got it, thank you.
Columbo is offline   Reply With Quote
Old 1st March 2026, 13:59   #9  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,429
Everything written so far is not entirely correct.

There are no duplicate audio frames on Blu-rays!

The problem is MkVToolnix when muxing; there's a serious bug.

The workaround that eac3to and DGDemux use is OK, but it removes original audio frames, which ALWAYS leads to a slight synchronization issue.

Last edited by hubblec4; 1st March 2026 at 17:25.
hubblec4 is offline   Reply With Quote
Old 1st March 2026, 14:57   #10  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Strongs claims need strong evidence. May I ask for your evidence?
Columbo is offline   Reply With Quote
Old 1st March 2026, 15:56   #11  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,429
Hi

First the bug
https://codeberg.org/mbunkus/mkvtoolnix/issues/3728

My chapterEditor has a fix for that MKVToolNix bug
https://forum.videohelp.com/threads/...e6#post2754681

Unfortunately, I can't quickly find the relevant section in the Blu-ray specifications I have here.

But to summarize: Each play item must begin with a video keyframe, and the audio frame must not have an offset.

Finally, each play item may start an audio frame, as long as it's within the last video frame.

Inevitably, the last audio frame will "run" a tiny bit longer than the last video frame.

But no new audio frames may start after the last video frame.

And the problem is this: MKVToolNix appends the first video frame of the second play item directly after the timestamp of the last audio frame of the first play item. This creates a video gap of a few milliseconds. This quickly adds up when there are many play items.
hubblec4 is offline   Reply With Quote
Old 1st March 2026, 16:11   #12  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Don't fully follow you, but are you claiming no gaps correction is needed, or just that the issue is not audio frame duplication? domy has pretty clearly shown frame duplication without MKV being involved.

DG's gaps correction doesn't rely on duplication. It just accumulates elapsed time for audio and video and compares them. Kind of like Bresenham's algorithm.

Sounds like your MKV issue is a different thing than M2TS gaps correction not involving MKV.

Last edited by Columbo; 1st March 2026 at 16:26.
Columbo is offline   Reply With Quote
Old 1st March 2026, 16:32   #13  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,429
Eac3to and DGDemux work like this:
Audio and video times are continuously added together, and when the audio becomes approximately one frame longer than the video, an audio frame is simply discarded.

Yes, my chapterEditor (cE) doesn't perform any gap correction because it's not necessary.

All cE does is create a timestamp file for audio frames, which then tells MKVToolNix how to handle them. Each new play item is then appended directly to the previous one, seamlessly, for both video and audio.
hubblec4 is offline   Reply With Quote
Old 1st March 2026, 16:41   #14  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Yes, I know how eac3to and DG do correction. I am a DG Tools team member.

So this is exclusively an MKV issue? That's all I'm asking because your post claimed that there is never any duplicated audio frames but that is demonstraby false. It arises when demuxing ES. Read the spec about connection conditions.

I think preparing things for MKV muxing is different from demuxing ES from multiple seamless branched M2TS's.

Last edited by Columbo; 2nd March 2026 at 11:39.
Columbo is offline   Reply With Quote
Old 1st March 2026, 16:59   #15  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,429
It's definitely a problem for MKV, yes. But I'm not familiar with demuxing ES from m2ts files.

However, I've always searched the MKV files for "duplicate" audio frames, and by duplicate, I mean bit-identical.

In any case, MKVToolNix shows an Adler checksum for all frames, and this should be identical if there are duplicate audio frames. But I haven't found any identical Adler checksums at the transitions between one m2ts file and the next.
hubblec4 is offline   Reply With Quote
Old 1st March 2026, 19:33   #16  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
Gotcha, thanks for the clarification.
Columbo is offline   Reply With Quote
Old 2nd March 2026, 08:13   #17  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,374
Quote:
Originally Posted by hubblec4 View Post
It's definitely a problem for MKV, yes. But I'm not familiar with demuxing ES from m2ts files.

However, I've always searched the MKV files for "duplicate" audio frames, and by duplicate, I mean bit-identical.

In any case, MKVToolNix shows an Adler checksum for all frames, and this should be identical if there are duplicate audio frames. But I haven't found any identical Adler checksums at the transitions between one m2ts file and the next.
That may be, but searching in mkv's cannot prove that m2ts files (Blu-Ray) do not have duplicate audio frames:

Quote:
Originally Posted by hubblec4 View Post
There are no duplicate audio frames on Blu-rays!
I extracted audio tracks from two adjacent m2ts (seamless branching) and they are bit-identical frames (last and first).
tebasuna51 is offline   Reply With Quote
Old 2nd March 2026, 11:58   #18  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,429
Quote:
Originally Posted by tebasuna51 View Post
That may be, but searching in mkv's cannot prove that m2ts files (Blu-Ray) do not have duplicate audio frames:
Let's put it this way: for me, what's in the final MKV file is sufficient, since I completely trust MKVToolNix(MTX).

Mosu never programmed in gap correction or the removal of audio frames.

Every audio frame is used, and if no bit-identical frames are found, then there were no identical frames for this Blu-ray.



Quote:
Originally Posted by tebasuna51 View Post
I extracted audio tracks from two adjacent m2ts (seamless branching) and they are bit-identical frames (last and first).
Could you please provide the name of the Blu-ray.
I'm very sure it is only one of 10000 BDs which have identical frames.
hubblec4 is offline   Reply With Quote
Old 2nd March 2026, 14:29   #19  |  Link
Columbo
Registered Developer
 
Join Date: Sep 2025
Location: Chi-town
Posts: 148
MONSTERS_UNIVERSITY

See the FAQ here for some pretty pictures.

https://github.com/domyd/mlp

Last edited by Columbo; 3rd March 2026 at 01:40.
Columbo is offline   Reply With Quote
Old 2nd March 2026, 19:12   #20  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,374
The mlp demux is a exact method to extract even thd tracks (with frames 1/1200 ms), but with AC3 frames (32 ms) was more necesary like I show in 2012. All seamless branching BD's can be a example.
tebasuna51 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.