[FFmpeg-user] how to enable hardware acceleration in ffmpeg

Tom Evans tevans.uk at googlemail.com
Fri Mar 2 15:29:13 CET 2012

On Fri, Mar 2, 2012 at 1:42 PM, Yogesh Tyagi <yogesh.bit2006 at gmail.com> wrote:
> Hi,
> Is there any command line option in ffmpeg to enable hardware acceleration
> for h264 decoding.I have configured and compiled ffmpeg with"
> --enable-vaapi --enable-hwaccel=h264_vaapi" options but ffmpeg is not
> invoking  decode_slice function of vaapi_h264.c.

As I understand it, vdpau and vaapi are useful for decoding when you
want to display that decoded content. It's not a usable API, eg for
decoding video as a step for subsequently re-encoding it (if that
makes sense).

IE, you can use vdpau/vaapi to display media using hwaccel, but you
can't use it to accelerate decoding whilst encoding.



More information about the ffmpeg-user mailing list