Live Streaming over RTP using VLC - 2020
To broadcast a stream over the network, we need to click the Stream option:
In the Open Media dialog, select the media to stream. We can select any media. Hit the Stream button after selection. In this example, we will use a file for the media:
The Stream Output window will appear. We just want to click Next to continue:
On the Destination Setup window, we want to choose a destination for our stream. We want select RTP / MPEG Transport Stream to listen for connections so that other computers can connect to our computer and watch the stream:
After selecting our destination, hit the Add button. To watch the media being streamed on our local computer, we may also want to activate the Display locally check box:
We'll set the Address as a multicast 239.0.0.1 amd the port as 5004:
We can customize the transcoding settings. For example, by transcoding to a lower quality, VLC can save network bandwidth.
Click Next to continue to the Option Setup dialog. We probably don't need to change any of the advanced options here. To start streaming, click the Stream button:
To tune in to a stream from 192.169.1.1, we need to select the Media menu in VLC on another computer and select Open Network Stream. In this example, we run the VLC media player on another machine in the same network (192.168.1.12).
We're using RTP, so we need to enter an address and port "rtp://@239.0.0.1:5004":
After clicking Play, the stream should start playing. If we encounter an error like:
VLC is unable to open the mrlWe should make sure VLC isn't being blocked by a firewall on the streaming system. If VLC is blocked, we need to do adjust the firewall settings. For Windows 8, Control Panel -> System and Security -> Windows Firewall -> Allowed apps:
Here are the two pictures: top - streaming, bottom - receiving the stream over RTP locally.
So, we can share our media content with our friends live without uploading to internet, just by giving ip-address and port to our friends.
Here is the file used in this example:
source.mp4.
Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization