From dcb719ee5f891e19e76bf3744f663c91b5305f8e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 3 Oct 2023 20:57:00 -0500 Subject: [PATCH] Set prio_speed=1 on VideoToolbox encoder This can massively improve encoding performance. See https://github.com/FFmpeg/FFmpeg/commit/b67572c7c707d508b15ce0543519208cf5d1fcfb --- src/video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video.cpp b/src/video.cpp index 52d454f4..a0ab84c6 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -942,6 +942,7 @@ namespace video { { "allow_sw"s, &config::video.vt.vt_allow_sw }, { "require_sw"s, &config::video.vt.vt_require_sw }, { "realtime"s, &config::video.vt.vt_realtime }, + { "prio_speed"s, 1 }, }, {}, // SDR-specific options {}, // HDR-specific options @@ -954,6 +955,7 @@ namespace video { { "allow_sw"s, &config::video.vt.vt_allow_sw }, { "require_sw"s, &config::video.vt.vt_require_sw }, { "realtime"s, &config::video.vt.vt_realtime }, + { "prio_speed"s, 1 }, }, {}, // SDR-specific options {}, // HDR-specific options @@ -966,6 +968,7 @@ namespace video { { "allow_sw"s, &config::video.vt.vt_allow_sw }, { "require_sw"s, &config::video.vt.vt_require_sw }, { "realtime"s, &config::video.vt.vt_realtime }, + { "prio_speed"s, 1 }, }, {}, // SDR-specific options {}, // HDR-specific options