Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/setsugennoao/vapoursynth-ts
TypeScript bindings for VapourSynth
https://github.com/setsugennoao/vapoursynth-ts
typescript vapoursynth video
Last synced: about 1 month ago
JSON representation
TypeScript bindings for VapourSynth
- Host: GitHub
- URL: https://github.com/setsugennoao/vapoursynth-ts
- Owner: Setsugennoao
- License: gpl-3.0
- Created: 2022-04-06T14:49:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T13:06:15.000Z (over 1 year ago)
- Last Synced: 2024-05-02T03:05:36.954Z (8 months ago)
- Topics: typescript, vapoursynth, video
- Language: C++
- Homepage: https://setsugennoao.github.io/vapoursynth-ts/index.html
- Size: 1020 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript bindings for VapourSynth
## Installation
```sh
yarn add vapoursynth-ts
```## Getting started
```ts
import { core, PyScript } from 'vapoursynth-ts'// Like you would in the Python bindings
const source = core.lsmas.LibavSMASHSource('./haruhi_01.mkv')// can also import a Python script
const myscript = new PyScript('./haruhi_01.vpy')
const myscript2 = new PyScript('./haruhi_01v2.vpy')// Boring!!
const comp = core.std.StackVertical([
myscript.getOutput(0).clip,
myscript2.getOutput(0).clip
])// Way better 👍
const bitOfGrain = comp.grain.Add(10, 15)// Way more betterer 👍👍
const lottaOfGrain = comp.grain.Add({ var: 26, uvar: 12 })source.setOutput(0)
comp.setOutput(1)
bitOfGrain.setOutput(2)
lottaOfGrain.setOutput(3)```
## Specifying core flags
```ts
import { core, CoreCreationFlags, setCoreCreationFlags } from 'vapoursynth-ts'// Has to be set before any call to core has been done
setCoreCreationFlags(
CoreCreationFlags.DisableAutoLoading,
CoreCreationFlags.DisableLibraryUnloading,
CoreCreationFlags.EnableGraphInspection
)const clip = core.std.BlankClip()
```