我想在ffmpeg中使用ASS中的片段/片段功能来逐个显示字幕。以下是我的ASS文件内容:
[Script Info]
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
PlayResX: 1000
PlayResY: 560
[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,FZLanTingHei-R-GBK,24,&H000000,&H00FF0000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,2,0,0,1,0,0,0,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:02.00,Default,,0000,0000,0000,,{\pos(717,91)\iclip(717,91,1000,191)\t(0,1000,\iclip(1000,91,1000,191))}Hello World!
ffmpeg命令:
ffmpeg -i input.mp4 -filter_complex "subtitles=myass.ass" output.mp4
但是,文本仅显示了两秒钟,但没有剪辑功能。
那么,有什么问题吗?