mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
use jellyfin-ffmpeg for all arch
This commit is contained in:
parent
eb392514f8
commit
732f2c9249
14
Makefile
14
Makefile
@ -12,7 +12,19 @@ nginx_frigate:
|
|||||||
frigate: version
|
frigate: version
|
||||||
DOCKER_BUILDKIT=1 docker build -t frigate -f docker/Dockerfile .
|
DOCKER_BUILDKIT=1 docker build -t frigate -f docker/Dockerfile .
|
||||||
|
|
||||||
frigate_push: version
|
frigate_amd64: version
|
||||||
|
docker buildx build --platform linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
||||||
|
|
||||||
|
frigate_arm64: version
|
||||||
|
docker buildx build --platform linux/arm64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
||||||
|
|
||||||
|
frigate_armv7: version
|
||||||
|
docker buildx build --platform linux/arm/v7 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
||||||
|
|
||||||
|
frigate_build: frigate_amd64 frigate_arm64 frigate_armv7
|
||||||
|
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
||||||
|
|
||||||
|
frigate_push: frigate_build
|
||||||
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile .
|
||||||
|
|
||||||
run_tests: frigate
|
run_tests: frigate
|
||||||
|
|||||||
@ -77,30 +77,25 @@ RUN apt-get -qq update \
|
|||||||
&& wget -O - http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - \
|
&& wget -O - http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - \
|
||||||
&& echo "deb http://archive.raspberrypi.org/debian/ bullseye main" | tee /etc/apt/sources.list.d/raspi.list \
|
&& echo "deb http://archive.raspberrypi.org/debian/ bullseye main" | tee /etc/apt/sources.list.d/raspi.list \
|
||||||
# add coral repo
|
# add coral repo
|
||||||
&& APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn apt-key adv --fetch-keys https://packages.cloud.google.com/apt/doc/apt-key.gpg \
|
&& apt-key adv --fetch-keys https://packages.cloud.google.com/apt/doc/apt-key.gpg \
|
||||||
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \
|
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \
|
||||||
&& echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections \
|
&& echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections \
|
||||||
|
# jellyfin-ffmpeg
|
||||||
|
&& wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | apt-key add - \
|
||||||
|
&& echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | tee /etc/apt/sources.list.d/jellyfin.list \
|
||||||
&& apt-get -qq update \
|
&& apt-get -qq update \
|
||||||
&& apt-get -qq install --no-install-recommends -y \
|
&& apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
# coral drivers
|
# coral drivers
|
||||||
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
||||||
&& pip3 install -U /wheels/*.whl \
|
|
||||||
&& rm -rf /wheels \
|
|
||||||
# ffmpeg
|
|
||||||
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
|
||||||
wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | apt-key add - \
|
|
||||||
&& echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | tee /etc/apt/sources.list.d/jellyfin.list \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
|
||||||
mesa-va-drivers \
|
|
||||||
jellyfin-ffmpeg \
|
jellyfin-ffmpeg \
|
||||||
openssl \
|
&& pip3 install -U /wheels/*.whl \
|
||||||
locales \
|
&& ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg \
|
||||||
&& ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg; \
|
# amd64 specific packages
|
||||||
else \
|
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||||
apt-get -qq install --no-install-recommends -y \
|
apt-get -qq install --no-install-recommends -y \
|
||||||
ffmpeg; \
|
mesa-va-drivers; \
|
||||||
fi \
|
fi \
|
||||||
|
&& rm -rf /wheels \
|
||||||
&& apt-get remove gnupg apt-transport-https -y \
|
&& apt-get remove gnupg apt-transport-https -y \
|
||||||
&& apt-get clean autoclean -y \
|
&& apt-get clean autoclean -y \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
|
|||||||
@ -102,6 +102,12 @@ This should show <50% CPU in top, and ~80% CPU without `-c:v h264_v4l2m2m`.
|
|||||||
ffmpeg -c:v h264_v4l2m2m -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null
|
ffmpeg -c:v h264_v4l2m2m -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**NVIDIA**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ffmpeg -c:v h264_cuvid -re -stream_loop -1 -i https://streams.videolan.org/ffmpeg/incoming/720p60.mp4 -f rawvideo -pix_fmt yuv420p pipe: > /dev/null
|
||||||
|
```
|
||||||
|
|
||||||
## Web Interface
|
## Web Interface
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user