This article explains how to configure the VideoLAN VLC media player to stream live or on-demand RTSP/RTP streams over TCP, also called RTSP/RTP interleaved, from Wowza Streaming Engine™ media server software. While HTTP streaming offers more features, RTSP/RTP streaming may work better when streaming through a firewall or router that doesn't have UDP streaming available.
Change the stream transport protocol
To switch VLC from HTTP streaming to RTP/RTSP streaming:
- On the VLC media player Tools menu, click Preferences.
- In the Simple Preferences dialog box, click Input / Codecs in the contents panel.
- In Input & Codecs Settings, in the Network area, change the Live555 stream transport option from HTTP (default) to RTP over RTSP (TCP).
- Click Save.
Play the stream
By default, VLC media player is configured with a very small caching buffer. This can lead to choppy playback initially but it will eventually smooth out as VLC automatically increases the size of this buffer. The steps below explain how to change the default cache size before connecting to the stream.
- On the VLC media player Media menu, click Open Network Stream.
- At the bottom of the Open Media dialog box, select the Show more options check box.
- Set the Caching value to a higher value such as 1200 ms. This value is retained between VLC media player playback sessions and restarts.
- Enter the URL of the stream that you want to play in the Please enter a network URL field and then click Play.
The following examples show possible stream URLs:
VOD
rtsp://[wowza-ip-address]:1935/myApplication/mp4:sample.mp4Live
rtsp://[wowza-ip-address]:1935/myApplication/myStream.stream
Where [wowza-ip-address] is the IP address or domain name of the Wowza Streaming Engine server.