digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Border Problem, edges are always cut off? (http://www.digitalfaq.com/archives/encode/6215-kvcd-border-problem.html)

Gamecraze 10-20-2003 11:40 AM

KVCD: Border Problem, edges are always cut off?
 
Everytime i make a kvcd thus far...which isnt much yet, but my edges are always cut off. The bigger the Res that i'm burning, the bigger the cut off on the edges. Its like my player isnt resizing the video correctly or something. I'd like to add black borders or something so the whole video will show, without losing any of the aspect ratio.

Dialhot 10-20-2003 01:09 PM

What you want is called "overscan" and it is present in almost all scripts we provide here. What script do you use ?

Gamecraze 10-20-2003 02:40 PM

A big combo of stuff i found in the forums.
## DLL Section ##
#
LoadPlugin("E:\kvcd\Filters\MPEG2Dec3.dll")
LoadPlugin("E:\kvcd\Filters\Grip.dll")
LoadPlugin("E:\kvcd\Filters\STMedianFilter.dll")
LoadPlugin("E:\kvcd\Filters\asharp.dll")
LoadPlugin("E:\kvcd\Filters\unfilter.dll")
LoadPlugin("E:\kvcd\Filters\undot.dll")
LoadPlugin("E:\kvcd\Filters\dctfilter.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
AviSource("E:\kvcd\Witch Hunter Robin - 01.avi", false)
ConvertToYV12()
#
undot()
Limiter()
asharp(1, 4)
BlindPP(cpu=4)
GripCrop(352,480, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
GripBorders()
TemporalSoften(1,5,5,3,2)
Asharp(1,2) # 1= sharpen factor, 2= threshold for only sharpen edges and no cleaned surfaces
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.5,seed=5623)
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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####


this is my script, i formed it by combining things i've seen around the forum.

Dialhot 10-20-2003 02:59 PM

use "overscan=2" in gripcrop line. Or perhaps 3.

Note: Why the hell is your "griborders" line in the middle of the script ? It must be the last line of your script ! (just before the second - useless but anyway - limiter).

Note2 : never asharp after a lanczos.

Note3 : better to use DCTfilter at the end of the script (juste before gripborders :-))

kwag 10-20-2003 03:39 PM

@Gamecraze,

As dialhot just said, check the order of your filters. Here's the link for the optimal script:
http://www.kvcd.net/forum/viewtopic.php?t=3483

-kwag

Gamecraze 10-20-2003 03:41 PM

righto
I had it that way just cuz i had cut and pasted dialhot's optimal v3 script and saw that i had 2 of those so i just deleted the later one cuz i figured the grip stuff should go together.

Gamecraze 10-20-2003 11:10 PM

Arg, it would seem, increasing the overscan to 2 or more would cause avisync to have a access violation and thus tmpg ends when that happens during a movie because it causes a Invalid floating point operation.
Any other way to increase the edges of my movie so tmpg will finish making it, or mabey how to get avisync to NOT cause a access violatio or whatever?

kwag 10-20-2003 11:26 PM

As I understand it, you should set overscan to 0, or just remove the overscan line from the parameters in your script.
This should then fill your screen without any black borders on the edges.

-kwag

Gamecraze 10-20-2003 11:28 PM

My problem originally is that without overscan, the picture's edges are missing, cut off...I dont have a black border, i dont even have the picture's proper border. I want it to cut off added blackborders instead of my darn picture.

kwag 10-20-2003 11:33 PM

Have you tried GripFit :idea:
Instead of BicubirResize, etc :?:

-kwag

Gamecraze 10-20-2003 11:33 PM

I dont know what i'm doing so no, do tell.

rendalunit 10-20-2003 11:37 PM

Are you using MovieStacker?

Gamecraze 10-20-2003 11:42 PM

When I 1st made the script I used that. and it said to use overscan 1, but i tried that and it still cuts off edges so i need to increase the edges.

rendalunit 10-20-2003 11:52 PM

Try this one:

Code:

LoadPlugin("E:\kvcd\Filters\MPEG2Dec3.dll")
LoadPlugin("E:\kvcd\Filters\Grip.dll")
LoadPlugin("E:\kvcd\Filters\STMedianFilter.dll")
LoadPlugin("E:\kvcd\Filters\asharp.dll")
LoadPlugin("E:\kvcd\Filters\unfilter.dll")
LoadPlugin("E:\kvcd\Filters\undot.dll")
LoadPlugin("E:\kvcd\Filters\dctfilter.dll")

MaxTreshold = 1.50
nf = 0

AviSource("E:\kvcd\Witch Hunter Robin - 01.avi", false)
ConvertToYV12()

undot()
Limiter()
asharp(1, 4)
BlindPP(cpu=4)
LanczosResize(352,480)
TemporalSoften(1,5,5,3,2)
Asharp(1,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))

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) ")
Limiter()


Gamecraze 10-21-2003 12:25 AM

k
I'll know by tommorrow if it worked, it takes a hell of a long time to encode one of these things.

rendalunit 10-21-2003 12:36 AM

Gamecraze you don't have to encode at all to see if your script is working :!: :!: :!: After you save the .AVS just open it with ZoomPlayer (or other :wink: ) to preview it before you start encoding.


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