diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-10 23:00:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-10 23:00:13 +0100 |
| commit | f7104971c3e4ce477d0a6f12ef71840b78837b21 (patch) | |
| tree | 44fea993fe9b858206b72558bc7ff0ebc9e743e4 | |
| parent | 3a9265b3f824bde609ec3f16a853b7c69c11877d (diff) | |
Export 24-bit audio in Prores files (#2438).
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 6799d09b4..5a25b8cd9 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -229,16 +229,16 @@ FFmpegFileEncoder::FFmpegFileEncoder ( switch (format) { case ExportFormat::PRORES_4444: - _sample_format = AV_SAMPLE_FMT_S16; + _sample_format = AV_SAMPLE_FMT_S32; _video_codec_name = "prores_ks"; - _audio_codec_name = "pcm_s16le"; + _audio_codec_name = "pcm_s24le"; av_dict_set(&_video_options, "profile", "4", 0); av_dict_set(&_video_options, "threads", "auto", 0); break; case ExportFormat::PRORES_HQ: - _sample_format = AV_SAMPLE_FMT_S16; + _sample_format = AV_SAMPLE_FMT_S32; _video_codec_name = "prores_ks"; - _audio_codec_name = "pcm_s16le"; + _audio_codec_name = "pcm_s24le"; av_dict_set (&_video_options, "profile", "3", 0); av_dict_set (&_video_options, "threads", "auto", 0); break; |
