Raspberry Pi + WebCam server

本文介绍了如何使用Raspberry Pi与fswebcam、motion、mjpeg-streamer等工具将摄像头流媒体推送到Web浏览器,包括iOS和Android设备。通过这些方案,你可以设置实时监控或者远程查看视频流。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

共有四种解决方案:

1.  fswebcam

可以定时截图。

Webcam capture using fswebcam

There are two video capture API's for Linux - Video4Linux (V4L) and Video4Linux2 (V4L2). As you may have guessed from the name, V4L2 is the second version of V4L.

Why do you care?? Well, because it can be terribly confusing if you want to set up a simple webcam in Linux. Some cameras only support V4L or V4L2 and some apps only support V4L or V4L2.

Wanna test your camera? Install a nice little app called cheese. You'll find it in your repository and it works with V4L or V4L2 compliant devices.

fswebcam配置:

device /dev/video0
input 0
loop 15
skip 20
background
resolution 320x240
set brightness=60%
set contrast=13%
top-banner
font /usr/share/fonts/truetype/msttcorefonts/arial.ttf
title "EvilEye cam-O-tron"
timestamp "%d-%m-%Y %H:%M:%S (%Z)"
jpeg 95
save /home/user/pictures/viewcam.jpg
palette MJPEG


2.   motion



http://www.palebluedot.nl/jml/computer-stuff/33-webcam-streaming-with-raspberry-pi.html


3.  mjpeg-streamer

Stream Video from the Raspberry Pi Camera to Web Browsers, Even on iOS and Android

This is an efficient method of streaming video from the Pi to another computer, but it has a few problems:

  • The Raspberry Pi needs to know the address of the computer that is playing the video
  • The playing computer needs to have an advanced player that can play a raw H.264 video stream. No mobile device that I know can do this, for example.
  • Since this system relies on a direct connection between the Pi and the player, it is impossible to have the player computer connect and/or disconnect from the stream, the connection needs to be on at all times.
  • What if there are two or three concurrent players? Things get awfully complicated for the Pi.


4. gstreamer



5. 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值