[MPlayer-users] how to enable hardware acceleration video decoding based on stagefright of android ?

lean fu fulean at gmail.com
Thu Sep 13 15:05:08 CEST 2012


hi list:

ffmpeg 0.10 or later has "libstagefright.cpp" providing hardware
acceleration on android ,

and there's an building script at " ffmpeg/tool/build_libstagefright"  for
compiling this feature ,

but unfortunate, 'configure' of mplayer  don't  support
"--enable-libstagefright-h264" ,

i have to modify config.h and config.mak  to add some stagefright related
macro manually.

and change  the 'name'  member of  ff_libstagefright_h264_decoder  from
"libstagefright_h264" to "h264".

after these changes, when play a file contains h264,  procedure  will call
into  'Stagefright_decode_frame'.

but the picture  looks abnormal , sometimes appears  full  blue(or green)
screen,for some 1080p files,even throw fatal errors.

had  somebody  get  the stagefright features works successfully? and is
there some more simple way that

i can integrate the stagefright feature into my android port of mplayer ?
any reply is very appreciated, thanks !


More information about the MPlayer-users mailing list