Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2021-06-02 22:25:37 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-06-02 22:25:37 +0300
commita9dfde7b49ebdcb8d775e5942fb5eb7522946dbe (patch)
tree534d4251279429e7ec03c20aa32d495f6027a3d4 /source/blender/imbuf
parent0ea0ccc4ffd573739aeb9e67e83dbfb3604887c7 (diff)
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
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/indexer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c
index e1e6cc677ed..930c0092a9b 100644
--- a/source/blender/imbuf/intern/indexer.c
+++ b/source/blender/imbuf/intern/indexer.c
@@ -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;