digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Crop and resize question (http://www.digitalfaq.com/archives/avisynth/13567-avisynth-crop-resize.html)

urban tec 06-12-2005 11:25 AM

crop and resize question
 
I am after some advice to a crop and resize question
source material is DVB stream of a movie that was produced in 4:3 aspect, the stream has been broadcast in 16:9 so I have the black borders on the left and right of the picture.
My goal is to remove the borders then resized it to a resolution of 720x576 with no borders.

Here is a script that does what I want, it works but is obviously not optimal, more like a backyard hack :) but it should demonstrate what I am attempting.

Mpeg2Source("D:\video\sample.d2v")
BicubicResize(720, 576, 0, 0.6, 0, 0, 720, 576)
Crop(88, 0,-88, 0)
BicubicResize(688, 574, 0, 0.6, 0, 0, 544, 576)
AddBorders(16, 1, 16, 1)

I am open to all suggestions as to the proper way to do this as I am sure this is not it :)

UT

kwag 06-12-2005 11:51 AM

Hi urban tec,

Open your captured file in Vdub and insert a null transform filter. Then find the exact "Film Pixels" values by cropping all black areas.
Take that information and feed it to FitCD or MovieStacker, and let it calculate the correct parrameters ;)

-kwag

urban tec 06-13-2005 08:25 AM

Thanks Kwag,
I couldnt figure out where to put the values into movie stacker (havent used it much) but I kept at it and while on the resize page at avisynth.org the penny dropped :) :) :)
For anyone that is interested this is the script now

Mpeg2Source("D:\video\sample.d2v")
Crop(94, 0, -94, 0).BicubicResize(720, 576)

Thats it

ps: I used Vdub to modify the cropping, thanks for the suggestion Kwag :)

UT

Dialhot 06-13-2005 08:28 AM

Quote:

Originally Posted by urban tec
Mpeg2Source("D:\video\sample.d2v")
Crop(94, 0, -94, 0).BicubicResize(720, 576)

By doing this you lead to a distorted picture :!: MovieStacker (or better FitCD in this case because you can give a border value different for each side) computes the exact settings you need to don't have A/R problem.


All times are GMT -5. The time now is 07:41 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.