Feature Request - Alpine build with gltransition
SiviP-Glossai opened this issue · 3 comments
SiviP-Glossai commented
SiviP-Glossai commented
I was able to get a working build with gltransition with one issue - size is not optimal
I would be glad if you could take a look and push this one forward
Here is the git path file:
From a435378b77d94042c476561e63cc9dda60cb9d8a Mon Sep 17 00:00:00 2001
From: SiviP-Glossai <sivan.schick@glossai.co>
Date: Sun, 10 Apr 2022 09:22:18 +0300
Subject: [PATCH] gltransition compiling but is not optimal in size.
---
docker-images/4.4/alpine313/Dockerfile | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docker-images/4.4/alpine313/Dockerfile b/docker-images/4.4/alpine313/Dockerfile
index 41e7602..edd8373 100644
--- a/docker-images/4.4/alpine313/Dockerfile
+++ b/docker-images/4.4/alpine313/Dockerfile
@@ -512,7 +512,15 @@ RUN \
./configure --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-gpl --extra-libs=-ldl && \
make ; make install
-
+## gltransitions
+RUN \
+ DIR=/tmp/gltransitions && \
+ mkdir -p ${DIR} && \
+ cd ${DIR} && \
+ git clone https://github.com/transitive-bullshit/ffmpeg-gl-transition.git && \
+ apk add --no-cache --update glew glew-dev glfw-dev mesa-dev && \
+ grep -v "define GL_TRANSITION_USING_EGL" ${DIR}/ffmpeg-gl-transition/vf_gltransition.c > /tmp/ffmpeg/libavfilter/vf_gltransition.c && \
+ cd /tmp/ffmpeg && git apply ${DIR}/ffmpeg-gl-transition/ffmpeg.diff
@@ -525,6 +533,8 @@ RUN \
--disable-ffplay \
--enable-avresample \
--enable-fontconfig \
+ --enable-filter=gltransition \
+ --enable-opengl \
--enable-gpl \
--enable-libaom \
--enable-libaribb24 \
@@ -559,6 +569,8 @@ RUN \
--extra-ldflags="-L${PREFIX}/lib" \
--extra-libs=-ldl \
--extra-libs=-lpthread \
+ --extra-libs=-lGLEW \
+ --extra-libs=-lglfw \
--prefix="${PREFIX}" && \
make clean && \
make && \
@@ -589,6 +601,7 @@ LABEL org.opencontainers.image.authors="julien@rottenberg.info" \
org.opencontainers.image.source=https://github.com/jrottenberg/ffmpeg
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
+RUN apk add --no-cache --update xvfb glew glew-dev glfw-dev mesa-dev
CMD ["--help"]
ENTRYPOINT ["ffmpeg"]
--
2.36.1.windows.1
jrottenberg commented
Hello !
Sorry for the lag.
It does look interesting, but I'm worried about the size of the resulting image, I'll try locally and compare on alpine and other base.
SiviP-Glossai commented
Thanks for looking at it.
If size is an issue can we add it as a separate flavour? And not as part of alpine?