diff options
author | Stoppedpuma <58333920+Stoppedpuma@users.noreply.github.com> | 2024-04-14 01:58:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-16 18:12:08 +0200 |
commit | d066dfc645f9d04bbc59caf97c24a51ad3dd7205 (patch) | |
tree | b0335c0e40e3457ffa4560044fb631f33b1225a6 /src/main.cpp | |
parent | 8c43a25543a4d956a5aac2375612625de09a7044 (diff) |
Increase audio bitrate for all codecs
Increases AAC to 160kbps, increases Opus and FLAC to 128kbps.
Remove step from TODO.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c6878a..5067f87 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -263,12 +263,12 @@ static AVSampleFormat audio_codec_get_sample_format(AudioCodec audio_codec, cons static int64_t audio_codec_get_get_bitrate(AudioCodec audio_codec) { switch(audio_codec) { - case AudioCodec::AAC: return 128000; - case AudioCodec::OPUS: return 96000; - case AudioCodec::FLAC: return 96000; + case AudioCodec::AAC: return 160000; + case AudioCodec::OPUS: return 128000; + case AudioCodec::FLAC: return 128000; } assert(false); - return 96000; + return 128000; } static AudioFormat audio_codec_context_get_audio_format(const AVCodecContext *audio_codec_context) { @@ -850,7 +850,7 @@ static void usage_full() { fprintf(stderr, " -ac Audio codec to use. Should be either 'aac', 'opus' or 'flac'. Defaults to 'opus' for .mp4/.mkv files, otherwise defaults to 'aac'.\n"); fprintf(stderr, " 'opus' and 'flac' is only supported by .mp4/.mkv files. 'opus' is recommended for best performance and smallest audio size.\n"); fprintf(stderr, "\n"); - fprintf(stderr, " -ab Audio bitrate to use. Optional, by default the bitrate is 96000 for opus and flac and 128000 for aac.\n"); + fprintf(stderr, " -ab Audio bitrate to use. Optional, by default the bitrate is 128000 for opus and flac and 160000 for aac.\n"); fprintf(stderr, " If this is set to 0 then it's the same as if it's absent, in which case the bitrate is determined automatically depending on the audio codec.\n"); fprintf(stderr, "\n"); fprintf(stderr, " -oc Overclock memory transfer rate to the maximum performance level. This only applies to NVIDIA on X11 and exists to overcome a bug in NVIDIA driver where performance level\n"); |