[FFmpeg-user] Batch extracting frames from multiple videos

JackDesBwa jackdesbwa at desbwa.org
Tue Sep 17 19:16:24 EEST 2019


> Thanks JackDesBwa.
>

Does it mean that you found your error with the "echo" technique?

of curiosity, how would you go about batch converting multiple .mp4 files
> on linux?
>

For basic cases, like all files are in the same directory, I would do
something similar to what you did: let the shell interpretor list the
files, iterate on them and build the command line by substituting parts
with loop variable. I would probably add quotes to prevent from files with
space to break the command and a "basename" subcommand to remove the
extension of the iteration name.

For more complex cases, it is to study case by case, but I would probably
start by listing the file paths in a text file and iterate on the lines to
apply similar technique.

JackDesBwa


More information about the ffmpeg-user mailing list