FFmpeg
Data Fields
RTSPStream Struct Reference

Describe a single stream, as identified by a single m= line block in the SDP content. More...

#include <rtsp.h>

Data Fields

URLContextrtp_handle
 RTP stream handle (if UDP) More...
 
void * transport_priv
 RTP/RDT parse context if input, RTP AVFormatContext if output. More...
 
int stream_index
 corresponding stream index, if any. More...
 
int interleaved_min
 interleave IDs; copies of RTSPTransportField->interleaved_min/max for the selected transport. More...
 
int interleaved_max
 
char control_url [1024]
 url for this stream (from SDP) More...
 
int sdp_port
 The following are used only in SDP, not RTSP. More...
 
struct sockaddr_storage sdp_ip
 IP address (from SDP content) More...
 
int nb_include_source_addrs
 Number of source-specific multicast include source IP addresses (from SDP content) More...
 
struct RTSPSource ** include_source_addrs
 Source-specific multicast include source IP addresses (from SDP content) More...
 
int nb_exclude_source_addrs
 Number of source-specific multicast exclude source IP addresses (from SDP content) More...
 
struct RTSPSource ** exclude_source_addrs
 Source-specific multicast exclude source IP addresses (from SDP content) More...
 
int sdp_ttl
 IP Time-To-Live (from SDP content) More...
 
int sdp_payload_type
 payload type More...
 
const RTPDynamicProtocolHandlerdynamic_handler
 The following are used for dynamic protocols (rtpdec_*.c/rdt.c) More...
 
PayloadContextdynamic_protocol_context
 private data associated with the dynamic protocol More...
 
int feedback
 Enable sending RTCP feedback messages according to RFC 4585. More...
 
uint32_t ssrc
 SSRC for this stream, to allow identifying RTCP packets before the first RTP packet. More...
 
char crypto_suite [40]
 
char crypto_params [100]
 

Detailed Description

Describe a single stream, as identified by a single m= line block in the SDP content.

In the case of RDT, one RTSPStream can represent multiple AVStreams. In this case, each AVStream in this set has similar content (but different codec/bitrate).

Definition at line 435 of file rtsp.h.

Field Documentation

◆ rtp_handle

URLContext* RTSPStream::rtp_handle

RTP stream handle (if UDP)

Definition at line 436 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx(), ff_rtsp_undo_setup(), rtsp_read_play(), and rtsp_read_setup().

◆ transport_priv

void* RTSPStream::transport_priv

RTP/RDT parse context if input, RTP AVFormatContext if output.

Definition at line 437 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx(), ff_rtsp_tcp_write_packet(), ff_rtsp_undo_setup(), rtsp_read_play(), and rtsp_write_packet().

◆ stream_index

int RTSPStream::stream_index

corresponding stream index, if any.

-1 if none (MPEG2TS case)

Definition at line 440 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx(), ff_rtsp_setup_output_streams(), and rtsp_read_play().

◆ interleaved_min

int RTSPStream::interleaved_min

interleave IDs; copies of RTSPTransportField->interleaved_min/max for the selected transport.

Only used for TCP.

Definition at line 444 of file rtsp.h.

Referenced by ff_rtsp_tcp_read_packet(), ff_rtsp_tcp_write_packet(), and rtsp_read_setup().

◆ interleaved_max

int RTSPStream::interleaved_max

Definition at line 444 of file rtsp.h.

Referenced by ff_rtsp_tcp_write_packet(), and rtsp_read_setup().

◆ control_url

char RTSPStream::control_url[1024]

url for this stream (from SDP)

Definition at line 446 of file rtsp.h.

Referenced by ff_rtsp_setup_output_streams(), and rtsp_read_setup().

◆ sdp_port

int RTSPStream::sdp_port

The following are used only in SDP, not RTSP.

port (from SDP content)

Definition at line 450 of file rtsp.h.

◆ sdp_ip

struct sockaddr_storage RTSPStream::sdp_ip

IP address (from SDP content)

Definition at line 451 of file rtsp.h.

◆ nb_include_source_addrs

int RTSPStream::nb_include_source_addrs

Number of source-specific multicast include source IP addresses (from SDP content)

Definition at line 452 of file rtsp.h.

Referenced by ff_rtsp_close_streams().

◆ include_source_addrs

struct RTSPSource** RTSPStream::include_source_addrs

Source-specific multicast include source IP addresses (from SDP content)

Definition at line 453 of file rtsp.h.

Referenced by ff_rtsp_close_streams().

◆ nb_exclude_source_addrs

int RTSPStream::nb_exclude_source_addrs

Number of source-specific multicast exclude source IP addresses (from SDP content)

Definition at line 454 of file rtsp.h.

Referenced by ff_rtsp_close_streams().

◆ exclude_source_addrs

struct RTSPSource** RTSPStream::exclude_source_addrs

Source-specific multicast exclude source IP addresses (from SDP content)

Definition at line 455 of file rtsp.h.

Referenced by ff_rtsp_close_streams().

◆ sdp_ttl

int RTSPStream::sdp_ttl

IP Time-To-Live (from SDP content)

Definition at line 456 of file rtsp.h.

◆ sdp_payload_type

int RTSPStream::sdp_payload_type

payload type

Definition at line 457 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx().

◆ dynamic_handler

const RTPDynamicProtocolHandler* RTSPStream::dynamic_handler

The following are used for dynamic protocols (rtpdec_*.c/rdt.c)

handler structure

Definition at line 463 of file rtsp.h.

Referenced by ff_rtsp_close_streams(), and ff_rtsp_open_transport_ctx().

◆ dynamic_protocol_context

PayloadContext* RTSPStream::dynamic_protocol_context

private data associated with the dynamic protocol

Definition at line 466 of file rtsp.h.

Referenced by ff_rtsp_close_streams(), and ff_rtsp_open_transport_ctx().

◆ feedback

int RTSPStream::feedback

Enable sending RTCP feedback messages according to RFC 4585.

Definition at line 470 of file rtsp.h.

◆ ssrc

uint32_t RTSPStream::ssrc

SSRC for this stream, to allow identifying RTCP packets before the first RTP packet.

Definition at line 473 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx().

◆ crypto_suite

char RTSPStream::crypto_suite[40]

Definition at line 475 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx().

◆ crypto_params

char RTSPStream::crypto_params[100]

Definition at line 476 of file rtsp.h.

Referenced by ff_rtsp_open_transport_ctx().


The documentation for this struct was generated from the following file: