digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Border on left side of video? (http://www.digitalfaq.com/archives/encode/6573-border-left-side.html)

nicksteel 11-07-2003 09:53 AM

Border on left side of video?
 
I'm using SKVCD with a 16:9 DVD cartoon. I have a border on the left side, no matter what TMPGEnc settings I use (full screen, center, etc). How do I crop this area out. The other three sides are fine.

The size settings are from MovieStacker.


## DLL Section ##
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")
LoadPlugin("c:\video\dlls\gripfit_yv12.dll")
LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l")
LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll")
LoadPlugin("c:\video\dlls\asharp.dll")
LoadPlugin("c:\video\dlls\undot.dll")
LoadPlugin("c:\video\dlls\decomb510.dll")

MaxTreshold = 1.50
nf = 0 # Current frame.

mpeg2source("h:\xx\xx.d2v")

Telecide(order=1,guide=1,post=2,vthresh=25)
Decimate()

undot()
Limiter()
asharp(1, 4)
BicubicResize(320, 318, 0, 0.6, 0, 2, 720, 476)

#GripCrop(352, 480, overscan=2)
#GripSize(resizer="BicubicResize")

STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#
## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")
#
#
AddBorders(16, 81, 16, 81)

#GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#LetterBox(0, 0, 16, 16)
Limiter()
#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
####

digitall.doc 11-07-2003 12:18 PM

Hi nicksteel:
the settings are with resize=2.
Depending on film, and more important on TV, sometimes with resize=2 I see a bar in the left side. Try with resize=1 (but the file will grow), or even play with addborders parameters (I havenīt tried this last one, is just an :idea: ).

incredible 11-07-2003 12:28 PM

Hi Nic,

digitall.doc is right, cause the calculation of your resize parameters and the values of black borders as pixels which will be added afterwards seem to be ok. But don't just "play" with the addborders() values! They have to be exact calculated in Moviestacker or FitCD! Cause if you just change them manually by trying , the final size won't match a legal resolution :!:
You only can "play" with the settings of Letterbox(), cause Letterbox() only overlaps black borders and doesn't add black borders as "add"borders() does

digitall.doc 11-07-2003 01:17 PM

Hi incredible:
Ok, I see, there are some things we better not play with, isnīt it?. :lol:

Dialhot 11-07-2003 01:19 PM

Do you have this border in your source ?
If yes use gripcrop, it will remove it before the computing the rezise parameters.

nicksteel 11-07-2003 03:07 PM

No bar on source. Same results with Gripcrop. I'm going to try Letterbox() adjustments. Never saw anything like this before from a DVD.

nicksteel 11-07-2003 04:05 PM

just tried overscan1, overscan0. no change.

Dialhot 11-07-2003 04:12 PM

Can you use the plugin Autocrop on the source and see if it report than upper left corner is 0,0 ?

nicksteel 11-07-2003 08:04 PM

Finally got it to go with:

GripCrop(352, 480)
GripSize(resizer="BicubicResize")

GripBorders()


All times are GMT -5. The time now is 09:19 PM  —  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.