[FFmpeg-devel] [PATCH v5 4/4] doc/decoders.texi: add document of aribcaption decoder

TADANO Tokumei aimingoff at pc.nifty.jp
Sun Jul 3 13:26:27 EEST 2022


Signed-off-by: TADANO Tokumei <aimingoff at pc.nifty.jp>
---
 doc/decoders.texi | 99 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)

diff --git a/doc/decoders.texi b/doc/decoders.texi
index e2fcbf5dc9..c9d65e7dad 100644
--- a/doc/decoders.texi
+++ b/doc/decoders.texi
@@ -349,6 +349,105 @@ Enabled by default.
 
 @end table
 
+ at section aribcaption
+
+Yet another ARIB STD-B24 caption decoder using external @dfn{libaribcaption}
+library.
+
+Implements profiles A and C of the Japanse ARIB STD-B24 standard,
+Brazilian ABNT NBR 15606-1, and Philippines version of ISDB-T.
+
+Requires the presence of the libaribcaption headers and library
+(@url{https://github.com/xqq/libaribcaption}) during configuration.
+You need to explicitly configure the build with @code{--enable-libaribcaption}.
+If both @dfn{libaribb24} and @dfn{aribcaption} are enabled, @dfn{aribcaption}
+decoder precedes.
+
+ at subsection aribcaption Decoder Options
+
+ at table @option
+
+ at item -sub_type @var{subtitle_type}
+Specifies the format of the decoded subtitles.
+
+ at table @samp
+ at item bitmap
+Graphical image.
+ at item ass
+ASS formatted text.
+ at item text
+Simple text based output without formatting.
+ at end table
+
+The default is @dfn{ass} as same as @dfn{libaribb24} decoder.
+Some present players (e.g., @dfn{mpv}) expect ASS format for ARIB caption.
+
+ at item -font @var{font_name[,font_name2,...]}
+Specify comma-separated list of font family names to be used for @dfn{bitmap}
+or @dfn{ass} type subtitle rendering.
+Only first font name is used for @dfn{ass} type subtitle.
+
+If not specified, use internaly defined default font family.
+
+ at item -ass_workaround @var{boolean}
+Since some players (e.g., @dfn{mpv}) can't handle multi-rectangle ASS
+subtitle properly, default behavior is all the texts are displayed in
+a single-rectangle at a time.
+It causes some texts may not be displayed at expected position as described
+in ARIB STD-B24.
+
+The default is @var{true}.
+
+If a player can handle multi-rectangle ASS subtitle and you prefer
+more suitable positioning, set this option to @var{false} or define
+ at env{ASS_WORKAROUND=0} to change default behavior at compilation.
+
+ at item -replace_fullwidth_ascii @var{boolean}
+Specify whether to replace MSZ (Middle Size, half width) fullwidth
+alphanumerics with halfwidth alphanumerics.
+
+The default is @var{true}.
+
+ at item -force_outline_text @var{boolean}
+Specify whether always render outline text for all characters regardless of
+the indication by charactor style.
+
+The default is @var{false}.
+
+ at item -outline_width @var{number} (0.0 - 3.0)
+Specify width for outline text, in dots (relative).
+
+The default is @var{1.5}.
+
+ at item -ignore_background @var{boolean}
+Specify whether to ignore background color rendering.
+
+The default is @var{false}.
+
+ at item -ignore_ruby @var{boolean}
+Specify whether to ignore rendering for ruby-like (furigana) characters.
+
+The default is @var{false}.
+
+ at item -replace_drcs @var{boolean}
+Specify whether to render replaced DRCS characters as Unicode characters.
+
+The default is @var{true}.
+
+ at end table
+
+ at subsection aribcaption decoder usage examples
+
+Display MPEG-TS file with ARIB subtitle by @dfn{ffplay} tool:
+ at example
+ffplay -sub_type bitmap MPEG.TS
+ at end example
+
+Embed ARIB subtitle in transcoded video:
+ at example
+ffmpeg -sub_type bitmap -i src.m2t -filter_complex "[0:v][0:s]overlay" -vcodec h264 dest.mp4
+ at end example
+
 @section dvbsub
 
 @subsection Options
-- 
2.30.2



More information about the ffmpeg-devel mailing list