Created
December 2, 2012 23:19
-
-
Save torque/4191543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os,sys | |
import vapoursynth as vs | |
core = vs.Core() | |
plugin_dir = "/usr/local/lib/" | |
core.std.LoadPlugin("{}libffms2.2.dylib".format(plugin_dir)) | |
core.std.LoadPlugin("{}libscxvid.dylib".format(plugin_dir)) | |
# print("%s" % core.list_functions()) # list all functions | |
input_video = os.path.abspath(sys.argv[1]) | |
vid = core.ffms2.Source(input_video) | |
vid = core.resize.Bicubic(vid, format=vs.YUV420P8) | |
vid = core.scxvid.Scxvid(vid,"{}.scxvid".format(input_video)) | |
devnull = open('/dev/null', 'w') | |
vid.output(devnull, y4m=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment