博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【GStreamer】gstreamer工具详解之:gst-inspect-1.0
阅读量:4262 次
发布时间:2019-05-26

本文共 10898 字,大约阅读时间需要 36 分钟。

二、gst-inspect-1.0

1、简介

gst-inspect-1.0 打印插件列表、指定插件或指定元素的信息

2、命令格式:
gst-inspect-1.0 [OPTION...] [PLUGIN|ELEMENT]
3、OPTION参数选项:
--help--gst-info-mask=FLAGS		设置GStreamer信息标志??-a, --print-all				打印所有插件和元件--print-plugin-auto-install-info 打印指定插件提供的功能的机器可解析列表。适用于外部自动插件安装机制。--gst-debug-mask=FLAGS		设置GStreamer调试标志--gst-mask=FLAGS			设置GStreamer信息和调试标志--gst-plugin-spew			GStreamer信息标志,用于设置在加载GStreamer插件时启用打印输出错误--gst-plugin-path=PATH		将以':'分隔的目录添加到插件搜索路径
4、使用步骤
1> 如果不知道插件,先查询插件
$ gst-inspect-1.0 -avideo4linux2:  v4l2src: Video (video4linux2) Sourcevideo4linux2:  v4l2sink: Video (video4linux2) Sinkvideo4linux2:  v4l2radio: Radio (video4linux2) Tunervideo4linux2:  v4l2deviceprovider (GstDeviceProviderFactory)dvswitch:  dvswitchsrc: DVSwitch video sourcedvswitch:  dvswitchsink: DVswitch video sinkpocketsphinx:  pocketsphinx: PocketSphinxflump3dec:  flump3dec: Fluendo MP3 Decoder (C build)espeak:  espeak: eSpeak as a sound source。。。略
2> 查看指定插件详细信息
$ gst-inspect-1.0 video4linux2Plugin Details:Name                     video4linux2Description              elements for Video 4 LinuxFilename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.soVersion                  1.8.3License                  LGPLSource module            gst-plugins-goodSource release date      2016-08-19Binary package           GStreamer Good Plugins (Ubuntu)Origin URL               https://launchpad.net/distros/ubuntu/+source/gst-plugins-good1.0v4l2src: Video (video4linux2) Sourcev4l2sink: Video (video4linux2) Sinkv4l2radio: Radio (video4linux2) Tunerv4l2deviceprovider: Video (video4linux2) Device Provider4 features:+-- 3 elements+-- 1 device providers
3> 查看指定元件的详细信息
$ gst-inspect-1.0 v4l2srcFactory Details:  Rank                     primary (256)  Long-name                Video (video4linux2) Source  Klass                    Source/Video  Description              Reads frames from a Video4Linux2 device  Author                   Edgard Lima 
, Stefan Kost
Plugin Details: Name video4linux2 Description elements for Video 4 Linux Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so Version 1.8.3 License LGPL Source module gst-plugins-good Source release date 2016-08-19 Binary package GStreamer Good Plugins (Ubuntu) Origin URL https://launchpad.net/distros/ubuntu/+source/gst-plugins-good1.0GObject +----GInitiallyUnowned +----GstObject +----GstElement +----GstBaseSrc +----GstPushSrc +----GstV4l2SrcImplemented Interfaces: GstURIHandler GstTuner GstColorBalance GstVideoOrientationPad Templates: SRC template: 'src' Availability: Always Capabilities: image/jpeg video/mpeg mpegversion: 4 systemstream: false video/mpeg mpegversion: 2 video/mpegts systemstream: true video/x-bayer format: {
bggr, gbrg, grbg, rggb } width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 2147483647/1 ] video/x-dv systemstream: true video/x-h263 variant: itu video/x-h264 stream-format: {
byte-stream, avc } alignment: au video/x-pwc1 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 2147483647/1 ] video/x-pwc2 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 2147483647/1 ] video/x-raw format: {
RGB16, BGR, RGB, GRAY8, GRAY16_LE, GRAY16_BE, YVU9, YV12, YUY2, YVYU, UYVY, Y42B, Y41B, YUV9, NV12_64Z32, NV24, NV61, NV16, NV21, NV12, I420, BGRA, BGRx, ARGB, xRGB, BGR15, RGB15 } width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 2147483647/1 ] video/x-sonix width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 2147483647/1 ] video/x-vp8 video/x-wmv wmvversion: 3 format: WVC1Element Flags: no flags setElement Implementation: Has change_state() function: 0x7fa66ff06ab0Element has no clocking capabilities.URI handling capabilities: Element can act as source. Supported URI protocols: v4l2Pads: SRC: 'src' Pad Template: 'src'Element Properties: name : The name of the object flags: readable, writable String. Default: "v4l2src0" parent : The parent of the object flags: readable, writable Object of type "GstObject" blocksize : Size in bytes to read per buffer (-1 = default) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 4096 num-buffers : Number of buffers to output before sending EOS (-1 = unlimited) flags: readable, writable Integer. Range: -1 - 2147483647 Default: -1 typefind : Run typefind before negotiating flags: readable, writable Boolean. Default: false do-timestamp : Apply current stream time to buffers flags: readable, writable Boolean. Default: false device : Device location flags: readable, writable String. Default: "/dev/video0" device-name : Name of the device flags: readable String. Default: "VirtualBox Webcam - Integrated " device-fd : File descriptor of the device flags: readable Integer. Range: -1 - 2147483647 Default: -1 flags : Device type flags flags: readable Flags "GstV4l2DeviceTypeFlags" Default: 0x00000000, "(none)" (0x00000001): capture - Device supports video capture (0x00000002): output - Device supports video playback (0x00000004): overlay - Device supports video overlay (0x00000010): vbi-capture - Device supports the VBI capture (0x00000020): vbi-output - Device supports the VBI output (0x00010000): tuner - Device has a tuner or modulator (0x00020000): audio - Device has audio inputs or outputs brightness : Picture brightness, or more precisely, the black level flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 contrast : Picture contrast or luma gain flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 saturation : Picture color saturation or chroma gain flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 hue : Hue or color balance flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 norm : video standard flags: readable, writable Enum "V4L2_TV_norms" Default: 0, "none" (0): none - none (45056): NTSC - NTSC (4096): NTSC-M - NTSC-M (8192): NTSC-M-JP - NTSC-M-JP (32768): NTSC-M-KR - NTSC-M-KR (16384): NTSC-443 - NTSC-443 (255): PAL - PAL (7): PAL-BG - PAL-BG (1): PAL-B - PAL-B (2): PAL-B1 - PAL-B1 (4): PAL-G - PAL-G (8): PAL-H - PAL-H (16): PAL-I - PAL-I (224): PAL-DK - PAL-DK (32): PAL-D - PAL-D (64): PAL-D1 - PAL-D1 (128): PAL-K - PAL-K (256): PAL-M - PAL-M (512): PAL-N - PAL-N (1024): PAL-Nc - PAL-Nc (2048): PAL-60 - PAL-60 (16711680): SECAM - SECAM (65536): SECAM-B - SECAM-B (262144): SECAM-G - SECAM-G (524288): SECAM-H - SECAM-H (3276800): SECAM-DK - SECAM-DK (131072): SECAM-D - SECAM-D (1048576): SECAM-K - SECAM-K (2097152): SECAM-K1 - SECAM-K1 (4194304): SECAM-L - SECAM-L (8388608): SECAM-Lc - SECAM-Lc io-mode : I/O mode flags: readable, writable Enum "GstV4l2IOMode" Default: 0, "auto" (0): auto - GST_V4L2_IO_AUTO (1): rw - GST_V4L2_IO_RW (2): mmap - GST_V4L2_IO_MMAP (3): userptr - GST_V4L2_IO_USERPTR (4): dmabuf - GST_V4L2_IO_DMABUF (5): dmabuf-import - GST_V4L2_IO_DMABUF_IMPORT extra-controls : Extra v4l2 controls (CIDs) for the device flags: readable, writable Boxed pointer of type "GstStructure" pixel-aspect-ratio : Overwrite the pixel aspect ratio of the device flags: readable, writable String. Default: null force-aspect-ratio : When enabled, the pixel aspect ratio will be enforced flags: readable, writable Boolean. Default: trueElement Signals: "prepare-format" : void user_function (GstElement* object, gint arg0, GstCaps* arg1, gpointer user_data);

转载地址:http://tbmei.baihongyu.com/

你可能感兴趣的文章
BUFG,IBUFG,BUFGP,IBUFGDS等含义以及使用
查看>>
逻辑思维测试题
查看>>
如何用Easy CHM制作CHM格式电子书(帮助文档)
查看>>
为什么学习python
查看>>
华为进不了美国,并不是贸易保护这么简单
查看>>
markdown文件的基本常用编写语法(图文并茂)
查看>>
java变量简介
查看>>
Shell十分钟入门
查看>>
nginx 配置 upstream backup 报错
查看>>
Linux执行 wget命令:提示command not found的两种解决方法
查看>>
openssl实现md5加rsa签名
查看>>
史上最全的前端学习路线图,干货满满
查看>>
来点不一样的:解耦 HTML、CSS 和 JS之间的那些事
查看>>
使用go编写webassembly
查看>>
从矩阵与空间操作的关系理解CSS3的transform(科普文)
查看>>
你也想做掌控全局的 React 大师吗?
查看>>
Javascript中的尾递归及其优化
查看>>
前端面试之手写一个bind方法
查看>>
浅析当下的 Node.js CommonJS 模块系统
查看>>
如何让 node 也支持从 url 加载一个 module?
查看>>