Raspberry Pi 无延迟 (<10ms) 视频流 [英] Raspberry Pi no delay (&lt;10ms) video stream

查看:19
本文介绍了Raspberry Pi 无延迟 (<10ms) 视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建基于 Raspberry Pi 的四轴飞行器.我想通过蜂窝连接将视频从网络摄像头流式传输到我的计算机.我尝试了 ffmpeg 和 mjpg,但它必须有很大的延迟才能仅通过观看视频来控制 Quad.

I'm building quadcopter based on Raspberry Pi. I want to stream video from webcam via cellular conection to my computer. I tryed ffmpeg and mjpg but it has to big delay to make it possible to control Quad only with watching video.

我的问题是是否有可能以非常小的延迟(小到我可以毫无问题地驱动四路)来流式传输视频?

My question is if it's possible to stream video with realy small delay (so small that I will be able to drive quad without problems)?

如果树莓派的硬件不够好,BeagleBord 可以做吗?此外,将智能手机安装到四核将是最后可能的解决方案,但我更喜欢使用 Pi 解决方案.

If Raspberry's hardware isn't good enough, BeagleBord may do it? Also, mounting smartphone to quad will be last possible solution but I prefer soulution with Pi.

更新:我已将 gstreamer 用于流媒体和 Raspberry Pi 相机.事实证明,延迟非常小.10 毫秒在某种程度上是不可能的,但我设法将延迟减少到 20 毫秒.

UPDATE: I have used gstreamer for the streaming and Raspberry Pi camera. It turns out to have really small amount of delay. 10ms is somehow impossible but I managed to cut delay down to 20ms.

推荐答案

我有一个 RasPi 模型 B 并使用 mjpg-streamer.在 12fps 640 x 480 下运行时延迟几乎不明显.安装和配置大约需要 10 分钟.除了 mjpg-streamer 我还尝试过 Motion 和 FFMpeg,但两者都非常滞后.

I have a RasPi model B and use mjpg-streamer. The delay is almost unnoticeable running at 12fps 640 x 480. It takes around 10 mins to install and configure. In addition to mjpg-streamer I have also tried Motion and FFMpeg, but both were very laggy.

树莓派有一个很好的网络摄像头教程,您可能会觉得有帮助.

There is a good webcam tutorial for the Raspberry that you may find helpful.

这篇关于Raspberry Pi 无延迟 (<10ms) 视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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