[FFmpeg-devel] Parallel H.264 decoding with FFmpeg

Carl Eugen Hoyos cehoyos
Wed Apr 28 11:22:46 CEST 2010


> On Tuesday 27 April 2010 13:23:17 Mauricio Alvarez wrote:
> 
> > http://alvarez.site.ac.upc.edu/hdvideobench/ffmpeg-2dwave.html
> 
> Patch against r10567 / r24627 (2007-09-24 / 2007-09-27) attached.
> (./configure && make does not work, you have to read the documentation)

The incantation to successfully compile a non-crashing (i.e. not crashing on
start, but on exit) version is:
--enable-pthreads --extra-cflags='-DTAIL_SUBMIT -DATOMIC_INSTRUCTIONS'
--extra-ldflags=-lrt

I tested three samples:
720p DVB-S recording
40Mbps x264 sample (Samsung Oceanic)
Apple 1080 trailer

The first two samples show a significant slowdown when decoded with -threads 2
The third sample shows a 10% speed-up with -threads 2.
As expected, current svn decodes the third sample another 20% faster (with one
thread).

Carl Eugen




More information about the ffmpeg-devel mailing list