Thread: Chromashift
View Single Post
Old 18th December 2016, 01:08   #2  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Q1:
Mildly inefficient since luma gets shifted too but much shorter:
Code:
sl = 0
sr = 2
video = core.std.ShufflePlanes(clips=[video, core.std.CropRel(video, left=sl, right=sr).std.AddBorders(right=sl, left=sl)], planes=[0, 1, 2], colorfamily=vs.YUV)
Just make your own collection of helper scripts if you need it often

Q2: Yes
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote