cporrasa / xy-vsfilter

Automatically exported from code.google.com/p/xy-vsfilter
0 stars 0 forks source link

TextSub: please Add option to set color, font,... for srt subtitles #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would be cool if TextSub could get some additional options to enforce color 
etc. like the mencoder/mplayer options:

[code]-ass-border-color <value>
              Sets the border (outline) color for text subtitles.   The  color
              format is RRGGBBAA.

       -ass-bottom-margin <value>
              Adds  a black band at the bottom of the frame.  The SSA/ASS ren‐
              derer can place subtitles there (with -ass-use-margins).

       -ass-color <value>
              Sets the color for text subtitles.  The color format  is  RRGGB‐
              BAA.

       -ass-font-scale <value>
              Set  the  scale  coefficient to be used for fonts in the SSA/ASS
              renderer.

       -ass-force-style <[Style.]Param=Value[,...]>
              Override some style or script info parameters.

              EXAMPLE:
                 -ass-force-style FontName=Arial,Default.Bold=1
                 -ass-force-style PlayResY=768

       -ass-hinting <type>
              Set hinting type.  <type> can be:
                 0    no hinting
                 1    FreeType autohinter, light mode
                 2    FreeType autohinter, normal mode
                 3    font native hinter
                 0-3 + 4
                      The same, but hinting will only be performed if the  OSD
                      is  rendered at screen resolution and will therefore not
                      be scaled.
                 The default value is 7 (use native hinter  for  unscaled  OSD
                 and no hinting otherwise).

       -ass-line-spacing <value>
              Set line spacing value for SSA/ASS renderer.

       -ass-styles <filename>
              Load all SSA/ASS styles found in the specified file and use them
              for rendering text subtitles.  The syntax of the file is exactly
              like the [V4 Styles] / [V4+ Styles] section of SSA/ASS.

       -ass-top-margin <value>
              Adds a black band at the top of the frame.  The SSA/ASS renderer
              can place toptitles there (with -ass-use-margins).

       -ass-use-margins
              Enables placing toptitles and subtitles in  black  borders  when
              they are available.[/code]source: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.txt

Original issue reported on code.google.com by 4Se...@gmail.com on 30 Jul 2012 at 11:03

GoogleCodeExporter commented 8 years ago
This is already supported in TextSub by use of .style files in SSA/ASS style 
format. Just edit a *.srt.style like that ones I've attached as needed, place 
it in the same directory as the subtitle your loading with TextSub, and change 
subname to match.

Excerpt from the VSFilter Doc included with Avisynth:

"To override the default style you can use a second file named e.g. 
"your_file.ssa.style" (the first file + ".style") which must be in SSA or ASS 
syntax an contains only formatting information (makes only sense when NOT using 
SSA/ASS)."

Original comment by cyber.sp...@gmail.com on 30 Jul 2012 at 12:37

GoogleCodeExporter commented 8 years ago
Ah thanks! I thought that would only work for ssa/ass files :)

Original comment by 4Se...@gmail.com on 30 Jul 2012 at 12:40

GoogleCodeExporter commented 8 years ago

Original comment by cyber.sp...@gmail.com on 30 Jul 2012 at 12:40

Attachments: