Source/Input

  • LWLibavSource
video = core.lsmas.LWLibavSource(source=path) # Good for .ts/.tp/.m2ts/.mkv
  • ffms2
video = core.ffms2.Source(source=path) # Good for .mp4

Info:

This is a relative path (on Windows):

video = core.lsmas.LWLibavSource(source=r'video_cut\cut.mkv')

This references a file (cut.mkv) in a subdirectory of the current directory. The current directory is the one where we save our .vpy file.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

So you just have to make sure you save the script.vpy in this location. This way, the relative path will work.