Skip to main content

YUV4MPEG2 (.y4m) Reader/Writer

Project description

YUV4MPEG2 (.y4m) Reader/Writer


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


```python
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)
```

Project details


Release history Release notifications

History Node

1.1.1

This version
History Node

1.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
y4m-1.1.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Apr 30, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page