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


Download files

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

Source Distribution

y4m-1.1.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file y4m-1.1.1.tar.gz.

File metadata

  • Download URL: y4m-1.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for y4m-1.1.1.tar.gz
Algorithm Hash digest
SHA256 dfc2dc5059bf459fd259a481683ad33ed2b85fc2f32c3764f859dfc7c77d1854
MD5 8a71f6de953803d7fe159144e65edd93
BLAKE2b-256 4e5d76bc09a47ece079ec015fd47e8e34e41989bf0b461750896045d0ba3766f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page