[FFmpeg-devel] [PATCH] FFV1 rectangular slice multithreading

Peter B. pb
Mon Nov 1 10:29:12 CET 2010

Michael Niedermayer wrote:
> Following patchset makes ffv1.2 much faster on multiprocessor systems
> (requires version to be set to 2, which needs you to edit the source if you
>  want to try as 1.2 bitstream is not finalized yet)
I've made performance comparisons with ffmpeg v0.6.

My test was set up as follows:
*) 1-minute FFv1 video (with ffmpeg v0.6)
*) 1-minute FFv2 video (with ffmpeg-checkout-2010-10-29)

I've converted FFv1 to MPEG, because this is what was only possible in

The results on a dual-core Intel i5 2.6 GHz are:

1) FFv1, ffmpeg v0.6 (single thread): ~30fps
2) FFv2, ffmpeg-checkout-2010-10-29 (threads=1): ~30 fps
3) FFv2, ffmpeg-checkout-2010-10-29 (threads=2): ~50 fps
4) FFv2, ffmpeg-checkout-2010-10-29 (threads=4): ~65 fps

So the code seems to be able to gain a bit from hyperthreading, too.
I hope I can test it on a quad-core soon.

Thanks for this performance improvement!
Peter B.

More information about the ffmpeg-devel mailing list