ffmpeg 提取视频中的 srt 字幕

创建日期: 2024-03-24 23:42 | 作者: 风波 | 浏览次数: 10 | 分类: 前端

来源:https://superuser.com/questions/583393/how-to-extract-subtitle-from-video-using-ffmpeg

需要先通过 ffmpeg -i Movie.mkv 查看第几个 stream 是字幕,例如第6个 stream 是字幕,那么命令如下:

ffmpeg -i Movie.mkv -map 0:6 -c copy subs.srt

-i: Input file URL/path. -map: Designate one or more input streams as a source for the output file. s:0: Select the subtitle stream.

10 浏览
10 爬虫
0 评论