GoSecurityHub
Technical Article

What Is the RTSP Protocol? How It Works, Technical Features, and Applications

Sistem Yöneticisi25 min read

What is the RTSP protocol, how does it work, and where is it used? A comprehensive technical guide to RTSP architecture, RFC standards, connection commands, the relationship between RTP and RTCP, TCP and UDP transport methods, IP camera systems, video streaming, performance, and cybersecurity features.

RTSP protokolü ile IP güvenlik kamerasından NVR, bilgisayar ve mobil cihazlara gerçek zamanlı video aktarımı.

RTSP (Real-Time Streaming Protocol) is an application-layer communications protocol that enables live or recorded audio and video streams to be managed over IP networks. It is widely used in IP security cameras, NVR recording devices, video management software (VMS), media servers, video encoder devices, and AI-powered video analytics systems.

The RTSP protocol handles tasks such as starting, pausing, and ending video streams and managing media sessions. RTP (Real-time Transport Protocol) is generally used to carry video and audio data.

In the electronic security industry, RTSP plays an important role in integrating IP cameras from different manufacturers with centralized viewing, recording, and analytics platforms.

What Is the RTSP Protocol?

RTSP is a protocol standardized by the Internet Engineering Task Force (IETF) that enables real-time media sessions between a client and a server to be controlled.

RTSP is not a video codec that compresses images, nor is it a video recording technology in itself. It allows a client to control a video stream produced by a camera, media server, or recording device.

Technical feature

Description

Protocol name

Real-Time Streaming Protocol

Abbreviation

RTSP

Standards organization

IETF

RTSP 1.0 standard

RFC 2326

RTSP 2.0 standard

RFC 7826

OSI layer

Application layer

Default port

554

Alternative port

8554

Secure connection

RTSPS

Default RTSPS port

322

Media transport protocol

Usually RTP

Media control and reporting

RTCP

Session description

SDP

Communication architecture

Client–server

Media delivery

Unicast and multicast

History and Standards of the RTSP Protocol

The first standard version of the RTSP protocol was published in 1998. It was developed to enable the controlled delivery of audio and video content over the internet.

Year

Standard

Description

1998

RFC 2326

RTSP 1

2003

RFC 3550

RTP and RTCP

2004

RFC 3711

SRTP secure media transport

2016

RFC 7826

RTSP 2

2021

RFC 8866

Current SDP protocol definition

RTSP 2.0 replaced the RTSP 1.0 standard. However, many IP cameras and recording devices in the electronic security industry still use RTSP 1.0.

Except for version negotiation, RTSP 2.0 is not directly backward-compatible with RTSP 1.0. Therefore, the supported protocol version should be checked when integrating devices.

How Does the RTSP Protocol Work?

In RTSP communication, a camera or media server acts as the video source, while an NVR, VMS, VLC Player, or video analytics application can operate as the client.

The general sequence of operations is as follows:

  1. The client connects to the IP camera's RTSP address.

  2. The required user authentication is performed.

  3. The properties of the media stream are queried.

  4. The audio and video streams are identified.

  5. The media transport method is selected.

  6. An RTSP session is established.

  7. The video stream starts.

  8. Media data is received via RTP packets.

  9. The client decodes, displays, records, or analyzes the video.

  10. The session is terminated when communication is complete.

In this architecture, media control and the transport of media data are separate functions.

Core Components of the RTSP Protocol

Component

Function

RTSP Server

Provides and manages media sessions

RTSP Client

Requests a media session

RTSP Session

Manages state information for the communication session

RTSP URL

Specifies the address of the media source

SDP

Defines the technical properties of media streams

RTP

Carries audio and video data

RTCP

Provides transmission statistics and synchronization information

Encoder

Compresses video and audio

Decoder

Decodes compressed media data

Media Buffer

Creates a temporary data buffer for playback

What Are the Commands of the RTSP Protocol?

RTSP uses various request methods to manage media sessions between a client and a server.

RTSP command

Function

OPTIONS

Querying supported commands

