Mike woods
Mike woods

Reputation: 79

How to broadcast a live stream via FFMPEG?

I'm very new to ffmpeg. Consider http://example.com/live is a remote stream source. I want to get the stream from that source and then broadcast it as MPEG-TS, HLS and RTMP to my users. I know ffmpeg can send data to a rtmp/udp/tcp server. But the whole process is ambiguous to me.

Long story short, how can I get the stream from remote source and then broadcast it as MPEG-TS, HLS and RTMP?

Thanks.

Upvotes: 2

Views: 5206

Answers (1)

Winlin
Winlin

Reputation: 1434

You could use a media server to covert protocols and serve players, please read this post, to which push by ffmpeg:

ffmpeg -i http://xxx -c copy -f flv rtmp://server/live/xxx

Note that RTMP does not work for H5 player, HTTP-FLV or WebRTC is a optional for low latency live streaming, or HLS/DASH for normal latency, please read this post.

Upvotes: 1

Related Questions