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
import vapoursynth as vs | |
import functools | |
import numpy as np | |
core = vs.core | |
def extended_dimension(src, dimensions=[0, 0, 0, 0]): | |
""" | |
Extends the edges of the clip using the given extension parameters (like negative cropping in Avisynth) | |
src is the source clip. dimensions is an array of integer values in the following format: [left, right, top, bottom]""" |
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
AddAutoloadDir("C:\Program Files (x86)\AviSynth+\scripts", true) | |
LWLibavVideoSource("C:\Anime Encoding\Kaiji\Gyakkyou Burai Kaiji Ultimate Survivor\KAIJI_1\VIDEO_TS\EP 01\Kaiji - EP01 LosslessIVTC.mkv") | |
ConvertFromDoubleWidth(10) | |
ConvertBits(8) | |
#Don't expect anything readable. See the Vapoursynth script at the end for more details. | |
#844 x 478 -------> 848x480 | |
#Spline36Resize(844, 478, 4, 2, -4, 0) |