FFmpeg 將影片合併字幕檔
1 |
> ffmpeg -i a.mkv -vf subtitles=a.ass a.mp4 |
或使用 ass filter 指定 ass 字幕
1 |
> ffmpeg -i a.mkv -vf "ass=a.ass" a1.mp4 |
預設的字型因為原本是簡體字字幕對於正體字顯示效果不佳,所以需要調整設定
--
ass 字幕
1 2 3 |
[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: ENG.雅黑,標楷體,20,&H00FFFFFF,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,1,2,5,5,10,1 |
設定關閉粗體、20 大小、標楷體字型
--
4,922 total views, 1 views today