[FFmpeg-devel] QTRLE encode performance

Alexis Ballier alexis.ballier at gmail.com
Fri Feb 8 21:09:56 CET 2013

> So I'm interested contributing and speeding this up. Before I get started
> does anyone have any insight they can share on the current state of the
> encoder? For example:
> 1. Do we know how the quicktime encoder is so fast? Is it using some sort
> of hardware feature in windows?

I don't know the quicktime encoder, but you should probably check the
filesize for the same color depth: ffmpeg's qtrle encoder is optimal
(in terms of output size), so it's likely a non-optimal heuristic is
much faster.

> 2. I don't know the algorithm well yet, but is there any inherent reason
> why I can't multithread it (which is my most likely approach).

It is probably easy, iirc the lines are completely independent (see
qtrle_encode_line) and you can surely multithread it by encoding
different lines on different threads.


More information about the ffmpeg-devel mailing list