diff options
Diffstat (limited to 'converter/audio.py')
| -rw-r--r-- | converter/audio.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/converter/audio.py b/converter/audio.py index 5a7ec35..98864f6 100644 --- a/converter/audio.py +++ b/converter/audio.py @@ -52,6 +52,10 @@ def _encode_args(output_format: str) -> List[str]: """Return ffmpeg output codec/bitrate args for the requested container.""" if output_format == "m4b": return ["-c:a", "aac", "-b:a", config.AUDIO_BITRATE] + if output_format == "ogg": + return ["-c:a", "libvorbis", "-b:a", config.AUDIO_BITRATE] + if output_format == "flac": + return ["-c:a", "flac"] if output_format == "wav": # Lossless intermediate for per-chapter scratch audio; avoids # generational loss when the final m4b re-encodes to AAC. |
