mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Use btbn build for ffmpeg since jellyfin has compatibility issues with rtsp-simple-server
This commit is contained in:
		
							parent
							
								
									01482d791b
								
							
						
					
					
						commit
						e649a1eb98
					
				@ -46,7 +46,6 @@ RUN pip3 wheel --wheel-dir=/wheels -r requirements-wheels.txt
 | 
				
			|||||||
FROM debian:11-slim
 | 
					FROM debian:11-slim
 | 
				
			||||||
ARG TARGETARCH
 | 
					ARG TARGETARCH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG JELLYFIN_FFMPEG_VERSION=5.0.1-7
 | 
					 | 
				
			||||||
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
 | 
					# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
 | 
				
			||||||
ARG DEBIAN_FRONTEND="noninteractive"
 | 
					ARG DEBIAN_FRONTEND="noninteractive"
 | 
				
			||||||
# http://stackoverflow.com/questions/48162574/ddg#49462622
 | 
					# http://stackoverflow.com/questions/48162574/ddg#49462622
 | 
				
			||||||
@ -80,14 +79,21 @@ RUN apt-get -qq update \
 | 
				
			|||||||
    # coral drivers
 | 
					    # coral drivers
 | 
				
			||||||
    libedgetpu1-max python3-tflite-runtime python3-pycoral \
 | 
					    libedgetpu1-max python3-tflite-runtime python3-pycoral \
 | 
				
			||||||
    && pip3 install -U /wheels/*.whl \
 | 
					    && pip3 install -U /wheels/*.whl \
 | 
				
			||||||
    # jellyfin-ffmpeg
 | 
					    # btbn-ffmpeg -> amd64 / arm64
 | 
				
			||||||
    && wget -O jellyfin.deb "https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/${JELLYFIN_FFMPEG_VERSION}/jellyfin-ffmpeg5_${JELLYFIN_FFMPEG_VERSION}-$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )_$( dpkg --print-architecture ).deb" \
 | 
					    && if [ "${TARGETARCH}" = "amd64" ] || [ "${TARGETARCH}" = "arm64" ]; then \
 | 
				
			||||||
    && apt-get -qq install --no-install-recommends --no-install-suggests -y ./jellyfin.deb \
 | 
					    mkdir -p /usr/lib/btbn-ffmpeg \
 | 
				
			||||||
    && rm jellyfin.deb \
 | 
					    && wget -O btbn-ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linux$( [ "$TARGETARCH" = "amd64" ] && echo "64" || echo "arm64" )-gpl-5.1.tar.xz" \
 | 
				
			||||||
 | 
					    && tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/btbn-ffmpeg --strip-components 1 \
 | 
				
			||||||
 | 
					    && rm btbn-ffmpeg.tar.xz; \
 | 
				
			||||||
 | 
					    fi \
 | 
				
			||||||
 | 
					    # ffmpeg -> arm32
 | 
				
			||||||
 | 
					    && if [ "${TARGETARCH}" = "arm" ]; then \
 | 
				
			||||||
 | 
					    apt-get -qq install --no-install-recommends --no-install-suggests -y ffmpeg; \
 | 
				
			||||||
 | 
					    fi \
 | 
				
			||||||
    # arch specific packages
 | 
					    # arch specific packages
 | 
				
			||||||
    && if [ "${TARGETARCH}" = "amd64" ]; then \
 | 
					    && if [ "${TARGETARCH}" = "amd64" ]; then \
 | 
				
			||||||
    apt-get -qq install --no-install-recommends --no-install-suggests -y \
 | 
					    apt-get -qq install --no-install-recommends --no-install-suggests -y \
 | 
				
			||||||
    mesa-va-drivers intel-media-va-driver-non-free; \
 | 
					    mesa-va-drivers libva-drm2 intel-media-va-driver-non-free i965-va-driver libmfx1; \
 | 
				
			||||||
    fi \
 | 
					    fi \
 | 
				
			||||||
    && if [ "${TARGETARCH}" = "arm64" ]; then \
 | 
					    && if [ "${TARGETARCH}" = "arm64" ]; then \
 | 
				
			||||||
    apt-get -qq install --no-install-recommends --no-install-suggests -y \
 | 
					    apt-get -qq install --no-install-recommends --no-install-suggests -y \
 | 
				
			||||||
@ -109,7 +115,7 @@ RUN apt-get -qq update \
 | 
				
			|||||||
    && apt-get autoremove -y \
 | 
					    && apt-get autoremove -y \
 | 
				
			||||||
    && rm -rf /var/lib/apt/lists/*
 | 
					    && rm -rf /var/lib/apt/lists/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV PATH=$PATH:/usr/lib/jellyfin-ffmpeg
 | 
					ENV PATH=$PATH:/usr/lib/btbn-ffmpeg/bin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
 | 
					COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user