ffmpeg 提取 视频,音频,字幕 方法
(How to Extract Video, Audio, Subtitle from Original Video?)
1. 提取视频 (Extract Video)
ffmpeg -i Life.of.Pi.has.subtitles.mkv -vcodec copy –an videoNoAudioSubtitle.mp4
参考:http://www.cnblogs.com/wainiwann/p/4128154.html
2. 提取音频(Extract Audio)
ffmpeg -i Life.of.Pi.has.subtitles.mkv -vn -acodec copy audio.ac3
参考:http://stackoverflow.com/questions/9913032/ffmpeg-to-extract-audio-from-video
3. 提取字幕(Extract Subtitle)
ffmpeg -i Life.of.Pi.has.subtitles.mkv-map 0:s:0 sub1.srt
参考:http://superuser.com/questions/583393/extract-subtitle-from-video