[FFmpeg-user] enable the vaapi hardware acceleration decoding with ffmpeg and libx264
Vinxxe
vinxxe at gmail.com
Wed Oct 17 09:12:16 CEST 2012
Hi,
I'm trying to use the ffmpeg lib (the libavcodec and libswscale) in
the following way:
1) get the h264 coded movie
2) decode a frame with the avcodec_decode_video2 and sws_scale calls
3) put the decoded frame in a opengl pixel buffer object which then
will be used as animated texture
my best would be if I was able to decode the frame using my hw
accelerated board (I've a AMD HD4270 Radeon integrated chip) because
this way my cpu usage decrease a lot. For now I've successfully
managed to use a piece of code that play a h264 encoded movie using
the vaapi hw acceleration. The problem is that this code put the
decoded frame directly to the hw video surface but I want to put the
decoded frame to the pixel buffer object.
Is there any way to get the decoded frame back or the process of
decoding the frame through hw accelerated api makes sense only if you
put the decoded frame directly to the hw video surface?
thanks a lot for any suggestion and sorry for my unclear explanation
V
P.S. this is the output of my ffmpeg (for compiler switches and
libraries version)
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 11 2012 08:38:31 with gcc 4.4.3
configuration: --arch=amd64 --cpu=Turion --enable-gpl
--enable-libfaac --enable-libmp3lame --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-postproc
--enable-version3 --enable-x11grab --disable-network --enable-vaapi
--enable-hwaccel=h263_vaapi --enable-hwaccel=h264_vaapi
--enable-hwaccel=mpeg2_vaapi --enable-hwaccel=mpeg4_vaapi
--enable-hwaccel=vc1_vaapi --enable-hwaccel=wmv3_vaapi
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
More information about the ffmpeg-user
mailing list