A raw source filter for VapourSynth
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vapoursynth_rawz-1.0.tar.gz.
File metadata
- Download URL: vapoursynth_rawz-1.0.tar.gz
- Upload date:
- Size: 996.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b328493b0c7510542127e30e519b0639df9c25e357eee0f19a03cadff34a919
|
|
| MD5 |
36051e28835e1d66f517428320a038b2
|
|
| BLAKE2b-256 |
56174e7e3b5893fddb2e6d9cf4ede8be895ed8ca399fa6cccb75cd714626cf9f
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0.tar.gz:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0.tar.gz -
Subject digest:
8b328493b0c7510542127e30e519b0639df9c25e357eee0f19a03cadff34a919 - Sigstore transparency entry: 1384326083
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-win_amd64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-win_amd64.whl
- Upload date:
- Size: 456.4 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbcbfe5308dcb35cb5d47afbcb335e27237de75ad4a01fa9cadc8bd97817456b
|
|
| MD5 |
17cc60851a293da67d00ef275b8f936d
|
|
| BLAKE2b-256 |
bed9c655775b67d8eb9742456f161f8fdfaccf56a62934bebe2f16252c103b0b
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-win_amd64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-win_amd64.whl -
Subject digest:
bbcbfe5308dcb35cb5d47afbcb335e27237de75ad4a01fa9cadc8bd97817456b - Sigstore transparency entry: 1384326257
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f9bb5f2f9451a15d37d3b8ec009784e1728aadeb0de1dde13811cc7521d78f
|
|
| MD5 |
87814aba2886eda0931f8ffb0c8f7e9f
|
|
| BLAKE2b-256 |
a540d4d5a033bedbdbdfae06ff9a50987f8f00b62eb1c85a5adf40037fd142ed
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-musllinux_1_2_x86_64.whl -
Subject digest:
a1f9bb5f2f9451a15d37d3b8ec009784e1728aadeb0de1dde13811cc7521d78f - Sigstore transparency entry: 1384326631
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf924c9b07ada9b12436460ac3d570500c703c94426be71e5117be2188cbdbc
|
|
| MD5 |
57e073cf8fcfd74f8e7ee21fc5f454a1
|
|
| BLAKE2b-256 |
172e65aca5464ccc45c513241608c0561283ebd5d1a747ebd3c08f1207e23913
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-musllinux_1_2_aarch64.whl -
Subject digest:
1cf924c9b07ada9b12436460ac3d570500c703c94426be71e5117be2188cbdbc - Sigstore transparency entry: 1384326557
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 209.5 kB
- Tags: Python 3, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d182fd2bee4c8b7de81617f1821a9ba16e2855285ea5033b9a757da36b51a6d6
|
|
| MD5 |
e095810695c4c919e6d9a202391d9a14
|
|
| BLAKE2b-256 |
d3eebe184ed2f2e8dd7fd3736b501c0b04a7fc5f415857337ce3ae4c064d032a
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
d182fd2bee4c8b7de81617f1821a9ba16e2855285ea5033b9a757da36b51a6d6 - Sigstore transparency entry: 1384326731
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 186.2 kB
- Tags: Python 3, manylinux: glibc 2.24+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8516cecd93d0745edc7b848eccc173732a630a78624b8e37614b7f0f0a99a9a5
|
|
| MD5 |
133f72733c27d0a016377cff4e2bd10b
|
|
| BLAKE2b-256 |
3aef85e11095c3fc66813c60183febf479a9d8137ec7720844b4c1b9d59deeb3
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
8516cecd93d0745edc7b848eccc173732a630a78624b8e37614b7f0f0a99a9a5 - Sigstore transparency entry: 1384326354
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3, macOS 15.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78225984a837952cda9560d8a2602425995f096fc08b484478274597704c6c7
|
|
| MD5 |
8ef1d005c70b197ebec10318ab3df751
|
|
| BLAKE2b-256 |
f2d7712507623991a59a3e781847b7b4d11ad2575d3caacfa64f523da5cf621d
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-macosx_15_0_x86_64.whl -
Subject digest:
c78225984a837952cda9560d8a2602425995f096fc08b484478274597704c6c7 - Sigstore transparency entry: 1384326158
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl.
File metadata
- Download URL: vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b53839cad40616e43c78c93f7c9a5e966ee9af8d11a25edeb9cbe181d3fd31d
|
|
| MD5 |
4fdf211ce7e3bdd776aae9b3c9591190
|
|
| BLAKE2b-256 |
8a9dafc227e8018fead4026a35b46c5f26b4810d13b4a6f2836a764fb2a587b7
|
Provenance
The following attestation bundles were made for vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl:
Publisher:
build.yml on vapoursynth/rawz-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_rawz-1.0-py3-none-macosx_15_0_arm64.whl -
Subject digest:
8b53839cad40616e43c78c93f7c9a5e966ee9af8d11a25edeb9cbe181d3fd31d - Sigstore transparency entry: 1384326448
- Sigstore integration time:
-
Permalink:
vapoursynth/rawz-pypi@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Branch / Tag:
refs/tags/r1 - Owner: https://github.com/vapoursynth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@61e125a397e7faee46621f8ee6cbfc4c25dfb13e -
Trigger Event:
push
-
Statement type: