是否有适用于Android的dvb-t库? [英] Is there any dvb-t library for android?

查看:114
本文介绍了是否有适用于Android的dvb-t库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android STB,我想知道是否有任何库可以使用内置的DVB-T调谐器?

提前谢谢!

解决方案

不,没有适用于Android的DVB-T库.

但是,您可以开发自己的:

首先,内核支持您的DVB-T设备吗?要进行检查,请在启动机器时查看与DVB相关的调试是否来自 dmesg .另外, ls/dev/dvb * 可以查看已经存在的内容.

如果内核中没有DVB支持,则需要添加它.首先,您需要访问内核源代码.使用此功能,修改内核菜单配置以添加与DVB相关的模块,以及为您的调谐器指定的特定模块-有时还需要一些遥控器.然后构建这些模块,并在盒子上插入模块.有时.再次检查初始检查.

然后,您可以针对Android(a)交叉编译 dvb-apps 特别是 tzap ),或更新的 JNI 来从Java访问API,并创建一个应用执行调整.

最后,您可以将URI发送到/dev/dvb0.dvr0,例如 VLC 之类的第三方视频播放器.这是一个TS流,其中包含用于SD的MPEG-2和用于HD的H264.

如您所见,这是很多工作,但完全有可能.

I have an android STB and I'd like to know if there is any library with I can use the built in DVB-T tuner?

Thanks in advance!

解决方案

No, there is no DVB-T library for android.

However, you can develop your own:

Firstly, is your DVB-T device supported by the kernel? To check, see if DVB related debug comes out of dmesg when you boot up the box. Also, ls /dev/dvb* to see what is already there.

If there is no DVB support in the kernel, you will need to add it. First you need access to the kernel source. Using this, modify the kernel menuconfig to add DVB related modules, and specific ones for your tuner - sometimes some Remote Control ones are required also. Then build these modules, and insmod the modules on the box. Sometimes firmware is required too. Check the initial check again.

Then you can cross-compile dvb-apps for android (specifically tzap), or the newer v4l-utils for android. This gives you c code to tune to DVB-T transponders. Then write some JNI to access the API from Java, and create an app to perform tuning.

Finally, you can send a URI to the /dev/dvb0.dvr0, to a third-party video player like VLC. This is a TS stream containing MPEG-2 for SD, and H264 for HD.

As you can see, it is a lot of work, but entirely possible.

这篇关于是否有适用于Android的dvb-t库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