As far as I understand ffmpeg-python
is main package in Python to operate ffmpeg
directly.
Now I want to take a video and save it's frames as separate files at some fps.
There are plenty of command line ways to do it, e.g. ffmpeg -i video.mp4 -vf fps=1 img/output%06d.png
described here
But I want to do it in Python. Also there are solutions [1] [2] that use Python's subprocess
to call ffmpeg
CLI, but it looks dirty for me.
Is there any way to to make it using ffmpeg-python
?