live555在Raspberry Pi上的点播/直播

一、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





总结 : Raspberry Pi硬编码到h264缓存,而后testOnDemandRTSPServer从缓存获取数据,VLC做为客户端访问testOnDemandRTSPServer服务端

RaspiCam更多应用请移步https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/raspicam 

相关文章
相关标签/搜索