Commit 28bcc2d2 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud

autoadapt: fix parameters for videotoolbox

Change-Id: I39524d84804c885c5eaae49a2dfccb1e97144aba
parent 5e16f03e
......@@ -990,7 +990,7 @@ MediaEncoder::initAccel(AVCodecContext* encoderCtx, uint64_t br)
av_opt_set_int(encoderCtx, "crf", -1, AV_OPT_SEARCH_CHILDREN);
av_opt_set_int(encoderCtx, "b", br * 1000 * 0.8f, AV_OPT_SEARCH_CHILDREN);
} else if (accel_->getName() == "videotoolbox"sv) {
// Use same parameters as software
av_opt_set_int(encoderCtx, "b", br * 1000 * 0.8f, AV_OPT_SEARCH_CHILDREN);
} else if (accel_->getName() == "qsv"sv) {
// Use Video Conferencing Mode
av_opt_set_int(encoderCtx, "vcm", 1, AV_OPT_SEARCH_CHILDREN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment