如果gst-discover-1.0验证了.mkv有字幕,那么如何用gst-launch-1.0提取字幕呢?谢谢。
发布于 2016-03-21 08:17:05
什么样的字幕?您必须从gst-发现者-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应该是字幕流的轨道号。
https://stackoverflow.com/questions/36111516
复制相似问题