DESCRIBE

Retrieving media properties

SETUP

Establishing session and transport parameters

PLAY

Starting the media stream

PAUSE

Temporarily pausing media transmission

TEARDOWN

Terminating the media session

GET_PARAMETER

Querying parameters and, where supported, controlling the session

SET_PARAMETER

Changing supported parameters

REDIRECT

Redirecting the client to a different resource

PLAY_NOTIFY

RTSP 2.0 playback notifications

Command support may vary depending on the protocol version and device implementation.

RTSP OPTIONS command

It enables the client to find out which RTSP operations the server supports.

RTSP DESCRIBE command

It enables the technical properties of video and audio streams to be queried. The server generally sends the media description in SDP format.

RTSP SETUP command

It is used to establish the media session and specify the transport parameters to be used.

RTSP PLAY command

It starts media transmission over the established session.

RTSP PAUSE command

It temporarily pauses transmission in supported media sessions. Its behavior in live broadcasts may vary according to device capabilities.

RTSP TEARDOWN command

It terminates the media session and releases the resources associated with it.

RTSP Session States

The RTSP protocol uses a session architecture that maintains state information.

Session state

Description

Init

No media session has been established yet

Ready

The session has been established and is ready for playback

Play

Media is being transmitted

An RTSP client can establish a session with the SETUP command, start transmission with PLAY, and terminate it with TEARDOWN.

During connection interruptions, session management and automatic reconnection mechanisms are important, especially in continuous video recording systems.

What Is the Structure of an RTSP Message?

RTSP requests and responses are generally text-based. The message body may also contain binary data when necessary.

An RTSP 1.0 DESCRIBE request can be illustrated as follows:

DESCRIBE rtsp://192.168.1.100:554/stream RTSP/1.0

CSeq: 2

Accept: application/sdp

In this request, the client wants to learn the properties of the relevant media source.

Important RTSP message headers

Message header

Description

CSeq

Matching requests with responses

Session

RTSP session identifier

Transport

Media transport parameters

Authorization

Client authentication credentials

WWW-Authenticate

Server authentication request

Content-Type

Format of the message content

Content-Length

Length of the message body

User-Agent

Information about the client application

Range

Media time range

RTP-Info

Information about RTP transmission

Public

Supported RTSP methods

What Is SDP? How Is It Used with RTSP?

SDP (Session Description Protocol) is a protocol used to define technical information about media sessions.

In IP camera systems, a client can learn the properties of media streams from the SDP response to a DESCRIBE request.

Information that may be included in SDP:

  • Number of video and audio streams

  • Media codecs used

  • RTP payload type values

  • Media timing properties

  • Network and transport information

  • Media control addresses

  • Codec-specific parameters

Example SDP video description

m=video 0 RTP/AVP 96

a=rtpmap:96 H264/90000

a=control:trackID=1

This example shows an H.264 video stream mapped to dynamic RTP payload type 96.

The value 90000 is the RTP timestamp clock frequency. It does not indicate the camera's FPS value.

The Relationship Between RTSP, RTP, and RTCP

RTSP, RTP, and RTCP are complementary protocols, but each has a different function.

Protocol

Full name

Primary function

RTSP

Real-Time Streaming Protocol

Media session control

RTP

Real-time Transport Protocol

Transport of media data

RTCP

RTP Control Protocol

Transmission reports and synchronization

SDP

Session Description Protocol

Defining media properties

SRTP

Secure Real-time Transport Protocol

Cryptographic protection of media data

RTSP controls when and how a video stream is presented, while RTP carries compressed video and audio data.

RTCP can help assess communication information such as packet loss, jitter, and time synchronization.

Using RTP alone does not guarantee that packets will be delivered on time or without loss.

Which OSI Layer Does RTSP Operate At?

RTSP is positioned at the application layer of the OSI reference model.

OSI layer

Example technology

7 – Application

RTSP, RTP, RTCP, HTTP

6 – Presentation

Video coding and data formats

5 – Session

Session management functions

4 – Transport

TCP, UDP

