kenygia / xy-vsfilter

Automatically exported from code.google.com/p/xy-vsfilter fork:xy-vsfilter-2015-05-04-rc
GNU General Public License v2.0
0 stars 0 forks source link

Correct syntax for using xy-vsfilter in avisynth #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I would like to ask for instructions on how to use xy-vsfilter in avisynth. 
As far I as know, the original project supports this function. What is the 
proper syntax for calling the modded filter?

I want to make my own blu-ray pgs files using Masksub() as I am doing with the 
original vsfilter. Right now I use this:

MaskSub("xxx.ass", width=1920, height=1080, fps=23.976023976, length=150000). 
Does xy-vsfilter take any other arguments?

In adition, how can I set the color matrix, etc in MaskSub()? Or I can't?

Finally, one last thing. In order to change the spacing between the two 
subtitle lines, what I have to do? Can I do it in xy-vsfilter or I have to do 
it in the .ass part? Does .ass format support such feature?

Thanks.

Original issue reported on code.google.com by sbaza...@gmail.com on 14 Nov 2012 at 3:00

GoogleCodeExporter commented 9 years ago
We haven't changed any of the Avisynth syntax compared to VSFilter 2.39.

New settings like YCbCr Matrix, YCbCr Level Range, and Subpixel Positioning are 
read from the Registry and shared between the DirectShow filter and the 
Avisynth TextSub filter. If you used the Installer, these options can be 
accessed via the Configure shortcut in the xy-VSFilter Start Menu folder.

That said, MaskSub only supports RGB32 with alpha channel output, so the new 
YCbCr Matrix and Levels settings we added will have no effect. Only the TextSub 
filter with YCbCr output would use those options.

The ASS spec doesn't have built-in support for word or line spacing.

Vertical spacing between overlapping lines?
You would need to split and manually position lines when they overlap. Not 
practical.

Vertical spacing between wrapped long lines?
You could create taller manual line breaks by using multiple \N in succession.

Horizontal spacing between words?
Any type of default spacing, unicode spacing glyph, or multiple use of the \h 
tag in succession will work. 

Horizontal spacing between glyphs?
Modify the "Spacing" in the ass script style, or use the \fsp tag on a per line 
basis.

assrender (libass-based avisynth plugin) may be of interest if you need a line 
spacing option and don't mind creating your mask in avisynth manually: 
http://srsfckn.biz/assrender/

Original comment by cyber.sp...@gmail.com on 14 Nov 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Hi, thanks a lot for the quick answer and the suggestions.

Regarding the multiple \n breaks, I guess that will work if I set the size of 
the intermediate line to something very small, right? How can I set different 
letter size for each line in an easy way?

Also, how can I create a mask in avisynth for use in assrender?

I know my questions have nothing to do with xy-vsfilter anymore, but I would 
appreciate your help.

Original comment by sbaza...@gmail.com on 14 Nov 2012 at 10:40

GoogleCodeExporter commented 9 years ago
> Regarding the multiple \n breaks, I guess that will work if I set
> the size of the intermediate line to something very small, right?

Yes, for example if font size for your main dialog font is 48pt, you could use 
four 1pt line spacing as follows:

Top of line{\fs1}\N\N\N\N{\fs48}bottom of line.

For assrender you could do something like the following if you're using 
avs2bdnxml:
(note: assrender will have incorrect line spacing when more than two lines in a 
script overlap)

avs2bdnxml -t Subtitles -l eng -v 1080p -f 23.976 -a1 -p0 -b0 -u0 -m3 -o 
pgs.sup pgs.avs

#avisynth script for pgs.avs
LoadCPlugin("assrender.dll")
BlankClip(length=720, width=1920, height=1080, pixel_type="RGB32", fps=24000, 
fps_denominator=1001).ShowAlpha("RGB32")
assrender("pgs.ass", line_spacing=2)
flipvertical()

Original comment by cyber.sp...@gmail.com on 15 Nov 2012 at 2:11

GoogleCodeExporter commented 9 years ago
OK, I'll try these. Thank you very much!

Original comment by sbaza...@gmail.com on 15 Nov 2012 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by cyber.sp...@gmail.com on 15 Nov 2012 at 4:51