[FFmpeg-devel] [PATCH] simplify dnxhd threading

Reimar Döffinger Reimar.Doeffinger
Fri Sep 25 20:36:45 CEST 2009

On Fri, Sep 25, 2009 at 10:51:36AM -0700, Baptiste Coudurier wrote:
> 68 contexts, even when not using threads ? I'm concerned about memory.

Yes, that probably should be checked. Though I think that giving each thread
its own whole context is overdoing it anyway.

> I'd like to see extended benchmarks with 8+ threads before
> considering it, if it's not faster, I don't really see the point.

Well, do you by chance know a commandline where it is even faster with -threads 2?
There was no difference between -threads 2 and -threads 1 in my tests.
Also note that I explicitly pointed out that my patch can speed up things
even with only 2 threads if there are other tasks running or encoding takes
very different time for different parts of the image (no idea if that can happen
with DNxHD).
That said, feel free to consider this more an RFC than a patch to be applied.

More information about the ffmpeg-devel mailing list