1.下载live555源码:
wget http://www.live555.com/liveMedia/public/live.2017.10.28.tar.gz
2.解压源码包:
tar xvf live.2017.10.28.tar.gz
3.进入源码包目录:
cd live
4.编译源码:
./genMakefiles linux && make
5.进入可执行文件目录:
cd mediaServer/
执行可执行文件
./live555MediaServer
打开VLC粘贴url即可播放流
6.部署live555MediaServer到云
①、进入: cd liveMedia/
②、修改文件RTSPServer.cpp
72 #if (0)
73 ourAddress.sin_addr.s_addr = ReceivingInterfaceAddr != 0
74 ? ReceivingInterfaceAddr
75 : ourIPAddress(envir()); // hack
76 #else
77 ourAddress.sin_addr.s_addr = inet_addr("0.0.0.0");
78 #endif
修改文件后,保存;重新编译即可;