Avisynth: want to add black borders
Hi,
I wan't to add black borders on some of my captures, not only top/bottom,but all the way around the picture. The borders must be visible on my tv. :!: My Disney DVD "Brother Bear" got this presentation the 21 first minutes of the movie. :!: I've tried with AddBorders/Gripborders,but the movie is cropped in a bad way.I do something wrong here!!Sure. Anyone of you have a "sript line" for this operation?Or any ideas? Read AviS. manual but couldn't find any answers to it. The point is to see my movie inside the black border uncropped and with correct A/R.Only resized to fit into the black frame. Does AviS. support this operation? Thanks -------------------- viking |
Re: Border/"Frame" Question
Quote:
What I suggest to you : - load the source (let say it is 720x576) - add a border with for instance Addborder (32,32,32,32) - use FitCD or Moviestacker and put manually in the source resolution area 784 (720 + 32 + 32) and 640 (576 + 32 + 32) and use FitCD as you always do (if you already do). You will obtain the correct resize parameter you need to obtain a picture of the size you want, with borders all arround it. You can't use GripBorder as it cuts existant borders before to resize. Note: your script will have TWO addborder lines. |
Re: Border/"Frame" Question
Quote:
1 - From 784 horizontal res, only will showed in a TV 768 pixels. So FitCD will crop, resize until that value (I think, all is theoretical). 2 - If this resize will be allowed, only will show in TV a 16+16, 8+8 borders, due to a overscan of 2 points. Maybe it would be better to resize first and later add borders? |
Re: Border/"Frame" Question
Quote:
Quote:
Quote:
Quote:
|
Re: Border/"Frame" Question
Quote:
Fortunately with DVD sources 720*576/480, there is not active picture pixels from 702 to 720. This segment it is called also overscan, but it is no related with overscan that we use every day. |
Re: Border/"Frame" Question
Quote:
As I said, there is no diff between : - to have a 720*576 source and ask for a 480*576 target and - to have a 1024*768 source and ask for a 704*576 target For FitCD both situation are the same : it compute how to reduce the picture to crop the minimum and to not distort the A/R ("accurate" mode). Quote:
The majority of my DVD have a real width of 720 pixels. Very few have a border of right/left side with an active area of less than 720. And very, very few have exactly an active area of 702 :!: Open whatever vob you want in DVD2AVI and use the "clip & resize" feature : you will see that you won't have very ofen a border to crop on the vertical sides of the source ! Quote:
|
Maybe I'm wrong. I just beginning with resizing but I think that I say here, it is not very different that sayed in http://www.kvcd.net/forum/viewtopic.php?p=79805#79805
this post and others from that thread. |
Nowhere in what Inc explained there it is written than a DVD don't have anything in the pixels from 702 to 720.
Or can you quote the line please ? (the post is really long :-)) |
Quote:
Quote:
|
Quote:
If you want to be correct, you can say : on original DVD, what is in the pixel 702 to 720 isn't displayed on the TV, so if you want to encode the exact same picture you see on the original source, then you can crop them. But all the work we do with fitcd and moviestaker IS to avoid to loose this pixels and to encode a target where ALL the pixels of the original source are present. |
I'm back!
I've done two tests now and it works perfectly.Thanks a lot. :D Heres the script I used: Mpeg2Source("G:\PIRATES_OF_THE_C\VIDEO_TS\pirat.d2 v") AddBorders(96,64,96,64) LanczosResize(688,416,2,0,912,704) AddBorders(16,80,16,80) #bicubicresize(768,576) #To preview in Virtual Dub. and one for my captures: DirectShowSource("G:\Captured Video\Video 1.avi",fps=25) AddBorders(96,64,96,64) LanczosResize(672,544,0,4,912,668) AddBorders(24,16,24,16) #bicubicresize(768,576) #To preview in Virtual Dub. Quite heavy borders,but that was only for testing purposes. Looks perfect on my TV. I used 2 Blocks overscan. Is the best place for AviSynth filters between the first AddBorders line and LanczosResize,or am I wrong again?Talking about denoise filters. ------------------------ |
I would like Incredible say us something about.
Meanwhile, when you don't be so tired, maybe can read http://www.arachnotron.nl/videocap/d..._cap_v1_en.pdf Quote:
|
Quote:
Quote:
Process like I said : take a DVD, open a vob into DVD2AVI and use the clip & resize feature. You will see that almost no DVD need to be crop by 9 pixels on each side ! You can see that also on a d2v project with a simple "MPEG2source("...").Autocrop()" script. (even if Autocrop sometimes crop too much pixels, it will give you the left border and the active width of your source). |
Quote:
|
I just overflew this thread an Phil is right by saying that a valid 720 DVD resultion (FULL PAL D1) can easely contain a totally filled picture information in its width. And its also right what Pro and Phil do understand that the middle 702(PAL) or 711(NTSC) of these 720 only will be shown on a standard TV Set.
@ Phil Quote:
Well, all movie DVDs arent only purposed to be shown on a TVset and its a matter of how they have been digitized! So IF a DVD results out of a DIRECT capture, then ONLY 702 in case of PAL and 711 in case of NTSC "would" make sense as thats the actual active picture area of an PAL and NTSC TVset. Next point: ITU compilant DVDs .... Yep, thats an importand isue that its NOT guaranteed that all DVDs out there do base on a correct ITU AspectRatio based "glass-master" production. THATS why FitCD got that "ITU compilant" checkbox. But how can u find out WHATs the right one you deal with ... hmmm. Maybe if you find right at the beginning a circle in the intro, that one you could inspect for the 1:1 proportion ..... and now do search on EVERY DVD such a "reference" object before resizing. .... And thats the *joke* EDIT: In case of 720 to 480 resizings, there doesnt have to be any cropping as both will be played back by the sap at 53.333µs! BUT with diff. mhz, thats the point and the final image width at TV-pixels is defined by its µs-value. You also can set in FitCD that the FULL width also should be kept in case of a reencoding to 704 but that would mean a reducing of the orig height to keep the AR. |
Re: Border/"Frame" Question
I know viking already solved his problem, but just to get back to the original question...
Quote:
Quote:
You can also use those arrows to increase the height of the active film pixels and make a custom "pan-scan" with a widescreen source. MovieStacker will cut the width preserving the aspect ratio, overscan and destination you choose. :wink: |
8O
|
Re: Border/"Frame" Question
Quote:
And I just saw that FitCD also as this setting :oops: |
Thanks muaddib :D
It works great! Source DV-AVI(720x576)-Target DVD 720x576 with black borders: # -= AviSynth v2.5.5.0 script by FitCD v1.2.4 =- AVISource("G:\Captured Video\Video 6 DV.avi") SeparateFields() LanczosResize(608,240,0,2,720,284).Weave() AddBorders(56,48,56,48 ) Trim(323,4000)#.FadeOut(150) ---------------------------- viking |
Re: Border/"Frame" Question
Quote:
-kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.