Android 中的 IP 摄像头实现(查看 IP 摄像头的实时视频)
我需要为我客户的组织(可能有 5 个或更多)实施 IP 摄像机。我需要提供在 Android 手机中查看这些相机预览的设施。我发现 Android Market 中已有一个应用程序(IP Cam Viewer),这正是我的客户所要求的。
谁能给我推荐最好的网络摄像机(它应该通过他们的手机操作,即上下移动,以及左右移动)?
如何在 Android 中实现此功能(即从 IP 摄像机查看实时视频)?
谢谢&问候, 拉格文德拉·K.
I have a requirement to implement IP camera's for my client's Organization(May be 5 or more). I need to provide facility to view these camera's preview in their Android mobiles. I found an application already available in Android Market(IP Cam Viewer) and it is what exactly my Client asking.
Can anyone suggest me the best IP camera(It should be operated by their mobile i.e moving it up and down, as well as left and right)?
And how can I implement this functionality in Android(i.e Viewing live video from the IP Camera)?
Thanks & Regards,
Raghavendra K.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您需要这些信息,对于某些 ip-cam 的 ptz 命令 - 使用 cgi 命令,例如:
更改我的 ip-cam 中的运动检测:
http://[address:port]/config/motion.cgi?enable=no
我的 ip 摄像头没有 ptz,但在 google 上您可以找到适用于您摄像头的 cgi_command。
对于流媒体,我使用连接到 ipcam_address 的 AsyncTask(每个摄像头都有特定的地址+端口+配置文件信息),在我的情况下使用 mjpg 流并通过 http 会话连接到相机流。
If you until need theese info, for the ptz command some ip-cam - use cgi command like:
for example to change motion detection in my ip-cam:
http://[address:port]/config/motion.cgi?enable=no
my ip cam haven't ptz but on google you can find cgi_command for your cam.
For the streaming i use a AsyncTask that connect to ipcam_address (every cam have a address+port+profile info specific) in my case with a mjpg stream and through a http session connect to camera stream.
在我看来,这个问题更多的是关于如何接收视频并控制平移倾斜变焦 (PTZ) 摄像头,而不是 Android 特定的开发。
您绝对应该查看您的客户是否需要连接任何特定品牌的相机。一般来说,每个摄像机制造商观看实时视频的实现方式都不同。
如果您可以自由选择支持的摄像头,您可能需要查看 Axis。根据我的观察,他们制造了一些使用最广泛的相机,并且就分辨率和功能而言,他们拥有各种各样的相机。他们甚至有一个开发人员计划可以帮助您。
您可能还想查看 Zoneminder 一个免费的开源 Linux dvr 应用程序,也许源代码可以给您一些如何从各种网络摄像机获取视频的起点。
很抱歉,我无法为您提供更多帮助,但希望其中的一些信息能够帮助您入门。
The way I see it this question is more about how to receive video from and control Pan Tilt Zoom (PTZ) cameras rather than Android specific development.
You should definitely see if there are any specific brands of cameras that your clients need to connect to. Generally the implementation for viewing live video is different for each camera manufacturer.
If you have the liberty of choosing camera to support you might want to look into Axis. From my observations they make some of the most widely used cameras and they have a wide variety of cameras as far as resolution and features go. They even have a developers program that might be able to help you out.
You might also want to check out Zoneminder a free open source Linux dvr application, maybe the source can give you some starting points on how to get video from the various ip cameras.
I am sorry that I could not be of any more help but hopefully some of this information will help get you started.
你的信息对我来说已经足够了。我将从 Zavio 购买网络摄像机。它将支持RTSP协议。在 Android 1.5 中,媒体播放器将支持此直播流协议。我正在等待我的网络摄像机开始开发。
谢谢&问候,拉格文德拉·K.
Your info is enough for me. I am going to purchase IP Cam from Zavio. It will support RTSP protocol. In Android 1.5, Media Player will support this live streaming protocol. I am waiting for my IP camera to start development.
Thanks & Regards, Raghavendra K.