Raspberry Pi Camera Streaming to VLC Player
2015-07-31 00:05
1046 查看
Raspberry Pi Camera Streaming to VLC Player
Recently I discovered the pi’s in my quest for making a device with recognition software to locate items on the ground while being attached to a multi-rotor helicopter.The Raspberry Pi is perfect. only needing 5v to run means its great for running off batteries etc.
anyway to the streaming part.
To stream to VLC from your Raspberry Pi Camera to your computer over a network you need to install VLC Player on both the Raspberry Pi & PC/ Mac what ever.
for the PC/ MAC its simple just go to the VLC downloads page – http://www.videolan.org/
as for the Pi its more complicated.
login to your pi via ssh or use the terminal directly on the Pi
Updating is important run the below commands
sudo apt-get update
sudo apt-get upgrade
Once they are finished lets install VLC
sudo apt-get install vlc
once you have VLC on both the Pi & the machine you want to stream to you want to run this command to start the stream
raspivid -o - -t 9999999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
if you encounter issues streaming like frezzes etc use this script
raspivid -o - -w 920 -h 540 -t 9999999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
once the script is running open VLC Player on your computer.
go to File, Open Network or Open Network Stream (it’s a little different between mac & pc versions)
type this in the field – rtsp://IPofRaspberryPi:8554/ (example: rtsp://192.168.1.105:8554/)
click OK & you’re done!
enjoy the stream
相关文章推荐
- JasperReport动态生成表格报表
- Fiddler捕捉ASP.NET WebSite调用WebService、WCF服务
- ireport jasperreport 主报表向子报表传递参数
- aspx视图转换成Razor视图
- ASP.NET MVC路径引用总结
- ASP.NET MVC引用最新Newtonsoft.Json的异常问题解决办法
- ABP(现代ASP.NET样板开发框架)系列之14、ABP领域层——领域事件(Domain events)
- asp.net不能调试,配置一切正常
- asp.net实现断点续传
- 树莓派Raspbian系统定制 - LXDE桌面系统定制 - 基本概念
- ASP.NET MVC - Bug奇遇之ValidationAttribute
- asp.net 非常简易的新闻发布系统,结合了ajax,json,Nvelocity模板引擎,只完成了一部分功能,非常适合新手看,我以前是学java方向的,刚接触.net,做的不好的别喷哈
- Ubuntu Mate: mak Raspberry Pi camera work without raspi-config on Raspberry Pi2
- ABP(现代ASP.NET样板开发框架)系列之13、ABP领域层——数据过滤器(Data filters)
- 【asp】【markdown】md语法基础
- asp.net开发环境搭建
- cocoaspod三方库管理教程
- 【asp】win7 ODBC sqlserver数据源的配置
- 【asp】ODBC与OLEDB区别
- 【asp】ERR对象