ffmpeg -i file -c:v libwebp -vf 'fps=1/".($Duration/10)."'-vsync vfr img%01d.webp
I first find out the duration of the video, then specify how many seconds it is necessary to snatch the frame.
The question is, is it possible to do the same without first calculating how many seconds to snatch frames???
overlay=(W-w)/2:(H-h)/2. Isn't there a similar solution? A variable that contains the duration... – Дмитрий Варзанов Jan 27 '21 at 05:25ffprobeto get the duration. – llogan Jan 27 '21 at 06:04