From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] Intel MediaSDK package w. Quicksync (h264, h265 HW encoding)
Date: Tue, 14 Aug 2018 22:42:10 +0200 [thread overview]
Message-ID: <20180814224210.5427ea5c@windsurf> (raw)
In-Reply-To: <ea-mime-5b7336a6-c6c-5874a42@www-1.netcourrier.com>
Hello,
On Tue, 14 Aug 2018 22:08:06 +0200 (CEST), lpdev at cordier.org wrote:
> Working on buildroot for 3 weeks now, I would like to congrat
> everyone that participated to this wonderful project.
Thanks!
> Today I have finished to integrate the the Intel MediaSDK to
> buildroot. The Intel MediaSDK features Intel QuickSync through the
> libmfx API, allowing all the cool kids to make use of hardware
> encoding/decoding for popular video format such as h264, h265, jpeg,
> vp9, etc. Even though there are no real benchmark against vaapi, MFX
> layer promise better performances than the former. There is currently
> a working implementation of this layer in ffmpeg that is working very
> well even on little 'embedded' computers (I did some testing on an
> Intel Computestick STK2MV64CC).
It's a good idea to package this indeed.
> I would like to submit a patch to buildroot for this new package,
> intel-mediasdk. However I am running into small issues that need to
> be addressed before the submission.
>
> 1. Currently there are some strong restriction around the kernel
> version that needs to be 4.14.16.
>
> 1.1 Is it possible for a package to force the Kernel version?
No. But we already have packages that depend on a specific fork of the
Linux kernel. We simply indicate something like this in Config.in:
comment "imx-vpuwrap needs an imx-specific Linux kernel to be built"
depends on BR2_arm
depends on !BR2_LINUX_KERNEL
See package/freescale-imx/imx-vpuwrap/Config.in.
> 2. libva and libva-utils need to be recompiled using Intel forks
> (respectively https://github.com/intel/libva and
> https://github.com/intel/libva-utils).
Argh. That's annoying.
> I have no idea of how I can switch the version in buildroot. I have
> currently modified the source site of both package using the repo
> above.
>
> ? 2.1 Should I add a special switch like
> BR2_PACKAGE_LIBVA_INTEL_QUICKSYNC that switches between these 2
> versions?
>
> ? 2.2 Is it the cleaner way?
>
> ? 2.3 Is wrapping these 2 packages into a virtual-package better? If
> not, how this can be integrated in Buildroot?
In this situation, I don't really see the need to have two copies of
those packages. Instead, just add a Config.in sub-option to select
between "upstream" and "Intel" versions. It's annoying, but hopefully
Intel will get its code merged in libva and libva-utils.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-08-14 20:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 20:08 [Buildroot] Intel MediaSDK package w. Quicksync (h264, h265 HW encoding) lpdev at cordier.org
2018-08-14 20:42 ` Thomas Petazzoni [this message]
2018-08-14 22:29 ` Arnout Vandecappelle
2018-08-15 10:45 ` LP C
2018-08-15 11:38 ` Thomas Petazzoni
2018-08-15 12:06 ` LP C
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180814224210.5427ea5c@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox