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
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.