SmartRTSP
Languages · English

How to Open an RTSP Stream in VLC

Play a camera stream in VLC

Connect your computer to the camera’s local network. In VLC 3, open Media → Open Network Stream on Windows or Linux, or File → Open Network on macOS. Paste the full RTSP URL and start playback.

rtsp://CAMERA_IP:PORT/PATH

Use the camera or recorder’s LAN address, configured port and stream path. Enter the local camera or recorder account if VLC prompts you. Keep URLs containing passwords out of screenshots and logs you share.

Camera RTSP URL table

Play RTSP over TCP in VLC

Play RTSP over TCP in VLC

If VLC connects but the picture freezes or stays black, reopen the same RTSP address over TCP. Keep the camera stream and network caching setting the same for both attempts.

Windows / Linux

In VLC 3, open the network stream dialog and expand Show more options. In Edit Options, leave the existing text in place, add a space and append the option below. Then start playback.

:rtsp-tcp

macOS

Quit VLC and run the following command in Terminal. Replace CAMERA_IP:PORT/PATH with the address, port and path for your camera or recorder.

/Applications/VLC.app/Contents/MacOS/VLC --rtsp-tcp "rtsp://CAMERA_IP:PORT/PATH"

If the TCP attempt plays smoothly, keep that option for the stream. If the picture still stalls with both settings, try the camera’s documented H.264 substream.

VideoLAN · VLC 3.0.24

Adjust VLC network caching for live RTSP

If video plays smoothly but trails the live scene, compare two cache values in VLC. A smaller buffer may reduce delay. A larger one can smooth over irregular network delivery.

Windows / Linux

In Open Network Stream, expand Show more options. Note the current Caching value in milliseconds, change it for this stream, and reopen the same RTSP URL.

macOS

Quit VLC first. In Terminal, run the example below with your camera’s URL. The 500 ms setting is an example for comparison.

/Applications/VLC.app/Contents/MacOS/VLC --network-caching=500 "rtsp://CAMERA_IP:PORT/PATH"

Keep the same camera stream, transport and network. Measure the live delay after playback settles. If a smaller cache causes stuttering or freezes, try the previous value again.

Play in VLC on iPhone, iPad or Android

Join Wi-Fi on the same local network as the camera. Paste the same RTSP URL into the network stream field and start playback.

  • On iPhone or iPad, open Browse and select Open Network Stream. Some earlier versions use the Network tab.
  • On Android, open More and select Streams. Some earlier versions show New stream under More.

VideoLAN · iPhone / iPad · VideoLAN · Android

If the camera feed fails

  • Connection refused or timed out. Check that RTSP is enabled and verify the address and port. If the camera is on an NVR’s internal network, use the NVR’s documented channel URL.
  • Authentication failed. Verify the local account and its streaming permissions. If you must place credentials in a URL, percent-encode reserved characters.
  • Black screen, missing audio or stalls. Try the camera’s documented H.264 substream. Check the audio track separately. Increasing VLC’s network cache can smooth stalls while adding delay.

Use VLC’s Messages log to identify which error occurs. Try a known test stream on the same computer to check whether VLC can play RTSP before changing camera settings.

Test RTSP playback

Find your RTSP connection error

Create a local RTSP test stream in VLC

Create a local RTSP test stream in VLC

In a terminal, open the folder containing a roughly one-minute H.264 clip named sample.mp4. Run the command below. If vlc is not on your PATH, use the path to your VLC executable.

Download sample.mp4

vlc -I dummy "sample.mp4" --sout="#rtp{sdp=rtsp://127.0.0.1:8090/test}"

While VLC is playing the clip, open this address in an RTSP viewer on the same computer. The address is only reachable from that computer. Stop the command when you finish.

rtsp://127.0.0.1:8090/test

VideoLAN’s guide to sending an RTSP stream

VideoLAN playback documentation

Download SmartRTSP

Open your camera or test stream on your device.