How to use hardware decoding of media files using ffmpeg android?

1.6k Views Asked by At

i am developing a media player application in android which uses ffmpeg for decoding which i think is software decoding. it doesn't play high resolution videos smoothly so i would like to switch to hardware decoding. I came to know that libstagefright will do the thing. But how to implement it using libstagefright? Is there any samples or documentation . Please help in using the libstagefright.

1

There are 1 best solutions below

2
On

if you are using ICS you can use MediaCodec to encode or decode using hardware. see http://developer.android.com/reference/android/media/MediaCodec.html for more details and examples. Thanks, NinjAndroid, MoMinis R&D team