Skip to main content

fpng for VapourSynth

Project description

fpng for VapourSynth

This is a small plugin which allows fpng to be used with VapourSynth.

The motivation for this plugin was to dump frames of a VapourSynth script to PNGs faster than was possible with imwri.

Usage

Plugin Documentation

Usage is similar to imwri.Write() with ImageMagick options replaced with fpng options.

.. function:: Write(clip clip, string filename[, int firstnum=0, int compression=1, bint overwrite=False, clip alpha])
   :module: fpng

   Write will write each frame to disk as it's requested. If a frame is never requested it's also never written to disk.

   Parameters:
      clip
         Input clip. Only RGB24 is supported.

      filename
         The filename string must have one or more frame number substitutions. The syntax is printf style. For example "image%06d.png" or "/images/%d.png" is common usage.

      firstnum
         The first image number in the sequence to write.

      compression
         Matches fpng flags which are:
         0 - fast compression
         1 - slow compression (smaller output file)
         2 - uncompressed

      overwrite
         Overwrite already existing files. This option also disables the requirement that output filenames contain a number.

      alpha
         A grayscale clip containing the alpha channel for the image to write. Apart from being grayscale, its properties must be identical to the main *clip*.

Example Python Script

The examples/dump_frames.py script included in this repository is not necessary to use the plugin, but may be useful either to directly dump frames or as a reference for the plugin usage.

usage: dump_frames.py [-h] -o OUTPUT [--filename FILENAME] [--overwrite] script

Dump frames from VapourSynth script. Script will be converted to RGB24 using frame properties if they're available.

positional arguments:
  script                The VapourSynth script to fetch frames from

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        The output directory for dumped images (default: None)
  --filename FILENAME   The filename template for dumped images (output is always .png) (default: frame_%d)
  --overwrite           Set to overwrite existing files (default: False)

Bundled Dependencies

Some dependencies are directly copied into the src/ directory from their respective projects. It is the author's understanding that this usage is compatible with the applicable licenses.

From fpng fetched 2022-04-30

  • fpng.h
  • fpng.cpp

From libp2p fetched 2022-04-30

  • p2p.h
  • p2p_api.h
  • p2p_api.cpp
  • v210.cpp

From vs-imwri fetched 2022-04-30

  • vsutf16.h
  • Several methods within plugin.cpp also directly come from imwri.cpp

vapoursynth as a submodule for

  • VapourSynth4.h

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

vsfpng-1.1.tar.gz (645.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vsfpng-1.1-py3-none-win_amd64.whl (47.2 kB view details)

Uploaded Python 3Windows x86-64

vsfpng-1.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (93.8 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

vsfpng-1.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (96.5 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

vsfpng-1.1-py3-none-macosx_15_0_x86_64.whl (72.7 kB view details)

Uploaded Python 3macOS 15.0+ x86-64

vsfpng-1.1-py3-none-macosx_15_0_arm64.whl (66.4 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

File details

Details for the file vsfpng-1.1.tar.gz.

File metadata

  • Download URL: vsfpng-1.1.tar.gz
  • Upload date:
  • Size: 645.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vsfpng-1.1.tar.gz
Algorithm Hash digest
SHA256 5a8e4670b41521a8fbdaff5ec4b71dab813ec140e7dc478e22eddcc119c5bddd
MD5 eaba1ea16b5e0dfcc8623098984f9b6e
BLAKE2b-256 8bd8bd871aa53d8c40593ea69c1215e8163ea82ba3c215c06bbf426b8f1d2af9

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1.tar.gz:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsfpng-1.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: vsfpng-1.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vsfpng-1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 835a75f5a37f3bf575da5373761be731bf4c9cd0ec085d3b88fcb1f68c18e540
MD5 401d675fe19ffc1f48205bba6816588f
BLAKE2b-256 06e0c4f4de1fa6ea68419c28ac0e6947319449e48a02f1bfaa1aebdbb9b80b2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1-py3-none-win_amd64.whl:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsfpng-1.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vsfpng-1.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d442475eaf3c148b04185675d7610e45a9aef5843c3bd1e2cb46761fe1d9be7
MD5 88f42570f431ddeaa0f8b0e8467e4104
BLAKE2b-256 f8de1b49147a43627216e7c5b990c2cea141eb2ab4f438f56784302c94ebf1fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsfpng-1.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vsfpng-1.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6f45603a4cddb5b72f3d19be0a330864c68e26c132160ee871a4a803cdc62db9
MD5 8e50dbae682b94119c37cdce4a59286c
BLAKE2b-256 1ecf8b921a0a8bdb657e49326e70b3dc11a144e7f9fbdac8bdda4f346481a3e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsfpng-1.1-py3-none-macosx_15_0_x86_64.whl.

File metadata

  • Download URL: vsfpng-1.1-py3-none-macosx_15_0_x86_64.whl
  • Upload date:
  • Size: 72.7 kB
  • Tags: Python 3, macOS 15.0+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vsfpng-1.1-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 71b75d1100ed77254ead8c2a9ec0baa5debaa5535666180cd686751581603278
MD5 f491689c024627f85869f72c5a934e47
BLAKE2b-256 13e837f1e06f66782d8887edd1d4471b6be2bf296399cfde1529a752dd9c39c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1-py3-none-macosx_15_0_x86_64.whl:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsfpng-1.1-py3-none-macosx_15_0_arm64.whl.

File metadata

  • Download URL: vsfpng-1.1-py3-none-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 66.4 kB
  • Tags: Python 3, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vsfpng-1.1-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fb2514cbcbd7bbf858fba84e1bff34c22146b70426d882eaf3c421c7008a7cd6
MD5 f8672286bfe77b8b655c7c4b3fffe82c
BLAKE2b-256 81dfc5db8b0d15bdf3bd516ecdea6dc97f2e61bccbb3074a8c94a3348ae90ccd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsfpng-1.1-py3-none-macosx_15_0_arm64.whl:

Publisher: build.yaml on Mikewando/vsfpng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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