The first step is to read and set up your server "Nginx-RTMP on Ubuntu 14.04".
- Encoder-x264
- Variable bitrate (not CBR or Constant Bit Rate), Quality highest
- Max bitrate-600kbps
- Audio-Codec-AAC
- Audio-Format-44.1khz
- Audio-bitrate-64kbps
- FMS URL-"rtmp://my-ip:1935/live"
- Stream Key-"my-stream-key"
- Resolution-640x480
- FPS (frames per second)-30
- CFR (Constant Frame Rate) - Yes
- Keyframe interval-2 seconds (one keyframe every 2 seconds)
- x264 Encoding Profile-baseline (may work with main—depends on player used)
- x264 CPU Present-veryfast
Once your encoder is set up, you can test it all. Start the encoder up with your webcam or some kind of test-fodder running on it. You can view your broadcast at this point with VLC player using URL's such as:
http://my-ip/live/my-stream-key/index.m3u8
http://my-ip/mobile/my-stream-key/index.m3u8
These are for your main and your mobile video streams, respectively. Substitute your IP and stream key accordingly.
After you've successfully broadcasted your first stream check (via ssh or ftp) that your live broadcast was recorded in the /video_recordings folder on your server. You can also try playing this recorded file in VLC with a URL like:
rtmp://my-ip/vod/filename.flv
Nginx stats are also available (with Nginx stub_status). To view visitor/viewer stats, access:
http://my-ip/stats