FFmpeg 多个 drawtext 过滤器彼此相邻

FFmpeg multiple drawtext filters next to each other

我想用 ffmpeg 在视频上绘制文字

我在这里有什么选择?我知道要在一行中加粗一些单词时,我最好使用字幕过滤器。但据我所知,我不能制作动画字幕,对吧?

这就是为什么我想知道是否可以并排使用多个 drawtext 过滤器。但是我怎样才能将一个绘图文本的宽度信息传递给下一个绘图文本以使其匹配正确的坐标?

使用subtitles filter with ASS subtitles. The subtitles can be moved using the \move override tag:

示例 ASS 文件:

[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None

[Aegisub Project Garbage]
Last Style Storage: Default

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,48,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,,{\move(0,-10,320,350,0,2000)}Moving {\b1}text{\b0}{\move}