PiCamCar/README.md
2018-08-09 17:50:09 +08:00

21 lines
842 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PiCamCar
一个带有摄像头的简单远控小车。
ffmpeg采集摄像头画面并推流到本地rtmp
livego监听本地rtmp并转为http-flv视频流
web页面用flv.js播放http-flv调用php页面执行GPIO操作完成小车控制。
## Usage
<ol>
<li>自行编译安装ffmpeg,wiringpi</li>
<li>运行 `sudo modprobe bcm2835-v4l2` 解决摄像头驱动</li>
<li><a href="https://github.com/gwuhaolin/livego/releases">点此</a>下载对应版本的livego</li>
<li>运行sh目录下的 `openCam.sh` </li>
<li>访问car.php页面应该就可以了吧</li>
</ol>
用到的开源项目:<a href="https://github.com/Bilibili/flv.js">flv.js</a><a href="https://github.com/gwuhaolin/livego">livego</a><a href="https://ffmpeg.org/">FFmpeg</a><a href="http://wiringpi.com/">Wiring Pi</a>。感谢大佬们。