Objective: To build a crtmpserver
Streaming and playing rtmp to test server performance
During installation and configuration, record several issues.
Crtmpserver installation process:
1 Yum-y install cmake OpenSSL-devel GCC gcc-C ++ make SVN
2 service iptables stop
3 CD/usr/local/src
4 SVN co -- username Anonymous -- password "" https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver
5 CD crtmpserver/
6 sh cleanup. Sh
7 CD builders/cmake
8 cmake.
9 make
10./crtmpserver. Lua
After step 2 is run, go should appear normally! Go! Go, but the error "unable to reuse port" appears, as shown in figure
Check whether it is a port or configuration file error. Modify/usr/include/ASM-generic/socket. h: # define so_reuseport 15, comment out so_reuseport, cleanup, recompile, and run again.
On Windows 7, FFmpeg is used to push rtmp streams to the crtmpserver. FFMPEG-Re-I 1.mp4-vcodec copy-acodec copy-F FLV rtmp: // 192.168.5.204/live/test, no problem
If one centos is used to push the stream using FFMPEG, a warning is displayed, indicating default Implementation of processinvokegeneric: Request: _ checkbw.
You need to modify the crtmpserver \ sources \ thelib \ SRC \ Protocols \ rtmp \ basertmpappprotocolhandler. cpp: processinvoke function to add the receive for _ checkbw.
After re-compilation, the crtmpserver can receive the stream data sent from FFMPEG.
Finally, use FFMPEG to record rtmp live streams. FFMPEG-I "rtmp: // 192.168.5.204/live/test live = 1" R. FLV
Test performance, next section.