Log in

View Full Version : Turnleft usage


tebugg
20th July 2016, 17:53
hello everyone. i have a question about the turnleft avisynth command. is it possible to turnleft specific frames only in avisnyth? so that only those frames will get rotated and the rest of the video will stay the original rotation? thanks for your help.

Groucho2004
20th July 2016, 18:23
That only works with square frames. Usually they're not square so you would have to add padding (with "addborders" for example) to the video to square it. Isolating the frames to be turned can be done with Trim() (http://avisynth.nl/index.php/Trim).

Example:
v = colorbars(width = 640, height = 480, pixel_type = "yv12").killaudio()

v = v.addborders(0, 80, 0, 80)
a = v.trim(0, 9)
b = v.trim(10, 14).turnleft()
c = v.trim(15, 19)
return a++b++c

tebugg
20th July 2016, 19:47
That only works with square frames. Usually they're not square so you would have to add padding (with "addborders" for example) to the video to square it. Isolating the frames to be turned can be done with Trim() (http://avisynth.nl/index.php/Trim).

Example:
v = colorbars(width = 640, height = 480, pixel_type = "yv12").killaudio()

v = v.addborders(0, 80, 0, 80)
a = v.trim(0, 9)
b = v.trim(10, 14).turnleft()
c = v.trim(15, 19)
return a++b++c

awesome reply. thank you.