Skip to content

Commit

Permalink
ffmpeg: support for VAAPI and intel-vaapi-driver
Browse files Browse the repository at this point in the history
- vaapi is for intel x64 archs only
- update libva from 2.0.0 to 2.1.0
- add libva-utils (vainfo) and intel-vaapi-driver for ffmpeg with vaapi
  • Loading branch information
hgy59 authored and ymartin59 committed Feb 4, 2019
1 parent 49f7c60 commit 9fa3c0b
Show file tree
Hide file tree
Showing 16 changed files with 152 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cross/ffmpeg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ CONFIGURE_ARGS += --arch=i386 --enable-thumb
endif

ifeq ($(findstring $(ARCH),$(x64_ARCHES)),$(ARCH))
DEPENDS += native/nasm
DEPENDS += native/nasm cross/libva cross/libva-utils cross/intel-vaapi-driver
ENV += PATH=$(NASM_PATH):$$PATH
CONFIGURE_ARGS += --arch=x86_64 --enable-thumb
CONFIGURE_ARGS += --arch=x86_64 --enable-thumb --enable-vaapi
endif

ifeq ($(findstring $(ARCH),$(PPC_ARCHES)),$(ARCH))
Expand Down
23 changes: 23 additions & 0 deletions cross/intel-vaapi-driver/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PKG_NAME = intel-vaapi-driver
PKG_VERS = 2.1.0
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/intel/intel-vaapi-driver/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libva

HOMEPAGE = https://01.org/linuxmedia
COMMENT = VA-API user mode driver for Intel GEN Graphics family
LICENSE = MIT

PRE_CONFIGURE_TARGET = intel_vaapi_driver_configure

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk

.PHONY: intel_vaapi_driver_configure
intel_vaapi_driver_configure:
$(RUN) ./autogen.sh
1 change: 1 addition & 0 deletions cross/intel-vaapi-driver/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib:lib/dri/i965_drv_video.so
3 changes: 3 additions & 0 deletions cross/intel-vaapi-driver/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
intel-vaapi-driver-2.1.0.tar.gz SHA1 93067f25a65fd25211dd5d47fac1efdcb8a469b8
intel-vaapi-driver-2.1.0.tar.gz SHA256 8958113f645c6ec9a3a8f7ca80b4c308027ee2b8334531c66d1b69f002346fc6
intel-vaapi-driver-2.1.0.tar.gz MD5 0199c16372519294724a35b508906ea6
16 changes: 16 additions & 0 deletions cross/libdrm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME = libdrm
PKG_VERS = 2.4.91
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://dri.freedesktop.org/libdrm
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libpciaccess

HOMEPAGE =
COMMENT = Userspace interface to kernel DRM services
LICENSE =

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk
15 changes: 15 additions & 0 deletions cross/libdrm/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
lnk:lib/libdrm.so
lnk:lib/libdrm.so.2
lib:lib/libdrm.so.2.4.0
lnk:lib/libdrm_intel.so
lnk:lib/libdrm_intel.so.1
lib:lib/libdrm_intel.so.1.0.0
lnk:lib/libdrm_nouveau.so
lnk:lib/libdrm_nouveau.so.2
lib:lib/libdrm_nouveau.so.2.0.0
lnk:lib/libdrm_radeon.so
lnk:lib/libdrm_radeon.so.1
lib:lib/libdrm_radeon.so.1.0.1
lnk:lib/libkms.so
lnk:lib/libkms.so.1
lib:lib/libkms.so.1.0.0
3 changes: 3 additions & 0 deletions cross/libdrm/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libdrm-2.4.91.tar.bz2 SHA1 44e42ce3cd41666e343ba393c73f6f1ad9fe1e74
libdrm-2.4.91.tar.bz2 SHA256 634a0ed0cc1eff06f48674b1da81aafa661a9f001e7a4f43dde81076886dc800
libdrm-2.4.91.tar.bz2 MD5 23d87cda92700b710a37d9b8edaa9f54
16 changes: 16 additions & 0 deletions cross/libpciaccess/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME = libpciaccess
PKG_VERS = 0.14
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://xorg.freedesktop.org/archive/individual/lib
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE =
COMMENT =
LICENSE =

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk
3 changes: 3 additions & 0 deletions cross/libpciaccess/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lnk:lib/libpciaccess.so
lnk:lib/libpciaccess.so.0
lib:lib/libpciaccess.so.0.11.1
3 changes: 3 additions & 0 deletions cross/libpciaccess/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libpciaccess-0.14.tar.bz2 SHA1 f70a958bf4e744cb4ee93be64e9bc52ac05cdaeb
libpciaccess-0.14.tar.bz2 SHA256 3df543e12afd41fea8eac817e48cbfde5aed8817b81670a4e9e493bb2f5bf2a4
libpciaccess-0.14.tar.bz2 MD5 8f436e151d5106a9cfaa71857a066d33
23 changes: 23 additions & 0 deletions cross/libva-utils/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PKG_NAME = libva-utils
PKG_VERS = 2.1.0
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/intel/libva-utils/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libva

HOMEPAGE = https://01.org/linuxmedia
COMMENT = Libva-utils is a collection of tests for VA-API (Video Acceleration API)
LICENSE = MIT

PRE_CONFIGURE_TARGET = libva_utils_configure

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk

.PHONY: libva_utils_configure
libva_utils_configure:
$(RUN) ./autogen.sh
9 changes: 9 additions & 0 deletions cross/libva-utils/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bin:bin/avcenc
bin:bin/h264encode
bin:bin/jpegenc
bin:bin/loadjpeg
bin:bin/mpeg2vaenc
bin:bin/mpeg2vldemo
bin:bin/vainfo
bin:bin/vavpp
bin:bin/vp9enc
3 changes: 3 additions & 0 deletions cross/libva-utils/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libva-utils-2.1.0.tar.gz SHA1 75aaf1077bdc9a79e6c5835ad528ed78a51c6979
libva-utils-2.1.0.tar.gz SHA256 1000a6a2e27d23b92b7489330ab2017e5bca3e9db6872cb0bb868d8465553aa3
libva-utils-2.1.0.tar.gz MD5 da07347c073b85721922ec2150c96673
23 changes: 23 additions & 0 deletions cross/libva/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PKG_NAME = libva
PKG_VERS = 2.1.0
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/intel/libva/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libdrm

HOMEPAGE = https://01.org/vaapi
COMMENT = Libva is an implementation for VA-API (Video Acceleration API).
LICENSE = MIT

PRE_CONFIGURE_TARGET = libva_custom_preconfigure

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk

.PHONY: libva_custom_preconfigure
libva_custom_preconfigure:
$(RUN) ./autogen.sh
6 changes: 6 additions & 0 deletions cross/libva/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
lnk:lib/libva.so
lnk:lib/libva.so.2
lib:lib/libva.so.2.100.0
lnk:lib/libva-drm.so
lnk:lib/libva-drm.so.2
lib:lib/libva-drm.so.2.100.0
3 changes: 3 additions & 0 deletions cross/libva/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libva-2.1.0.tar.gz SHA1 b68ff64990542ae5a6023bafd7fff42f76d0732c
libva-2.1.0.tar.gz SHA256 c8e7b1095b0f9e74d94df327f350ec2cc051e381f3023c9732ab9b8b0e9ab151
libva-2.1.0.tar.gz MD5 7aa86c4e1e10c308ff579a34672019ec

0 comments on commit 9fa3c0b

Please sign in to comment.