From aa58b9cf5f3e030958d23b6d147439e09e49d485 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 26 Feb 2018 00:07:52 -0800 Subject: [PATCH] obs-ffmpeg: Use FFmpeg's "fast" AAC encoder by default FFmpeg has recently made their "fast" AAC encoder the default, which uses less CPU and sounds better at common bitrates. --- plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c b/plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c index 80e57e813..31b0e9b33 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c @@ -20,6 +20,7 @@ #include #include +#include #include #include "obs-ffmpeg-formats.h" @@ -230,6 +231,7 @@ static void *enc_create(obs_data_t *settings, obs_encoder_t *encoder, } if (strcmp(enc->codec->name, "aac") == 0) { + av_opt_set(enc->context->priv_data, "aac_coder", "fast", 0); } info("bitrate: %" PRId64 ", channels: %d, channel_layout: %x\n",