如果gst-discover-1.0
验证了.mkv有字幕,那么如何使用gst-launch-1.0
提取字幕?谢谢。
什么样的
字幕?您必须从 gst-discoverer-1.0 获取上限,然后执行类似操作
gst-launch-1.0 filesrc location=/path/to/mkv ! matroskademux ! "text/x-raw" ! filesink location=subtitles
其中"文本/X-raw"替换为字幕流的大写字母。或者,您也可以按焊盘名称指定链接
gst-launch-1.0 filesrc location=/path/to/mkv ! matroskademux name=demux demux.subtitle_%u ! filesink location=subtitles
其中 %u 应该是字幕流的曲目编号。