skip to navigation
skip to content

y4m 1.1

YUV4MPEG2 (.y4m) Reader/Writer

Latest Version: 1.1.1

YUV4MPEG2 (.y4m) Reader/Writer

tested with python-2.7, python-3.3 and python3.4

import sys
import y4m

def process_frame(frame):
# do something with the frame

if __name__ == '__main__':

parser = y4m.Reader(process_frame, verbose=True)
# simulate chunk of data
infd = sys.stdin
if sys.hexversion >= 0x03000000: # Python >= 3
infd = sys.stdin.buffer

with infd as f:
while True:
data =
if not data:
File Type Py Version Uploaded on Size
y4m-1.1.tar.gz (md5) Source 2014-04-30 2KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 74 downloads in the last week
  • 248 downloads in the last month