Skip to main content

Description

Raw video reader library and VapourSynth frontend.

VapourSynth Usage

rawz.Source(string source, int "width", int "height", int "format",
  string "packing", string "offset", int "alignment", int "y4m",
  bint "alpha", int "fpsnum", int "fpsden", int "sarnum", int "sarden")
Parameters:
source

Path to raw file. If the path ends with “.y4m”, it will be processed as a YUV4MPEG2 (Y4M) file. For Y4M files, no other parameters are required.

width

Width of luma plane. The VapourSynth clip will be rounded-up to the nearest multiple of the chroma subsampling ratio. For example, a 639x479 (4:2:0) source will produce a 640x480 clip. The padding pixels contain uninitialized values.

Ignored for Y4M files. Required for other files.

height

Height of luma plane.

Ignored for Y4M files. Required for other files.

format

VapourSynth format ID corresponding to the raw format. For interleaved raws, the format corresponds to the de-interleaved planar data.

Ignored for Y4M files. Required for other files.

packing

Interleaving format. Takes precedence over the specified VapourSynth format in case of conflict. If not specified, the input is assumed to be planar.

Supported packing modes:

  • argb: 32 or 64-bit word with 8 or 16-bit elements, with alpha channel in MSB

  • rgba: Same as argb, but with alpha channel in LSB

  • rgb: 24 or 48-bit packed word. Channel order R-G-B

  • rgb30: D3D11 A2R10G10B10 bitfields

  • nv: Biplanar with interleaved chroma samples

  • yuyv: 4:2:2 packing with sample sequence (byte-wise) Y-U-Y-V

  • uyvy: Same as yuyv, but with alternate sequence U-Y-V-Y

  • v210: ProRes v210

Ignored for Y4M files.

offset

Offset to video data within file. This can be used to read pixel data from image formats such as BMP, EXR, TIFF, etc.

alignment

Log2 alignment for scanline. For example, BMP files are 4-byte aligned, so the appropriate value would be 2. v210 alignment is handled automatically.

y4m

Y4M handling mode:

  • -1: Disable Y4M

  • 0: Detected Y4M based on file extension (default)

  • 1: Force Y4M

alpha

If true, the alpha plane (e.g. argb, rgba, rgb30) is returned as an embedded video frame (_Alpha).

Default: false

fpsnum

Framerate numerator. Overridden by embedded Y4M metadata.

Default: 25

fpsden

Framerate denominator.

Default: 1

sarnum:

Sample aspect ratio numerator. Overridden by embedded Y4M metadata.

Default: 0 (undefined)

sarden:

SAR denominator.

Default: 0

Other remarks:

If the source has an alternative channel order (e.g. BGR, GBR), use std.ShufflePlanes after loading the raw:

# GBRP file
c = core.rawz.Source('myfile.bin', width=1, height=1, format=vs.RGB24)
c = core.std.ShufflePlanes(c, [2, 0, 1], vs.RGB)

If the source pixel values need some other adjustment (e.g. endianness or mixed-depth), use std.Lut:

# Big-endian RGBP file
c = core.rawz.Source('myfile.bin', width=1, height=1, format=vs.RGB48)
c = core.std.Lut(c, function=lambda x: int(x >> 8) | ((x & 0xFF) << 8))
c = core.std.ShufflePlanes(c, [2, 0, 1], vs.RGB)

# 2-bit alpha from A2R10G10B10 file
c = core.rawz.Source('myfile.bin', width=1, height=1, format=vs.RGB30, packing='rgb30')
a = core.std.PropToClip(c)
a = core.std.Lut(a, function=lambda x: min(x * 65535 / 3, 65535))

Compilation

Be sure to fetch the submodules with git submodules update –init.

Use the Makefile.

Metadata

Release files for vapoursynth-rawz 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vapoursynth-rawz 1.0
File Size Uploaded Provenance
vapoursynth_rawz-1.0.tar.gz 996.2 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-rawz 1.0
File
vapoursynth_rawz-1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details
vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details
vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details

Total release size: 4.0 MB

Release files / vapoursynth_rawz-1.0.tar.gz

Download URL vapoursynth_rawz-1.0.tar.gz
Size 996.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8b328493b0c7510542127e30e519b0639df9c25e357eee0f19a03cadff34a919
BLAKE2b-256 checksum
How to use checksums
56174e7e3b5893fddb2e6d9cf4ede8be895ed8ca399fa6cccb75cd714626cf9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-win_amd64.whl

Download URL vapoursynth_rawz-1.0-py3-none-win_amd64.whl
Size 456.4 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
bbcbfe5308dcb35cb5d47afbcb335e27237de75ad4a01fa9cadc8bd97817456b
BLAKE2b-256 checksum
How to use checksums
bed9c655775b67d8eb9742456f161f8fdfaccf56a62934bebe2f16252c103b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl

Download URL vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a1f9bb5f2f9451a15d37d3b8ec009784e1728aadeb0de1dde13811cc7521d78f
BLAKE2b-256 checksum
How to use checksums
a540d4d5a033bedbdbdfae06ff9a50987f8f00b62eb1c85a5adf40037fd142ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl

Download URL vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl
Size 1.0 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1cf924c9b07ada9b12436460ac3d570500c703c94426be71e5117be2188cbdbc
BLAKE2b-256 checksum
How to use checksums
172e65aca5464ccc45c513241608c0561283ebd5d1a747ebd3c08f1207e23913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 209.5 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d182fd2bee4c8b7de81617f1821a9ba16e2855285ea5033b9a757da36b51a6d6
BLAKE2b-256 checksum
How to use checksums
d3eebe184ed2f2e8dd7fd3736b501c0b04a7fc5f415857337ce3ae4c064d032a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 186.2 kB
Tags Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8516cecd93d0745edc7b848eccc173732a630a78624b8e37614b7f0f0a99a9a5
BLAKE2b-256 checksum
How to use checksums
3aef85e11095c3fc66813c60183febf479a9d8137ec7720844b4c1b9d59deeb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl

Download URL vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl
Size 39.9 kB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
c78225984a837952cda9560d8a2602425995f096fc08b484478274597704c6c7
BLAKE2b-256 checksum
How to use checksums
f2d7712507623991a59a3e781847b7b4d11ad2575d3caacfa64f523da5cf621d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl

Download URL vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl
Size 30.8 kB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
8b53839cad40616e43c78c93f7c9a5e966ee9af8d11a25edeb9cbe181d3fd31d
BLAKE2b-256 checksum
How to use checksums
8a9dafc227e8018fead4026a35b46c5f26b4810d13b4a6f2836a764fb2a587b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Security for vapoursynth-rawz 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for vapoursynth_rawz-1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

8 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page