enable vulkan via en var, bump libs

This commit is contained in:
aptalca 2023-11-22 10:44:51 -05:00
parent 6b7693bf8b
commit cd263a29b8
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548
5 changed files with 37 additions and 17 deletions

View File

@ -13,36 +13,36 @@ ENV \
# versions
ENV \
AOM=v3.7.0 \
AOM=v3.7.1 \
FDKAAC=2.0.2 \
FFMPEG_HARD=6.1 \
FONTCONFIG=2.14.2 \
FREETYPE=2.13.2 \
FRIBIDI=1.0.13 \
GMMLIB=22.3.7 \
IHD=23.2.4 \
GMMLIB=22.3.12 \
IHD=23.3.5 \
KVAZAAR=2.2.0 \
LAME=3.100 \
LIBASS=0.17.1 \
LIBDRM=2.4.116 \
LIBDRM=2.4.118 \
LIBMFX=22.5.4 \
LIBVA=2.19.0 \
LIBVA=2.20.0 \
LIBVDPAU=1.5 \
LIBVIDSTAB=1.1.1 \
LIBVMAF=2.3.1 \
LIBVPL=2023.3.1 \
NVCODEC=n12.1.14.0 \
OGG=1.3.5 \
ONEVPL=23.2.4 \
ONEVPL=23.3.4 \
OPENCOREAMR=0.1.6 \
OPENJPEG=2.5.0 \
OPUS=1.3.1 \
OPUS=1.4 \
SHADERC=v2023.7 \
SVTAV1=1.7.0 \
THEORA=1.1.1 \
VORBIS=1.3.7 \
VPX=1.13.1 \
VULKANHEADERS=vulkan-sdk-1.3.268.0 \
VULKANSDK=vulkan-sdk-1.3.268.0 \
WEBP=1.3.2 \
X265=3.5 \
XVID=1.3.7
@ -445,7 +445,7 @@ RUN \
echo "**** grabbing opus ****" && \
mkdir -p /tmp/opus && \
curl -Lf \
https://archive.mozilla.org/pub/opus/opus-${OPUS}.tar.gz | \
https://downloads.xiph.org/releases/opus/opus-${OPUS}.tar.gz | \
tar -zx --strip-components=1 -C /tmp/opus
RUN \
echo "**** compiling opus ****" && \
@ -564,7 +564,7 @@ RUN \
echo "**** grabbing vulkan headers ****" && \
mkdir -p /tmp/vulkan-headers && \
git clone \
--branch ${VULKANHEADERS} \
--branch ${VULKANSDK} \
--depth 1 https://github.com/KhronosGroup/Vulkan-Headers.git \
/tmp/vulkan-headers
RUN \

View File

@ -13,7 +13,7 @@ ENV \
# versions
ENV \
AOM=v3.7.0 \
AOM=v3.7.1 \
FDKAAC=2.0.2 \
FFMPEG_HARD=6.1 \
FREETYPE=2.13.2 \
@ -21,15 +21,15 @@ ENV \
KVAZAAR=2.2.0 \
LAME=3.100 \
LIBASS=0.17.1 \
LIBDRM=2.4.116 \
LIBVA=2.19.0 \
LIBDRM=2.4.118 \
LIBVA=2.20.0 \
LIBVDPAU=1.5 \
LIBVIDSTAB=1.1.1 \
NVCODEC=n12.1.14.0 \
OGG=1.3.5 \
OPENCOREAMR=0.1.6 \
OPENJPEG=2.5.0 \
OPUS=1.3.1 \
OPUS=1.4 \
SVTAV1=1.7.0 \
THEORA=1.1.1 \
VORBIS=1.3.7 \
@ -249,7 +249,7 @@ RUN \
echo "**** grabbing opus ****" && \
mkdir -p /tmp/opus && \
curl -Lf \
https://archive.mozilla.org/pub/opus/opus-${OPUS}.tar.gz | \
https://downloads.xiph.org/releases/opus/opus-${OPUS}.tar.gz | \
tar -zx --strip-components=1 -C /tmp/opus
RUN \
echo "**** compiling opus ****" && \

View File

@ -130,6 +130,12 @@ docker run --rm -it \
/config/output.mkv
```
### Vulkan support
Preliminary Vulkan support has been added to x86_64, which can be enabled by setting the environment variable `VULKAN_SUPPORT=true`. When enabled, the container will download and install the Vulkan loader and dependencies from the Ubuntu repo prior to running FFmpeg on container start.
Some Vulkan extensions may not yet be available due to installing an older version of MESA and Vulkan loader from the Ubuntu repository.
## Building locally
If you want to make local modifications to these images for development purposes or just to customize the logic:
@ -151,7 +157,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **20.11.23:** - Add vulkan and shaderc support to x86_64.
* **22.11.23:** - Add shaderc and (preliminary) Vulkan support (via env var `ENABLE_VULKAN=true`) to x86_64. Bump Intel drivers and other libs.
* **13.11.23:** - Bump FFmpeg to 6.1.
* **02.11.23:** - Remove `--enable-small` from ffmpeg build options to add back some features.
* **05.10.23:** - Add support for SVT-AV1. Update various libraries.

View File

@ -134,6 +134,12 @@ full_custom_readme: |
/config/output.mkv
```
### Vulkan support
Preliminary Vulkan support has been added to x86_64, which can be enabled by setting the environment variable `ENABLE_VULKAN=true`. When enabled, the container will download and install the Vulkan loader and dependencies from the Ubuntu repo prior to running FFmpeg on container start.
Some Vulkan extensions may not yet be available due to installing an older version of MESA and Vulkan loader from the Ubuntu repository.
## Building locally
If you want to make local modifications to these images for development purposes or just to customize the logic:
@ -155,7 +161,7 @@ full_custom_readme: |
## Versions
* **20.11.23:** - Add vulkan and shaderc support to x86_64.
* **22.11.23:** - Add shaderc and (preliminary) Vulkan support (via env var `ENABLE_VULKAN=true`) to x86_64. Bump Intel drivers and other libs.
* **13.11.23:** - Bump FFmpeg to 6.1.
* **02.11.23:** - Remove `--enable-small` from ffmpeg build options to add back some features.
* **05.10.23:** - Add support for SVT-AV1. Update various libraries.

View File

@ -70,4 +70,12 @@ do
fi
done
## vulkan support ##
if [[ "${ENABLE_VULKAN}" = "true" ]]; then
echo "**** Installing Vulkan dependencies ****"
apt-get update
apt-get install -y libvulkan1
echo "**** Vulkan dependencies installed ****"
fi
run_ffmpeg