Skip to content

Commit

Permalink
Merge pull request #93 from Shadowghost/libva-utils
Browse files Browse the repository at this point in the history
Add libva-utils (vainfo)
  • Loading branch information
joshuaboniface committed Feb 25, 2022
2 parents acf0576 + 37dd0c2 commit 63ce3a1
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ jellyfin-ffmpeg (4.4.1-2) unstable; urgency=medium

* Fix the OpenCL dynamic linking issue on Win64 (#82)
* Enable Intel media driver building (#89)
* Add libva-utils (#93)

-- nyanmisaka <nst799610810@gmail.com> Mon, 21 Feb 2022 13:26:03 +0800

Expand Down
39 changes: 39 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,46 @@ Copyright: 2007-2008, Dave Airlie
2008, Google Inc.
License: Expat

Files: libva-utils/*
Copyright: 2007-2019, Intel Corporation
2009, Splitted-Desktop Systems
License: Expat

Files: libva-utils/decode/loadjpeg.c
libva-utils/decode/tinyjpeg-internal.h
libva-utils/decode/tinyjpeg.c
libva-utils/decode/tinyjpeg.h
Copyright: 2012, Intel Corporation
2006, Luc Saillard <luc@saillard.org>
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
- Neither the name of the author nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Files: media_driver/media_driver/linux/ult/ult_app/googletest/*
libva-utils/test/gtest/*
Copyright: 2003-2015, Google Inc
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
Expand Down
13 changes: 12 additions & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ prepare_extra_amd64() {
popd
popd

# Download and install libva-utils
pushd ${SOURCE_DIR}
git clone --depth=1 https://github.com/intel/libva-utils
pushd libva-utils
./autogen.sh
./configure --prefix=${TARGET_DIR}
make -j$(nproc) && make install && make install DESTDIR=${SOURCE_DIR}/intel
echo "intel${TARGET_DIR}/bin/vainfo usr/lib/jellyfin-ffmpeg" >> ${SOURCE_DIR}/debian/jellyfin-ffmpeg.install
popd
popd

# Download and install intel-vaapi-driver
pushd ${SOURCE_DIR}
git clone --depth=1 https://github.com/intel/intel-vaapi-driver
Expand Down Expand Up @@ -158,7 +169,6 @@ prepare_extra_amd64() {
popd
popd

# Uncomment for non-free QSV driver
# Download and install media-driver
# Full Feature Build: ENABLE_KERNELS=ON(Default) ENABLE_NONFREE_KERNELS=ON(Default)
# Free Kernel Build: ENABLE_KERNELS=ON ENABLE_NONFREE_KERNELS=OFF
Expand All @@ -180,6 +190,7 @@ prepare_extra_amd64() {
popd
popd
}

# Prepare the cross-toolchain
prepare_crossbuild_env_armhf() {
# Prepare the Ubuntu-specific cross-build requirements
Expand Down

0 comments on commit 63ce3a1

Please sign in to comment.