View Full Version : Wrong angle, how to fix?
color
29th September 2018, 11:49
I got a movie filmed with a vhs-camera but its in an angle (sadly the original movie does not exist anymore so this is the only copy.) I don't realy know what its called when its not "straight".
Also, the camera is changing a bit, is it possible to crop the black automaticly frame per frame?
It needs to go from:
This - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - to This:
https://preview.ibb.co/fP8xOe/angle.png (https://ibb.co/fGQ0bz)
StainlessS
29th September 2018, 13:39
Look to
DavidHorman:- http://horman.net/avisynth/
(maybe Quad)
and
VCMohan plugins:- http://www.avisynth.nl/users/vcmohan/
(maybe one of Perspective, Reform, Reformer).
EDIT: They both have plugs that correct your prob, but not sure of names.
EDIT:
DavidHorman quad dll, using Martin53 demo avs (FlyingColorbars.avs)
https://i.postimg.cc/PxHb6Pzm/quad.jpg (https://postimages.org/)
and pre-rendered mp4 (~1MB):- http://www.mediafire.com/file/hyz3tlpii3mlqed/FlyingColorbars.mp4/file
EDIT:
Martin53 demo avs (FlyingColorbars.avs)
ColorBars()
Subtitle("Flying Colorbars()",text_color=$d0c000,align=5,size=40)
ScriptClip("""
c=last
t=0.061*current_frame
t2=0.127*current_frame
a=0.501+0.5*sin(t/pi)
t1x=-0.2*cos(t2)
t1y=0.5-0.5*cos(t2)
t2x=1.0+0.2*cos(t2)
t2y=0.5-0.5*cos(t2)
t3x=1.0+0.2*cos(t2)
t3y=0.5+0.5*cos(t2)
t4x=-0.2*cos(t2)
t4y=0.5+0.5*cos(t2)
c1x=0.5+a*cos(t)
c1y=0.5+a*sin(t)
c2x=0.5-a*sin(t)
c2y=0.5+a*cos(t)
c3x=0.5-a*cos(t)
c3y=0.5-a*sin(t)
c4x=0.5+a*sin(t)
c4y=0.5-a*cos(t)
c.quad(t1x,t1y, t2x,t2y, t3x,t3y, t4x,t4y, normal=true)
quad(c1x,c1y, c2x,c2y, c3x,c3y, c4x,c4y, normal=true)
""")
Trim(0,562).KillAudio().ConvertToYV12()
EDIT: Also see DavidHorman xyremap [maybe better for your prob] .
color
29th September 2018, 15:39
I have tried to get it to work properly, but it was not as easy as I thought. Thank you for the links.
I ended up using:
defish(fov=50, scaling="fitx")
Perspective(a= -0.0001, b = 0.00005, ea = 0.0005, eb = -0.0005, x=505,y=655,z =5, color =$00)
It does leave a black line on the top, but thankfully its not so mutch so it can be croped away. :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.