gpt4 book ai didi

ffmpeg - 为什么 ffmpeg 刻录中文字幕(ass) 不换行?

转载 作者:行者123 更新时间:2023-12-04 22:54:55 109 4
gpt4 key购买 nike

my ffmpeg burn subtitle example
ffmpeg 将字幕刻录到 mp4。属性 WrapStyle(0:word wrap, 1: char '\N' or movie edge force change line, 2: only\n and\N change line)。
英文字幕运行OK。
WrapStyle=0 时中文字幕不换行。

最佳答案

因为文本中没有空格。
中文通常在单词或句子之间没有任何空格字符。 ASS 字幕格式最初是由欧洲语言使用者设计并为欧洲语言使用者设计的,不幸的是,它只会破坏实际空格字符上的单词。您的字幕文件不包含任何空格字符,因此这些行永远不会中断。
future
an open pull request教 libass 正确地打破这样的界限。 libass 是 FFmpeg 用来显示字幕的软件。最终,这应该会导致一个 FFmpeg 选项来启用这种换行符。
在此之前,您唯一的选择是添加显式 \N进入您想要换行的字幕文本。

关于ffmpeg - 为什么 ffmpeg 刻录中文字幕(ass) 不换行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62809452/

109 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com