Extract Video Frames In Python

前端 未结 6 1194
别那么骄傲
别那么骄傲 2020-12-13 09:59

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 =          


        
6条回答
  •  北海茫月
    2020-12-13 11:01

    There is much easier way to do this. Just use OpenCV and get the all the frame required.

    refer to the answer here: How to extract frames from Videos

    It's done using Python3 and OpenCV 3+

提交回复
热议问题