projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3725556
)
Use 128kbit per channel for audio export.
v2.15.14
author
Carl Hetherington
<cth@carlh.net>
Sat, 20 Jul 2019 23:53:33 +0000
(
00:53
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 20 Jul 2019 23:53:33 +0000
(
00:53
+0100)
src/lib/ffmpeg_file_encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_file_encoder.cc
b/src/lib/ffmpeg_file_encoder.cc
index 09845ac34bc2e03785aeb574123be489a48ce98e..7409482aea004f96648faf284e30fa5f5d00e8f7 100644
(file)
--- a/
src/lib/ffmpeg_file_encoder.cc
+++ b/
src/lib/ffmpeg_file_encoder.cc
@@
-204,7
+204,7
@@
FFmpegFileEncoder::setup_audio ()
avcodec_get_context_defaults3 (_audio_codec_context, _audio_codec);
/* XXX: configurable */
- _audio_codec_context->bit_rate =
256
* 1024;
+ _audio_codec_context->bit_rate =
_audio_channels * 128
* 1024;
_audio_codec_context->sample_fmt = _sample_format;
_audio_codec_context->sample_rate = _audio_frame_rate;
_audio_codec_context->channel_layout = av_get_default_channel_layout (_audio_channels);