[Libav-user] ffmpeg H.264 decoding

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 20 12:21:01 CET 2012

Malik Cissé <mc at ...> writes:

> How can I force hw decoding?

This depends on which hardware decoder you want to use, 
at least the following APIs are "supported" (please 
understand that in this case, this does not mean you 
can use them without any additional effort, it just 
means that some code necessary to use hardware 
decoding is in place, you typically have to add code 
inside your application):
xvmc, vdpau, va-api, dxva
OpenElec has added xvba code to their local copy of 
Addionally, stagefright probably allows you to use 
hardware decoding in a more straight-forward manner.

> Is there any good example code for this?

Both MPlayer and vlc use (different) hardware 
decoders supported by libavcodec.

Carl Eugen

More information about the Libav-user mailing list