[vlc-devel] [PATCH] avcodec: allow hardware decoding with multithread for FFmpeg

Rémi Denis-Courmont remi at remlab.net
Wed Jul 27 22:07:10 CEST 2016


Le keskiviikkona 27. heinäkuuta 2016, 20.30.53 EEST Steve Lhomme a écrit :
> On Wed, Jul 27, 2016 at 5:51 PM, Rémi Denis-Courmont <remi at remlab.net> 
wrote:
> > Le keskiviikkona 27. heinäkuuta 2016, 16.43.26 EEST Steve Lhomme a écrit :
> >> The context is protected by a mutex.
> > 
> > What is protected by a mutex? The VLC state is not the problem here.
> > 
> > FFmpeg developers say hardware acceleration with threaded decoding is not
> > supported, especially not on Windows. In fact, I reckon Windows is the
> > primary motivation for not supporting it. Depending on FFmpeg version, it
> > either fails or prints a stern warning.
> 
> " ffmpeg.c just produces corrupt decoding when you try to use that, so
> use at your own peril.
> Not to mention that it doesn't offer any performance benefits."
> 
> OK so how do we disable multithread decoding ONLY when doing hardware
> acceleration ?

You can´t, that would be a catch-22.

Use libav.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list