Closed GoogleCodeExporter closed 8 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
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
> 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
OK, I'll try these. Thank you very much!
Original comment by sbaza...@gmail.com
on 15 Nov 2012 at 10:05
Original comment by cyber.sp...@gmail.com
on 15 Nov 2012 at 4:51
Original issue reported on code.google.com by
sbaza...@gmail.com
on 14 Nov 2012 at 3:00