ffmpeg字幕背景问题当多行(使用.srt格式)时
当使用ffmpeg
burn .srt
字幕mp4
文件时,我遇到了多个文本行的问题 - 背景是彼此覆盖的。
命令我正在使用:
ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'" video_destination.mp4
问题是 - 在使用.srt
格式时仍然具有透明的背景,或者我需要使用时,可以克服覆盖层。 .ass
格式作为修复?
While using ffmpeg
to burn .srt
subtitles to mp4
files I'm having an issue with multiple text lines - background is overlaying each other.
Command I'm using:
ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=25,Fontname=Arial,Fontsize=10,Alignment=2'" video_destination.mp4
Question is - is it possible to overcome the overlay while still having a transparent background while using .srt
format or I need to use .ass
format as a fix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过使用
borderstyle = 4
与BackColour =& h80000000
一起避免彼此覆盖的多条线,从而提供50%不透明的黑色背景。完整命令将是:
You can avoid multiple lines overlaying each other by using
BorderStyle=4
together withBackColour=&H80000000
which gives a 50% opaque black color background.Full command would be: