I want to extract video frames and save them as image.
import os, sys from PIL import Image a, b, c = os.popen3(\"ffmpeg -i test.avi\") out = c.read() dp =
There is much easier way to do this. Just use OpenCV and get the all the frame required.
OpenCV
refer to the answer here: How to extract frames from Videos
It's done using Python3 and OpenCV 3+
Python3
OpenCV 3+