Crtmpserver basic call

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.