diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-03 00:14:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-03 00:14:04 +0100 |
| commit | 64b7c2e30a6adc62c373b9dcc7f39310f10ed994 (patch) | |
| tree | 5f1c7fb5c8ea904d0c1830b700928dca286c34ee /src/lib/ffmpeg_encoder.cc | |
| parent | c6dee8f49138c0246c3f94d16792541cd250672f (diff) | |
Add basic quality option for x264 export.
Diffstat (limited to 'src/lib/ffmpeg_encoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_encoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc index 71063c123..009a83def 100644 --- a/src/lib/ffmpeg_encoder.cc +++ b/src/lib/ffmpeg_encoder.cc @@ -49,7 +49,7 @@ force_pixel_format (AVPixelFormat, AVPixelFormat out) return out; } -FFmpegEncoder::FFmpegEncoder (shared_ptr<const Film> film, weak_ptr<Job> job, boost::filesystem::path output, Format format, bool mixdown_to_stereo) +FFmpegEncoder::FFmpegEncoder (shared_ptr<const Film> film, weak_ptr<Job> job, boost::filesystem::path output, Format format, bool mixdown_to_stereo, int x264_crf) : Encoder (film, job) , _video_options (0) , _history (1000) @@ -69,6 +69,7 @@ FFmpegEncoder::FFmpegEncoder (shared_ptr<const Film> film, weak_ptr<Job> job, bo _sample_format = AV_SAMPLE_FMT_FLTP; _video_codec_name = "libx264"; _audio_codec_name = "aac"; + av_dict_set_int (&_video_options, "crf", x264_crf, 0); break; } |
