Sometimes you need to test your app and publish and receive RTMP stream.
In this case, the Internet has a Simple RTMP Server(https://github.com/ossrs/srs).
It's a really simple and quick instrument.
It runs on Linuxs, for instance, Centos and Ubuntu, and x86, x86-64, ARM and MIPS is ok. MacOS only supports code edit and build. SRS does not support other Unix-like system, neither windows. SRS build on the coroutine library state-threads, which simplify the complex protocol implementations.
More information you can find on the project page but I will show the quick steps on how to deploy the server on Ubuntu.
1. Clone project or download [https://github.com/ossrs/srs.git] 1.1 In terminal change the directory to srs/trunk.
~$ cd/home/medialooks/programming/gitclone/srs/trunk
2. Configure and make
~$ ./configure && make
3. Run server
~$ ./objs/srs -c conf/srs.conf
Now you have the working server!
You can test it with MPlatform/MFormats Samples.
Set in Writer Sample the IP address of the server to the URL field, set the custom configurations and click the button "Start Capture".
Then open Playlist Sample and click "Add URL", set the IP address and click "Play".