[FFmpeg-user] Batch extracting frames from multiple videos

Joseph Zaki joseph at loko.ai
Tue Sep 17 18:12:13 EEST 2019


Thanks JackDesBwa. Yes I'm on a windows box, but of curiosity, how would
you go about batch converting multiple .mp4 files on linux?




On Tue, Sep 17, 2019, 3:58 AM JackDesBwa <jackdesbwa at desbwa.org wrote:

> It seems to be Windows batch, so I personally cannot help a lot here, but I
> can give some indications.
> You probably can (as I usually do to check my own scripts before execution)
> replace the ffmpeg command by echo (or equivalent in windows) to check if
> the generated command arguments are exactly what you want and correct in
> consequence.
> Also, notice that fps=2 gives two images per seconds. One image every 2
> seconds is fps=0.5
>
> ffmpeg -i countdown.mp4 -vf fps=0.5 countdown-%06d.png works as you would
> expect on my Linux machine, so it is probably an error in variable
> manipulation in batch script, with which I am not competent to help.
>
> JackDesBwa
>
> Le mar. 17 sept. 2019 à 12:22, Joseph Zaki <joseph at loko.ai> a écrit :
>
> > Hi everyone,
> >
> > I'm new to ffmpeg and having some issues batching a process. I have
> several
> > dozen videos that I need to extract images every 2 seconds from.
> >
> > I tried this script: for %%a in ("*.mp4") do ffmpeg -i %%a -vf fps=2
> > "%%~na.%%06d.png
> >
> > But kept getting an error: Output file is empty, nothing was encoded
> (check
> > -ss / -t / -frames parameters if used)
> >
> > Can anyone point me in the right direction on how to fix this?
> >
> > Cheers,
> > JZ
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list