Hi,

I have my linux VPS with cpanel / cent OS. I want to use my server for Live TV streaming.

For this i have install Flash Media Live encoder on my PC, then i need rtmp configurations on the linux end, i install nginx to configure rtmp but failed, can anyone tell me how to configure rtmp properly???

Or anyone have a full detailed method to play live TV on my website???

Its urgent so please...

Dani AI

Generated

As tried FMLE + a custom nginx build and suggested ffmpeg/VLC, a compact, reliable workflow is: ingest RTMP from the encoder, optionally transcode, then package to HLS for browser playback. The common, battle‑tested server component is the nginx + nginx-rtmp-module (ingest RTMP, record, create HLS/DASH or relay to other servers). FMLE is old/unsupported, so use a modern encoder (OBS, FFmpeg) or FFmpeg as a push/source. (github.com)

Minimal working pieces (examples—adjust paths, bitrates, device names to the environment):

nginx-rtmp (minimal)

rtmp {
  server {
    listen 1935;
    chunk_size 4096;
    application live {
      live on;
      record off;
      hls on;
      hls_path /tmp/hls;
      hls_fragment 3s;
    }
  }
}

push from a Linux webcam with FFmpeg

ffmpeg -f v4l2 -framerate 30 -video_size 1280x720 -i /dev/video0 \
  -f alsa -i hw:0 \
  -c:v libx264 -preset veryfast -tune zerolatency -b:v 1500k \
  -c:a aac -b:a 128k -f flv rtmp://SERVER_IP/live/streamkey

A Docker image exists to avoid compiling nginx locally; otherwise compile nginx with the arut module. After install, open port 1935 and handle SELinux if present. (github.com)

Firewall / SELinux (CentOS examples)

firewall-cmd --permanent --add-port=1935/tcp
firewall-cmd --reload

# if SELinux blocks nginx binding to 1935:
semanage port -a -t http_port_t -p tcp 1935

Verify with ss/netstat, nginx -t, and test playback with ffplay or VLC. (hostingmate.net)

cPanel note and troubleshooting: cPanel servers generally assume Apache and are not ideal for replacing with a custom nginx binary—run the RTMP service in a separate container, different IP, or a standalone VM (Engintron/standalone options exist but are experimental). Modern browsers do not play RTMP directly; serve HLS (or use hls.js/MSE for non‑Safari browsers). If the nginx-rtmp build fails, inspect nginx error.log and check for port conflicts, firewall rules, and SELinux denials. (cpanel.net)

Summary checklist: run nginx with nginx-rtmp (or Docker), open 1935, use FFmpeg/OBS to publish to rtmp://SERVER/live/KEY, enable HLS for browser delivery, and keep streaming/encoder software modern. (github.com)

Recommended Answers

All 4 Replies

Have you looked into either VLC or ffmpeg to do this. I have used both in the past to stream from my usb video camera, as well as from various files. Using ffmpeg is nice because it can transcode on the fly from any to about any format, so you can store just one format of a video on your server, and deliver to the user what they need, such as flv, mp4, mkv, etc.

I have installed ffmpeg on server, but how it can receive video from my cam? I think ffmpeg is only for video streaming not for live webcam streaming???

For that i use rtmp configuration with nginx on my linux server but i am failed in that method. If you know the proper method then please send me all... I will be gratefull to you.

I've used ffmpeg for live streaming to vlc to display the output. You can also use VLC directly.

can you guide me about full method... about linux commands which should i use to configure. Please let me know about detailed description...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.