gst1-imx: add package
PATCH v4 1/1 gst1-imx: add package
From: Gary Bisson <[email protected]>
Open-source GStreamer 1.0 plugins for i.MX6 platforms. More info at https://github.com/Freescale/gstreamer-imx
---
Modifications v3->v4:
- Bump version to 0.10.1
Modifications v2->v3:
- Change package name from gst1-plugins-imx to gst1-imx
- Remove commands unnecessary parentheses
- Modify package comment to clarify it is only working on i.MX6
Modifications v1->v2:
- Use of github helper macro
- Modify package comment with Peter S. original patch
- Add comment for eglibc dependency (due to GPU libs)
- Remove comments on package dependencies
This patch has been tested using an i.MX6Q SabreLite (nitrogen6x config) along with the usual Tears of Steel movie in 1080p:
http://media.xiph.org/mango/tears_of_steel_1080p.webm
Below are the commands used to test the different sinks:
$ gst-launch-1.0 playbin uri=file:///root/tears_of_steel_1080p.webm $ gst-launch-1.0 filesrc location=/root/tears_of_steel_1080p.webm ! \ matroskademux ! imxvpudec ! imxipusink $ gst-launch-1.0 filesrc location=/root/tears_of_steel_1080p.webm ! \ matroskademux ! imxvpudec ! imxeglvivsink
The toolchain used was the Sourcery CodeBench 2014.05. The video above also requires the following extra configuration in order to demux the content:
BR2_PACKAGE_GST1_PLUGINS_GOOD=y BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MATROSKA=y
Thanks,
Gary
--- package/gstreamer1/Config.in | 1 + package/gstreamer1/gst1-imx/Config.in | 25 ++++++++++++++++ package/gstreamer1/gst1-imx/gst1-imx.mk | 52 +++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 package/gstreamer1/gst1-imx/Config.in create mode 100644 package/gstreamer1/gst1-imx/gst1-imx.mk
package/gstreamer1/Config.in +1 -0
@@ -6,6 +6,7 @@ source "package/gstreamer1/gst1-plugins-base/Config.in" source "package/gstreamer1/gst1-plugins-good/Config.in" source "package/gstreamer1/gst1-plugins-bad/Config.in" source "package/gstreamer1/gst1-plugins-ugly/Config.in" +source "package/gstreamer1/gst1-imx/Config.in" source "package/gstreamer1/gst1-libav/Config.in" source "package/gstreamer1/gst1-validate/Config.in" source "package/gstreamer1/gst-omx/Config.in"
package/gstreamer1/gst1-imx/Config.in new file +25 -0
@@ -0,0 +1,25 @@ +comment "gst1-imx needs an imx-specific Linux kernel to be built" + depends on BR2_arm && !BR2_LINUX_KERNEL + +# Required by gpu-viv-bin-mx6q +comment "gst1-imx needs an (e)glibc toolchain" + depends on BR2_arm + depends on !BR2_TOOLCHAIN_USES_GLIBC + +config BR2_PACKAGE_GST1_IMX + bool "gst1-imx" + depends on BR2_LINUX_KERNEL + depends on BR2_arm # Only relevant for i.MX + depends on BR2_TOOLCHAIN_USES_GLIBC # gpu-viv-bin-mx6q + depends on BR2_PACKAGE_GPU_VIV_BIN_MX6Q + depends on BR2_PACKAGE_LIBFSLVPUWRAP + select BR2_PACKAGE_GST1_PLUGINS_BASE + help + This is a set of GStreamer 1.0 plugins for plugins for Freescale's + i.MX6 platforms, with emphasis on video en/decoding using the VPU + engine. + + This software supports only the i.MX6 SoC family and requires a + kernel that includes the i.MX6 specific headers to be built. + + The software as a whole is currently in beta stage.
package/gstreamer1/gst1-imx/gst1-imx.mk new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH v4 1/1 gst1-imx: add package
Quoted 6 lines · Gary Bisson
Open-source GStreamer 1.0 plugins for i.MX6 platforms. More info at https://github.com/Freescale/gstreamer-imx
Signed-off-by Gary Bisson <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>Tested-by Luca Ceresoli <[email protected]>
My test scenario:
gst-launch-1.0 -e v4l2src device=/dev/video0 ! \
video/x-raw,width=640,height=480,framerate=15/1 ! \
imxipuvideotransform ! \imxvpuenc_h264 idr-interval=16 bitrate=512 ! \
rtph264pay config-interval=5 pt=96 ! \
udpsink host=10.203.100.24 port=11111 sync=false
CPU usage -- cca 15 % on single core (imx6).
Best regards;
Rostislav Lisovy
PATCH v4 1/1 gst1-imx: add package
In reply to Gary BissonQuoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gary" == Gary Bisson <[email protected]> writes:
From: Gary Bisson <[email protected]> Open-source GStreamer 1.0 plugins for i.MX6 platforms. More info at https://github.com/Freescale/gstreamer-imx
Signed-off-by Gary Bisson <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>Tested-by Luca Ceresoli <[email protected]>---
Modificationsv3->v4:
- Bump version to 0.10.1
package/gstreamer1/gst1-imx/Config.in line 16
Quoted 8 lines
package/gstreamer1/gst1-imx/Config.in new file +8
-0+config BR2_PACKAGE_GST1_IMX + bool "gst1-imx" + depends on BR2_LINUX_KERNEL + depends on BR2_arm # Only relevant for i.MX + depends on BR2_TOOLCHAIN_USES_GLIBC # gpu-viv-bin-mx6q + depends on BR2_PACKAGE_GPU_VIV_BIN_MX6Q + depends on BR2_PACKAGE_LIBFSLVPUWRAP + select BR2_PACKAGE_GST1_PLUGINS_BASE
All these depends on are not really that nice, but after fiddling with it for a while I also don't manage to get to anything better without getting kconfig to complain about recursion issues, so lets leave it like this.
package/gstreamer1/gst1-imx/Config.in line 25
Quoted 9 lines
package/gstreamer1/gst1-imx/Config.in new file +9
-0+ help + This is a set of GStreamer 1.0 plugins for plugins for Freescale's + i.MX6 platforms, with emphasis on video en/decoding using the VPU + engine. + + This software supports only the i.MX6 SoC family and requires a + kernel that includes the i.MX6 specific headers to be built. + + The software as a whole is currently in beta stage.
I've added the upstream URL here and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard