Encode audio using libopus instead of aac (#487)

opus in mp4 is supported by modern versions of ffmpeg, as well as
YouTube upload. libopus is known to have good audio quality, while
FFmpeg's built-in AAC encoder is slow and low-quality (especially on
older ffmpeg versions)
master
nyanpasu64 2024-11-10 19:46:45 -08:00 zatwierdzone przez GitHub
rodzic 458442f7c1
commit 4c52cee81c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,9 @@
## 0.11.0 (unreleased)
### Major Changes
- Encode audio using libopus instead of aac (#487)
## 0.10.1
### Changelog

Wyświetl plik

@ -247,7 +247,7 @@ class FFmpegOutputConfig(IOutputConfig):
"-color_range 1 -colorspace bt709 -color_trc bt709 -color_primaries bt709 "
"-movflags faststart"
)
audio_template: str = "-c:a aac -b:a 384k"
audio_template: str = "-c:a libopus -b:a 256k"
FFMPEG = "ffmpeg"