Skip to main content

Stream with RTSP

This guide shows you how to stream video with RTSP using ffplay.

Prerequisites

You need:

  • An Axis camera: <ip> to replace in commands
  • Camera user credentials: <user> and <pass> to replace in commands
  • ffplay

For details of authentication, see Authentication. You can find definitions of acronyms used in this guide in Terminology.

How to get a video stream tunneling RTP/RTSP over HTTP

ffplay -rtsp_transport http "rtsp://<user>:<pass>@<ip>:80/axis-media/media.amp?camera=1"

How to get a video stream with RTP/RTSP over TCP

ffplay -rtsp_transport tcp "rtsp://<user>:<pass>@<ip>/axis-media/media.amp?camera=1"

How to get a video stream with RTP over UDP as unicast

ffplay -rtsp_transport udp "rtsp://<user>:<pass>@<ip>/axis-media/media.amp?camera=1"

How to get a video stream with RTP over UDP as multicast

ffplay -rtsp_transport udp_multicast "rtsp://<user>:<pass>@<ip>/axis-media/media.amp?camera=1"
info

Running multicast on your computer often requires accurate configuration of the network, including firewalls.