encode.py: Force libfdk_aac

For some reason, it is not the default.
This commit is contained in:
Simon Bruder 2021-11-30 20:16:26 +01:00
parent 2def00c45c
commit bf5565cd76
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -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():