3 – Network

IPv4, IPv6

2 – Data Link

Ethernet, VLAN

1 – Physical

Copper cable, fiber optics

The table is a conceptual mapping. In the TCP/IP protocol architecture, each application function may not be implemented as a separate OSI layer.

What Are RTSP Ports?

The ports used for RTSP communication in IP cameras and video management systems may vary depending on device configuration.

Port

Purpose

554

Default RTSP port

8554

Alternative RTSP port

322

Default RTSPS port

10554

Custom port used by some devices

Dynamic UDP ports

RTP and RTCP media transport

Having RTSP port 554 accessible does not necessarily mean that video can be received. With UDP-based media transport, access to the negotiated media ports may also be required.

Differences Between RTSP TCP and UDP

RTSP 2.0 control messages use TCP or TCP over TLS. RTP media can be transported over UDP or TCP, depending on the configuration.

Technical characteristic

RTP over TCP

RTP over UDP

Connection structure

Connection-oriented

Datagram-based

Packet ordering

Preserved by TCP

Managed by the application

Retransmission

Supported by TCP

None by default

Effect of packet loss

Latency and freezing

Image distortion may occur

Latency

Depends on network conditions

Lower in some conditions

Firewall management

Generally easier

Additional port management may be required

Multicast support

Not available with the standard interleaved method

May be supported

CCTV integration

Common

Common

What Is RTSP Interleaved TCP?

Interleaved TCP is a method that allows RTP and RTCP media packets to be carried within the RTSP control connection.

This method can offer advantages in some firewall, NAT, and remote-connection scenarios because it eliminates the need for separate UDP media ports.

However, when packet loss occurs, live-video latency may increase because of TCP's retransmission mechanism.

Differences Between RTSP Unicast and Multicast

Unicast video transmission

It is based on creating a separate media stream for each client.

For example, if four independent clients connect to an IP camera providing a 4 Mbps video stream, the camera may generate approximately 16 Mbps of media traffic.

Multicast video transmission

It delivers the same video stream to multiple clients over a multicast network.

With a suitable multicast infrastructure, the source camera can send the same 4 Mbps stream once, and the network infrastructure can distribute it to the relevant receivers.

Technical characteristic

Unicast

Multicast

Communication

One-to-one

One-to-many

Source bandwidth

May increase with the number of clients

More efficient for the same stream

Network configuration

Easier

More extensive

IGMP management

Not required

Generally required

Use over the internet

Easier

Requires dedicated infrastructure

Large monitoring centers

Capacity planning is required

May offer an advantage

When using multicast, IGMP Snooping, IGMP Querier, multicast routing, and network segmentation should be assessed together.

What Is an RTSP URL?

An RTSP URL is the address that identifies the media source to which the client will connect.

The general RTSP address structure is as follows:

rtsp://192.168.1.100:554/stream

URL field

Description

rtsp://

Protocol

192.168.1.100

Camera IP address

554

RTSP port

/stream

Video stream path

Some clients also allow authentication credentials to be specified in the URL. However, storing passwords in plain text in a URL can pose a security risk, so separate authentication fields are preferable.

RTSP Camera Addresses by Brand

IP camera brand

Common RTSP stream path example

Hikvision

/Streaming/Channels/101

Dahua

/cam/realmonitor?channel=1&subtype=0

Hanwha Vision

/profile2/media.smp

Axis

/axis-media/media.amp

Uniview

/media/video1

Tiandy

/h264/ch01/main/av_stream

Bosch

/?inst=1

Vivotek

/live.sdp

Milesight

/main

Reolink

/Preview_01_main

TP-Link Tapo

/stream1

TP-Link VIGI

/stream1

HiLook

/Streaming/Channels/101

Amcrest

/cam/realmonitor?channel=1&subtype=0

Foscam

/videoMain

The addresses shown are examples of common usage. They may vary depending on the camera model, firmware version, channel number, media profile, and RTSP port.

On ONVIF-compatible devices, the media addresses reported by the camera can be retrieved using the GetProfiles and GetStreamUri operations.

What Are Main Stream, Sub Stream, and Third Stream?

Modern IP security cameras can provide multiple video streams simultaneously, with different resolutions, frame rates, and bitrates.

Technical characteristic

Main Stream

Sub Stream

Third Stream

Typical use

High-quality recording

Live viewing

Special applications

Resolution

High

Usually low

Configurable

Bitrate

High

Usually low

Configurable

HDD usage

Higher

Lower

Depends on configuration

Multi-screen viewing

High processing load

Advantageous

Depends on the application

Video analytics

May be suitable

Depends on analysis requirements

May be suitable

Mobile viewing

High data consumption

Advantageous

Depends on the application

Third Stream support is not available on all camera models.

Which Video Codecs Does RTSP Support?

RTSP is a media control mechanism independent of the video compression algorithm. The video codecs that can be used depend on the media transport method and the features supported by the devices.

Video codec

Application

H.264 / AVC

IP cameras and video management systems

H.265 / HEVC

High-resolution CCTV systems

H.264+

Manufacturer-specific video optimization

H.265+

Manufacturer-specific video optimization

MJPEG

Image-based applications

MPEG-4

Legacy video systems

AV1

Supported by newer-generation systems

Smart compression technologies such as H.264+ and H.265+ should undergo compatibility testing before being used with recorders and analytics platforms from different manufacturers.

Does the RTSP Protocol Support Audio Transmission?

RTSP sessions can manage audio streams as well as video streams.

Audio codec

Typical use

G.711 A-law

Security cameras and audio communication

G.711 μ-law

Security cameras and audio communication

G.726

Low-bitrate audio applications

AAC

Media and video streaming systems

Opus

Supported real-time audio systems

The ability to receive camera video over RTSP does not mean that two-way audio communication is also supported.

For two-way audio, the client, camera, relevant media profile, and audio return mechanism must all be mutually compatible.

Applications of the RTSP Protocol

Sector or system

Purpose of RTSP use

CCTV systems

Live camera video

NVR systems

IP camera video recording

VMS platforms

Centralized video management

Video encoder

Transmitting analog images over an IP network

Artificial intelligence systems

Image analysis

License plate recognition

Processing vehicle images

Facial recognition

Analysis of suitable images

People counting

Video-based visitor analytics

Shopping mall systems

Centralized security and occupancy monitoring

Retail

Customer behavior analysis

Industrial facilities

Production and process monitoring

Thermal camera systems

Thermal video imaging

Smart cities

Traffic and public-space monitoring

Distance learning

Live streaming on suitable media infrastructure

Healthcare facilities

Authorized video transmission applications

Robotics

Transmission of visual sensor data

Differences Between RTSP and ONVIF

ONVIF develops standardized interfaces to enable interoperability among IP-based physical security products.

RTSP, by contrast, focuses on controlling media sessions.

Technical characteristic

RTSP

ONVIF

Primary function

Media control

Device integration

Live video

Through media protocols

Through media services

Automatic device discovery

No

May be supported

Camera configuration

Limited

Profile-dependent

Media profile querying

No general device management function

Supported

PTZ control

Generally unavailable

Profile-dependent

Alarm events

Does not provide general event management

May be supported

AI metadata

Application-dependent

Through interfaces such as Profile M

Approach to use

Through the stream address

Through standardized services

An IP camera may support both ONVIF and RTSP. These technologies do not have to be used as substitutes for one another.

The media address obtained through ONVIF can be used to establish an RTSP connection.

Differences Between RTSP, RTPS, RTP, RTSPS, and RSTP

These protocols, despite having similar abbreviations, serve different technical purposes.

Protocol

Full name

Purpose

RTSP

Real-Time Streaming Protocol

Media stream control

RTSPS

RTSP over TLS

Secure media control connection

RTP

Real-time Transport Protocol

Real-time media transport

RTCP

RTP Control Protocol

RTP transmission reports

SRTP

Secure Real-time Transport Protocol

Secure media transport

