Skip to contentSkip to conversation

gst1-plugins-bad: Add kmssink support

PATCH Superseded Fabio Estevam 2 participants 2 messages Dec 24, 2016

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gst1-plugins-bad: Add kmssink support

Add support for the KMS video sink element. From the Gstreamer 1.10 release notes:

"New element kmssink to render video using Direct Rendering Manager (DRM) and Kernel Mode Setting (KMS) subsystems in the Linux kernel. It is oriented to be used mostly in embedded systems."

---
 package/gstreamer1/gst1-plugins-bad/Config.in           | 5 +++++
 package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 7 +++++++
 2 files changed, 12 insertions(+)
package/gstreamer1/gst1-plugins-bad/Config.in +5 -0
index 16c0b7e..8587f93 100644
@@ -549,6 +549,11 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
 	help
 	  Fragmented streaming plugins
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS
+	bool "kmssink"
+	help
+	  KMS video sink
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS
 	bool "libmms"
 	depends on BR2_USE_WCHAR # libmms -> libglib2
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +7 -0
index ba9f305..4d629f5 100644
@@ -680,6 +680,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-hls
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
+GST1_PLUGINS_BAD_CONF_OPTS += --enable-kms
+GST1_PLUGINS_BAD_DEPENDENCIES += libdrm
+else
+GST1_PLUGINS_BAD_CONF_OPTS += --disable-kms
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-libmms
 GST1_PLUGINS_BAD_DEPENDENCIES += libmms
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gst1-plugins-bad: Add kmssink support

Hi Fabio,

Quoted 34 lines · Fabio Estevam

Add support for the KMS video sink element. From the Gstreamer 1.10 release notes:

"New element kmssink to render video using Direct Rendering Manager (DRM) and Kernel Mode Setting (KMS) subsystems in the Linux kernel. It is oriented to be used mostly in embedded systems."

---
 package/gstreamer1/gst1-plugins-bad/Config.in           | 5 +++++
 package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk | 7 +++++++
 2 files changed, 12 insertions(+)
package/gstreamer1/gst1-plugins-bad/Config.in +5 -0
index 16c0b7e..8587f93 100644
@@ -549,6 +549,11 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
 	help
 	  Fragmented streaming plugins
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS
+	bool "kmssink"
+	help
+	  KMS video sink
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS
 	bool "libmms"
 	depends on BR2_USE_WCHAR # libmms -> libglib2
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +0 -0
index ba9f305..4d629f5 100644

package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk else · line 685

Quoted 6 lines
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +3 -0
@@ -680,6 +680,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-hls
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
+GST1_PLUGINS_BAD_CONF_OPTS += --enable-kms
+GST1_PLUGINS_BAD_DEPENDENCIES += libdrm

You need to add 'select BR2_PACKAGE_LIBDRM' (and libdrm dependencies).

package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk else · line 692

Quoted 7 lines
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +4 -0
+else
+GST1_PLUGINS_BAD_CONF_OPTS += --disable-kms
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-libmms
 GST1_PLUGINS_BAD_DEPENDENCIES += libmms

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -