Advertisement
alseambusher

generator

Aug 8th, 2019
12,516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import skvideo.io
  2.  
  3. reader = skvideo.io.FFmpegReader(filename,
  4.                              inputdict={},
  5.                              outputdict={})
  6. def gen_frames():
  7.     for frame in reader.nextFrame():
  8.         yield frame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement