Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x

Cutting middle of AC3 losslessly

5 Replies, 938 Views

Hi all,

I'm trying to sync a DVD track to a webrip. The DVD contains three extra frames during once scene in the middle of the movie, what's the best way to cut the audio? 

I've tried Womble, which can usually do it losslessly but for some reason, even if I select a reference for the audio and match it, it still insists on re-encoding the entire audio file. 

I've also tried delaycut, but can only see the options of cutting the file at the beginning or end, not the middle. I'm using the latest version - do I have to make two files with delay cut (one before the cut and one after the cut) and then join them? 

Finally there is eac3to, however same problem, I'm fine with cutting the beginning and end of files, but can't see any way in the help guide to cut out the middle. 

I'm sure it's simple and I'm just having a moment!

Idk if there's a better way but yeah, I'd do it by doing two cuts. Beginning, and end, and join.
(This post was last modified: 2021-04-09, 08:56 PM by TomArrow.)
eac3to can definitely remove or loop audio within a track losslessly (ie no transcoding) using the -edit command. Obviously the frames of AC-3 are larger than other formats (32ms) so you will have to do some detective work to make sure you get the edit point and duration bang on
Aye, split it, chop it, join it back together again. This is what I was doing with stuff like Near Dark DVD audio. You can literally just concat the bits back together at the end if you want, since there's no global header, just the frame headers. Just make sure you're converting back and forth accurately, as @zoidberg says. 48 kHz DVD AC-3 is 1536 samples per frame so 1536/48000 = 0.032 sec => 32 ms.

You can, in fact, do the entire thing in a hex editor, if you're a masochist. (*Waves* hi)
Doing two cuts works.
Sorry for the delay everyone, thanks to all who replied I did the two cuts and join option, all works fine. Cheers

Possibly Related Threads…
Thread Author Replies Views Last Post
  Remap AC3 channels losslessly? alleycat 2 631 2021-10-23, 11:29 PM
Last Post: alleycat

Users browsing this thread: 1 Guest(s)