Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gstreamer 如何从GSTCAP获取视频/x-raw_Gstreamer - Fatal编程技术网

Gstreamer 如何从GSTCAP获取视频/x-raw

Gstreamer 如何从GSTCAP获取视频/x-raw,gstreamer,Gstreamer,我试图支持所有摄像头驱动程序,但我需要与音频和视频驱动程序分开。所以我需要 来自GstCaps元素的video/x-raw、image/jpeg,但我在互联网上找不到任何东西,无法从GstCaps仅获取video/x-raw。 我知道如何从GstCaps获取高度和宽度 gst_结构_获取_int(s,“高度”和高度) gst_结构_获取_int(s,“宽度”和宽度) 但我不知道如何获取“视频/x-raw”、“图像/jpeg”、“应用程序/x-rtp”它的功能是什么? 使用gst\u结构\u获

我试图支持所有摄像头驱动程序,但我需要与音频和视频驱动程序分开。所以我需要 来自GstCaps元素的video/x-raw、image/jpeg,但我在互联网上找不到任何东西,无法从GstCaps仅获取video/x-raw。

我知道如何从GstCaps获取高度和宽度
gst_结构_获取_int(s,“高度”和高度)
gst_结构_获取_int(s,“宽度”和宽度)


但我不知道如何获取“视频/x-raw”、“图像/jpeg”、“应用程序/x-rtp”

它的功能是什么?

使用
gst\u结构\u获取\u名称(const gst结构*structure)

const gchar *media_type = gst_structure_get_name (s);
g_print("media_type is: %s\n", media_type);