mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Add frigate-jetson image with hwaccel ffmpeg codecs
This commit is contained in:
parent
b38c9e82e2
commit
e4306a3c05
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -65,3 +65,13 @@ jobs:
|
||||
tags: |
|
||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-tensorrt
|
||||
cache-from: type=gha
|
||||
- name: Build and push Jetson build
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/arm64
|
||||
target: frigate-jetson
|
||||
tags: |
|
||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-tensorrt
|
||||
cache-from: type=gha
|
||||
|
||||
@ -260,6 +260,11 @@ RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels
|
||||
ln -s libnvrtc.so.11.2 /usr/local/lib/python3.9/dist-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so && \
|
||||
ldconfig
|
||||
|
||||
# NVIDIA Jetson platforms have their own codecs too
|
||||
FROM frigate-tensorrt AS frigate-jetson
|
||||
RUN --mount=type=bind,source=docker/install_jetson_ffmpeg.sh,target=/deps/install_jetson_ffmpeg.sh \
|
||||
/deps/install_jetson_ffmpeg.sh
|
||||
|
||||
# Dev Container w/ TRT
|
||||
FROM devcontainer AS devcontainer-trt
|
||||
|
||||
|
||||
13
docker/install_jetson_ffmpeg.sh
Executable file
13
docker/install_jetson_ffmpeg.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||
echo "deb https://repo.download.nvidia.com/jetson/ffmpeg main main" | tee /etc/apt/sources.list.d/jetson_ffmpeg.list
|
||||
echo "deb-src https://repo.download.nvidia.com/jetson/ffmpeg main main" | tee /etc/apt/sources.list/jetson_ffmpeg.list
|
||||
apt-get -qq update
|
||||
apt-get -qq install --no-install-recommends --no-install-suggests -y ffmpeg
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user