Skip to contentSkip to conversation

qt4-embedded: Allow use of Qt Media Player in multi-headed system

PATCH In review Eric Nelson 2 participants 3 messages Aug 19, 2013 – Aug 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 qt4-embedded: Allow use of Qt Media Player in multi-headed system

Qt-embedded can be used on multiple screens by using environment variables QWS_DISPLAY, QWS_MOUSE_PROTO, et cetera.

The gstreamer element mfw_v4lsink used to accelerate media playback on i.MX devices can also be pointed at different displays through the 'device' property, but the current acceleration patch doesn't have a mechanism for setting the property, and always uses the compiled-in default.

This patch allows userspace startup code to override the default through the use of the 'v4lsinkdev' environment variable.

Please refer to the Qt4-embedded documentation for proper usage of the QWS_x environment variables and the Freescale Multimedia documentation for descriptions of the various gstreamer elements.

A sequence of this for a secondary display might be this:

export QWS_DISPLAY=linuxfb:/dev/fb2:1
export v4lsinkdev=/dev/video19
my-qt-app -qws

---
V2 and V3 just have an expanded commit message.

 recipes-qt/qt4/qt4-embedded_4.8.5.bbappend         |  5 ++-
 ...renderer-Allow-v4l-device-from-environmen.patch | 46 ++++++++++++++++++++++
 2 files changed, 50 insertions(+), 1 deletion(-)
 create mode 100644 recipes-qt/qt4/qt4/0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch
recipes-qt/qt4/qt4-embedded_4.8.5.bbappend +4 -1
index 4c4d0c9..fc16670 100644
@@ -2,7 +2,10 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/qt4:"
 
 SRC_URI_append_mx5 += "file://0001-Add-support-for-i.MX-codecs-to-phonon.patch"
-SRC_URI_append_mx6 += "file://0001-Add-support-for-i.MX-codecs-to-phonon.patch"
+SRC_URI_append_mx6 += " \
+	file://0001-Add-support-for-i.MX-codecs-to-phonon.patch \
+	file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch \
+"
 
 DEPENDS_append_mx5 = " virtual/kernel virtual/libgles2"
 PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
recipes-qt/qt4/qt4/0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 15 lines · Eric Nelson

Qt-embedded can be used on multiple screens by using environment variables QWS_DISPLAY, QWS_MOUSE_PROTO, et cetera.

The gstreamer element mfw_v4lsink used to accelerate media playback on i.MX devices can also be pointed at different displays through the 'device' property, but the current acceleration patch doesn't have a mechanism for setting the property, and always uses the compiled-in default.

This patch allows userspace startup code to override the default through the use of the 'v4lsinkdev' environment variable.

Please refer to the Qt4-embedded documentation for proper usage of the QWS_x environment variables and the Freescale Multimedia documentation for descriptions of the various gstreamer elements.

Quoted 7 lines

A sequence of this for a secondary display might be this:

export QWS_DISPLAY=linuxfb:/dev/fb2:1
export v4lsinkdev=/dev/video19
my-qt-app -qws

Applied to master; may you prepare same change for the X11 Qt4 recipe?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 19 lines · Otavio Salvador
Quoted 17 lines · Eric Nelson

Qt-embedded can be used on multiple screens by using environment variables QWS_DISPLAY, QWS_MOUSE_PROTO, et cetera.

The gstreamer element mfw_v4lsink used to accelerate media playback on i.MX devices can also be pointed at different displays through the 'device' property, but the current acceleration patch doesn't have a mechanism for setting the property, and always uses the compiled-in default.

This patch allows userspace startup code to override the default through the use of the 'v4lsinkdev' environment variable.

Please refer to the Qt4-embedded documentation for proper usage of the QWS_x environment variables and the Freescale Multimedia documentation for descriptions of the various gstreamer elements.

A sequence of this for a secondary display might be this:

Quoted 8 lines
Quoted 5 lines

export QWS_DISPLAY=linuxfb:/dev/fb2:1
export v4lsinkdev=/dev/video19
my-qt-app -qws

Applied to master; may you prepare same change for the X11 Qt4 recipe?

Yep. Done.

I hadn't noticed that the Phonon patches were in two places, so I also created an include file to make any updates easier.