[FFmpeg-user] How do I use the HW accerlator?

nrson nrson at win4net.com
Thu May 17 10:08:08 CEST 2012


Hi ffmpeg experts!

I want to decode the H.264 bitstream using HW accerlerator, but I can't 
use it.

My configure and version on WinGW are as follows:

ffmpeg version 0.9.1.git Copyright (c) 2000-2012 the FFmpeg developers
   built on Apr 20 2012 11:14:30 with gcc 4.6.2
   configuration: --enable-gpl --enable-shared --enable-swscale 
--enable-hwaccel=h264_dxva2 --enable-decoder=h264
   --enable-w32threads --enable-memalign-hack --disable-libvorbis 
--disable-libx264 --enable-cross-c
ompile --target-os=mingw32 --arch=x86 --extra-cflags=-I/local/include 
--disable-
yasm --extra-ldflags=-L/local/lib --prefix=/usr
   libavutil      51. 44.100 / 51. 44.100
   libavcodec     54. 12.100 / 54. 12.100
   libavformat    54.  3.100 / 54.  3.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 65.102 /  2. 65.102
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 10.100 /  0. 10.100
   libpostproc    52.  0.100 / 52.  0.100

When I reviewd the config.h after compiling, the results was as 
following

   #define CONFIG_HWACCELS 0
   #define CONFIG_H264_DXVA2_HWACCEL 0

How do I solves the problem?

Thank you in advances

nrson



More information about the ffmpeg-user mailing list