encode.py: Force libfdk_aac

For some reason, it is not the default.
master
Simon Bruder 2021-11-30 20:16:26 +01:00
parent 2def00c45c
commit bf5565cd76
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 3 additions and 0 deletions

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