Skip to contentSkip to conversation

Cedar Trail and gst-vaapi fixes

PATCH New Ross Burton 3 participants 8 messages Oct 17, 2012 – Oct 22, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

Make gst-vaapi work on Cedar Trail, upgrade the gst-vaapi to the latest version which doesn't need ffmpeg anymore, and remove the commercial restriction on gst-vaapi.

The new gst-vaapi was tested on Cedar Trail, and played the Sintel 720p trailer smoothly. ffmpeg was required for the audio (MPEG4 AAC), but without that present the video still plays.

Ross

#2 lore raw

PATCH 2/3 gstreamer-vaapi: upgrade to 0.3.8, and remove ffmpeg dependencies

---
 .../gstreamer/gstreamer-vaapi_git.bb               |   21 ++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
common/recipes-multimedia/gstreamer/gstreamer-vaapi_git.bb +15 -6
index fe601cc..27552a2 100644
@@ -6,15 +6,14 @@ based plugins for GStreamer and helper libraries: `vaapidecode', \
 LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
 
-DEPENDS = "gstreamer libva ffmpeg"
+DEPENDS = "gstreamer libva"
 
-# 0.2.9 tag
-SRCREV = "c98c14bd32855467a5a0ff21b6c703e9e3461467"
-PV = "0.2.9+git${SRCPV}"
+# 0.3.8 tag
+SRCREV = "6ec4c2252a4aa706cd8631cb1083828485b9df9a"
+PV = "0.3.8+git${SRCPV}"
 PR = "r0"
 
-SRC_URI = "git://gitorious.org/vaapi/gstreamer-vaapi.git \
-           file://glib-includes.patch"
+SRC_URI = "git://gitorious.org/vaapi/gstreamer-vaapi.git"
 
 SRC_URI[md5sum] = "729d75f21df79114a8c81d896489e5ad"
 SRC_URI[sha256sum] = "f1770c4537f1615701dbc845eee5732fbb1036b3acafbc7488e551fab334a31d"
@@ -23,6 +22,16 @@ S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig gtk-doc
 
+EXTRA_OECONF = "--disable-ffmpeg"
+
+do_configure_prepend() {
+  # DEBUG: Executing shell function do_configure
+  # ln: target `m4/' is not a directory: No such file or directory
+  # cp: cannot create regular file `m4/': Not a directory
+  # (should be fixed in autotools.bbclass)
+  mkdir --parents ${B}/m4
+}
+
 FILES_${PN} += "${libdir}/gstreamer-0.10/*.so"
 FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug"
 FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la ${libdir}/gstreamer-0.10/*.a"
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/3 cedartrail: add missing gst-va-intel-vaapi machine feature

In reply to Ross Burton

There needs to be a gst-va-* MACHINE_FEATURE to get the right VA elements in the images.

---
 meta-cedartrail/conf/machine/cedartrail.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cedartrail/conf/machine/cedartrail.conf +1 -1
index 33af012..ea50ea6 100644
@@ -7,7 +7,7 @@
 require conf/machine/include/tune-atom.inc
 require conf/machine/include/ia32-base.inc
 
-MACHINE_FEATURES += "pcbios efi"
+MACHINE_FEATURES += "pcbios efi va-impl-intel"
 
 XSERVER ?= "${XSERVER_IA32_BASE} \
            ${XSERVER_IA32_EXT} \
Signature · 1 line
1.7.10
#3 lore raw

PATCH 3/3 meta-intel: don't require commercial licenses for gstreamer-vaapi

In reply to Ross Burton

Now that gstreamer-vaapi doesn't depend on ffmpeg, it can always be recommended by the machine configuration.

---
 meta-cedartrail/conf/machine/cedartrail.conf |    5 +----
 meta-chiefriver/conf/machine/chiefriver.conf |    5 +----
 meta-crownbay/conf/machine/crownbay.conf     |    5 +----
 meta-fri2/conf/machine/fri2.conf             |    5 +----
 meta-sugarbay/conf/machine/sugarbay.conf     |    5 +----
 meta-sys940x/conf/machine/sys940x.conf       |    5 +----
 6 files changed, 6 insertions(+), 24 deletions(-)
meta-cedartrail/conf/machine/cedartrail.conf +1 -4
index ea50ea6..40920fe 100644
@@ -22,7 +22,4 @@ SYSLINUX_OPTS = "serial 0 115200"
 SERIAL_CONSOLE = "115200 ttyS0"
 APPEND += "console=ttyS0,115200 console=tty0"
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "", d)}"
-
-MACHINE_EXTRA_RRECOMMENDS += "${VA_FEATURES}"
+MACHINE_EXTRA_RRECOMMENDS += "gst-va-intel va-intel"
meta-chiefriver/conf/machine/chiefriver.conf +1 -4
index a9c8e5a..8074623 100644
@@ -15,7 +15,4 @@ XSERVER ?= "${XSERVER_IA32_BASE} \
            ${XSERVER_IA32_I965} \
            "
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "", d)}"
-
-MACHINE_EXTRA_RRECOMMENDS += "${VA_FEATURES} lms"
+MACHINE_EXTRA_RRECOMMENDS += "gst-va-intel va-intel lms"
meta-crownbay/conf/machine/crownbay.conf +1 -4
index 72431de..bc0b0f9 100644
@@ -23,7 +23,4 @@ PREFERRED_VERSION_xf86-input-evdev ?= "2.6.0"
 
 APPEND += "video=vesafb vga=0x318 vmalloc=256MB"
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "va-intel", d)}"
-
-MACHINE_EXTRA_RRECOMMENDS += "${VA_FEATURES}"
+MACHINE_EXTRA_RRECOMMENDS += "gst-va-intel va-intel"
meta-fri2/conf/machine/fri2.conf +1 -4
index dff11a8..46fd7a7 100644
@@ -8,11 +8,8 @@ require conf/machine/include/tune-atom.inc
 require conf/machine/include/ia32-base.inc
 require conf/machine/include/meta-intel.inc
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "va-intel", d)}"
-
 MACHINE_FEATURES += "wifi 3g pcbios efi va-impl-mixvideo"
-MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-iwlwifi-6000g2a-5 ${VA_FEATURES}"
+MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-iwlwifi-6000g2a-5 gst-va-intel va-intel"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 PREFERRED_VERSION_linux-yocto = "3.4%"
meta-sugarbay/conf/machine/sugarbay.conf +1 -4
index 17cc15c..3282fc8 100644
@@ -16,7 +16,4 @@ XSERVER ?= "${XSERVER_IA32_BASE} \
            ${XSERVER_IA32_I965} \
            "
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "", d)}"
-
-MACHINE_EXTRA_RRECOMMENDS += "${VA_FEATURES}"
+MACHINE_EXTRA_RRECOMMENDS += "gst-va-intel va-intel"
meta-sys940x/conf/machine/sys940x.conf +1 -4
index bdd655f..7e0d289 100644
@@ -26,7 +26,4 @@ PREFERRED_VERSION_emgd-driver-bin ?= "1.14"
 SERIAL_CONSOLE = "115200 ttyS0"
 APPEND += "console=ttyS0,115200 console=tty0"
 
-VA_FEATURES = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", \
-	    "commercial", "gst-va-intel va-intel", "va-intel", d)}"
-
-MACHINE_EXTRA_RRECOMMENDS += "${VA_FEATURES}"
+MACHINE_EXTRA_RRECOMMENDS += "gst-va-intel va-intel"
Signature · 1 line
1.7.10
#4 lore raw
In reply to Ross Burton
Quoted 17 lines

-----Original Message-----
From: Ross Burton [mailto:[email protected]]
Sent: Wednesday, October 17, 2012 8:21 AM
To: Bodke, Kishore K; Kamble, Nitin A; [email protected]
Cc: [email protected]
Subject: Cedar Trail and gst-vaapi fixes

Hi,

Make gst-vaapi work on Cedar Trail, upgrade the gst-vaapi to the latest version
which doesn't need ffmpeg anymore, and remove the commercial restriction on
gst-vaapi.

Quoted 3 lines

The new gst-vaapi was tested on Cedar Trail, and played the Sintel 720p trailer smoothly. ffmpeg was required for the audio (MPEG4 AAC), but without that present the video still plays.

Hi,

Wanted to check if you had a chance to look into the cpu uitilization? We had less than 15% cpu uitilization, with the acceleration while playing the video.

Thanks
Kishore.

Quoted 2 lines

Ross

#5 lore raw
Quoted 2 lines · Kishore K

Wanted to check if you had a chance to look into the cpu uitilization? We had less than 15% cpu uitilization, with the acceleration while playing the video.

With sintel_trailer-720p.mp4 (and ffmpeg codecs so the audio is also being decoded), 4% according to top.

Ross

#6 lore raw
In reply to Ross Burton
Quoted 10 lines · Ross Burton

Hi,

Make gst-vaapi work on Cedar Trail, upgrade the gst-vaapi to the latest version which doesn't need ffmpeg anymore, and remove the commercial restriction on gst-vaapi.

The new gst-vaapi was tested on Cedar Trail, and played the Sintel 720p trailer smoothly. ffmpeg was required for the audio (MPEG4 AAC), but without that present the video still plays.

I pulled the first two patches into meta-intel/master, but left the third behind - we still need the commercial license since the gst-ffmpeg requires it, and even then we still want to keep the VA_FEATURES so users can just set it to "" to not include video acceleration.

Tom

Quoted 5 lines

Ross
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#7 lore raw
Quoted 5 lines · Tom Zanussi

I pulled the first two patches into meta-intel/master, but left the third behind - we still need the commercial license since the gst-ffmpeg requires it, and even then we still want to keep the VA_FEATURES so users can just set it to "" to not include video acceleration.

I've restored VA_FEATURES but as gst-ffmpeg is a only-if-commercial rdependency of gst-va-intel-general (and not gst-vaapi with the patches you merged), I don't see why the commercial checks need to be anywhere but the rdepends of gst-va-intel-general.

(V2 just sent)

Ross