Hi, you can use standard Unix methods for batch processing, e.g. in bash:
for i in *.mp3; do ffmpeg -ss 00:00:30.000 -i "$i" -c copy "$(basename $i .mp3)-output.mp3"
This will cut the first 30 seconds from each file ending in .mp3, creating a file with the same name and -output at the end. Instead of -c copy, you can add any additional ffmpeg arguments regarding the output.
If you want to leverage parallel processing, you can use xargs instead (note that this will disable interactive input in ffmpeg, e.g. asking for overwrites):
ls *.mp3 | xargs -P 4 -I '{}' bash -c 'ffmpeg -ss 00:00:30.000 -i "{}" -c copy "$(basename {} .mp3)-output.mp3"
Again, replace -c copy by any output parameters you'd like to use, and replace -P 4 by the number of processes you want to start in parallel.
Let us know if you have any further questions. Kind regards, LuKaRo On 1/23/22 17:28, Børge Wedel Müller wrote:
Hi I have searched over and over again, so this is last resort :-) I have approx 3000 audio files MP3, and I need to remove the first 30 seconds of each and everyone of the files. I am using a LINUX system. (Debian) I hope you can learn me how to remove these first annoying 30 seconds i one batch. Thanks. Best /Børge Wedel Müller _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
