This commit is contained in:
legop3
2025-12-01 22:46:50 -05:00
parent 4d57e679bf
commit 29bb16ba1a
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ INPUT_FORMAT="${INPUT_FORMAT:-mjpeg}"
mkdir -p "${WORKDIR}"
SNAPSHOT_PATH="${WORKDIR}/snapshot.jpg"
rm -f "${SNAPSHOT_PATH}"
cleanup() {
[[ -n "${FFMPEG_PID:-}" ]] && kill "${FFMPEG_PID}" 2>/dev/null || true
@@ -27,7 +28,7 @@ if [[ "${INPUT_FORMAT}" == bayer_* ]]; then
FFMPEG_FILTERS=(-pix_fmt yuv420p)
fi
/usr/bin/ffmpeg \
/usr/bin/ffmpeg -y \
-loglevel warning -nostats \
"${FFMPEG_INPUT_ARGS[@]}" \
"${FFMPEG_FILTERS[@]}" \