1. 程式人生 > >樹莓派h264實時視訊監控

樹莓派h264實時視訊監控

FishXX之前用VLC串流輸出視訊,在電腦上需要VLC播放器。試了一下,感覺還是有點延時。

今天發現一個更加流暢,也不需要VLC播放器的樹莓派遠端視訊監控方法,直接在瀏覽器中開啟即可。

上面的使用方法很詳細,我這裡再重複一下

先安裝相關軟體

$ sudo apt-get install libav-tools git python-setuptools python-pip python-picamera
$ sudo pip install ws4py

下載程式碼
git clone https://github.com/waveform80/pistreaming.git

使用方法

$ cd pistreaming
$ python server.py
Initializing websockets server on port 8084
Initializing HTTP server on port 8082
Initializing camera
Initializing broadcast thread
Spawning background conversion process
Starting websockets thread
Starting HTTP server thread
Starting broadcast thread


非常流暢,幾乎感覺不到延時,另外手機上也可以通過瀏覽器查看了。