Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让 OMXPlayer 在 foo.mp4 中显示嵌入的字幕,而无需使用 ffmpeg 将字幕提取到 foo.srt,并且无需将字幕硬编码到 foo.mp4 中?
该问题已通过将 SRT 字幕添加到 MKV 容器而不是 MP4 来解决:
ffmpeg -i infile.mp4 \ -f srt -i subtitles.srt \ -c:v copy -c:a copy -c:s srt \ -metadata:s:s:0 language=nor \ outfile.mkv
可以通过使用 -t 0 启动 OMXPlayer 来显示字幕
omxplayer -t 0 outfile.mkv