[英]What's the best way to stream video from a camera on an embedded device?
I'm using a Samsung S3C6410 to develop a video ( currently no good solution for synchronized video and audio ) streaming application. 我正在使用Samsung S3C6410开发视频(当前对于同步视频和音频没有好的解决方案)流应用程序。
I intended to put this board on a small robot car and stream the video from the camera back to me from 3G network. 我打算将此板放在小型机器人汽车上,并将摄像机中的视频通过3G网络流回到我身上。
Up till now, the best solution I tried is mjpg_streamer. 到目前为止,我尝试过的最佳解决方案是mjpg_streamer。 It's a good open source project and it does what it promises to do. 这是一个很好的开源项目,它可以完成它所承诺的工作。 But what disappoints me is that the performance is not good enough. 但是令我失望的是性能还不够好。
It uses HTTP as the way to stream video, which result in lots of wasted bandwidth. 它使用HTTP作为流视频的方式,这导致大量带宽浪费。 My test results for a 1280x720 video is more than 1MB/s, and for 640x480 video is about 300KB/s. 我的1280x720视频的测试结果超过1MB / s,而640x480视频的测试结果大约为300KB / s。
It does not stream audio at the same time. 它不会同时流音频。
I found out that the Mjpg-streamer project is developing a module for RTSP streaming, but it's far from completion. 我发现Mjpg-streamer项目正在开发用于RTSP流的模块,但是还远远没有完成。 So I want to know if there are open source projects that meet my requirements(bandwidth efficient, and stream audio at the same time but not necessarily solved with one software only). 因此,我想知道是否有满足我要求的开源项目(带宽效率高,并且可以同时传输音频,但不一定仅使用一种软件即可解决)。
Any help is appreciated. 任何帮助表示赞赏。
You probably want to use gstreamer. 您可能要使用gstreamer。 It is able to stream audio and video. 它能够流音频和视频。 Have a look at the udpsink and rtp modules: 看一下udpsink和rtp模块:
http://gstreamer.freedesktop.org/documentation/rtp.html http://gstreamer.freedesktop.org/documentation/rtp.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-udpsink.html http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-udpsink.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.