digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Problems with resize + addborders (http://www.digitalfaq.com/archives/avisynth/3853-avisynth-problems-resize.html)

J-Wo 06-02-2003 02:08 PM

problems with resize + addborders
 
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]

Bchteam 06-02-2003 02:14 PM

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

rendalunit 06-02-2003 02:50 PM

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

J-Wo 06-02-2003 08:05 PM

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.


All times are GMT -5. The time now is 12:53 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.