x264enc on android: very slow.

Tonu Jaansoo chain at bsd.ee
Mon Jul 29 20:18:24 PDT 2013


Hi!

I am optimizing playback on Android currently. Got working a Java hack that plays a full hd video with almost no CPU usage on SG4! Hardware decodes, GPU shows, not much CPU involvement. Huge difference between hardware or software. The API for codecs starts from Android 4.1. http://developer.android.com/reference/android/media/MediaCodec.html

For encoding, you would need to hack androidmedia plugin, I think. I did not see that it configures codec as an encoder.
For playback, there should be something like video/x-raw-gl caps on androidmedia source pad and a property for setting GL context. Anyone can comment this?

Tonu

On Jul 29, 2013, at 4:28 PM, Haiming Wang <whm_buaa at hotmail.com> wrote:

> 
>   Yes,  I also considered to use the hardware encoder on android. However I didn't think the performance of the software is so unacceptable.  I see some software encoder running on Android, and the frame rate can reach 15 fps, and the performance is quite acceptable.  I want to know if there are some settings for x264enc, which can improve the performance.
> 
> Thank you again for your answers. You help will always be appreciated!
> 



More information about the gstreamer-devel mailing list