Quantcast Avisynth: How to Set the Subtitles in the Black Borders? - digitalFAQ.com Forums [Archives]
  #1  
10-10-2003, 07:44 AM
perrera perrera is offline
Free Member
 
Join Date: Mar 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
I have problems with this script.. the idea is to set the subs in the black borders. In the PC its looks great, but in my DVD player (other KVCD working), half of the screen is in green lines...

Anyone can help me?

Code:
AviSource("C:\**.avi",false)
 
GripCrop(528, 480, overscan=1, source_anamorphic=false)

Crop(30, 0, -30, -30)
AddBorders(0,70,0,70) 

TextSub("C:\**.ssa")

GripSize(resizer="BicubicResize")
Undot() 
TemporalSoften(2,7,7,3,2)
Thanks
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-10-2003, 08:15 AM
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
Hi perrera,

What about 544x480

-kwag
Reply With Quote
  #3  
10-18-2003, 08:21 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
My 1st script, just doesnt want to work. Somebody help mabey?


## 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")
#
####

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

## Main section and static filters ###
#
AviSource("E:\kvcd\Witch Hunter Robin - 01.avi")
ConvertToYUY2()
swapuv()
ConvertToYUY12()
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 240, source_anamorphic=false)
GripSize(resizer="BilinearResize")
GripBorders()
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) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use

MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####
Reply With Quote
  #4  
10-18-2003, 08:57 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
Hi Gamecraze,

What's the error displayed when you open your .avs in Vdub or in WMP
Your script looks fine.

Edit:

This is wrong: ConvertToYUY12()
It must read:
ConvertToYV12()

-kwag
Reply With Quote
  #5  
10-18-2003, 10:03 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Error There's no function named ConvertToYuY12
Reply With Quote
  #6  
10-18-2003, 10:05 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
Quote:
Originally Posted by Gamecraze
Error There's no function named ConvertYuY12
That's correct, because there's no function with that name
The correct name is ConvertToYV12()

-kwag
Reply With Quote
  #7  
10-18-2003, 10:06 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Dang typo
Reply With Quote
  #8  
10-18-2003, 10:09 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Also in TOK it says " is not a valid interger value
Reply With Quote
  #9  
10-18-2003, 10:16 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, WMP and vdub play the script right, since fixing that type of mine, but TOK still stays (" Is not a valid Integer Value)
Any ideas?
Reply With Quote
  #10  
10-18-2003, 10:17 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
Quote:
Originally Posted by Gamecraze
Also in TOK it says " is not a valid interger value
Change this line:
AviSource("E:\kvcd\Witch Hunter Robin - 01.avi")
To read:
AviSource("E:\kvcd\Witch Hunter Robin - 01.avi", false)

-kwag
Reply With Quote
  #11  
10-18-2003, 10:46 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
it still does it,
Also i just noticed blue/red deal swapped now too I just didnt notice earlier in tok, and in mediaplayer its swapped and the video is upsidedown.

It plays fine without the scrip tho.
Reply With Quote
  #12  
10-18-2003, 10:53 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
Check this thread: http://www.kvcd.net/forum/viewtopic.php?t=6437
Although it's a locked thread, I think the answer is there. I'm no avi expert ( I don't do avis ), so maybe someone can post an answer here.

-kwag
Reply With Quote
  #13  
10-18-2003, 10:58 PM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Well, like the link, i feel that if it works without the script, the problem should lie within the script. Basic deduction method here.

Only problems are when running the script and related programs are all i ever get.
Reply With Quote
  #14  
10-19-2003, 12:58 AM
Gamecraze Gamecraze is offline
Free Member
 
Join Date: Oct 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Well looks like the mispelling i had originally was the main problem all along, I removed the other 2 added things after the former mispelling, and went back down to just
ConvertToYV12()
and the problems were fixed with the video more or less, now in vdub it is correct, and in tok, wmp is still upsidedown for some reason but oh well.
the weird " is not a vaild interger value still shows up, but tok seems to have it opened anywayz, so i'm gonna try it as is.
Wish me luck
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: want to add black borders the viking Avisynth Scripting 20 10-21-2004 07:34 AM
KDVD has BLACK BORDERS? Joâo Nova Video Encoding and Conversion 1 06-23-2004 10:08 AM
Encoding black borders? Eric Video Encoding and Conversion 2 12-09-2003 07:20 PM
KVCD: How to Remove black borders? raven2707 Video Encoding and Conversion 11 11-02-2003 07:14 PM
KVCD: How do i get rid of black borders? Adder Video Encoding and Conversion 3 03-21-2003 10:23 AM

Thread Tools



 
All times are GMT -5. The time now is 04:14 PM  —  vBulletin © Jelsoft Enterprises Ltd