Skip to content

Commit

Permalink
Add vvenc
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 30, 2024
1 parent 1861476 commit 5107c33
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,26 @@ RUN \
cmake --build build -j$(nproc) && \
cmake --install build

# bump: vvenc /VVENC_VERSION=([\d.]+)/ https://github.com/fraunhoferhhi/vvenc.git|*
# bump: vvenc after ./hashupdate Dockerfile VVENC $LATEST
# bump: vvenc link "CHANGELOG" https://github.com/fraunhoferhhi/vvenc/releases/tag/v$LATEST
ARG VVENC_VERSION=1.12.0
ARG VVENC_URL="https://github.com/fraunhoferhhi/vvenc/archive/refs/tags/v$VVENC_VERSION.tar.gz"
ARG VVENC_SHA256=e7311ffcc87d8fcc4b839807061cca1b89be017ae7c449a69436dc2dd07615c2
RUN \
wget $WGET_OPTS -O vvenc.tar.gz "$VVENC_URL" && \
echo "$VVENC_SHA256 vvenc.tar.gz" | sha256sum --status -c - && \
tar $TAR_OPTS vvenc.tar.gz && cd vvenc-* && \
# TODO: https://github.com/fraunhoferhhi/vvenc/pull/422
sed -i 's/-Werror;//' source/Lib/vvenc/CMakeLists.txt && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
.. && \
make -j$(nproc) install

# bump: ffmpeg /FFMPEG_VERSION=([\d.]+)/ https://github.com/FFmpeg/FFmpeg.git|*
# bump: ffmpeg after ./hashupdate Dockerfile FFMPEG $LATEST
# bump: ffmpeg link "Changelog" https://github.com/FFmpeg/FFmpeg/blob/n$LATEST/Changelog
Expand Down Expand Up @@ -1169,6 +1189,7 @@ RUN \
--enable-libvorbis \
--enable-libvpl \
--enable-libvpx \
--enable-libvvenc \
--enable-libwebp \
--enable-libx264 \
--enable-libx265 \
Expand Down Expand Up @@ -1246,6 +1267,7 @@ RUN \
libvorbis: env.VORBIS_VERSION, \
libvpl: env.LIBVPL_VERSION, \
libvpx: env.VPX_VERSION, \
libvvenc: env.VVENC_VERSION, \
libwebp: env.LIBWEBP_VERSION, \
libx264: env.X264_VERSION, \
libx265: env.X265_VERSION, \
Expand Down Expand Up @@ -1295,6 +1317,8 @@ RUN ["/ffprobe", "-i", "https://github.com/favicon.ico"]
RUN ["/ffprobe", "-tls_verify", "1", "-ca_file", "/etc/ssl/cert.pem", "-i", "https://github.com/favicon.ico"]
# svg
RUN ["/ffprobe", "-i", "https://github.githubassets.com/favicons/favicon.svg"]
# vvenc
RUN ["/ffmpeg", "-f", "lavfi", "-i", "testsrc", "-c:v", "libvvenc", "-t", "100ms", "-f", "null", "-"]

# clamp all files into one layer
FROM scratch AS final2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ alias ffprobe='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --ent
- [libvorbis](https://github.com/xiph/vorbis)
- [libvpl](https://github.com/intel/libvpl)
- [libvpx](https://github.com/webmproject/libvpx)
- [libvvenc](https://github.com/fraunhoferhhi/vvenc)
- [libwebp](https://chromium.googlesource.com/webm/libwebp)
- [libx264](https://www.videolan.org/developers/x264.html)
- [libx265](https://www.videolan.org/developers/x265.html) (multilib with support for 10 and 12 bits)
Expand Down Expand Up @@ -286,6 +287,5 @@ usage and potential distribution of such.
### TODOs and possible things to add

- Add libplacebo, chromaprint, etc. ...
- Add vvenc/vvdec support once in stable
- Add acceleration support (GPU, CUDA, ...)
- Add *.a *.so libraries, headers and pkg-config somehow

0 comments on commit 5107c33

Please sign in to comment.