RTPS

Real-Time Publish-Subscribe

DDS-based real-time data communication

RSTP

Rapid Spanning Tree Protocol

Loop prevention in Ethernet networks

RTPS is not another spelling of the RTSP protocol. RSTP, meanwhile, is a protocol for preventing loops between network switches, not for video streaming.

Comparison of RTSP and Other Video Streaming Technologies

Technology

Common use

Latency characteristics

Browser support

RTSP

IP cameras and CCTV

Generally low

Not commonly supported directly

RTMP

Live streaming servers

Low to medium

Not commonly supported directly

HLS

Internet media streaming

Higher in standard use

Common

Low-Latency HLS

Low-latency web streaming

Reduced

On supported players

MPEG-DASH

Adaptive media streaming

Configuration-dependent

With a compatible player

WebRTC

Real-time communication

Can be very low

Common

SRT

Professional remote media transport

Configurable

Not commonly supported directly

RTSP is generally advantageous for IP camera integration on local networks, while WebRTC may be preferred for low-latency, browser-based viewing applications.

How Does Latency Occur in the RTSP Protocol?

In RTSP-based video systems, overall latency is not caused by the network connection alone.

Source of latency

Description

Camera sensor

Image capture

ISP

Image processing

Encoder

Video compression

Camera buffers

Temporary data storage

Network infrastructure

Packet transmission time

Jitter buffer

Compensating for packet timing differences

Decoder

Video decoding

Monitor

Displaying the image on screen

Example of an end-to-end latency calculation

Process

Example latency

Image capture

30 ms

Image processing

20 ms

Video encoding

50 ms

Network transmission

15 ms

Data buffering

100 ms

Video decoding

35 ms

Screen display

20 ms

Total

270 ms

This calculation is a theoretical example. Actual RTSP latency should be measured based on the camera, network, client, codec, and buffer settings in use.

The RTSP protocol alone does not guarantee a specific end-to-end latency.

How Is RTSP Bandwidth Calculated?

Total media bandwidth depends on the sum of the bitrates of the video and audio streams being carried simultaneously.

Number of cameras

1 Mbps

2 Mbps

4 Mbps

8 Mbps

4

4 Mbps

8 Mbps

16 Mbps

32 Mbps

8

8 Mbps

16 Mbps

32 Mbps

64 Mbps

16

16 Mbps

32 Mbps

64 Mbps

128 Mbps

32

32 Mbps

64 Mbps

128 Mbps

256 Mbps

64

64 Mbps

128 Mbps

256 Mbps

512 Mbps

128

128 Mbps

256 Mbps

512 Mbps

1024 Mbps

256

256 Mbps

512 Mbps

1024 Mbps

2048 Mbps

Bandwidth with Multiple Clients

Assume that each of 64 IP cameras produces a 4 Mbps video stream. Assume that the NVR, VMS, and AI analytics server each receive an independent unicast stream from every camera.

Client

Media traffic

NVR

256 Mbps

VMS

256 Mbps

AI analytics server

256 Mbps

Total

768 Mbps

25% example capacity reserve

192 Mbps

Planned total capacity

960 Mbps

In this case, a Gigabit Ethernet connection may approach its capacity limit in practice. Network topology, switch uplink capacity, protocol overhead, and VBR traffic spikes should be taken into account.

Using a media proxy, multicast, or redistributing streams through a VMS can reduce the connection load on the source device.

HDD Capacity for RTSP Video Recordings

The storage required for a video stream received over RTSP depends on the average recording bitrate and recording duration.

HDD capacity (TB) = Number of cameras × Bitrate (Mbps) × 86,400 × Recording days / 8,000,000

The following are example capacity values for an average bitrate of 4 Mbps per camera and continuous 24/7 recording.

Number of cameras

30 days

90 days

8

10.368 TB

31.104 TB

16

20.736 TB

62.208 TB

32

41.472 TB

124.416 TB

64

82.944 TB

248.832 TB

128

165.888 TB

497.664 TB

