Quantcast Avisynth: Problems with Resize + Addborders - digitalFAQ.com Forums [Archives]
  #1  
06-02-2003, 02:08 PM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
Hi, I've branched out to avs 2.5 and tried to use the new script, but am already running into trouble! I have a PAL SVCD source that I'd like to convert to a KVCDx3 mpeg-1. My player can play discs at 25fps, so I won't need to change the audio or video framerate. However it seems to have problems with PAL resolutions, so basically the encode will be downsizing from 480x576 to 480x480. So I loaded my source into MovieStacker, unchecked the PAL box in the source area, then made a simple avs script using BiCubicReseize and AddBorders. The only problem is that the final product looks way smaller than my tv screen even though I know the source is full screen. Here's what my script looks like:
Code:
#======================================================#
# -= AviSynth script by MovieStacker v2.0.0 (beta3) =- #
#======================================================#

LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")

Mpeg2Source("E:\Movies\Bulletproof.Monk.PAL.R3.DVDRip.SVCD-UTi\monk.d2v")
Limiter()
BicubicResize(400, 478, 1/3, 1/3, 0, 1, 480, 574)
AddBorders(40, 1, 40, 1)
Limiter()
If I comment out the AddBorders line, then the source would encode in full screen. If I change the values to 10,1,10,1, then it looks more like it should be. Only problem then is that tmpgenc says the encode will be 420x480 which is not a proper resolution.

Anyone know what I should be doing here?[/IMG]
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-02-2003, 02:14 PM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Brrrroooo...

Change this Line :

Code:
BicubicResize(400, 478, 1/3, 1/3, 0, 1, 480, 574)
To This :

Code:
BicubicResize(480, 480, 1/3, 1/3, 0, 1, 480, 574)
Or This:

Code:
BicubicResize(528, 480, 1/3, 1/3, 0, 1, 480, 574)
It's your choice

And also remove the AddBorders Line, completely

This will not add Extra Border's
Reply With Quote
  #3  
06-02-2003, 02:50 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by J-Wo
So I loaded my source into MovieStacker, unchecked the PAL box in the source area,
If the source is PAL then you should leave the PAL box checked in the source area. Check the format conversion box to set the destination resolution to NTSC. I got the same problem- have to convert pal to ntsc because pal resolutions are scrambled on my player.

ren
Reply With Quote
  #4  
06-02-2003, 08:05 PM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
I actually changed the lines to read:
Code:
BicubicResize(460, 478, 1/3, 1/3, 0, 1, 480, 574)
AddBorders(10, 1, 10, 1)
I somehow "figured out" that if I want my res to be 480x480, the first two values in Resize have to total that when I add the values from AddBorders. And from the way I seemed to have interpreted it, AddBorders actually shrinks the image by that number of pixels instead of actually adding borders. Anyway I figured adding borders was better because if I remove it, the encoded image is actually larger than what my television can show (i.e. I lose some image on the sides). Can anyone tell me if I'm doing things right?
Quote:
If the source is PAL then you should leave the PAL box checked in the source area. Check the format conversion box to set the destination resolution to NTSC. I got the same problem- have to convert pal to ntsc because pal resolutions are scrambled on my player.
Well I realized that unchecking the PAL box is better because it requires less conversions. If I let ToK do the conversions, it adds an AssumeFPS line to change the fps from 25 to 23.997. Then it uses MAD to convert the audio framerate accordingly. Since my player CAN play movies at 25fps, it's only the resolution I need to change.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Need LanczosResize and AddBorders plugins Lost Soul Avisynth Scripting 5 04-28-2006 03:37 AM
AviSynth resize vs GripFit? NismoSX Avisynth Scripting 22 08-04-2003 02:55 PM
Avisynth: Yellow bar from resize? mrspathi Avisynth Scripting 5 07-21-2003 03:39 PM
Avisynth: Resize or Overlap? J-Wo Avisynth Scripting 1 06-16-2003 11:09 PM
Avisynth: AddBorders Scav Avisynth Scripting 1 04-23-2002 02:23 PM

Thread Tools



 
All times are GMT -5. The time now is 09:24 PM  —  vBulletin Jelsoft Enterprises Ltd