I am trying to extract a single frame at every second from a video , Using this command on command line using ffmpeg ffmpeg -i input_file.mp4 -r 1 %04d.jpg
I am able to do this task using ffmpeg on command line.
But I want to use same command in python script, how do I do that and what should be the code? I am very new to this field.