mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Set OPENCV_FFMPEG_LOGLEVEL in Dockerfile
This commit is contained in:
parent
7367971774
commit
4963a7be01
@ -211,6 +211,9 @@ ENV TOKENIZERS_PARALLELISM=true
|
|||||||
# https://github.com/huggingface/transformers/issues/27214
|
# https://github.com/huggingface/transformers/issues/27214
|
||||||
ENV TRANSFORMERS_NO_ADVISORY_WARNINGS=1
|
ENV TRANSFORMERS_NO_ADVISORY_WARNINGS=1
|
||||||
|
|
||||||
|
# Set OpenCV ffmpeg loglevel to fatal: https://ffmpeg.org/doxygen/trunk/log_8h.html
|
||||||
|
ENV OPENCV_FFMPEG_LOGLEVEL=8
|
||||||
|
|
||||||
ENV PATH="/usr/local/go2rtc/bin:/usr/local/tempio/bin:/usr/local/nginx/sbin:${PATH}"
|
ENV PATH="/usr/local/go2rtc/bin:/usr/local/tempio/bin:/usr/local/nginx/sbin:${PATH}"
|
||||||
ENV LIBAVFORMAT_VERSION_MAJOR=60
|
ENV LIBAVFORMAT_VERSION_MAJOR=60
|
||||||
|
|
||||||
|
|||||||
@ -585,8 +585,6 @@ async def get_video_properties(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Open the video stream using OpenCV
|
# Open the video stream using OpenCV
|
||||||
# Only print fatal or worse output: https://ffmpeg.org/doxygen/trunk/log_8h.html
|
|
||||||
os.environ["OPENCV_FFMPEG_LOGLEVEL"] = "8"
|
|
||||||
video = cv2.VideoCapture(url)
|
video = cv2.VideoCapture(url)
|
||||||
|
|
||||||
# Check if the video stream was opened successfully
|
# Check if the video stream was opened successfully
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user