Re: How to encode/decode using OpenMAX AL APIs present in Android4.0 (Ice Cream Sandwich) H.264 codec stream

4,956 views
Skip to first unread message

Glenn Kasten

unread,
Nov 14, 2012, 10:57:12 AM11/14/12
to andro...@googlegroups.com
I suggest you look at this API instead, it is closer to what you need:

The subset of OpenMAX AL implemented on Android was designed for a very narrow use case:
playback of MPEG-2 transport streams.

On Monday, November 12, 2012 1:34:23 AM UTC-8, VConf wrote:
Hi,

I would like to create a video conferencing application in android. 
I am able to do the signalling using third-party SIP framework to establish the call.

But, I want to make use of OpenMAX AL APIs present in Android 4.0 (Ice Cream Sandwich) to encode and decode the streaming data. 

My requirement is like,

1) I want to capture the camera frames which are encoded in H.264 codec to send to other party in the call.
2) On the other side I want to decode the H.264 codec RTP stream using the OpenMAX AI layer APIs.

Please let me know any sample/example code for the usage of these android ICS, OpenMAX AL APIs to encode/decode the frames to do the streaming over RTP.

Thanks.




nyronian

unread,
Nov 14, 2012, 7:19:27 PM11/14/12
to andro...@googlegroups.com
Are you saying OpenMax AL will only play MPEG2-TS formats?  I have been looking for an answer to this.  I would assume I could then utilize FFMPeg libraries or something like that to transform say an MP4 but I am unsure about that as well.

openser

unread,
Nov 14, 2012, 9:01:02 PM11/14/12
to andro...@googlegroups.com
it seems there is no direct interface for hardware encode/decode , I ever  used  sansung MFC dsp for encode /decode on android , in which ,i access MFC driver directly for h264, h263 and mpeg4 encode and decode.  
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/MZ7VERAZzkUJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Xiaodong Wang

unread,
Mar 6, 2014, 11:50:23 AM3/6/14
to andro...@googlegroups.com
Hi Glenn,
Nice to see your comment, so far I also plan to design video chat feature based on OpenMax AL/IL, since the requirement is that video bit rate should be changed due to dynamic bandwidth shaping problem which depend on the network quality. So I wonder if MediaCodec could provide the ability to resolve such problem? Thanks!
Reply all
Reply to author
Forward
0 new messages