goodness (1/2):

Replace your for loops and basename trickery with the placeholders like {.}, "filename without extension"

parallel ffmpeg -t 00:10 -i {} -c:v h264 -an -vf scale=640:-1 {.}_10.mp4 ::: *mp4

Another advantage is that it runs in parallel, of course!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.