digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: How to pan? (http://www.digitalfaq.com/archives/avisynth/4979-sansgrip-filters-how.html)

mcmount 08-12-2003 05:03 AM

How to pan?
 
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!

kwag 08-12-2003 08:51 AM

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

Dialhot 08-12-2003 08:55 AM

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.

mcmount 08-15-2003 01:14 PM

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 :D

Dialhot 08-15-2003 08:37 PM

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 ?

mcmount 08-17-2003 09:51 AM

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 8O

Dialhot 08-17-2003 12:47 PM

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,48)".

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


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