I need a simple (preferably command line based) tool to extract a segment from some existing mp3 file.
audacity is much too complex for me.
Ideally, I would like a command like
extract-mp3-segment --from 1:20 --to 2:40 --output myoutput.mp3 frominput.mp3
where 1:20
is the start time 1 minute 20 seconds
where 2:40
is the end time i.e. 2 minutes 40 seconds
where myoutput.mp3
is the resulting mp3 sound file (to create)
where frominput.mp3
is the large original mp3 sound file
This is on some old Ubuntu 14.04.5 distribution, x86-64
(the motivation is to extract small religious songs for a funeral, I managed to download the file (from Youtube) and to convert them to mp3)
addenda
Actually I found and used cutmp3
-i /path/to/input.mp3
before-acodec copy
otherwise I had the errorUnknown decoder 'copy'
. In fact I even put it in front of the other options. – Ludovic Kuty Dec 21 '22 at 10:01