HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: duelle on 2014-06-20 02:23:11

Title: Way to split AAC file without reencoding?
Post by: duelle on 2014-06-20 02:23:11
I have a 90 minute AAC file I'd like to split without reencoding and was wondering if it was possible in foobar2000. The only other way to do it I've been able to find is BeSplit, which is incredibly old and requires WinAmp for some reason. I'd rather avoid that because in foobar the chapters show up (it's actually a video from a concert) and I'd rather not have to manually find the start and end points of each song.
Title: Way to split AAC file without reencoding?
Post by: Brazil2 on 2014-06-20 16:18:04
mp3DirectCut (http://mpesch3.de1.cc/mp3dc.html), despite its name it can also cut AAC files.
Title: Way to split AAC file without reencoding?
Post by: nu774 on 2014-06-21 04:13:43
I'd rather avoid that because in foobar the chapters show up (it's actually a video from a concert) and I'd rather not have to manually find the start and end points of each song.

If I understand you correctly, it is contained in MP4/M4A container and has chapters which fb2k can show as sub-tracks,  and you want to split it according to chapters?
Then try https://github.com/nu774/m4acut/releases (https://github.com/nu774/m4acut/releases)

It's a simple CLI tool, so you have to use it from command prompt.
However, it can automatically split input according to chapter points or cuesheet, preserving original tags, taking care of frame boundaries/padding, enabling perfect gapless playback.
You can manually split by specifying start/end point if you want.
All other tools I know don't support gapless playback of resulting files (that's why I wrote it).
Title: Re: Way to split AAC file without reencoding?
Post by: squirtmph on 2019-03-01 03:22:52
can you please post a tutorial, I cannot find any tutorial how to use CMD command, please!
Title: Re: Way to split AAC file without reencoding?
Post by: sveakul on 2019-03-01 06:20:27
can you please post a tutorial, I cannot find any tutorial how to use CMD command, please!
First:
https://www.lifewire.com/command-prompt-2625840 (https://www.lifewire.com/command-prompt-2625840)  (just one example of many)

Then, find the readme on the page here and experiment:
https://github.com/nu774/m4acut (https://github.com/nu774/m4acut)

BTW, thanks nu774 for a boss tool.  squirtmph, if your needs are less exacting you might take a look at LosslessCut:
https://github.com/mifi/lossless-cut (https://github.com/mifi/lossless-cut)


Title: Re: Way to split AAC file without reencoding?
Post by: squirtmph on 2019-05-19 22:10:00
Thank you very much!


I lost password, its why it take me quite long, to response
Title: Re: Way to split AAC file without reencoding?
Post by: j7n on 2019-05-20 02:35:52
As the thread has already been bumped, BeSplit is very good for .aac .mpa .mp3 .ac3 .dts formats when absolute accuracy isn't needed. Other tools don't process padding/reservoir for non-mp4 formats either. BeSplit doesn't depend on Winamp.

I can copy track durations in fractional seconds in Foobar ( %length_seconds_fp% ) with Text Tools, then give the list of times to BeSplit in "relative" mode, and with one invocation of the command-line it will split all of them on frame boundaries. Other tools may require absolute times, which can't be summed up with Foobar's titleformatting, and/or split only one segment at a time.