[FFmpeg-devel] FFmpeg MT and HWACCEL mess

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Mar 27 14:40:58 CEST 2011


Hello,
I just had to realize that due all the new thread code in avcodec_open
making the HWACCEL stuff anything than a messy, broken hack has become
even harder.
Since it both initializes the threads and skips calling init, that means
whether to use threads or not has to be decided during init.
However we do not have any data available during init, so we have no chance
of testing whether the hardware supports the given input, nor can we use
get_format to decide which if any hwaccel to use.
This also pretty much puts a block on implementing a codec what would
automatically decide between hwaccel with readback and software decoding.
Any ideas or should I just finally take the hint and give up on FFmpeg
supporting hardware decoding in a way that isn't a PITA?

Reimar



More information about the ffmpeg-devel mailing list