Skip to content

Commit 102db7a

Browse files
authored
Merge pull request #425 from wader/xeve
Add xeve
2 parents 47fa203 + af5ab54 commit 102db7a

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

Dockerfile

+52
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,54 @@ RUN \
746746
CFLAGS="$CFLAGS -fstrength-reduce -ffast-math" ./configure && \
747747
make -j$(nproc) && make install
748748

749+
# bump: xeve /XEVE_VERSION=([\d.]+)/ https://github.com/mpeg5/xeve.git|*
750+
# bump: xeve after ./hashupdate Dockerfile XEVE $LATEST
751+
# bump: xeve link "CHANGELOG" https://github.com/mpeg5/xeve/releases/tag/v$LATEST
752+
# TODO: better -DARM? possible to build on non arm and intel?
753+
# TODO: report upstream about lib/libxeve.a?
754+
ARG XEVE_VERSION=0.5.0
755+
ARG XEVE_URL="https://github.com/mpeg5/xeve/archive/refs/tags/v$XEVE_VERSION.tar.gz"
756+
ARG XEVE_SHA256=4fb593921d2a0b48621f410ccd704d67d6ed1d08ab0aa7c5d5fef519ce596e8a
757+
RUN wget $WGET_OPTS -O xeve.tar.gz "$XEVE_URL"
758+
RUN echo "$XEVE_SHA256 xeve.tar.gz" | sha256sum --status -c -
759+
RUN \
760+
tar $TAR_OPTS xeve.tar.gz && \
761+
cd xeve-* && \
762+
echo v$XEVE_VERSION > version.txt && \
763+
sed -i 's/mc_filter_bilin/xevem_mc_filter_bilin/' src_main/sse/xevem_mc_sse.c && \
764+
mkdir build && cd build && \
765+
cmake \
766+
-G"Unix Makefiles" \
767+
-DARM="$(if [ $(uname -m) == aarch64 ]; then echo TRUE; else echo FALSE; fi)" \
768+
-DCMAKE_BUILD_TYPE=Release \
769+
.. && \
770+
make -j$(nproc) install && \
771+
ln -s /usr/local/lib/xeve/libxeve.a /usr/local/lib/libxeve.a
772+
773+
# bump: xevd /XEVD_VERSION=([\d.]+)/ https://github.com/mpeg5/xevd.git|*
774+
# bump: xevd after ./hashupdate Dockerfile XEVD $LATEST
775+
# bump: xevd link "CHANGELOG" https://github.com/mpeg5/xevd/releases/tag/v$LATEST
776+
# TODO: better -DARM? possible to build on non arm and intel?
777+
# TODO: report upstream about lib/libxevd.a?
778+
ARG XEVD_VERSION=0.5.0
779+
ARG XEVD_URL="https://github.com/mpeg5/xevd/archive/refs/tags/v$XEVD_VERSION.tar.gz"
780+
ARG XEVD_SHA256=8d55c7ec1a9ad4e70fe91fbe129a1d4dd288bce766f466cba07a29452b3cecd8
781+
RUN wget $WGET_OPTS -O xevd.tar.gz "$XEVD_URL"
782+
RUN echo "$XEVD_SHA256 xevd.tar.gz" | sha256sum --status -c -
783+
RUN \
784+
tar $TAR_OPTS xevd.tar.gz && \
785+
cd xevd-* && \
786+
echo v$XEVD_VERSION > version.txt && \
787+
sed -i 's/mc_filter_bilin/xevdm_mc_filter_bilin/' src_main/sse/xevdm_mc_sse.c && \
788+
mkdir build && cd build && \
789+
cmake \
790+
-G"Unix Makefiles" \
791+
-DARM="$(if [ $(uname -m) == aarch64 ]; then echo TRUE; else echo FALSE; fi)" \
792+
-DCMAKE_BUILD_TYPE=Release \
793+
.. && \
794+
make -j$(nproc) install && \
795+
ln -s /usr/local/lib/xevd/libxevd.a /usr/local/lib/libxevd.a
796+
749797
# bump: zimg /ZIMG_VERSION=([\d.]+)/ https://github.com/sekrit-twc/zimg.git|*
750798
# bump: zimg after ./hashupdate Dockerfile ZIMG $LATEST
751799
# bump: zimg link "ChangeLog" https://github.com/sekrit-twc/zimg/blob/master/ChangeLog
@@ -875,6 +923,8 @@ RUN \
875923
--enable-libx264 \
876924
--enable-libx265 \
877925
--enable-libxavs2 \
926+
--enable-libxeve \
927+
--enable-libxevd \
878928
--enable-libxml2 \
879929
--enable-libxvid \
880930
--enable-libzimg \
@@ -948,6 +998,8 @@ RUN \
948998
libx264: env.X264_VERSION, \
949999
libx265: env.X265_VERSION, \
9501000
libxavs2: env.XAVS2_VERSION, \
1001+
libxeve: env.XEVE_VERSION, \
1002+
libxevd: env.XEVD_VERSION, \
9511003
libxml2: env.LIBXML2_VERSION, \
9521004
libxvid: env.XVID_VERSION, \
9531005
libzimg: env.ZIMG_VERSION, \

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ alias ffprobe='docker run -i --rm -u $UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --ent
8181
- libx264
8282
- libx265 (multilib with support for 10 and 12 bits)
8383
- libxavs2
84+
- libxeve
85+
- libxevd
8486
- libxml2
8587
- libxvid
8688
- libzimg
@@ -163,7 +165,6 @@ usage and potential distribution of such.
163165
### TODOs and possible things to add
164166

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

0 commit comments

Comments
 (0)