The calculations do not include RAID capacity losses, audio data, file-system overhead, or storage reserves.

How to View an IP Camera via RTSP

RTSP-compatible IP cameras can be viewed using various software applications.

Software or system

Purpose

VLC Media Player

Live viewing and connection testing

FFmpeg

Video processing and recording

FFplay

Viewing video streams

FFprobe

Analyzing media properties

GStreamer

Media processing applications

OpenCV

Image processing and artificial intelligence

NVR

Video recording and viewing

VMS

Centralized video management

RTSP Connection with VLC Player

After opening VLC Media Player, select Open Network Stream from the Media menu. On Windows, you can also use the Ctrl+N shortcut.

Example RTSP address:

rtsp://192.168.1.100:554/Streaming/Channels/101

You can check the live view by connecting with the camera's valid credentials.

Viewing an RTSP Camera with FFplay

ffplay -rtsp_transport tcp "rtsp://192.168.1.100:554/stream"

Finding RTSP Video Properties with FFprobe

ffprobe -v error -rtsp_transport tcp -show_streams "rtsp://192.168.1.100:554/stream"

These commands can be used to view compatible media sources or inspect their technical properties. For sources requiring authentication, authorized account credentials should be provided securely.

Adding a Camera to an NVR Device via RTSP

NVR devices that support external RTSP clients can be configured manually using the video stream addresses of IP cameras.

NVR setting

Example value

Protocol

RTSP / Custom

Camera IP

192.168.1.100

RTSP Port

554

Main Stream

/Streaming/Channels/101

Sub Stream

/Streaming/Channels/102

Transport

TCP or Auto

Video Codec

H.264 or H.265

Authentication

Authorized camera user account

Not every NVR device supports adding external RTSP sources.

In addition, integrating PTZ, alarms, motion detection, two-way audio, and advanced AI events from cameras added via RTSP may require additional integration.

RTSP and AI Video Analytics Systems

RTSP can be used to transmit images from network cameras to AI-powered analytics platforms.

Video analytics application

Operation possible via RTSP

Person detection

Video frame analysis

Vehicle detection

Vehicle classification

Line crossing

Analysis of virtual line crossings

Intrusion detection

Monitoring specific areas

Facial recognition

Processing suitable images

License plate recognition

Reading vehicle license plates

People counting

Analyzing entry and exit movements

Queue analysis

Detecting people waiting

Shelf analytics

Analyzing movement within a store

Heat map

Measuring area-usage density

RE-ID

Re-identification across time and space

Smoke and flame detection

Visual event analysis

Object tracking

Tracking moving objects

Abandoned object analysis

Tracking specified objects

RTSP is not an AI technology that performs these analyses on its own. It can provide the video source required by analytics software.

RTSP in People-Counting Systems

In video-based people-counting systems, RTSP footage can be processed by centralized analytics servers.

This architecture may be especially useful for putting existing IP camera infrastructure to use in visitor analytics applications.

However, people-counting performance depends on the following factors:

  • Camera mounting height and angle

  • Image resolution

  • Pixel density

  • Frame rate

  • Image compression level

  • Lighting conditions

  • People occluding one another

  • Crowd density

  • Network connection continuity

  • AI algorithm performance

  • Sensor calibration and field validation

The availability of RTSP footage does not guarantee accurate visitor counting.

In particular, in 3D people-counting sensors, the RGB video stream, depth data, counting results, and RE-ID information may be provided through different interfaces.

RTSP Data Integrity and Connection Continuity

In video analytics systems, a network connection outage can result not only in loss of images, but also in incomplete analysis results.

For example, suppose an RTSP connection is interrupted for a total of 18 minutes in a people-counting system that operates 12 hours a day.

Performance indicator

Value

Planned operating time

720 minutes

Connection outage

18 minutes

Available connection time

702 minutes

Connection availability

%97.5

Outage rate

%2.5

A connection availability of 97.5% does not mean that people-counting accuracy is 97.5%. Since customer traffic during the outage is unknown, the actual counting loss must be assessed separately.

