I have some 720x480 (4:3) captured video that I want to remove 2 pixels off of the left and 20 off of the right then add black borders to compensate. I used to know how to do this with Avisynth, but haven't played with this stuff in years and can't remember how to do it right. I did some searches and tried some of the suggestions in various archived posts but haven't had any success. If anyone can help I would appriciate it. Thanks.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 10 of 10
Thread
-
-
Crop and AddBorders are probably the filters you are looking for (names are clickable links to the AviSynth Wiki pages).
Hopefully that'll jog your memory. -
Crop(2,20,0,0) - crop wiki page
AddBorders(2,20,0,0) - Addborders wiki page
avisynth script could look something like:
Code:mpeg2source("video.d2v") # - need to index file with DGindex crop(2,20,0,0) addborders(2,20,0,0)
-
What format did you capture in?
Be careful, if it's interlaced YV12, crop needs to be multiple of 4. If it's interlaced YUY2, then crop multiple of 2 is ok -
He said 2 from the left and 20 from the right, so even if interlaced YV12, Mod 2 should be OK, shouldn't it? So:
Crop(2,0,-20,0)
AddBorders(10,0,12,0)#to distribute the black more evenly. -
^ yes you are correct manono . According to that wiki , cropping width by 2 is ok for interlaced yv12, and only height has the mod4 restriction . My bad.
-
-
I would add keep the left border mod 8 in size for better compression and less artifacts.
Crop(2,0,-20,0)
AddBorders(8,0,14,0)#to distribute the black more evenly
At least one edge falls on a mod 8 boundary this way. -
-
Seems a waste of time padding it to 720 - just encode 704x480 e.g.
Crop(2,0,-20,0)
addborders(2,0,4,0)
or even just
crop(0,0,-16,0)
(same result, just keeps the original black and probably original soft edges which will encode slightly more easily without ringing artefacts)
Cheers,
David.
Similar Threads
-
adding color to a black & white video/film
By monks19 in forum EditingReplies: 22Last Post: 16th May 2015, 10:03 -
Black borders all around video
By techboy_66 in forum SVCD2DVD & VOB2MPGReplies: 1Last Post: 30th Oct 2010, 17:01 -
Adding black borders with StaxRip
By denadel in forum Newbie / General discussionsReplies: 4Last Post: 29th Jan 2010, 10:01 -
Cutting black borders
By HamishT in forum Authoring (DVD)Replies: 17Last Post: 4th Mar 2009, 17:53 -
Does anybody know how to convert 16:9 to 4:3 with black borders?
By tuanvn.2007 in forum Video ConversionReplies: 7Last Post: 20th Sep 2008, 02:13