*** Add Intel QuickSync support to ffmpeg ***
cover *** Add Intel QuickSync support to ffmpeg ***
In addition of the existing VAAPI for hardware encoding, Intel provides the libmfx API embeded in its Intel MediaSDK. Intel MediaSDK improves encoding quality, is faster, and makes use of all encoding capabilities on Intel platforms.
MFX test procedure (h264):
1. Retrieve sample data (https://github.com/Intel-Media-SDK/samples)
2. Run ./sample_multi_transcode -i::h264 test_stream.264 -o::h264 out.264.
3. Test should pass.
FFMpeg QuickSync test procedure (h264):
1. Download test video: https://peach.blender.org/trailer-page/
2. Run ffmpeg -y -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i /trailer_1080p.mov -c:v h264_qsv -framerate 60 -acodec copy out.mp4
Louis-Paul Cordier (6):
intel-gmmlib: new package.
intel-mediadriver: new package.
intel-mediasdk: new package.
ffmpeg: bump to version 4.1. ffserver is not supported anymore.
ffmpeg: enable Intel QuickSync support.
Update DEVELOPERS.
DEVELOPERS | 5 ++ package/Config.in | 3 ++ package/ffmpeg/0001-ffmpeg-pthreads.patch | 34 ------------- package/ffmpeg/Config.in | 6 --- package/ffmpeg/ffmpeg.hash | 2 +- package/ffmpeg/ffmpeg.mk | 15 +++--- package/intel-gmmlib/Config.in | 8 ++++ package/intel-gmmlib/intel-gmmlib.hash | 2 + package/intel-gmmlib/intel-gmmlib.mk | 21 ++++++++ package/intel-mediadriver/Config.in | 15 ++++++ .../intel-mediadriver/intel-mediadriver.hash | 2 + .../intel-mediadriver/intel-mediadriver.mk | 34 +++++++++++++ package/intel-mediasdk/Config.in | 15 ++++++ package/intel-mediasdk/intel-mediasdk.hash | 2 + package/intel-mediasdk/intel-mediasdk.mk | 48 +++++++++++++++++++ package/intel-mediasdk/intel-mediasdk.sh | 4 ++ package/intel-mediasdk/libmfx.pc | 9 ++++ 17 files changed, 177 insertions(+), 48 deletions(-) delete mode 100644 package/ffmpeg/0001-ffmpeg-pthreads.patch create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644 package/intel-gmmlib/intel-gmmlib.mk create mode 100644 package/intel-mediadriver/Config.in create mode 100644 package/intel-mediadriver/intel-mediadriver.hash create mode 100644 package/intel-mediadriver/intel-mediadriver.mk create mode 100644 package/intel-mediasdk/Config.in create mode 100644 package/intel-mediasdk/intel-mediasdk.hash create mode 100644 package/intel-mediasdk/intel-mediasdk.mk create mode 100755 package/intel-mediasdk/intel-mediasdk.sh create mode 100644 package/intel-mediasdk/libmfx.pc
Signature · 1 line
2.20.1
PATCH 1/6 intel-gmmlib: new package.
--- package/Config.in | 1 + package/intel-gmmlib/Config.in | 8 ++++++++ package/intel-gmmlib/intel-gmmlib.hash | 2 ++ package/intel-gmmlib/intel-gmmlib.mk | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644 package/intel-gmmlib/intel-gmmlib.mk
package/Config.in +1 -0
@@ -1265,6 +1265,7 @@ menu "Graphics" source "package/harfbuzz/Config.in" source "package/ijs/Config.in" source "package/imlib2/Config.in" + source "package/intel-gmmlib/Config.in" source "package/irrlicht/Config.in" source "package/jasper/Config.in" source "package/jpeg/Config.in"
package/intel-gmmlib/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_INTEL_GMMLIB + bool "intel-gmmlib" + depends on BR2_x86_64 + help + The Intel(R) Graphics Memory Management Library provides + device specific and buffer management for the Intel(R) + Graphics Compute Runtime for OpenCL(TM) and the Intel(R) + Media Driver for VAAPI.
package/intel-gmmlib/intel-gmmlib.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gz
package/intel-gmmlib/intel-gmmlib.mk new file +21 -0
@@ -0,0 +1,21 @@ +################################################################################ +# +# intel-gmmlib +# +################################################################################ + +INTEL_GMMLIB_VERSION = 18.3.0 +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archive +INTEL_GMMLIB_LICENSE = MIT +INTEL_GMMLIB_LICENSE_FILES = COPYING + +INTEL_GMMLIB_INSTALL_STAGING = YES +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF + +define INTEL_GMMLIB_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/lib +endef + +$(eval $(cmake-package))
Signature · 1 line
2.20.1
PATCH 1/6 intel-gmmlib: new package.
Hi Louis-Paul,
Quoted 59 lines · Louis-Paul Cordier
Signed-off-by Louis-Paul Cordier <[email protected]>--- package/Config.in | 1 + package/intel-gmmlib/Config.in | 8 ++++++++ package/intel-gmmlib/intel-gmmlib.hash | 2 ++ package/intel-gmmlib/intel-gmmlib.mk | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644 package/intel-gmmlib/intel-gmmlib.mkpackage/Config.in +1
-0@@ -1265,6 +1265,7 @@ menu "Graphics" source "package/harfbuzz/Config.in" source "package/ijs/Config.in" source "package/imlib2/Config.in" + source "package/intel-gmmlib/Config.in" source "package/irrlicht/Config.in" source "package/jasper/Config.in" source "package/jpeg/Config.in"package/intel-gmmlib/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_INTEL_GMMLIB + bool "intel-gmmlib" + depends on BR2_x86_64 + help + The Intel(R) Graphics Memory Management Library provides + device specific and buffer management for the Intel(R) + Graphics Compute Runtime for OpenCL(TM) and the Intel(R) + Media Driver for VAAPI.package/intel-gmmlib/intel-gmmlib.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gzpackage/intel-gmmlib/intel-gmmlib.mk new file +8
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# intel-gmmlib +# +################################################################################ + +INTEL_GMMLIB_VERSION = 18.3.0 +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archive
package/intel-gmmlib/intel-gmmlib.mk line 18
Quoted 10 lines
package/intel-gmmlib/intel-gmmlib.mk new file +10
-0+INTEL_GMMLIB_LICENSE = MIT +INTEL_GMMLIB_LICENSE_FILES = COPYING + +INTEL_GMMLIB_INSTALL_STAGING = YES +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF + +define INTEL_GMMLIB_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/lib
This is unusual. Can't you use the default install make target like the staging install? Why do you install in /lib on target when upstream installs in /usr/lib on staging?
If this is all intended please explain why in a comment.
baruch
Quoted 3 lines
package/intel-gmmlib/intel-gmmlib.mk new file +3
-0+endef + +$(eval $(cmake-package))
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 -PATCH 1/6 intel-gmmlib: new package.
Hi,
The default install target is installing a bunch of header files on the target, while unecessary. Maybe Buildroot scripts are cleaning them before creating the image?
Concerning the /lib folder, it is an error indeed. It must be in /usr/lib. Any other suggestions? This is my first contribution to the Buildroot project ;)
Thank you for your feedback!
De : Baruch Siach <[email protected]>
? : Louis-Paul Cordier <[email protected]>
Sujet : Re: [Buildroot] [PATCH 1/6] intel-gmmlib: new package. Date : 19/01/2019 19:29:31 Europe/Paris
Copie ? : buildroot at buildroot.org;
???Bernd Kuhls <[email protected]>;
???Mahyar Koshkouei <[email protected]>
Hi Louis-Paul,
Quoted 59 lines · Louis-Paul Cordier
Signed-off-by Louis-Paul Cordier <[email protected]>---
package/Config.in | 1 + package/intel-gmmlib/Config.in | 8 ++++++++ package/intel-gmmlib/intel-gmmlib.hash | 2 ++package/intel-gmmlib/intel-gmmlib.mk| 21 +++++++++++++++++++++4 files changed, 32 insertions(+)create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644
package/intel-gmmlib/intel-gmmlib.mkpackage/Config.in +0
-0@@ -1265,6 +1265,7 @@ menu "Graphics"source "package/harfbuzz/Config.in"
source "package/ijs/Config.in"
source "package/imlib2/Config.in"
+ source "package/intel-gmmlib/Config.in"
source "package/irrlicht/Config.in"
source "package/jasper/Config.in"
source "package/jpeg/Config.in"package/intel-gmmlib/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_INTEL_GMMLIB + bool "intel-gmmlib" + depends on BR2_x86_64 + help + The Intel(R) Graphics Memory Management Library provides + device specific and buffer management for the Intel(R) + Graphics Compute Runtime for OpenCL(TM) and the Intel(R) + Media Driver for VAAPI.package/intel-gmmlib/intel-gmmlib.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gzpackage/intel-gmmlib/intel-gmmlib.mk new file +8
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# intel-gmmlib +# +################################################################################ + +INTEL_GMMLIB_VERSION = 18.3.0 +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archive
package/intel-gmmlib/intel-gmmlib.mk line 18
Quoted 10 lines
package/intel-gmmlib/intel-gmmlib.mk new file +10
-0+INTEL_GMMLIB_LICENSE = MIT +INTEL_GMMLIB_LICENSE_FILES = COPYING + +INTEL_GMMLIB_INSTALL_STAGING = YES +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF + +define INTEL_GMMLIB_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/lib
This is unusual. Can't you use the default install make target like the staging install? Why do you install in /lib on target when upstream installs in /usr/lib on staging?
If this is all intended please explain why in a comment.
baruch
Quoted 3 lines
package/intel-gmmlib/intel-gmmlib.mk new file +3
-0+endef + +$(eval $(cmake-package))
Signature · 7 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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190121/72f23c5f/attachment.html>PATCH 1/6 intel-gmmlib: new package.
Hi Louis-Paul,
Please avoid top-posting.
Quoted 3 lines · lpdev
The default install target is installing a bunch of header files on the target, while unecessary. Maybe Buildroot scripts are cleaning them before creating the image?
Correct. See the target-finalize target definition in the top level Makefile.
Quoted 2 lines
Concerning the /lib folder, it is an error indeed. It must be in
/usr/lib. Any other suggestions?
Just leave the libraries where upstream install target put them.
Quoted 1 line
This is my first contribution to the Buildroot project ;)
Thanks for you contribution. This is not bad for first time.
Good luck,
baruch
Quoted 87 lines
Quoted 1 line
Thank you for your feedback!
De : Baruch Siach <[email protected]>
? : Louis-Paul Cordier <[email protected]>
Sujet : Re: [Buildroot] [PATCH 1/6] intel-gmmlib: new package. Date : 19/01/2019 19:29:31 Europe/Paris
Copie ? : buildroot at buildroot.org;
Bernd Kuhls <[email protected]>;
Mahyar Koshkouei <[email protected]>Hi Louis-Paul,
Quoted 59 lines · Louis-Paul Cordier
Signed-off-by Louis-Paul Cordier <[email protected]>---
package/Config.in | 1 + package/intel-gmmlib/Config.in | 8 ++++++++ package/intel-gmmlib/intel-gmmlib.hash | 2 ++package/intel-gmmlib/intel-gmmlib.mk| 21 +++++++++++++++++++++4 files changed, 32 insertions(+)create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644
package/intel-gmmlib/intel-gmmlib.mkpackage/Config.in +0
-0@@ -1265,6 +1265,7 @@ menu "Graphics"source "package/harfbuzz/Config.in"
source "package/ijs/Config.in"
source "package/imlib2/Config.in"
+ source "package/intel-gmmlib/Config.in"
source "package/irrlicht/Config.in"
source "package/jasper/Config.in"
source "package/jpeg/Config.in"package/intel-gmmlib/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_INTEL_GMMLIB + bool "intel-gmmlib" + depends on BR2_x86_64 + help + The Intel(R) Graphics Memory Management Library provides + device specific and buffer management for the Intel(R) + Graphics Compute Runtime for OpenCL(TM) and the Intel(R) + Media Driver for VAAPI.package/intel-gmmlib/intel-gmmlib.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gzpackage/intel-gmmlib/intel-gmmlib.mk new file +8
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# intel-gmmlib +# +################################################################################ + +INTEL_GMMLIB_VERSION = 18.3.0 +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archivepackage/intel-gmmlib/intel-gmmlib.mk line 18
Quoted 10 lines
package/intel-gmmlib/intel-gmmlib.mk new file +10
-0+INTEL_GMMLIB_LICENSE = MIT +INTEL_GMMLIB_LICENSE_FILES = COPYING + +INTEL_GMMLIB_INSTALL_STAGING = YES +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF + +define INTEL_GMMLIB_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/libThis is unusual. Can't you use the default install make target like the staging install? Why do you install in /lib on target when upstream installs in
/usr/libon staging?
Quoted 7 lines
If this is all intended please explain why in a comment.
baruch
package/intel-gmmlib/intel-gmmlib.mk line 21
Quoted 3 lines
package/intel-gmmlib/intel-gmmlib.mk new file +3
-0+endef + +$(eval $(cmake-package))
--
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 -
PATCH 1/6 intel-gmmlib: new package.
Quoted 117 lines · Baruch Siach
Hi Louis-Paul,
Please avoid top-posting.
Quoted 3 lines · lpdev
The default install target is installing a bunch of header files on the target, while unecessary. Maybe Buildroot scripts are cleaning them before creating the image?
Correct. See the target-finalize target definition in the top level
Makefile.Quoted 2 lines
Concerning the /lib folder, it is an error indeed. It must be in
/usr/lib. Any other suggestions?Just leave the libraries where upstream install target put them.
Quoted 1 line
This is my first contribution to the Buildroot project ;)
Thanks for you contribution. This is not bad for first time. Good luck,
baruchQuoted 86 lines
Quoted 1 line
Thank you for your feedback!
De : Baruch Siach <[email protected]>
? : Louis-Paul Cordier <[email protected]>
Sujet : Re: [Buildroot] [PATCH 1/6] intel-gmmlib: new package. Date : 19/01/2019 19:29:31 Europe/Paris
Copie ? : buildroot at buildroot.org;
Bernd Kuhls <[email protected]>;
Mahyar Koshkouei <[email protected]>Hi Louis-Paul,
Quoted 59 lines · Louis-Paul Cordier
Signed-off-by Louis-Paul Cordier <[email protected]>---
package/Config.in | 1 + package/intel-gmmlib/Config.in | 8 ++++++++ package/intel-gmmlib/intel-gmmlib.hash | 2 ++package/intel-gmmlib/intel-gmmlib.mk| 21 +++++++++++++++++++++4 files changed, 32 insertions(+)create mode 100644 package/intel-gmmlib/Config.in create mode 100644 package/intel-gmmlib/intel-gmmlib.hash create mode 100644
package/intel-gmmlib/intel-gmmlib.mkpackage/Config.in +0
-0@@ -1265,6 +1265,7 @@ menu "Graphics"source "package/harfbuzz/Config.in"
source "package/ijs/Config.in"
source "package/imlib2/Config.in"
+ source "package/intel-gmmlib/Config.in"
source "package/irrlicht/Config.in"
source "package/jasper/Config.in"
source "package/jpeg/Config.in"package/intel-gmmlib/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_INTEL_GMMLIB + bool "intel-gmmlib" + depends on BR2_x86_64 + help + The Intel(R) Graphics Memory Management Library provides + device specific and buffer management for the Intel(R) + Graphics Compute Runtime for OpenCL(TM) and the Intel(R) + Media Driver for VAAPI.package/intel-gmmlib/intel-gmmlib.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 e3114d7ddd429f1b9aa43a1b1d0086d881fbf4d90e4a90ab8577c369d2e3a5e1 intel-gmmlib-18.3.0.tar.gzpackage/intel-gmmlib/intel-gmmlib.mk new file +8
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# intel-gmmlib +# +################################################################################ + +INTEL_GMMLIB_VERSION = 18.3.0 +INTEL_GMMLIB_SITE = https://github.com/intel/gmmlib/archivepackage/intel-gmmlib/intel-gmmlib.mk line 18
Quoted 10 lines
package/intel-gmmlib/intel-gmmlib.mk new file +10
-0+INTEL_GMMLIB_LICENSE = MIT +INTEL_GMMLIB_LICENSE_FILES = COPYING + +INTEL_GMMLIB_INSTALL_STAGING = YES +INTEL_GMMLIB_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_GMMLIB_CONF_OPTS += -DRUN_TEST_SUITE=OFF + +define INTEL_GMMLIB_INSTALL_TARGET_CMDS + cp -a $(STAGING_DIR)/usr/lib/libigdgmm* $(TARGET_DIR)/libThis is unusual. Can't you use the default install make target like the staging install? Why do you install in /lib on target when upstream installs in
/usr/libon staging?Quoted 6 lines
If this is all intended please explain why in a comment. baruch
package/intel-gmmlib/intel-gmmlib.mk line 21
Quoted 3 lines
package/intel-gmmlib/intel-gmmlib.mk new file +3
-0+endef + +$(eval $(cmake-package))
Quoted 5 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 -
Thank you for your feedback. I will fix everything on tomorrow. Any hope to see these patches in the upcoming 2019.02? Louis-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190128/39b28151/attachment.html>
PATCH 1/6 intel-gmmlib: new package.
Hi Louis-Paul,
Quoted 2 lines · LP C
Thank you for your feedback. I will fix everything on tomorrow. Any hope to see these patches in the upcoming 2019.02?
The schedule for 2019.02 is a little tight. Especially since the packages you add are not so simple. A few more iterations will probably be needed.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 2/6 intel-mediadriver: new package.
In reply to Louis-Paul Cordier--- package/Config.in | 1 + package/intel-mediadriver/Config.in | 15 ++++++++ .../intel-mediadriver/intel-mediadriver.hash | 2 ++ .../intel-mediadriver/intel-mediadriver.mk | 34 +++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 package/intel-mediadriver/Config.in create mode 100644 package/intel-mediadriver/intel-mediadriver.hash create mode 100644 package/intel-mediadriver/intel-mediadriver.mk
package/Config.in +1 -0
@@ -1266,6 +1266,7 @@ menu "Graphics" source "package/ijs/Config.in" source "package/imlib2/Config.in" source "package/intel-gmmlib/Config.in" + source "package/intel-mediadriver/Config.in" source "package/irrlicht/Config.in" source "package/jasper/Config.in" source "package/jpeg/Config.in"
package/intel-mediadriver/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +config BR2_PACKAGE_INTEL_MEDIADRIVER + bool "intel-mediadriver" + depends on BR2_x86_64 + depends on BR2_PACKAGE_LIBVA + depends on BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_LIBPCIACCESS + select BR2_PACKAGE_INTEL_GMMLIB + help + The Intel(R) Media Driver for VAAPI is a new VA-API (Video + Acceleration API) user mode driver supporting hardware + accelerated decoding, encoding, and video post processing for + GEN based graphics hardware. + +comment "intel-mediadriver needs libx11" + depends on !BR2_PACKAGE_XLIB_LIBX11
package/intel-mediadriver/intel-mediadriver.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 df9af1cc796b4123508aacaf19d040cc5d8c5742c05199f45c9a3905ed8d1b52 intel-media-18.3.0.tar.gz
package/intel-mediadriver/intel-mediadriver.mk new file +34 -0
@@ -0,0 +1,34 @@ +################################################################################ +# +# intel-mediadriver +# +################################################################################ + +# based on https://software.intel.com/en-us/articles/build-and-debug-open-source-media-stack + +INTEL_MEDIADRIVER_VERSION = 18.3.0 +INTEL_MEDIADRIVER_SITE = http://github.com/intel/media-driver/archive +INTEL_MEDIADRIVER_SOURCE= intel-media-$(INTEL_MEDIADRIVER_VERSION).tar.gz +INTEL_MEDIADRIVER_LICENSE = MIT BSD-3-Clause +INTEL_MEDIADRIVER_LICENSE_FILES = LICENSE.md + +INTEL_MEDIADRIVER_DEPENDENCIES += intel-gmmlib +INTEL_MEDIADRIVER_DEPENDENCIES += libva +INTEL_MEDIADRIVER_DEPENDENCIES += libpciaccess + +INTEL_MEDIADRIVER_SUBDIR = media_driver +INTEL_MEDIADRIVER_SUPPORTS_IN_SOURCE_BUILD = NO + +INTEL_MEDIADRIVER_CONF_OPTS += -DMEDIA_VERSION="2.0.0"\ + -DBUILD_ALONG_WITH_CMRTLIB=1 \ + -DBS_DIR_MEDIA=$(@D) \ + -DINSTALL_DRIVERS_SYSCONF=OFF \ + -DLIBVA_DRIVERS_PATH=$(STAGING_DIR)/lib/dri \ + -DMEDIA_RUN_TEST_SUITE=OFF \ + -DRUN_TEST_SUITE=OFF + +define INTEL_MEDIADRIVER_INSTALL_TARGET_CMDS + cp "$(INTEL_MEDIADRIVER_BUILDDIR)/iHD_drv_video.so" "$(TARGET_DIR)/lib/dri" +endef + +$(eval $(cmake-package))
Signature · 1 line
2.20.1
PATCH 3/6 intel-mediasdk: new package.
In reply to Louis-Paul Cordier--- package/Config.in | 1 + package/intel-mediasdk/Config.in | 15 +++++++ package/intel-mediasdk/intel-mediasdk.hash | 2 + package/intel-mediasdk/intel-mediasdk.mk | 48 ++++++++++++++++++++++ package/intel-mediasdk/intel-mediasdk.sh | 4 ++ package/intel-mediasdk/libmfx.pc | 9 ++++ 6 files changed, 79 insertions(+) create mode 100644 package/intel-mediasdk/Config.in create mode 100644 package/intel-mediasdk/intel-mediasdk.hash create mode 100644 package/intel-mediasdk/intel-mediasdk.mk create mode 100755 package/intel-mediasdk/intel-mediasdk.sh create mode 100644 package/intel-mediasdk/libmfx.pc
package/Config.in +1 -0
@@ -1267,6 +1267,7 @@ menu "Graphics" source "package/imlib2/Config.in" source "package/intel-gmmlib/Config.in" source "package/intel-mediadriver/Config.in" + source "package/intel-mediasdk/Config.in" source "package/irrlicht/Config.in" source "package/jasper/Config.in" source "package/jpeg/Config.in"
package/intel-mediasdk/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +config BR2_PACKAGE_INTEL_MEDIASDK + bool "intel-mediasdk" + depends on BR2_x86_64 + select BR2_PACKAGE_INTEL_MEDIADRIVER + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_LIBDRM_INTEL + help + Intel(R) Media SDK provides an API to access + hardware-accelerated video decode, encode and filtering on + Intel? platforms with integrated graphics. + + Supported video encoders: HEVC, AVC, MPEG-2, JPEG + Supported Video decoders: HEVC, AVC, VP8, MPEG-2, VC1, JPEG + Supported video pre-processing filters: Color Conversion, + Deinterlace, Denoise, Resize, Rotate, Composition
package/intel-mediasdk/intel-mediasdk.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 46f54f22e5a9cf41f1a6ab55346a0513ed02b2e99d41f9d178c6820d378922e3 intel-mediasdk-18.3.1.tar.gz
package/intel-mediasdk/intel-mediasdk.mk new file +48 -0
48 lines not on this page · raw message
package/intel-mediasdk/intel-mediasdk.sh new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh +# add libva driver path/name exporting for intel media solution +export LIBVA_DRIVERS_PATH=/lib/dri/ +export LIBVA_DRIVER_NAME=iHD
package/intel-mediasdk/libmfx.pc new file +9 -0
@@ -0,0 +1,9 @@ +prefix=/opt/intel/mediasdk +exec_prefix=${prefix} +libdir=${prefix}/lib/lin_x64 +includedir=${prefix}/include +Name: libmfx +Description: Intel Media Server Studio SDK +Version: 18.3.1 +Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm +Cflags: -I${includedir} -I/usr/include/libdrm
Signature · 1 line
2.20.1
PATCH 4/6 ffmpeg: bump to version 4.1. ffserver is not supported anymore.
In reply to Louis-Paul Cordier--- package/ffmpeg/0001-ffmpeg-pthreads.patch | 34 ----------------------- package/ffmpeg/Config.in | 6 ---- package/ffmpeg/ffmpeg.hash | 2 +- package/ffmpeg/ffmpeg.mk | 8 +----- 4 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 package/ffmpeg/0001-ffmpeg-pthreads.patch
package/ffmpeg/0001-ffmpeg-pthreads.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From patchwork Wed Oct 25 13:32:36 2017 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -Subject: [FFmpeg-devel] configure: v4l2_m2m depends on pthreads -From: Mark Thompson <[email protected]> -X-Patchwork-Id: 5688 -Message-Id: <[email protected]> -To: FFmpeg development discussions and patches <[email protected]> -Date: Wed, 25 Oct 2017 14:32:36 +0100 - -Fixes build with --disable-pthreads. - -Downloaded from upstream patchworks: -https://patchwork.ffmpeg.org/patch/5688/ - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - configure | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure b/configure -index c86e578..76523c8 100755 ---- a/configure -+++ b/configure -@@ -2780,7 +2780,7 @@ omx_rpi_select="omx" - qsvdec_select="qsv" - qsvenc_select="qsv" - vaapi_encode_deps="vaapi" --v4l2_m2m_deps_any="linux_videodev2_h" -+v4l2_m2m_deps="linux_videodev2_h pthreads" - - hwupload_cuda_filter_deps="cuda" - scale_npp_filter_deps="cuda libnpp"
package/ffmpeg/Config.in +0 -6
@@ -63,12 +63,6 @@ config BR2_PACKAGE_FFMPEG_FFPLAY comment "ffplay needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS -config BR2_PACKAGE_FFMPEG_FFSERVER - bool "Build ffserver" - depends on BR2_USE_MMU # fork() - help - FFserver is a streaming server for both audio and video. - config BR2_PACKAGE_FFMPEG_FFPROBE bool "Build ffprobe" help
package/ffmpeg/ffmpeg.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated -sha256 741cbd6394eaed370774ca4cc089eaafbc54d0824b9aa360d4b3b0cbcbc4a92c ffmpeg-3.4.5.tar.xz +sha256 a38ec4d026efb58506a99ad5cd23d5a9793b4bf415f2c4c2e9c1bb444acd1994 ffmpeg-4.1.tar.xz sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPLv2 sha256 b634ab5640e258563c536e658cad87080553df6f34f62269a21d554844e58bfe COPYING.LGPLv2.1 sha256 73d99bc83313fff665b426d6672b4e0479102bc402fe22314ac9ce94a38aa5ff LICENSE.md
package/ffmpeg/ffmpeg.mk +1 -7
@@ -4,7 +4,7 @@ # ################################################################################ -FFMPEG_VERSION = 3.4.5 +FFMPEG_VERSION = 4.1 FFMPEG_SOURCE = ffmpeg-$(FFMPEG_VERSION).tar.xz FFMPEG_SITE = http://ffmpeg.org/releases FFMPEG_INSTALL_STAGING = YES
@@ -84,12 +84,6 @@ else FFMPEG_CONF_OPTS += --disable-ffplay endif -ifeq ($(BR2_PACKAGE_FFMPEG_FFSERVER),y) -FFMPEG_CONF_OPTS += --enable-ffserver -else -FFMPEG_CONF_OPTS += --disable-ffserver -endif - ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y) FFMPEG_CONF_OPTS += --enable-avresample else
Signature · 1 line
2.20.1
PATCH 5/6 ffmpeg: enable Intel QuickSync support.
In reply to Louis-Paul Cordier--- package/ffmpeg/ffmpeg.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/ffmpeg/ffmpeg.mk +7 -0
@@ -309,6 +309,13 @@ else FFMPEG_CONF_OPTS += --disable-libbluray endif +ifeq ($(BR2_PACKAGE_INTEL_MEDIASDK),y) +FFMPEG_CONF_OPTS += --enable-libmfx +FFMPEG_DEPENDENCIES += intel-mediasdk +else +FFMPEG_CONF_OPTS += --disable-ibmfx +endif + ifeq ($(BR2_PACKAGE_RTMPDUMP),y) FFMPEG_CONF_OPTS += --enable-librtmp FFMPEG_DEPENDENCIES += rtmpdump
Signature · 1 line
2.20.1
PATCH 6/6 Update DEVELOPERS.
In reply to Louis-Paul Cordier--- DEVELOPERS | 5 +++++ 1 file changed, 5 insertions(+)
DEVELOPERS +5 -0
@@ -1262,6 +1262,11 @@ F: package/ti-sgx-demos/ F: package/ti-sgx-km/ F: package/ti-sgx-um/ +N: Louis-Paul Cordier <[email protected]> +F: package/intel-gmmlib +F: package/intel-mediadriver +F: package/intel-mediasdk + N: Luca Ceresoli <[email protected]> F: board/olimex/a20_olinuxino/ F: board/zynq/
Signature · 1 line
2.20.1