FFmpeg: enable multi-threaded encoding of multiple frames, for a ~20% speedup.
authorMal Duffin <mal_cando>
Tue, 11 Dec 2018 19:38:01 +0000 (20:38 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 11 Dec 2018 19:44:10 +0000 (20:44 +0100)
commit4bf2530952c0c772f42595fa79a2c0a9a7559314
treebbe3f229163ed25474d9abe85ff81a1594a3fac6
parent48a3f97b23501fd33f6e400b7682ea4cb2988a8a
FFmpeg: enable multi-threaded encoding of multiple frames, for a ~20% speedup.

This enables ffmpeg to encode each frame in its own thread. However in most
cases Blender does not pass frames to ffmpeg fast enough to actually use the
more than two threads. In some tests the speed was measured to be about 20%.
If other parts of the video sequencer get optimized, this should improve.

Differential Revision: https://developer.blender.org/D4031
source/blender/blenkernel/intern/writeffmpeg.c