向 Android 添加视频编解码器
有人可以解释一下我需要采取的步骤来添加 Android 的新编解码器?
另外,我希望编解码器作为应用程序的一部分安装 安装(或首次启动)且不作为完整 Android 操作系统的一部分 建造。
我想这样做的原因是我有一个应用程序需要 显示不支持的编解码器(HLS 或 TS)的视频,但我不会 想要构建一个完整的视频播放器 - 只需与 现有的、内置的播放器。
谢谢, 阿利克.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
构建您自己的固件,或构建您自己的媒体播放器(例如适用于 Android 的 VLC)。
这是不可能的,除非您构建自己的媒体播放器。
适用于 Android 的 VLC 即将推出(至少对于某些手机而言),因此它可能能够播放您的格式。
Build your own firmware, or build your own media player (like VLC for Android).
That is not possible, unless you build your own media player.
VLC for Android is due out (at least for some phones) shortly, so it may be able to play your format.
我认为也许可以通过参考android开发者页面来添加自定义编解码器(尽管我没有尝试过)向 android 添加自定义编解码器。
你可以尝试通过openMAX IL层添加你的编解码器,然后调用android媒体播放器来播放它(我相信vlc已经这样做了,但使用了它自己的播放器)。这个很棒的播放器是 Android 默认播放器,只需通过 openMAX API 获取可用的编解码器列表,如果有编解码器,它就会播放。因此,值得尝试在应用程序初始化期间添加编解码器,并调用媒体播放器。
I think it maybe possible to add custom codec(though I have not tried) by referring to the android developer page Adding custom codec to android.
You can try out adding your codec through openMAX IL layer then call up the android media player to play it(I believe vlc has done in this way but uses its own player). The awesome player, the android default player, just fetch a list of codecs available through openMAX API and if there is a codec, it plays. So it is worth to try adding your codec during initialization of your app, and call up media player.