[FFmpeg-user] How can I remove the first 30 seconds of 3000 MP3 files

Carl Zwanzig cpz at tuunq.com
Mon Jan 24 20:18:53 EET 2022


On 1/24/2022 10:09 AM, Ferdi Scholten wrote:
> The bash command is not complete, the do statement needs to be closed with 
> done;
> like this:
> 
> for i in *.mp3; do ffmpeg -ss 00:00:30.000 -i "$i" -c copy "$(basename $i 
> .mp3)-output.mp3" done
> 
> otherwise bash will prompt for more commands to follow do.

That's needs a semicolon before 'done'.
(e.g "for i in *.txt; do ls -l $i; done")

z!


More information about the ffmpeg-user mailing list