mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
parent
85015d9409
commit
305323c9e9
@ -53,8 +53,8 @@ _user_agent_args = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
PRESETS_HW_ACCEL_DECODE = {
|
PRESETS_HW_ACCEL_DECODE = {
|
||||||
"preset-rpi-32-h264": ["-c:v", "h264_v4l2m2m"],
|
"preset-rpi-32-h264": ["-c:v:1", "h264_v4l2m2m"],
|
||||||
"preset-rpi-64-h264": ["-c:v", "h264_v4l2m2m"],
|
"preset-rpi-64-h264": ["-c:v:1", "h264_v4l2m2m"],
|
||||||
"preset-vaapi": [
|
"preset-vaapi": [
|
||||||
"-hwaccel_flags",
|
"-hwaccel_flags",
|
||||||
"allow_profile_mismatch",
|
"allow_profile_mismatch",
|
||||||
|
@ -52,7 +52,7 @@ class TestFfmpegPresets(unittest.TestCase):
|
|||||||
assert "preset-rpi-64-h264" not in (
|
assert "preset-rpi-64-h264" not in (
|
||||||
" ".join(frigate_config.cameras["back"].ffmpeg_cmds[0]["cmd"])
|
" ".join(frigate_config.cameras["back"].ffmpeg_cmds[0]["cmd"])
|
||||||
)
|
)
|
||||||
assert "-c:v h264_v4l2m2m" in (
|
assert "-c:v:1 h264_v4l2m2m" in (
|
||||||
" ".join(frigate_config.cameras["back"].ffmpeg_cmds[0]["cmd"])
|
" ".join(frigate_config.cameras["back"].ffmpeg_cmds[0]["cmd"])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user