Questions tagged [vapoursynth]

VapourSynth is a Python module (with its own library) for video manipulation - non-linear video editing. It has been heavily inspired by AviSynth but instead of its own scripting language uses Python, so there is no need to learn a special language.

VapourSynth is a Python module with its own library designated for video manipulation (non-linear video editing).

It has been heavily inspired by AviSynth but instead of its own scripting language it uses Python, so there is no need to learn a special language.

It is bundled with VSPipe command line utility, a specialized Python interpret which produces raw or uncompressed video output suitable for the next processing with video conversion programs, e.g. FFmpeg cross-platform command-line tool.

There is a specialized editor for VapourSynth script, free VapourSynth Editor with useful syntax completion, preview functionality, and output encoding.

8 questions
3
votes
1 answer

How can I send audio to FFMPEG with Vapoursynth?

Vapoursynth officially added audio support in September, and had it in testing before then. Since it now supports audio, I'm looking to convert over some old Avisynth projects to Vapoursynth. Part of this is driven by my familiarity with Python, and…
Katherine1
  • 195
  • 1
  • 2
  • 14
3
votes
2 answers

Vapoursynth output nodes in Python main(argv) function using vspipe

When vspipe calls a main Python program how do we set the output node? The following does not work: def main(argv): ... ... vapoursynth code ... clip.set_output() if __name__ == "__main__": main(sys.argv[1:]) Neither does…
Cary Knoop
  • 51
  • 4
2
votes
1 answer

Get timestamp of video frame using VapourSynth ffms2 plugin

I'm using this snippet as video source to mess with it later: import vapoursynth as vs core = vs.core core.std.LoadPlugin("/usr/local/lib/libffms2.so") video = core.ffms2.Source("videotest.mkv") How can i get timestamp of specified frame or get…
w1kl4s
  • 127
  • 2
  • 12
2
votes
1 answer

ImportError (encodings) when calling video player with python script from parent media center Kodi

I'm trying to use the video player mpv with vapoursynth filter, which itself uses Python 3, as external player in the media center Kodi. mpv shortly flashes up in the Dock, then it crashes, accompanied with the error message: "mpv quit…
RyuX51
  • 2,779
  • 3
  • 26
  • 33
2
votes
1 answer

Python libass or VapourSynth?

I am using VapourSynth as libass wrapper for a video preview of an application wich generates special .ass files, the returned video frame should be outputted to a QImage object of pyqt4. I've read VapourSynth documentation about get_read_ptr, they…
1
vote
2 answers

Attribute Error with Python Library VapourSynth

I've installed Python 3.7 and Vapoursynth library from this link. Now I'm trying to open a .mp4 video, but there's an attribute error: AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace? How do I solve this…
Jessica Martini
  • 253
  • 2
  • 3
  • 11
0
votes
2 answers

Convert from one range to another

I have two sets of ranges that I need to be translated from one to the other. The first range is -100 ↔ 100 with 0 being default. The second range is 0.0 ↔ 10.0 with 1 being default. I am working in AS3 with the first range and the second range is a…
Ronnie
  • 11,138
  • 21
  • 78
  • 140
-3
votes
2 answers

Getting NameError: name 'video' is not defined in Vapoursynth/Python

Trying to make a gif in vapoursynth, followed tutorials yet keep getting name error. If anyone could help explain what's wrong with it and how to fix it, I would appreciate it. Failed to initialize script. Failed to evaluate the script: Python…
user12542029