gstreamer如何查看相关插件信息(src/sink)?

时间:2024-08-11 17:37:26

gstreamer及相关插件编译完成后,会输出gst-inspect可执行文件,相关信息如下:

drwxrwxr-x  yingc yingc     6月  : glib-2.42./
drwxrwxr-x yingc yingc 6月 : gst-libav-1.4./
drwxrwxr-x yingc yingc 6月 : gst-plugins-bad-1.4./
drwxrwxr-x yingc yingc 6月 : gst-plugins-base-1.4./
drwxrwxr-x yingc yingc 6月 : gst-plugins-good-1.4./
drwxrwxr-x yingc yingc 6月 : gst-plugins-ugly-1.4./
drwxrwxr-x yingc yingc 6月 : gstreamer-1.4./

./gst-inspect-1.0 -h
用法:
gst-inspect-1.0 [选项...] [ELEMENT-NAME | PLUGIN-NAME]

帮助选项:
-h, --help 显示帮助选项
--help-all 显示全部帮助选项
--help-gst 显示 GStreamer 选项

应用程序选项:
-a, --print-all 打印全部组件
-b, --print-blacklist 显示黑名单文件列表
--print-plugin-auto-install-info 显示机器可解析的指定插件或所有插件提供的特性列表。
与外部自动插件安装机制连接时有用
--plugin 列出插件信息
--exists Check if the specified element or plugin exists
--atleast-version When checking if an element or plugin exists, also check that its version is at least the version specified
-u, --uri-handlers 打印所支持的 URI 样式及它们的关联组件
--version Print version information and exit

执行gst-inspect-1.0 --plugin,我们会看到当前gstreamer所有的可用插件等:

rtp:  rtppcmupay: RTP PCMU payloader
rtp: rtppcmapay: RTP PCMA payloader
rtp: rtpmpadepay: RTP MPEG audio depayloader
rtp: rtpmpapay: RTP MPEG audio payloader
rtp: rtpmparobustdepay: RTP MPEG audio depayloader
rtp: rtpmpvdepay: RTP MPEG video depayloader
rtp: rtpmpvpay: RTP MPEG2 ES video payloader
rtp: rtph263ppay: RTP H263 payloader
rtp: rtph263pdepay: RTP H263 depayloader
rtp: rtph263depay: RTP H263 depayloader
rtp: rtph263pay: RTP H263 packet payloader
rtp: rtph264depay: RTP H264 depayloader
rtp: rtph264pay: RTP H264 payloader
............................................................ gio: giostreamsink: GIO stream sink
gio: giostreamsrc: GIO stream source
autodetect: autovideosink: Auto video sink
autodetect: autovideosrc: Auto video source
autodetect: autoaudiosink: Auto audio sink
autodetect: autoaudiosrc: Auto audio source
liveadder: liveadder: Live Adder element
taglib: id3v2mux: TagLib-based ID3v2 Muxer
taglib: apev2mux: TagLib-based APEv2 Muxer
chromaprint: chromaprint: Chromaprint fingerprinting element
dataurisrc: dataurisrc: data: URI source element
dvdsub: dvdsubdec: DVD subtitle decoder
dvdsub: dvdsubparse: DVD subtitle parser
staticelements: bin: Generic bin
staticelements: pipeline: Pipeline object 总数: 个插件, 个特性

aa