From 8f05a639f3f6ed1fb412e57c80e9eec211c72f67 Mon Sep 17 00:00:00 2001 From: dalan <863286+dalanmiller@users.noreply.github.com> Date: Fri, 23 May 2025 00:52:58 +1000 Subject: [PATCH] HomeKit Bridge integration: Adding `h264_qsv` as valid VIDEO_CODEC option (#145448) --- homeassistant/components/homekit/const.py | 1 + homeassistant/components/homekit/util.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/homeassistant/components/homekit/const.py b/homeassistant/components/homekit/const.py index ae682a0ea2d..44f18c30099 100644 --- a/homeassistant/components/homekit/const.py +++ b/homeassistant/components/homekit/const.py @@ -24,6 +24,7 @@ VIDEO_CODEC_LIBX264 = "libx264" AUDIO_CODEC_OPUS = "libopus" VIDEO_CODEC_H264_OMX = "h264_omx" VIDEO_CODEC_H264_V4L2M2M = "h264_v4l2m2m" +VIDEO_CODEC_H264_QSV = "h264_qsv" # Intel Quick Sync Video VIDEO_PROFILE_NAMES = ["baseline", "main", "high"] AUDIO_CODEC_COPY = "copy" diff --git a/homeassistant/components/homekit/util.py b/homeassistant/components/homekit/util.py index bc98f00c15a..85207e09626 100644 --- a/homeassistant/components/homekit/util.py +++ b/homeassistant/components/homekit/util.py @@ -112,6 +112,7 @@ from .const import ( TYPE_VALVE, VIDEO_CODEC_COPY, VIDEO_CODEC_H264_OMX, + VIDEO_CODEC_H264_QSV, VIDEO_CODEC_H264_V4L2M2M, VIDEO_CODEC_LIBX264, ) @@ -130,6 +131,7 @@ MAX_PORT = 65535 VALID_VIDEO_CODECS = [ VIDEO_CODEC_LIBX264, VIDEO_CODEC_H264_OMX, + VIDEO_CODEC_H264_QSV, VIDEO_CODEC_H264_V4L2M2M, AUDIO_CODEC_COPY, ]