FFmpeg push rtmp stream to Crtmpserver live

Source: Internet
Author: User

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

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.