Quantcast Avisynth: Crop and Resize Question - digitalFAQ.com Forums [Archives]
  #1  
06-12-2005, 11:25 AM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-12-2005, 11:51 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
06-13-2005, 08:25 AM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
06-13-2005, 08:28 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KDVD: Resize or not resize, that is the question. Prodater64 Video Encoding and Conversion 72 09-19-2005 10:16 AM
Avisynth: Another Crop and Resize Question (VHS capture) Icarus3000 Avisynth Scripting 3 07-20-2005 03:49 AM
MencodeME e CROP, OVERSCAN, RESIZE vicksson Conversão e Codificação de Vídeo (Português) 3 10-23-2004 02:10 PM
Mencoder: Filters, Crop, resize? Prodater64 Video Encoding and Conversion 24 05-06-2004 10:31 AM
TMPGEnc: crop without resize? rupan Video Encoding and Conversion 5 03-06-2004 10:36 PM

Thread Tools



 
All times are GMT -5. The time now is 05:14 PM  —  vBulletin © Jelsoft Enterprises Ltd