I have folder that contains some mp4 files I want to extract images from each of them in parallel and save it as:
filename_number.bmp
where filename is the input filename
how to do that using parallel and ffmpeg
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI'm using the example from your previous question to use as an example for GNU parallel
ls *.mp4 | parallel ffmpeg -i {} fr1/{.}_%d.jpg -hide_banner
I can adjust the answer if this is not quite what you want. The “{}” gets replaced by GNU parallel with the whole file name, and “{.}” gets replaced by the file name with the last segment, separated by periods, removed.