一、live555在Raspberry Pi上的點播html
live555MediaServer這個實例是個簡單的服務器,支持多媒體點播,直接在Raspberry Pi上編譯運行,或者經過交叉編譯出ARM核上的可運行文件。linux
能夠支持列表中的文件點播,固然也能夠是fifo,linux下fifo也能夠看做文件git
(轉)live555在Linux下最簡單地實現實時流媒體點播github
http://www.javashuo.com/article/p-borxlska-cs.html緩存
二、live555在Raspberry Pi上的直播服務器
testOnDemandRTSPServer也是個簡單的服務器,直播的服務端就改造這個就很方便。app
更改testOnDemandRTSPServer.cpp文件中的 29行post
Boolean reuseFirstSource = True;編碼
9八、99行url
char const* streamName = "live";
char const* inputFileName = "/tmp/test.264";
直接在Raspberry Pi上編譯運行 ,或者交叉編譯出ARM核上的可運行文件。
運行以下指令
./testOnDemandRTSPServer
chmod -R 777 tmp mkfifo /tmp/test.264 raspivid -o /tmp/test.264 -t 0 -d
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
總結 : Raspberry Pi硬編碼到h264緩存,而後testOnDemandRTSPServer從緩存獲取數據,VLC做爲客戶端訪問testOnDemandRTSPServer服務端
RaspiCam更多應用請移步https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/raspicam