【发布时间】:2016-03-21 16:17:05
【问题描述】:
如果gst-discover-1.0验证了一个.mkv有字幕,那么如何提取gst-launch-1.0的字幕?谢谢。
【问题讨论】:
标签: gstreamer
如果gst-discover-1.0验证了一个.mkv有字幕,那么如何提取gst-launch-1.0的字幕?谢谢。
【问题讨论】:
标签: gstreamer
什么样的字幕?您必须从 gst-discoverer-1.0 获取上限,然后执行类似的操作
gst-launch-1.0 filesrc location=/path/to/mkv ! matroskademux ! "text/x-raw" ! filesink location=subtitles
其中“text/x-raw”被字幕流的大写字母替换。或者,您也可以通过焊盘名称指定链接
gst-launch-1.0 filesrc location=/path/to/mkv ! matroskademux name=demux demux.subtitle_%u ! filesink location=subtitles
其中 %u 应该是字幕流的轨道号。
【讨论】: