Skip to main content

vsoneliner

vsoneliner generates VapourSynth script file for VSPipe from commandline. It is for the situation where only the simplest VapourSynth script is needed, and where writing and keeping a script file becomes cumbersome.

Install vsoneliner:

python -m pip install vsoneliner

An Example of using vsoneliner using fish shell:

INPUT=(realpath "input.mkv") vspipe (python -m vsoneliner "import mvsfunc as mvf" "r\"$INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth\$(depth=10) |> .set_output()") -c y4m - | x264 --demuxer y4m --output "output.mkv" -

Excerpt:

python -m vsoneliner "import mvsfunc as mvf" "r\"$INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth\$(depth=10) |> .set_output()"
  • Each positional argument to vsoneliner corresponds to one line in the resulting Python script. In this example, we have two lines: import mvsfunc as mvf and r"INPUT" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output().
  • vsoneliner by default imports from vapoursynth import core and import vapoursynth as vs, but any additional imports have to be written manually, such as import mvsfunc as mvf in the example.
  • vsoneliner accepts Coconut language in the commandline. Coconut language's syntax is a strict superset of Python, which means if you don't want to learn it, you can write vanilla Python code and it will work just fine. Here in this example, r"INPUT" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output() transpiles to mvf.Depth(core.lsmas.LWLibavSource(r"INPUT"), depth=10).set_output().
  • vsoneliner saves the commands to a Python file with .vpy file extension and then print the path to the file to stdout before exiting. Use $() in a POSIX shell to feed this file to vspipe. vsoneliner also accepts --verbose argument, with which vsoneliner will also print the path to the file to stderr.

Release files for vsoneliner 0.0.2.post1

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

Source distribution (sdist)

Source distribution for vsoneliner 0.0.2.post1
File Size Uploaded
vsoneliner-0.0.2.post1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vsoneliner 0.0.2.post1
File Interpreter ABI Platform
vsoneliner-0.0.2.post1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / vsoneliner-0.0.2.post1.tar.gz

Download URL vsoneliner-0.0.2.post1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6bf8c08927379ead0373c633fbdfeb77c62f769be73c363577814d436befdf7f
BLAKE2b-256 checksum
How to use checksums
d98014e44b05260f33cbb3d100536ff23eeccbc7c07548093b83a31dbfd2a579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.4

Release files / vsoneliner-0.0.2.post1-py3-none-any.whl

Download URL vsoneliner-0.0.2.post1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
728c35ea0f1b2f2f96948b60b87de6274f21710cccecd6ad0790301fb86833e6
BLAKE2b-256 checksum
How to use checksums
ecb35201970596959fc82fb3ab920addb32ec388b37898f53caa30b4e589aa8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.2.post1 This release

2 release files

0.0.2

2 release files

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