1, the project needs to use FFmpeg push rtmp stream to Crtmpserver, and then live.
/usr/bin/ffmpeg-re-loop 1-i tmp/234.jpg-r 10-f flv rtmp://127.0.0.1:8085/live/phone-234
2, download Crtmpserver source code, official website (http://www.rtmpd.com/) often not go, to GitHub download
Https://github.com/j0sh/crtmpserver
3, need to install CMake and then compile.
Yum Install CMake
CD Crtmpserver/builders/cmake
CMake.
Make
4, edit Crtmpserver/crtmpserver.lua, increase on 8085 port monitoring, output rtmp.
description="FLV Playback Sample", name="FLVPlayback", Protocol="dynamiclinklibrary", Mediafolder="/volumes/storage/media/mp4", aliases={ "simplelive", "VOD", "Live", "weeklyquest", "Sosample", "Oflademo",},acceptors={{IP="0.0.0.0", Port=6666, Protocol="inboundliveflv", Waitformetadata=true,}, {IP="0.0.0.0", Port=9999, Protocol="inboundtcpts"}, {IP="0.0.0.0", Port=8085, Protocol="inboundrtmp" },
5. Start the service:
./crtmpserver/crtmpserver./crtmpserver/crtmpserver.lua
If it starts without any reaction, the description fails, running:
./crtmpserver/crtmpserver--use-implicit-console-appender./crtmpserver/crtmpserver.lua
Review the error prompt, and if the prompt directory is not found, create a new.
6. Use rtmp player to view, push stream success: rtmp://127.0.0.1:8085/live/phone-234
Originating from: http://www.cnblogs.com/dwj192/Welcome reprint
FFmpeg push rtmp stream to crtmpserver live