In analytics platforms, periods with missing data should be marked as missing data, not as zero visitors.

What Are the Cybersecurity Risks of RTSP?

A basic RTSP connection does not, by itself, provide encrypted media transmission. Unauthorized access, weak credentials, network traffic monitoring, and outdated device software can pose significant security risks.

Security risk

Recommended protection method

Unauthorized camera access

Strong authentication

Weak password

Unique, strong password

Unencrypted media traffic

SRTP, a secure tunnel, or appropriate TLS transport

RTSP service exposed to the internet

Firewall and VPN

Unauthorized network access

VLAN and ACL

Outdated firmware

Security updates

Password stored in the URL

Secure credential management

Excessive connection requests

Resource management and traffic monitoring

Unauthorized access to recordings

NVR and VMS access control

Fake media source

Trusted device and certificate verification

Secure network architectures with controlled access policies should be preferred over exposing RTSP ports directly to the internet.

What Is RTSPS?

RTSPS is a connection method that protects RTSP control communications over TLS.

The general connection address is as follows:

rtsps://192.168.1.100:322/stream

Security feature

RTSP

RTSPS

Control connection encryption

None by default

TLS

Server certificate

Not required

Depends on TLS configuration

Default port

554

322

Encryption of a separate RTP media stream

Not automatic

Not automatic

Security level

Depends on the network and application

Higher with appropriate TLS configuration

Media data carried interleaved over the same TLS connection via RTSPS can benefit from TLS protection. SRTP or another suitable security mechanism may be required to protect separate UDP media streams.

RTSP Connection Error Codes

Error code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

405

Method Not Allowed

406

Not Acceptable

408

Request Timeout

415

Unsupported Media Type

451

Parameter Not Understood

453

Not Enough Bandwidth

454

Session Not Found

455

Method Not Valid in This State

457

Invalid Range

461

Unsupported Transport

500

Internal Server Error

501

Not Implemented

503

Service Unavailable

505

RTSP Version Not Supported

The initial 401 response may be a normal part of the authentication handshake. If the error persists after credentials have been sent, check the username and password configuration.

Why Is the RTSP Connection Not Working?

Problem

Possible cause

Solution

Connection Timeout

Network access issue

Check IP, VLAN, and firewall

Connection Refused

RTSP service is disabled

Check the port and service

401 Unauthorized

Authentication issue

Verify user credentials

404 Not Found

Incorrect RTSP URL

Check the video stream path

461 Unsupported Transport

Transport incompatibility

Test TCP and UDP options

No image

Codec incompatibility

Test with standard H.264

Image freezes

Packet loss

Measure network performance

Image is delayed

Buffering or network congestion

Analyze buffer and traffic

Recording available, no live image

Decoder or Sub Stream issue

Test the streams separately

No audio

Audio codec incompatibility

Check camera and client support

Connection keeps dropping

Network, power, or resource issue

Check PoE, cable, and session

Advantages and Disadvantages of the RTSP Protocol

Advantages

Disadvantages

Support for widely used IP cameras

Limited direct browser support

Potential for integration with different manufacturers

URL differences by brand and model

Control of live and recorded media

No encryption in the basic connection

Potential for low latency

Affected by network conditions

Multiple media streams

Session management requirements

TCP and UDP media options

Firewall and NAT configuration requirements

NVR and VMS integration

Limited transmission of advanced camera features

Use with AI analytics systems

Adaptive bitrate is not a standard built-in feature

RTSP Technical System Design Checklist

The following criteria should be evaluated in professional IP camera and video analytics projects.

No.

Technical check criterion

1

Camera RTSP support

2

RTSP protocol version

3

NVR or VMS client support

4

Camera IP address and network access

5

RTSP port

6

Main Stream and Sub Stream addresses

7

Authentication compatibility

8

Video codec

9

Audio codec

10

Resolution and FPS

11

Bitrate and GOP configuration

12

TCP or UDP media transport method

13

Unicast and multicast requirements

14

Maximum number of simultaneous connections

15

