HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: bmacd615 on 2021-05-30 18:09:08

Title: Batch Process to make short Audio Clip
Post by: bmacd615 on 2021-05-30 18:09:08
I have many mp3 or flac files.  I would like to select, for example, a bunch of files and take the first 10 seconds of music and save a short audio clip.  Ideally it would retain the name tags etc.  Or to be more complicated, I could customize a time window of the file to save.
What foobar component will allow this?
Title: Re: Batch Process to make short Audio Clip
Post by: guruboolez on 2021-05-30 21:07:07
You can do it with foobar2000 converter without any external component:

Right clic on the playlist \ Convert \ …
On the right, clic on the “OTHER” option
On this window enable “Preview Generation”: it generates short previews instead of converting entire source tracks.
Below you can choose between a fixed length and a percentage.

 Here is an example with 20 seconds samples with Opus 24 kbps set as output:
https://www109.zippyshare.com/v/zzRXVj8A/file.html
Title: Re: Batch Process to make short Audio Clip
Post by: bmacd615 on 2021-06-02 02:11:38
???
After right clicking on my play list, then Convert, I have no Other option and I see no preview options under the 3 options available.
Title: Re: Batch Process to make short Audio Clip
Post by: A_Man_Eating_Duck on 2021-06-02 02:50:44
click the three dots as guruboolez says in the first step.

Quick convert
[default]
...    <---(click this one)
Title: Re: Batch Process to make short Audio Clip
Post by: nu774 on 2021-06-02 06:57:03
In ffmpeg, just like this:
Code: [Select]
ffmpeg -t 10 -i IN.flac -c copy OUT.flac
You can also set start time by adding -ss option.

Pros: very fast, no transcoding, flexible
Cons: not sample accurate since it can only cut at frame boundaries, requires shell scripting for batch processing
SimplePortal 1.0.0 RC1 © 2008-2021