Updated November 2026: new WebRTC vs RTSP section for browser viewing; status checks on ONVIF Profile V (still a release candidate), ONVIF 26.06 and RTP over QUIC.

RTSP vs RTP vs ONVIF: the short answer

RTSP vs RTP: RTSP controls the stream and RTP carries it. RTSP (Real-Time Streaming Protocol, IETF RFC 2326 and RFC 7826) is the control channel. It sends commands such as DESCRIBE, SETUP, PLAY and TEARDOWN on TCP port 554. RTP (Real-time Transport Protocol, IETF RFC 3550) handles transport, moving the compressed video in packets that each carry a sequence number and a timestamp. A camera stream uses both, and neither can stand in for the other.

ONVIF vs RTSP: ONVIF and RTSP are not alternatives either. ONVIF finds and configures the camera, RTSP starts and stops its video stream, and RTP carries the video itself. When a VMS adds a camera "over ONVIF," it uses ONVIF to discover the device and request its stream address, and the camera replies with an RTSP address. From there the video flows as RTP packets, while RTCP reports on delivery quality next to them.

Which is better, ONVIF or RTSP? For a multi-brand system, add cameras through ONVIF. You get discovery, configuration, PTZ and events, and the video still arrives over RTSP/RTP. Use a camera's raw RTSP address only if the camera lacks ONVIF support or all you need is the picture.

WebRTC vs RTSP: the VMS pulls video from cameras over RTSP, and WebRTC delivers that video to a browser in under a second. Most current systems run RTSP on the camera side and WebRTC on the viewer side; the WebRTC section below goes into how.

Question ONVIF RTSP RTP
What is it? An industry standard (a family of web-service specifications and profiles) An IETF control protocol An IETF media transport protocol
Job Discover, authenticate, configure; hand over the stream address Describe, set up, play, pause, tear down the session Carry the compressed video and audio packets
Carries video? No No Yes
Typical ports HTTP 80 / HTTPS 443; discovery on UDP 3702 TCP 554; RTSPS (over TLS) TCP 322 Dynamic UDP pair, or inside the RTSP / HTTP connection
Secured by HTTPS (TLS) RTSPS (TLS) SRTP (RFC 3711)

At a glance: RTSP vs RTP vs ONVIF, as of November 2026. Ports listed are the standard defaults (RFC 2326, RFC 7826 §4.2, WS-Discovery), and a camera maker can change them.

Why this matters

