FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ticapix/python-y4m: YUV4MPEG2 (.y4m) Reader/Writer · GitHub

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    pass


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 = f.read(1024)
            if not data:
                break
            parser.decode(data)

About

YUV4MPEG2 (.y4m) Reader/Writer

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL