Native Hardware video codecs(H263/H264) and GPU accleration in Android

1,340 views
Skip to first unread message

dhill

unread,
Apr 19, 2012, 8:12:58 AM4/19/12
to Doubango
Hi,

1) Can we make use of native/Hardware video codecs(H263/H264) as they
are available from Android 3.0 onwards by default.

2) Also is it possible to impose encoding/decoding using GPU only,
rather than CPU (in Android).

Thanks.

Mamadou

unread,
Apr 19, 2012, 9:30:46 AM4/19/12
to Doubango
I'm not aware of a hardware accelerated (HA) encoder in Android 3.0. I
know that there is a GPU renderer when using openGL ES which is used
in IMSDroid but it's another history.
In all case, I don't expect a H.264 encoder from Google because of
licensing issues.
Do you've any reference?

dhill

unread,
Apr 20, 2012, 5:22:17 AM4/20/12
to Doubango
Hi Mamadou,

As per the below link, H263 and H264 codecs are available with Android
3.0 onwards.
http://developer.android.com/guide/appendix/media-formats.html

Can these native codecs be used along doubango for video calls.

Thanks.

Tayeb Meftah

unread,
Apr 20, 2012, 5:30:12 AM4/20/12
to doub...@googlegroups.com
Amr too

Envoyé de mon iPhone

Mamadou

unread,
Apr 20, 2012, 6:32:44 AM4/20/12
to Doubango
The Android source code shows support for OMX with implementation from
PV (S/W), NV (H/W) and many others. Yes it's possible to have access
to these implementations through NDKr7+. The question now is to know
if these implementations are better than FFmpeg and x264. For example,
there is H.264 HA codec in Doubango using NV CUDA (http://
code.google.com/p/doubango/source/browse/branches/2.0/doubango/tinyDAV/
src/codecs/h264/tdav_codec_h264_cuda.cxx) but it's disable because it
gives lower performance than x264 when encoding FullHD videos (1080p).
The HA codecs offload most of the encoding/decoding parts (e.g. ME, Q-
Pel interpolation, DCT, Transf ...) to the GPU and/or APU which result
in lower CPU usage but most of them result in higher latency because
of the memory transfer (CPU<->GPU/APU).

On Apr 20, 11:22 am, dhill <dhilla...@gmail.com> wrote:
> Hi Mamadou,
>
> As per the below link, H263 and H264 codecs are available with Android
> 3.0 onwards.http://developer.android.com/guide/appendix/media-formats.html
Reply all
Reply to author
Forward
0 new messages