Quantcast Sansgrip Filters: How to Pan? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
08-12-2003, 05:03 AM
mcmount mcmount is offline
Free Member
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
First of all, this place is awesome! I've used tmpeg templates for some times and quality/size is just amazing!

At the moment I've been trying to encode Star Wars episode one as D1 quality with burn-in subtitles. I really need help with this problem:

How can I pan the movie more up and leave enough space for the subtitles so that they are only in black bottom area of the picture? Now subtitles partly overlap the movie and by default there is not enough space in bottom of the picture to move them more down. However, if I could raise the movie upper (get rid of the top black bar same time) I would have enough room for subtitles also.

Thanks in advance, McMount

PS. Kwaq, you really rock!
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  
08-12-2003, 08:51 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 mcmount,

Check the [Zoom "Pan/Zoom/Rotate" (by WarpEnterprises)] reference link here. I think that will do what you want
http://forum.doom9.org/showthread.php?s=&postid=283982


-kwag
Reply With Quote
  #3  
08-12-2003, 08:55 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
The easy way is to modify the "AddBorder" line .

For instance if you have : AddBorders(0,8,0,8 ) just put (0,4,0,12) or even (0,0,0,16) !

If you use Grifit than drop it in this case

Note: you can also reduce the size of the subtitles.
Reply With Quote
  #4  
08-15-2003, 01:14 PM
mcmount mcmount is offline
Free Member
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the great tips, Zoom seems to do the job ok, but is really slow.
AddBorder seems to squeeze the picture and I dont want to loose my aspect ratio.

So back to square one or good nerves with zoom.

Thanks for fast and good tips!

McMount
Reply With Quote
  #5  
08-15-2003, 08:37 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mcmount
AddBorder seems to squeeze the picture and I dont want to loose my aspect ratio.
But you should already have a "addborders" line somewhere in your script, don't you ? Or at least a Gripborders.

All you have to do is to unbalanced top and bottom value in order to have more space below the picture to add the subtitle ! Nothing will change into you aspect ratio !

What is the script you use ?
Reply With Quote
  #6  
08-17-2003, 09:51 AM
mcmount mcmount is offline
Free Member
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I quess I have kinda newbie problems, so far I've used dvd2svcd, but I downloaded avisynth 2.52 and decided to study how everything works. Thing is, these seems to be a lot to learn. My script is avisynth 2.5x optimal script.

Addborders (after testings) seem to work, I also managed to do same thing with virtual dub.
However, it's also seem to be done as I want by placing subtitles before filters and by doing conversions (YUY2 for the subs and after this UV12 for the filtering). Anyway, I had extremely lots of problems with subtitles, and by using AVisynth 2.51 they work, but with 2.52 they don't (Avisynthsubtitler) . Another odd thing is that version 2.51 doesn't regognize ScriptClips 'chr' -strings where 2.52 does. So at the moment I can choose subtitles or Linear Motion Adaptive Filtering but not both.

Avisynth 2.51 came with dvd2svcd.



My script:


## DLL Section ##
#
LoadPlugin("D:\Filters25\MPEG2Dec3.dll")
LoadPlugin("D:\Filters25\GripFit_YV12.dll")
LoadPlugin("D:\Filters25\STMedianFilter.dll")
LoadPlugin("D:\Filters25\asharp.dll")
LoadPlugin("D:\Filters25\unfilter.dll")
LoadPlugin("D:\Filters25\undot.dll")
LoadPlugin("D:\Filters25\vsfilter.dll")
LoadPlugin("D:\Filters25\zoom.dll")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\AVIS YN~2.DLL")

## Defined Variables and Constants ##

MaxTreshold = 1.50
nf = 0 # Current frame.

## Main section and static filters ###

Mpeg2Source("h:\test.d2v")

ConvertToYUY2()
AvisynthSubtitler("H:\starsubs3\","permsubs2.txt")
ConvertToYV12()
undot()
Limiter()
asharp(1, 4)
GripCrop(720,576)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#

## Linear Motion Adaptive Filtering ##

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
#ScriptClip("nf = round(YDifferenceToNext()+1)"+chr(13)+ "nf > 2 ? \
#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()
Limiter()

#
#
## Functions ###

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


Does any of this make any sence? Hints?

Btw, also when struggling with sustitles, I wrote small program which modifies permsubs.txt file by letting user to offset timeline or positioning of the subtitles. If anyone is intrested, just let me know.

One more thing, sorry about this topic to grow, it should be moved under Avisynth.

McMount
Reply With Quote
  #7  
08-17-2003, 12:47 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mcmount
I quess I have kinda newbie problems, so far I've used dvd2svcd, but I downloaded avisynth 2.52 and decided to study how everything works.
No need to use avisynth there : continue to use DVD2SVCD but go in the tab "Frameserver" and ask for editing the avisynth script "As part of video encoding" (on the left of the window).

Launch the encoding of you movie as usual. When video encoding time will arrive, a window will popup. You will see there that there is a 'AddBorders' line. Just change the value.

For instance if you have "Addborders(0,32,0,32)", change it to "Addborders(0,16,0,4".

Its important to have value1+value3 of the orignal line equal to value1+value3 of second line. And let "0" for others two values.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
SansGrip Filters: SansGrip Is Back Thread! Jellygoose Avisynth Scripting 8 02-28-2003 04:57 AM
SansGrip Filters: Small explanation needed about filters AgNa Avisynth Scripting 2 02-07-2003 12:25 PM
SansGrip Filters: Trying to find the GripFIt, GripCrop and GripSize filters Bud Avisynth Scripting 4 01-19-2003 06:40 PM
SansGrip Filters: Filters/settings for animation/anime akrein62 Avisynth Scripting 2 11-24-2002 01:39 AM
SansGrip Filters: Blockbuster + Nomosmooth filters syk2c11 Avisynth Scripting 2 11-18-2002 02:29 PM




 
All times are GMT -5. The time now is 02:25 AM  —  vBulletin © Jelsoft Enterprises Ltd