Adding video codec to Android

AlikElzin-kilaka picture AlikElzin-kilaka · Jan 13, 2011 · Viewed 26.7k times · Source

Can someone please explain the steps I need to take in order to add a new codec to Android?

Also, I would like the codec to be installed as part of an application installation (or first launch) and NOT as part of a full Android OS build.

The reason I want to do this is that I have an application that needs to show a video of a non supported codec (HLS or TS), but I wouldn't want to build a full blown video player - just integrate with the existing, built-in, player.

Thanks, Alik.

Answer

CommonsWare picture CommonsWare · Jan 13, 2011

Can someone please explain the steps I need to take in order to add a new codec to Android?

Build your own firmware, or build your own media player (like VLC for Android).

Also, I would like the codec to be installed as part of an application installation (or first launch) and NOT as part of a full Android OS build.

That is not possible, unless you build your own media player.

The reason I want to do this is that I have an application that needs to show a video of a non supported codec (HLS or TS), but I wouldn't want to build a full blown video player - just integrate with the existing, built-in, player.

VLC for Android is due out (at least for some phones) shortly, so it may be able to play your format.