问题描述
我有一个IP摄像机是视频流以MJPEG格式。现在,我的目标是接受它,并在我自己的自定义Android应用程序中显示它。为此,我对Android平台了3个编程选择:
I have an IP camera which is streaming video in MJPEG format. Now my aim is to receive it and display it in my own custom android app. For this I have three programming alternatives on android platform :
- 使用内置Anrdroid的MediaPlayer类
- 在本地C使用FFMPEG库,并通过JNI访问它
- 在使用Android上的GStreamer端口接收流
所以,请提出一个更好的解决方案?
So please suggest a better solution?
我有FFMPEG或GStreamer的没有经验。那么,什么是这样做的可行性?
I have no experience with FFMPEG or GStreamer. So what is the feasibility of doing this?
推荐答案
我已经使用的GStreamer时的BeagleBoard有1GHz的处理器,同时图像的2台相机在30 fps的非常低的CPU处理能力。
I have used gstreamer at beagleboard which has 1GHz processor for taking image from 2 cameras in 30 fps with very low CPU processing power.
的Gstreamer能够合并图像,添加字符串,改变格式。而你在流想轻松地presents你。你需要做的是增加黑匣子一>对方。
Gstreamer able to merge images, add strings, change formats. And presents you what you want easily in stream. The only thing you need to do is adding black boxes each other.
您可以与动态和静态加黑盒。
You can add blackboxes with both dynamically and statically.
如果你不打算改变你流在你的程序取决于输入我建议使用静之一。但我不知道它是否工作在机器人..
If you are not going to change your stream depends on input at your program I suggest to use static one. But I am not sure if it works at android..
这篇关于从机器人的IP摄像头接收视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!