FFmpeg: Update proxy settings

Changes in rBce649c73446e, affected established proxy codec preset.
Presets were not working and all presets were similar to `veryfast`.
Tunes are now working too, so `fastdecode` tune can be used. I have
measured little improvement, but I tested this only on 2 machines and
I have been informed that `fastdecode` tune does influence decoding
performance for some users.

Change preset from `slow` to `veryfast` and add tune `fastdecode`

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11454
This commit is contained in:
Richard Antalik 2021-06-02 21:25:37 +02:00
parent 0ea0ccc4ff
commit a9dfde7b49
Notes: blender-bot 2023-02-14 07:18:54 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 5 additions and 2 deletions

View File

@ -535,8 +535,11 @@ static struct proxy_output_ctx *alloc_proxy_output_ffmpeg(
AVDictionary *codec_opts = NULL;
/* High quality preset value. */
av_dict_set_int(&codec_opts, "crf", crf, 0);
/* Prefer smaller file-size. */
av_dict_set(&codec_opts, "preset", "slow", 0);
/* Prefer smaller file-size. Presets from veryslow to veryfast produce output with very similar
* file-size, but there is big difference in performance. In some cases veryfast preset will
* produce smallest file-size. */
av_dict_set(&codec_opts, "preset", "veryfast", 0);
av_dict_set(&codec_opts, "tune", "fastdecode", 0);
if (rv->codec->capabilities & AV_CODEC_CAP_AUTO_THREADS) {
rv->c->thread_count = 0;