Hi,
I am looking to do 2 things.....
1. Is it possible in avisyth to custom crop a video clip on a frame by frame basis? (in parts of the video the black bars are bigger then in others so a single crop fits all wont do)
2 I know it is possible in avisyth to grab a frame and turn it on to an image. But is it possible to grab sections of the image (like tiles if you will) and move them around?
if avisyth is not the thing to use, what can I use?
thank you for your time.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
For example:
Code:function circular(clip bg, clip ovr, clip alpha, int ang) { x = int(cos(ang*2*3.14159/360.0) * bg.height/2) y = int(sin(ang*2*3.14159/360.0) * bg.height/2) ovr = ovr.Rotate(ang) alpha = alpha.Rotate(ang).ColorYUV(cont_y=34) Overlay(bg, ovr, bg.width/2-ovr.width/2+x, bg.height/2-ovr.height/2+y, mask=alpha) } function linear(clip bg, clip ovr, clip alpha, int xpos, int ypos) { xpos = (xpos/2)*2 ypos = (ypos/2)*2 Overlay(bg, ovr, mask=alpha, x=xpos, y=ypos) } ColorBars(width=1280, height=720).ConvertToYV12().Trim(0,99) block = Crop(150,450,128,128) alpha = Crop(250,560,128,128).AddBorders(16,16,16,16).BilinearResize(16,16).BicubicResize(128,128).ColorYUV(gain_y=150, off_y=-90) Animate(0,100, "circular", last,block,alpha,0, last,block,alpha,360) Animate(0,100, "linear", last,block,alpha,-100,-100, last,block,alpha,width+100,height+100)
-
I am wording if anyone can help me... As I have no idea how to clip black bars from a video clip. The bars are of different thinkness... Same frames have more black bar in them than others. In fact some frames have no blacks bars at all.
How do you get avisyth to crop all the black bars?
I have tried using the plagins AutoCrop() and RoboCrop() with no luck.
I'd like to write my own script but no idea how.
Can anyone help? -
You have to break the video into segments, crop them individually, then join the back together. But remember, all parts have to have the same size on output. Say you have a 720x480 frame:
Code:WhateverSource("filename.ext") part1 = Trim(0, 999).Crop(0, 60, -0, -60) # leaves 720x360 part2 = Trim(1000, 1999).Crop(0,120,-0,-0) # also leaves 720x360 part3 = Trim(2000, 0).Crop(8,40,-8,-40).Spline36Resize(part1.width, part1.height) # cropping and resize to match others part1++part2++part3
-
If they are different thicknesses like you say, doing such as you intend is going to give you a quite disturbingly jumpy picture. May need to keep your changes limited to ~ every 3 seconds minimum.
Scott
Similar Threads
-
Comparing Two Video Files Side by Side and frame by frame
By Fozzie_Bear in forum EditingReplies: 6Last Post: 8th Feb 2017, 10:05 -
Vegas 13 - move clip frame by frame?
By ricmetal in forum EditingReplies: 4Last Post: 21st Apr 2015, 03:49 -
How to find out frame exposure time in a variable frame rate .mov file...
By bananas100 in forum EditingReplies: 5Last Post: 24th Oct 2014, 19:18 -
Editing video frame by frame - less obvious results?
By Free2bme in forum Newbie / General discussionsReplies: 7Last Post: 2nd Jul 2014, 09:00 -
Judder in TV clip at 23.7 fps where every third frame is doubled
By aaronframeskipper in forum Video ConversionReplies: 1Last Post: 30th Sep 2013, 01:00