Quantcast KVCD: Border Problem, Edges are Always Cut Off? - digitalFAQ.com Forums [Archives]
  #1  
10-20-2003, 11:40 AM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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  
10-20-2003, 01:09 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
What you want is called "overscan" and it is present in almost all scripts we provide here. What script do you use ?
Reply With Quote
  #3  
10-20-2003, 02:40 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4  
10-20-2003, 02:59 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 )
Reply With Quote
  #5  
10-20-2003, 03:39 PM
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
@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
Reply With Quote
  #6  
10-20-2003, 03:41 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #7  
10-20-2003, 11:10 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #8  
10-20-2003, 11:26 PM
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
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
Reply With Quote
  #9  
10-20-2003, 11:28 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #10  
10-20-2003, 11:33 PM
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
Have you tried GripFit
Instead of BicubirResize, etc

-kwag
Reply With Quote
  #11  
10-20-2003, 11:33 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
I dont know what i'm doing so no, do tell.
Reply With Quote
  #12  
10-20-2003, 11:37 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
Are you using MovieStacker?
Reply With Quote
  #13  
10-20-2003, 11:42 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #14  
10-20-2003, 11:52 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
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()
Reply With Quote
  #15  
10-21-2003, 12:25 AM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
k
I'll know by tommorrow if it worked, it takes a hell of a long time to encode one of these things.
Reply With Quote
  #16  
10-21-2003, 12:36 AM
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
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 ) to preview it before you start encoding.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: BORDERS all around edges of video? khusru Video Encoding and Conversion 7 02-08-2004 10:27 PM
KVCD: One black border on video? Wolfi Video Encoding and Conversion 6 05-08-2003 04:00 PM
KVCD: Border Problem? Bchteam Video Encoding and Conversion 5 02-26-2003 06:55 PM
KVCD: dvd player is giving me the chopped off edges? Adder Players, DVRs, Media Centers 5 01-30-2003 04:33 AM
KVCD Templates = quick motion results in blurring around the edges? roberte613 Video Encoding and Conversion 2 06-03-2002 12:52 PM

Thread Tools



 
All times are GMT -5. The time now is 05:07 AM  —  vBulletin Jelsoft Enterprises Ltd