Network bandwidth

16

Switch and uplink capacity

17

VLAN segmentation

18

Firewall policies

19

Packet loss and jitter

20

End-to-end image latency

21

NVR recording capacity

22

Video decoding capacity

23

HDD capacity

24

Time synchronization

25

Automatic reconnection

26

Firmware and security updates

27

RTSPS and secure media support

28

PPM and DORI image requirements

29

Data integrity checks

30

Commissioning and site validation

Frequently Asked Questions About the RTSP Protocol

What does RTSP stand for?

Real-Time Streaming Protocol means, in Turkish, Gerçek Zamanlı Akış Protokolü (Real-Time Streaming Protocol).

Is RTSP a video codec?

No. RTSP is a communication protocol that controls media sessions. H.264 and H.265 are video compression technologies.

Which port does RTSP use?

The default RTSP port is 554. Alternatively, 8554 or other ports specified by the manufacturer may be used.

Does RTSP use TCP or UDP?

TCP is commonly used for RTSP control communications. RTP media data can be carried over UDP or TCP.

Is internet access required for RTSP?

No. An RTSP connection can operate on local IP networks without internet access.

Is RTSP secure?

A basic RTSP connection is not encrypted by default. Secure network access, RTSPS, and appropriate media protection mechanisms should be considered.

Are RTSP and ONVIF the same thing?

No. RTSP controls media streams, while ONVIF provides standardized integration functions between devices and software.

Are RTSP and RTPS the same protocol?

No. RTPS is used for DDS-based Publish-Subscribe data communications.

Does RTSP reduce image quality?

RTSP does not compress video directly. Image quality depends on camera settings, video codec, bitrate, and network conditions.

Can a 4K camera be viewed via RTSP?

Yes, if the camera, network, and client support the required video resolution and codec.

Can H.265 video be received via RTSP?

Yes. The camera and client application must support H.265 media streams.

Can RTSP video be viewed in a web browser?

Common web browsers do not directly support RTSP streams. Conversion to WebRTC, HLS, or another compatible media technology may be required.

Can audio be transmitted via RTSP?

Yes. The camera and client must support compatible audio streams.

Can video be recorded over RTSP?

Yes, using NVR, VMS, FFmpeg, and other compatible recording software.

Can AI analytics be performed using RTSP?

Images received via RTSP can be analyzed by AI software. RTSP itself is not an analytics algorithm.

Can the same camera be used in multiple software applications via RTSP?

Yes, if the camera's simultaneous connection capacity and network bandwidth are sufficient.

Can people counting be performed via RTSP?

Video-based people-counting algorithms can use RTSP images. Counting accuracy must be calibrated and verified separately.

Conclusion

The RTSP protocol is one of the core media control technologies used in electronic security systems and real-time video applications.

RTSP offers flexibility when integrating IP cameras with NVR, VMS, and video analytics platforms, and can enable products from different manufacturers to work together.

When designing professional RTSP systems, protocol version, media codec, bandwidth, connection capacity, image latency, network security, and recording continuity should be evaluated together.

The success of an RTSP-based video infrastructure should be measured not only by whether live images can be received, but also by image quality, connection continuity, system performance, cybersecurity, and data integrity.

Technical References

More on the topics covered in this piece

Cookie preferences

Essential storage supports site features and remembers your choice. Consent-based Google analytics depends on your choice and separate activation. Advanced Mode is off by default; if separately enabled, it may send cookieless signals under denied consent. If activated, Umami measures pageviews independently of cookie choices. Read the Cookie Policy

Google analytics and marketing measurement are currently disabled.

Essential — always active

Session security and remembering your cookie preference.

Usage measurement for pages, searches and sponsor interactions; Google Analytics / Google Tag Manager when configured.

Use of advertising-related cookies. Contextual sponsor placements may still appear without this permission.

Preference for sharing user data with Google advertising services. No such transfer occurs unless separately enabled.

Preference for Google ad personalization, independent of analytics permission.

You can change or withdraw your choices using Cookie preferences in the footer.