如果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
其中“ text / x-raw”由字幕流的大写字母代替。或者,您也可以按键盘名称指定链接
gst-launch-1.0 filesrc location=/path/to/mkv ! matroskademux name=demux demux.subtitle_%u ! filesink location=subtitles
其中%u应该是字幕流的轨道号。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句