From bf5565cd763a2a47b6fcd3aa6f9cd3e2bfd06623 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 30 Nov 2021 20:16:26 +0100 Subject: [PATCH] encode.py: Force libfdk_aac For some reason, it is not the default. --- encode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/encode.py b/encode.py index abe8951..38e1d2b 100755 --- a/encode.py +++ b/encode.py @@ -45,6 +45,9 @@ def encode_episode(podcast, episode, format): command.extend(["-i", infile]) if format not in ["oga", "opus"]: command.extend(["-i", episode["poster"]]) + # For AAC, the default codec choice (ffmpeg native) is not the best choice + if format == "m4a": + command.extend(["-c:a", "libfdk_aac"]) command.extend(["-c:v", "copy"]) command.extend(options) for k, v in tags.items():