When testing networks and routing, it is sometimes useful to be able to send a number of multicast streams across the network. VLC media player can do this, but getting it working is not as trivial as I expected. Here’s how to do it:
- In the Media menu, choose “Stream”
- In the Open Media dialog file tab, click “add” and choose the file you want to stream and click “Open”
- At the bottom, click the “Stream” button
- This opens the “Stream Output” dialog showing the source file you have chosen. Click Next to set destination.
- In “Destinations”, choose “RTP /MPEG Transport Stream” and click the “Add” button
- In the “Address” box, enter the required multicast address (eg 184.108.40.206) and set the port (or leave default at 5004)
- In transcoding options, choose the appropriate settings for your video and PC’s codecs. I chose “Video H.264 + MP3 (MP4)”. I had to set the options by clicking the options (screwdriver and spanner) button immediately to the right of the dropdown. In encapsulation, I chose MPEG-TS. In video codec, I set the bitrate to 4000kb/s
- Once the options are set, click “Save”. Then click Next for “Option Setup” and select “Stream all elementary streams” then click stream.
To view the stream, open another instance of VLC media player (try it on the same PC before trying it over the network)
- Choose Media/Open Network Stream
- In address, enter rtp://@220.127.116.11:5004 – choose the correct address and port you entered when setting up the stream. Don’t forget to enter the “@” symbol after “rtp://” and before the multicast ip address!
- Click “Play”
If you want to stream multiple videos, remember to choose an different multicast address and/or port