If you are scoping or running a surveillance system, "ONVIF vs RTSP" sounds like a choice you have to make, but they are different jobs that run together. Mixing them up causes a surprising number of failures. A stream that plays perfectly on the test bench can stutter or disappear once it crosses a firewall, router or VPN, and the cause is almost always a transport decision nobody made deliberately. Once you know the four protocols (what each does, what it can't do, and where it breaks), you can read a camera datasheet without guessing, ask a vendor sharper questions, and predict the bandwidth and latency a design will really deliver. You won't write any networking code. What you get is a mental model that tells a system able to survive a bad network day apart from one that only demos well. This article covers the layer beneath the ingest overview: the wire itself, in detail.

ONVIF vs RTSP vs RTP: who does what

First, the question almost every buyer asks: "should I add this camera over ONVIF or over RTSP?" The two don't compete. They are different stages of the same conversation, and a typical system uses both at once. Asking which to pick is like asking whether to reach a colleague "by phone or by talking." One is the connection, and the other is what travels over it.

Four named technologies move a camera's video into the recording software, and each one has exactly one job. The software that ingests and records many camera streams is called a Video Management System (VMS), and the rest of this section describes how a camera's video gets there.

ONVIF plays the concierge. ONVIF, the Open Network Video Interface Forum standard, lets cameras and software from different makers understand each other. Here its job is to find the camera on the network and hand over the address of its video stream. ONVIF never carries a single frame of video. When you "add a camera as ONVIF," the VMS uses ONVIF to discover the device, authenticate, and ask, "what is the address of your stream?" The camera answers with an RTSP address. (The full ONVIF story is in ONVIF explained for engineers; for the commercial overview, see Fora Soft's guide to ONVIF profiles in security systems.)

RTSP works like a remote control. With the stream address in hand, the VMS connects over the Real-Time Streaming Protocol and presses buttons: describe yourself, set up the stream, play, stop. RTSP carries the commands, and the pictures go elsewhere. When you "add a camera as RTSP," you bypass the ONVIF concierge and type the stream address by hand. That is why RTSP-only setups work yet lose ONVIF's discovery, events, and configuration.

RTP is the moving van. The Real-Time Transport Protocol carries the compressed video across the network, packet by packet. Everything you see on screen got there as RTP.

RTCP is the delivery clipboard. The RTP Control Protocol travels next to RTP and carries no video. It sends short reports in both directions about delivery: how many packets arrived, how many were lost, and how much the timing jittered.

Protocol Plain-language role Carries video? Standard
ONVIF Finds the camera, hands over the stream address, configures it No ONVIF profiles (T; S is being retired)
RTSP The remote control: describe, set up, play, stop No IETF RFC 2326 / 7826
RTP The moving van: carries the compressed video packets Yes IETF RFC 3550
RTCP The clipboard: reports delivery quality both ways No IETF RFC 3550

Table 1. The division of labor. "ONVIF vs RTSP" is a false choice: ONVIF sets up the call, RTSP controls it, and RTP carries it. RTP is the only one that moves video.

Four protocols shown as a relay from top to bottom, each with its job and whether it carries video. 1, Find: ONVIF finds the camera and hands over the stream address, through discovery, login and the stream URI, profiles S and T; no video. 2, Control: RTSP is the remote control for the session, with OPTIONS, DESCRIBE, SETUP, PLAY and TEARDOWN on TCP port 554; no video. 3, Carry: RTP, highlighted in green, carries the compressed video one packet at a time behind a 12-byte header, RFC 3550; carries video. 4, Report: RTCP reports delivery quality both ways, packet loss and jitter, using about 5% of the bandwidth; no video. The closing lines read: ONVIF vs RTSP is a false choice, they are different jobs that run together; only RTP moves pictures, ONVIF sets up the call and RTSP controls it. Figure 1. The four protocols work as a relay. ONVIF discovers the camera and passes along the stream address; RTSP starts and stops the session; RTP carries the compressed video; RTCP reports on delivery quality. Only RTP moves pictures.

RTSP: the remote control

The standard's own words explain RTSP best: "RTSP acts as a 'network remote control' for multimedia servers" (IETF RFC 2326, §1.1). It moves no video. It presses buttons on the camera, and the camera responds. It listens on a well-known door, TCP port 554 (RFC 2326, §3.2).

The buttons form a short, named set. Every RTSP system must support four of them, OPTIONS, SETUP, PLAY, and TEARDOWN, and two more see near-universal use, DESCRIBE and PAUSE (RFC 2326, §10). Here is the sequence as a VMS runs it. OPTIONS asks which commands the camera supports. DESCRIBE asks the camera what it offers, and the camera replies with a small text document, a Session Description Protocol (SDP) block, listing the available streams and, most importantly, the codec each one uses. SETUP negotiates how the video will travel (the transport decision, covered below). PLAY starts the flow. TEARDOWN closes the session cleanly.

Engineers who expect RTSP to behave like a web request often get caught by one property: RTSP is stateful. An ordinary web page is stateless, so each request stands alone. RTSP works the other way: "An RTSP server needs to maintain state by default in almost all cases, as opposed to the stateless nature of HTTP" (RFC 2326, §1.1). Between commands, the camera remembers that it set up a session and is now playing it, tracking each session through states the standard calls INIT, READY, and PLAYING. Because of that memory, a half-closed RTSP session can leave a camera holding resources, so a well-built VMS always sends a TEARDOWN instead of simply dropping the connection.

On versions: RTSP 2.0 was published as IETF RFC 7826 in December 2016 and formally obsoletes the 1998 RFC 2326. Out in the field, though, the vast majority of cameras still speak RTSP 1.0, so a VMS that ingests real-world hardware is built against RFC 2326 first and handles 2.0 as the exception. The two versions don't mix: RTSP 2.0 "is not backwards compatible other than in the basic version negotiation mechanism" (RFC 7826, §1). Version 2.0 also stops sending the commands themselves over UDP, requiring TCP or TLS over TCP, and it puts the secure variant, RTSPS, on TCP port 322 (RFC 7826, §2 and §4.2). The protocol's internals, meaning the full grammar, proxy behavior, and how it interacts with general streaming infrastructure, belong to the streaming discipline. Our Video Streaming section covers the transport theory in depth, and this article stays with the surveillance angle.

RTP: what is actually inside the moving van

Once PLAY starts the flow, the video crosses the network as a stream of RTP packets. RTP is defined in IETF RFC 3550, an Internet Standard. The part worth understanding is what each packet carries in addition to the video, since those few extra bytes are what let live video survive an imperfect network.

Each RTP packet starts with a fixed 12-byte header (RFC 3550, §5.1). It is mostly bookkeeping, but three fields do the real work, and each one maps straight to a concrete surveillance problem.

The sequence number is a 16-bit counter that "increments by one for each RTP data packet sent, and may be used by the receiver to detect packet loss and to restore packet sequence" (RFC 3550, §5.1). A gap in the count tells the VMS a packet went missing, and the same counter lets it put back in order packets that arrive shuffled. On a busy network, both happen all the time.

The timestamp is a 32-bit field that "reflects the sampling instant of the first octet in the RTP data packet" (RFC 3550, §5.1). It works as the clock behind smooth motion and keeps audio lined up with video. Take it away and frames would play at whatever pace they happened to arrive, instead of the pace at which they were captured.

The SSRC (synchronization source) is a 32-bit random identifier for the stream's source. When a camera sends both video and audio, each one gets its own SSRC, which lets the VMS tell them apart even over a shared connection.

A fourth field, the payload type, names the format inside, for example which codec the bytes represent, so the receiver knows whether it holds H.265 or H.264.

One RTP packet drawn as a bar. The fixed 12-byte header, RFC 3550 section 5.1, has four cells: flags and payload type, 2 bytes; sequence number, 2 bytes; timestamp, 4 bytes; SSRC, 4 bytes. Behind it sits the video payload, 1,400 bytes at most. Below, one row per field: the sequence number, 16 bits, counts packets to find a gap and restore order; the timestamp, 32 bits, marks the capture instant for smooth motion and audio in sync; the SSRC, 32 bits, is the source ID that tells video and audio apart; the payload type, 7 bits, names the format, H.265 or H.264. The closing lines read: an 80 KB keyframe rides in about 58 packets that share one timestamp, and sequence numbers let the VMS spot a gap and rebuild the frame. Figure 2. Inside one RTP packet. The 12-byte header is small, yet it does the heavy lifting: the sequence number catches loss and restores order, the timestamp keeps video smooth and in sync, and the SSRC identifies the source. The compressed video follows behind it.

How one frame becomes dozens of packets

Vendor explainers usually skip this part, and it accounts for a whole class of real bugs. A single video frame is far too big for one network packet, and a keyframe (the full picture the codec sends periodically) is the worst case. A standard Ethernet network moves packets of about 1,500 bytes at a time, a limit called the Maximum Transmission Unit, or MTU. Once the IP and UDP headers take their share, roughly 1,400 bytes remain for the actual payload. A compressed keyframe from a 4-megapixel camera can run to tens of kilobytes, so the video has to be cut up.

Each codec's RTP payload format sets the rules for cutting it up: RFC 7798 for H.265/HEVC (March 2016) and RFC 6184 for H.264 (May 2011). Both define the same three structures under different names. A single NAL unit packet carries one small, self-contained piece of video by itself. An aggregation packet bundles several small pieces into one packet, so the network doesn't spend whole packets on tiny payloads. A fragmentation unit works the other way and splits one large piece across many packets. That is how a big keyframe travels.

Here is a concrete case. Say a keyframe compresses to about 80 KB. At roughly 1,400 bytes of payload per packet, that one frame turns into about 80,000 ÷ 1,400 ≈ 58 RTP packets. Each carries the next sequence number, and all of them share one timestamp because they belong to the same frame. The VMS gathers all 58, checks the sequence numbers for gaps and rebuilds the whole keyframe; only after that can the decoder use it. Lose even one of those 58 packets on a UDP transport and the entire keyframe can become unusable. That is the technical reason a brief network hiccup appears as a few seconds of smeared or frozen video instead of one dropped pixel.

RTCP: the quality back-channel everyone forgets

Alongside the RTP video runs its control companion, RTCP, also defined in RFC 3550. It carries no video at all. It exists for feedback: every so often, sender and receiver swap short reports. The camera sends a Sender Report (RTCP packet type 200) that describes what it has transmitted and includes a timestamp the VMS uses to align audio with video. In return, the VMS sends a Receiver Report (type 201) covering what it received: the fraction of packets lost, the cumulative loss and the jitter, meaning the variation in packet arrival timing. In total, RFC 3550 defines five report types (Sender Report, Receiver Report, Source Description, BYE, and APP).

Through this back-channel, a surveillance system knows a stream is degrading before an operator spots a frozen tile. The loss and jitter figures from RTCP feed the health dashboards a serious VMS displays. A line like "camera 47 is dropping 4% of packets" comes straight from RTCP.

RTCP is kept deliberately lean so its reports never squeeze out the video. The standard says so directly: "It is RECOMMENDED that the fraction of the session bandwidth added for RTCP be fixed at 5%" (RFC 3550, §6.2). Senders get about a quarter of that share and receivers three-quarters. To prevent a flood of reports on a large system, the standard also limits how often any one party reports: "The RECOMMENDED value for a fixed minimum interval is 5 seconds" (RFC 3550, §6.2). For a surveillance fleet, the upshot is that RTCP overhead stays near 5% of the media bandwidth however many cameras you add. In capacity planning it barely registers, yet it is the small slice that tells you whether the system is healthy.

The decision that defines the stream: UDP, TCP, or HTTP

The standards fix everything described so far. Your one real choice comes at SETUP: how RTP travels. In a surveillance design, no networking decision has bigger consequences, because it determines whether the stream gets across the network in the first place.

The first option is RTP over UDP, the historical default. UDP sends and forgets: it never waits for acknowledgements and never resends a lost packet, so latency stays as low as it gets. On a clean, managed local network that is the right call. The catch is that UDP RTP uses a pair of dynamically negotiated ports, and a firewall or any Network Address Translation (NAT) (the address-sharing between a private network and the internet) has no fixed rule for letting them through. Over the internet, UDP RTP often never arrives.

The second option is RTP interleaved over the RTSP/TCP connection. The video is packed into the same TCP connection that already carries the RTSP commands on port 554. A firewall then has only one connection to allow, and TCP guarantees every byte arrives in order. RFC 2326 spells out the framing: stream data "is encapsulated by an ASCII dollar sign (24 hexadecimal), followed by a one-byte channel identifier, followed by the length of the encapsulated binary data as a binary, two-byte integer" (RFC 2326, §10.12). You pay in latency. When TCP loses a packet, it holds everything back until the retransmission arrives (head-of-line blocking), and a brief glitch can become a short freeze.

The third option, common in surveillance yet missing from most explainers, is RTP/RTSP tunneled over HTTP(S). The whole RTSP/RTP exchange is wrapped in ordinary web traffic on port 80 or 443. ONVIF's own streaming specification makes this mode mandatory ("a device shall support media transfer using RTP/RTSP/HTTP/TCP", ONVIF Streaming Specification 26.06, June 2026, §5.1.1.5) because it gets through the strict corporate proxies and firewalls that block everything else, though it carries the most overhead. The same specification requires plain RTP over UDP, recommends TCP interleaving, deprecates bare RTP over TCP and adds an optional RTSP-over-WebSocket mode for browser-based clients (§5.1.1.1–5.1.1.6). ONVIF builds all of this on the same IETF protocols. Its streaming spec describes "a set of media streaming … options, all based on RTP," with "media control … accomplished over RTSP," and lists RTP/UDP, RTP/RTSP/TCP, and RTP/RTSP/HTTP/TCP as transports (ONVIF Streaming Specification).

Transport How it travels Latency Firewall / NAT Best for
RTP over UDP Separate dynamic ports Lowest Often blocked Clean, managed LAN
RTP interleaved over TCP Inside the RTSP connection (554) Higher (retransmits) Passes — one connection Firewalled / NAT links
RTP/RTSP over HTTP(S) Wrapped in web traffic (80/443) Highest Passes strict proxies Internet, corporate proxies

Table 2. The transport choice at SETUP. The more hostile the network, the further down the table you go: UDP on a clean LAN, TCP interleaved across a firewall, HTTP tunneling through a strict proxy. Many VMS platforms try UDP first and switch over automatically if it fails.

A table of the three ways RTP travels, compared on latency, firewall and NAT behaviour, and best use. RTP over UDP: two dynamic UDP ports; lowest latency, no resends; often blocked by firewalls because of the dynamic ports; best for a clean, managed local LAN. RTP interleaved on TCP: inside the RTSP connection on port 554; higher latency because TCP resends; passes firewalls as one connection; best for firewalled, NAT and cross-site links. RTP/RTSP over HTTP(S): wrapped in web traffic on ports 80 and 443; highest latency from the tunnel cost; passes proxies because it looks like web traffic; best for the internet and locked networks. The closing lines read: move down the table as the network gets more hostile; many VMS platforms try UDP first and fall back to TCP on their own. Figure 3. One RTP video stream, three ways to carry it. UDP is the fastest option but firewalls block it; TCP interleaving needs just the one RTSP connection; HTTP tunneling gets past the strictest proxies. On a cleaner network you can stay higher up the table.

The networking underneath this choice, including why UDP and TCP behave as they do and how NAT traversal actually works, belongs to streaming transport and is covered in TCP vs UDP for streaming and NAT, STUN, TURN, and ICE. For this article the rule is enough: the cleaner the network, the higher up Table 2 you can stay.

Is RTSP secure? RTSPS, SRTP and what changed in 2025–2026

Plain RTSP and RTP are not encrypted, so anyone on the path can read the commands, the camera password exchange and the video. There are two standard fixes, and each protects a different layer. RTSPS wraps the RTSP commands in TLS, the same encryption behind HTTPS, on TCP port 322 (RFC 7826, §4.2). SRTP, the Secure Real-time Transport Protocol (IETF RFC 3711), encrypts and authenticates the RTP video packets themselves.

ONVIF links the two. A camera that advertises secure RTSP streaming "shall support SRTP as defined in RFC 3711," has to exchange keys through the RTSP session using MIKEY, and has to run RTSP over TLS whenever SRTP is in use (ONVIF Streaming Specification 26.06, §5.1.1.4 and §8). The June 2026 release (26.06) added SRTP configuration to the ONVIF Core and Streaming specifications. A VMS can now turn encryption on through the standard interface instead of going through each maker's web page.

For buyers, the bigger change sits in the profiles. On October 9, 2025, ONVIF announced it will end support for Profile S, the original streaming profile, because its authentication "is no longer consistent with current cybersecurity recommendations," and named Profile T (introduced in 2018) as its replacement. The June 2026 conformance test tools are the last ones that let a maker claim Profile S, and they remain valid for nine months, so new Profile S claims stop in early 2027. Cameras already installed keep working (ONVIF press release, October 2025). In practice, specify Profile T and HTTPS for anything you buy from 2026 on; the ONVIF Profile S, G, T and M decision guide explains what each one guarantees.

The browser is the second front. ONVIF published a WebRTC specification in June 2024 and has extended it in every release since (ONVIF specification history, 24.06–26.06). In July 2026 it released Profile V, a standard for cloud video surveillance, as a release candidate. Under Profile V the camera opens a secure outbound connection and streams live video over WebRTC, so it can reach a cloud service or web client with no port forwarding and no VPN. ONVIF plans to finalize it by the end of 2026 (SecurityInfoWatch, July 9, 2026); as of November 2026 it is still a release candidate. Inside the building, RTSP and RTP remain the workhorse. Over 35,000 products are ONVIF-conformant as of January 2026, and the cameras and recorders among them stream over RTSP/RTP (ONVIF, 2026). WebRTC handles the last hop to a browser. RTP over QUIC, a proposed newer transport, is still an expired IETF draft as of November 2026 (version 14, March 2025, stalled in working-group last call), so we would not plan a camera fleet around it. RTP itself keeps growing: in August 2026 the IETF published RFC 10034, a new RTP payload format for volumetric video.

WebRTC vs RTSP: which one reaches the browser?

WebRTC vs RTSP comes down to where the viewer sits: RTSP pulls video from cameras into the VMS, and WebRTC delivers it to a browser with sub-second delay. Browsers do not speak RTSP, so a web page cannot open a camera's rtsp:// address directly, and the VMS or a gateway has to repackage the stream. WebRTC ships inside browsers (W3C Recommendation, revised March 13, 2025), and its media is always encrypted with DTLS-SRTP (IETF RFC 8827, January 2021). Plain RTSP/RTP has no such guarantee.

Aspect RTSP / RTP WebRTC
Typical hop Camera to VMS or recorder VMS, gateway or cloud camera to browser or app
Plays in a browser? No; needs a gateway or a player app Yes, built in
Media transport RTP (RFC 3550) RTP too, always as SRTP
Encryption Optional: RTSPS and SRTP Mandatory: DTLS-SRTP (RFC 8827)
Firewall / NAT TCP interleaving or HTTP tunneling ICE with STUN and TURN
In ONVIF Profile S and Profile T streaming WebRTC specification since 24.06; Profile V (release candidate)

Table 3. WebRTC vs RTSP, as of November 2026. Both carry the video as RTP packets. The differences lie in who can play the stream, how it crosses the network and whether encryption is optional.

In practice the two meet in a gateway. The VMS pulls each camera over RTSP, records the stream as it arrives, and republishes live views as WebRTC for operators working in a browser. On our WorldCast Live build, WebRTC delivery ran at 0.4 to 0.5 s glass to glass. ONVIF is standardizing that last hop. Release 25.12 (December 2025) added an extend method to its WebRTC specification, and release 26.06 (June 2026) added a webrtc_codecs capability to Media2 (ONVIF specification history). WebRTC does not replace RTSP inside the building. A recorder pulling hundreds of cameras on a LAN gains nothing from per-stream ICE and DTLS handshakes, only extra work, and Profile S and Profile T cameras stream over RTSP anyway.

What one camera actually puts on the wire

A worked example for a single camera shows what these abstractions mean in numbers. Take a 4-megapixel camera recording continuously in H.265 at an average of 3 Mbps, roughly half of what the same camera would need in H.264. The math takes three short steps.

First, convert the bitrate into bytes per second:

3 Mbps ÷ 8 = 0.375 megabytes per second = 375,000 bytes/sec

Second, convert bytes into packets, at roughly 1,400 bytes of payload each:

375,000 ÷ 1,400 ≈ 268 RTP packets per second

Third, add the RTCP overhead, which sits near 5% of the media:

3 Mbps × 5% ≈ 0.15 Mbps for RTCP — a rounding error

So one ordinary camera emits on the order of 268 video packets every second, each with its own sequence number, plus a few RTCP reports per minute. Scale that to a 40-camera site and the VMS is reassembling roughly 10,000 packets per second into coherent frames while it watches every sequence number for gaps. That is why we judge a surveillance platform by ingest performance under real load rather than on a bench. The bitrate itself is set by the codec on the camera, and since a VMS records the stream as-is, so is the storage bill; how surveillance storage works covers that topic.

A common mistake to avoid

The costliest pattern we see is treating the transport as plug-and-play and discovering the gaps in production. It shows up in four ways. The first is leaving the stream on UDP across a firewall, NAT, or the internet. It connects on the bench and fails on site, so any link that crosses a firewall should move to TCP interleaved or HTTP tunneling. The second is believing "ONVIF" replaces RTSP. ONVIF only sets up the call and the video still rides RTSP/RTP, which makes an ONVIF problem and a streaming problem two separate problems with separate fixes. The third is ignoring RTCP. Its loss and jitter reports give the earliest warning, and a VMS that hides them leaves operators guessing. The fourth is assuming a lost packet costs one frame. On UDP, one missing fragment of a keyframe can corrupt seconds of video, so hostile networks need TCP's reliability even with its added latency. None of these is exotic. All four are predictable, and designing around them costs less than debugging them after deployment.

FAQ: ONVIF, RTSP and RTP

Is ONVIF the same as RTSP?

No. ONVIF is a standard for finding, configuring and controlling a camera, and RTSP is the protocol that starts and stops its video stream. An ONVIF camera gives the VMS an RTSP address, so a typical system uses both.

What is the difference between RTSP and RTP?

RTSP works like a remote control, sending commands such as SETUP, PLAY and TEARDOWN. RTP is the moving van that carries the compressed video packets. RTSP sets up the session, and RTP then moves the pictures.

Does RTSP use TCP or UDP?

RTSP commands normally run on TCP port 554, and RTSP 2.0 (RFC 7826) requires TCP or TLS over TCP. The video carried by RTP can travel over UDP, interleaved inside the RTSP TCP connection, or tunneled through HTTP. Use UDP on a clean LAN and TCP or HTTP across a firewall.

What ports do ONVIF, RTSP and RTP use?

ONVIF web services run over HTTP (port 80) or HTTPS (443), and ONVIF camera discovery uses WS-Discovery on UDP port 3702; camera discovery and onboarding at scale covers discovery at scale. RTSP uses TCP 554 and RTSPS uses TCP 322. RTP over UDP uses a dynamically negotiated port pair, and firewalls block it for that reason.

How do I find a camera's RTSP URL?

Ask the camera over ONVIF. The media service's GetStreamUri call returns the RTSP address of each stream profile. Without ONVIF, each maker sets its own address format and lists it in its documentation.

Is RTSP secure?

Plain RTSP and RTP have no encryption. Use RTSPS (RTSP over TLS, port 322) for the commands and SRTP (RFC 3711) for the video. ONVIF Streaming 26.06 (June 2026) defines both for ONVIF cameras.

What is the difference between WebRTC and RTSP?

RTSP pulls video from a camera into a VMS or recorder, while WebRTC delivers live video to a browser with sub-second delay and mandatory encryption. Both carry the media as RTP, and most surveillance systems run RTSP from the camera and WebRTC to the viewer.

Is RTP UDP or TCP?

RTP runs over either one. Cameras send it over UDP on a clean LAN, interleave it inside the RTSP TCP connection on port 554 to cross a firewall, or wrap it in HTTP on port 80 or 443 to get past strict proxies.

Is ONVIF Profile S being discontinued?

Yes. In October 2025 ONVIF announced that it is ending Profile S support, and it recommends Profile T. The June 2026 test tools are the last that accept new Profile S conformance claims. Profile S systems already in the field keep working.

↓ Free download: RTSP / RTP On-the-Wire Quick ReferenceOne page to keep open while you debug a camera stream: who does what between ONVIF, RTSP, RTP and RTCP, the RTSP methods and port 554, the fields of the 12-byte RTP header, the three transport modes — UDP, TCP-interleaved and HTTP tunnel — the RTCP 5% rule, and a five-point checklist for a stream that will not connect.

Where Fora Soft fits in

Fora Soft has built real-time video, streaming, and computer-vision software since 2005, with 250+ projects shipped, and in our experience surveillance products succeed or fail on the wire, under load. One camera on a clean bench is easy. The hard case is a few hundred cameras from several manufacturers, some textbook-conformant and some that mishandle a TEARDOWN or stop sending RTCP, and every one of them has to stream reliably, reconnect after a network blip, and degrade gracefully when packets drop. That layer is what we build: RTSP/RTP pull with automatic UDP-to-TCP-to-HTTP fallback, reassembly that tracks sequence numbers, and RTCP-driven health monitoring that flags a degrading camera before an operator sees a frozen tile. We start with how the pipeline behaves on the worst network day, with the packet storm and the half-open session, and only then get to the feature list. An ingest layer that survives a bad network is worth more than one that demos well on a quiet LAN. Teams that need this ingest layer built usually come to our video surveillance and VMS development team, and when the streams feed detection or tracking, our computer vision for surveillance engineers take the decoded frames from there. When operators need those feeds in a browser with sub-second delay, our WebRTC development team builds the RTSP-to-WebRTC gateway that the new ONVIF WebRTC work points toward.

Video Encoding: A Complete Guide to Video Compression, From Pixels and Color to H.264, HEVC, AV1, Quality Metrics, and AI - book coverVideo Streaming: A Complete Guide to Video Delivery, From Network Protocols and Transport to Ingest, HLS, and MPEG-DASH - book coverVideo Streaming: A Complete Guide to Video Delivery, From ABR and CDNs to Players, WebRTC, DRM, and the Economics of Streaming - book cover

The handbook

Fora Soft Video Engineering Handbook

We wrote a seven-volume, 9,000-page series that works through the whole video stack — encoding, delivery, audio and AI — so an engineer who has read it can design and build the ingest layer of a VMS, not only configure one. Volume 2 sits closest to this article: TCP against UDP, NAT traversal and the transport decisions you make at SETUP. Volume 1 explains the H.265 and H.264 keyframes that RTP cuts into dozens of packets, and volume 3 carries the same ideas into real-time delivery, WebRTC and players. Written by Nikolay Sapunov, CEO at Fora Soft.

Browse the handbook on Amazon →7 volumes · Kindle & paperback

Will your camera streams survive the worst network day on site?

Send us the picture — the camera makers and models, how many streams per site, where the links cross a firewall, NAT or the public internet, and what the operators see when a tile freezes — and we will tell you which transport each link should run on, where UDP will fail once it leaves the bench, how to fall back to TCP or an HTTP tunnel without a manual fix, and how to turn RTCP loss and jitter into a health alert before anyone notices a frozen picture. Before the rollout, not after the first packet storm. From a team that has shipped real-time video software since 2005.

Book a 30-min call →WhatsApp →Email us →

See our case studies

References

  1. IETF: "RFC 2326: Real Time Streaming Protocol (RTSP)" (RTSP "acts as a 'network remote control' for multimedia servers", §1.1; required methods OPTIONS/SETUP/PLAY/TEARDOWN, §10; default port 554 over TCP or UDP, §3.2; unlike HTTP, the protocol keeps state, §1.1; interleaved binary framing of $ (24 hex) + one-byte channel + two-byte length, §10.12; client/server state machine INIT/READY/PLAYING, Appendix A). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc2326.txt
  2. IETF: "RFC 3550: RTP, A Transport Protocol for Real-Time Applications" (fixed 12-byte header, §5.1; sequence number "increments by one for each RTP data packet sent... to detect packet loss and to restore packet sequence"; timestamp "reflects the sampling instant of the first octet"; SSRC synchronization source; five RTCP packet types SR=200/RR=201/SDES=202/BYE=203/APP=204; "the fraction of the session bandwidth added for RTCP be fixed at 5%", §6.2; "RECOMMENDED value for a fixed minimum interval is 5 seconds", §6.2). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc3550.html
  3. IETF: "RFC 7826: Real Time Streaming Protocol Version 2.0" (RTSP 2.0, December 2016; "obsoletes RTSP version 1.0 defined in RFC 2326"; Internet Standards Track; not backward compatible with 1.0, §1; TCP or TLS over TCP mandatory for RTSP messages, "rtspu" unspecified, §2 and §4.2; default port 554 for rtsp and TCP 322 for rtsps, §4.2; most cameras in the field still run RTSP 1.0). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc7826.html
  4. IETF: "RFC 7798: RTP Payload Format for High Efficiency Video Coding (HEVC)" (March 2016; three packetization structures: single NAL unit packet, aggregation packet (AP), fragmentation unit (FU); APs bundle small NAL units, FUs fragment a NAL unit larger than the MTU across packets). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc7798.txt
  5. IETF: "RFC 6184: RTP Payload Format for H.264 Video" (May 2011; the same packetization approach: single NAL unit packet, aggregation packets STAP/MTAP, fragmentation units FU-A/FU-B). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc6184.txt
  6. ONVIF: "ONVIF Streaming Specification" (media streaming options "all based on RTP [RFC 3550]"; "media control is accomplished over RTSP as defined in RFC 2326"; transport options include RTP/UDP, RTP/RTSP/TCP, and RTP/RTSP/HTTP/TCP; RTCP usage mandated). Primary (tier 1). https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf
  7. ONVIF: "Profile T" (advanced video streaming; introduced 2018; H.264 and H.265 encoding, HTTPS streaming; ONVIF's recommended replacement for Profile S since October 2025). Primary (tier 1). https://www.onvif.org/profiles/profile-t/
  8. ITU-T: "H.265: High Efficiency Video Coding (HEVC)" (the codec standard behind the compressed bitstream that the RTP payload carries; its predecessor is ITU-T H.264/AVC). Primary (tier 1). https://www.itu.int/rec/T-REC-H.265
  9. OpenEye: "How Does Adding a Camera as ONVIF Differ From RTSP" (an operational view, in which ONVIF discovers and configures the device while RTSP is the stream the VMS plays; adding by RTSP forgoes ONVIF discovery, events, and configuration). Institutional / engineering orientation (tier 5). https://answers.openeye.net/Troubleshooting/Frequently_Asked_Questions/Cameras/How_Does_Adding_a_Camera_as_ONVIF_Differ_From_RTSP
  10. Wowza: "RTP vs RTSP: control and transport layers" (updated May 2026; RTSP is the control channel; RTP/RTCP carry media on dynamically negotiated ports; TCP interleaving for firewall traversal; UDP-first with TCP fallback). Vendor engineering (tier 4). https://www.wowza.com/blog/rtp-vs-rtsp-the-difference-between-streamings-control-and-transport-layers
  11. ONVIF: "ONVIF Streaming Specification" version 26.06, June 2026 (RTP/UDP required, §5.1.1.1; RTP/TCP deprecated, §5.1.1.2; RTP/RTSP/TCP recommended, §5.1.1.3; RTP/RTSP/HTTP/TCP required, §5.1.1.5; RTSP over WebSocket, §5.1.1.6; SRTP per RFC 3711 with MIKEY key management and TLS for RTSP, §5.1.1.4 and §8; RTCP Sender Reports required for live streaming, §5.1.2.2). Primary (tier 1). https://www.onvif.org/specs/2606/ONVIF-Streaming-Spec-v2606.pdf
  12. ONVIF: "ONVIF to End Support for Profile S; Recommends Profile T as Replacement" (press release, October 9, 2025; June 2026 test tools the last to allow Profile S conformance claims, nine-month validity; systems already deployed are unaffected). Primary (tier 1). https://www.onvif.org/pressrelease/onvif-to-end-support-for-profile-s/
  13. ONVIF: "Specification History" (WebRTC specification first published 24.06, June 2024; ICE candidates 24.12; metadata over data channel 25.06; SRTP configuration in Core and Streaming 26.06, June 2026). Primary (tier 1). https://www.onvif.org/profiles/specifications/specification-history/
  14. ONVIF: "Building your security future with the growing ecosystem of ONVIF conformant products" (January 29, 2026; more than 35,000 conformant products). Primary (tier 1). https://www.onvif.org/blog/2026/01/29/building-your-security-future-with-the-growing-ecosystem-of-onvif-conformant-products/
  15. SecurityInfoWatch: "ONVIF Introduces Draft Cloud Video Surveillance Standard With Profile V" (July 9, 2026; release candidate; WebRTC live streaming over a device-initiated outbound connection; OAuth 2.0 security add-on; final version planned by end of 2026). Trade press (tier 3). https://www.securityinfowatch.com/video-surveillance/news/55389850/onvif-onvif-introduces-draft-cloud-video-surveillance-standard-with-profile-v
  16. IETF: "RFC 3711: The Secure Real-time Transport Protocol (SRTP)" (encryption, message authentication and replay protection for RTP and RTCP). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc3711.html
  17. IETF: "RTP over QUIC (RoQ)", draft-ietf-avtcore-rtp-over-quic-14 (March 2025; expired Internet-Draft, last state WG Last Call, not an RFC as of November 2026). Primary (tier 1). https://datatracker.ietf.org/doc/draft-ietf-avtcore-rtp-over-quic/
  18. W3C: "WebRTC: Real-Time Communication in Browsers" (W3C Recommendation, revised March 13, 2025). Primary (tier 1). https://www.w3.org/news/2025/updated-w3c-recommendation-webrtc-real-time-communication-in-browsers/
  19. IETF: "RFC 8827: WebRTC Security Architecture" (January 2021; all WebRTC media secured with SRTP, keys via DTLS-SRTP). Primary (tier 1). https://www.rfc-editor.org/rfc/rfc8827.html
  20. ONVIF: "ONVIF Releases Profile V Draft for Cloud Video Without Vendor Lock-In" (press release, July 9, 2026; release candidate; WebRTC streaming; the final version is expected by end of year). Primary (tier 1). https://www.onvif.org/pressrelease/onvif-releases-profile-v-draft/
  21. IETF: "Audio/Video Transport Core Maintenance (avtcore) documents" (RFC 10034, RTP Payload Format for V3C, August 2026; RoQ draft -14 expired). Primary (tier 1). https://datatracker.ietf.org/wg/avtcore/documents/