There are a number of RTMP publishers available which give you some out of the box options for streaming to a Red5 Pro server. Two free options are Flash Media Live Encoder (FMLE) and Open Broadcaster Software (OBS). Follows are the optimal settings for using these broadcasters.
You can download the Flash Media Live Encoder here. If you are running FMLE from a Mac you will have different options than if you run it from a PC. Specifically, Mac includes
AAC as an Audio format, where Windows does not. Please note that FMLE does not detect the Mac Facetime camera, so you will need to use a USB camera to stream video with FMLE.
Our recommended FMLE settings are as follows:
Frame Rate: 15.00 fps
Input Size: 640x480
Bit Rate: 500 Kbps, Output Size: 640x480
Format: AAC (NOTE: at this time, Mp3 is supported for WebRTC subscribers, but not by RTSP or HLS)
Sample Rate: 44,100 Hz
Bit Rate: 56 Kbps
Place a checkmark in the box next to Stream to Flash Media Server
FMS URL: rtmp://your-server-ip:5080/live
Click on Start to begin streaming.
There are a few different versions of OBS Studio. For simplicity, the following covers the Mac version.
There are also many options for OBS. The following settings are for live streaming via a desktop camera. You can also use OBS to share your screen, or stream from a media source (such as a local Mp3 file), among other things.
On the initial screen, select your preferred camera Source from Video Capture Device. Your default camera and microphone should be automatically selected, so you may want to change that if you wish to use different input devices. Click on Settings.
Stream Type: Custom Streaming Server
Stream key: your-stream-name
Output Mode: Advanced
Encoder: x264, place check in Enforce streaming service encoder settings box
Rescale Output: 640x480
Rate Control: VBR
CRF: 23 (default)
Keyframe Interval (seconds, 0=auto): 2
CPU Usage Preset: verfast
Place a check in the box next to Variable Framerate (VFR)
Defaults are OK (Sample Rate 48Khz; Channels Stereo)
Base (Canvas) Resolution: 640x480
Output (Scaled) Resolution: 640x480
Downscale Filter: Bicubic
Integer FPS Value: 30
Click OK to exit out of Settings. Then click on Start Streaming to broadcast.