In FFmpeg wiki: https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
we use cmd:
fmpeg -i input.flv -ss 00:00:14.435 -vframes 1 out.png
We get one picture in Specified time
ffmpeg -i input.flv -vf fps=1 out%d.png
then get lots of images. One picture per second.
How to use PyAV to achived the same goal ? Does anybody make a demo? Thanks.
BTW: by use cmd:
ffmpeg -i input.flv-r 1 -y -f image2 -s 240*320 pc%3d.jpg
use '-r' arg seems to be the same purpose, Which method is more efficient ?