Go to the source code of this file.
|
static AVDictionary * | map_to_opts (RTSPState *rt) |
|
static int | copy_tls_opts_dict (RTSPState *rt, AVDictionary **dict) |
| Add the TLS options of the given RTSPState to the dict. More...
|
|
static void | get_word_until_chars (char *buf, int buf_size, const char *sep, const char **pp) |
|
static void | get_word_sep (char *buf, int buf_size, const char *sep, const char **pp) |
|
static void | get_word (char *buf, int buf_size, const char **pp) |
|
static void | rtsp_parse_range_npt (const char *p, int64_t *start, int64_t *end) |
| Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time. More...
|
|
static int | get_sockaddr (AVFormatContext *s, const char *buf, struct sockaddr_storage *sock) |
|
void | ff_rtsp_undo_setup (AVFormatContext *s, int send_packets) |
| Undo the effect of ff_rtsp_make_setup_request, close the transport_priv and rtp_handle fields. More...
|
|
void | ff_rtsp_close_streams (AVFormatContext *s) |
| Close and free all streams within the RTSP (de)muxer. More...
|
|
int | ff_rtsp_open_transport_ctx (AVFormatContext *s, RTSPStream *rtsp_st) |
| Open RTSP transport context. More...
|
|
◆ READ_PACKET_TIMEOUT_S
#define READ_PACKET_TIMEOUT_S 10 |
◆ RECVBUF_SIZE
◆ DEFAULT_REORDERING_DELAY
#define DEFAULT_REORDERING_DELAY 100000 |
◆ OFFSET
◆ DEC
◆ ENC
◆ RTSP_FLAG_OPTS
#define RTSP_FLAG_OPTS |
( |
|
name, |
|
|
|
longname |
|
) |
| |
Value:
Definition at line 70 of file rtsp.c.
◆ RTSP_MEDIATYPE_OPTS
#define RTSP_MEDIATYPE_OPTS |
( |
|
name, |
|
|
|
longname |
|
) |
| |
Value:
Definition at line 74 of file rtsp.c.
◆ COMMON_OPTS
Value: {
"reorder_queue_size",
"set number of packets to buffer for handling of reordered packets",
OFFSET(reordering_queue_size),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX,
DEC }, \
{
"buffer_size",
"Underlying protocol send/receive buffer size",
OFFSET(buffer_size),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX,
DEC|
ENC }, \
{
"pkt_size",
"Underlying protocol send packet size",
OFFSET(pkt_size),
AV_OPT_TYPE_INT, { .i64 = 1472 }, -1, INT_MAX,
ENC } \
Definition at line 81 of file rtsp.c.
◆ ERR_RET
Value:
Definition at line 146 of file rtsp.c.
◆ map_to_opts()
◆ copy_tls_opts_dict()
Add the TLS options of the given RTSPState to the dict.
Definition at line 156 of file rtsp.c.
◆ get_word_until_chars()
static void get_word_until_chars |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
sep, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
◆ get_word_sep()
static void get_word_sep |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
sep, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
◆ get_word()
static void get_word |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
◆ rtsp_parse_range_npt()
static void rtsp_parse_range_npt |
( |
const char * |
p, |
|
|
int64_t * |
start, |
|
|
int64_t * |
end |
|
) |
| |
|
static |
Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time.
Used for seeking in the rtp stream.
Definition at line 204 of file rtsp.c.
◆ get_sockaddr()
◆ ff_rtsp_undo_setup()
◆ ff_rtsp_close_streams()
◆ ff_rtsp_open_transport_ctx()
◆ ff_rtsp_options
Initial value:= {
{
"initial_pause",
"do not start playing the stream immediately",
OFFSET(initial_pause),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1,
DEC },
{
"rtsp_transport",
"set RTSP transport protocols",
OFFSET(lower_transport_mask),
AV_OPT_TYPE_FLAGS, {.i64 = 0}, INT_MIN, INT_MAX,
DEC|
ENC, .unit =
"rtsp_transport" },
{
"prefer_tcp",
"try RTP via TCP first, if available", 0,
AV_OPT_TYPE_CONST, {.i64 =
RTSP_FLAG_PREFER_TCP}, 0, 0,
DEC|
ENC, .unit =
"rtsp_flags" },
{
"listen_timeout",
"set maximum timeout (in seconds) to wait for incoming connections (-1 is infinite, imply flag listen)",
OFFSET(initial_timeout),
AV_OPT_TYPE_INT, {.i64 = -1}, INT_MIN, INT_MAX,
DEC },
{
"timeout",
"set timeout (in microseconds) of socket I/O operations",
OFFSET(stimeout),
AV_OPT_TYPE_INT64, {.i64 = 0}, INT_MIN, INT64_MAX,
DEC },
}
Definition at line 87 of file rtsp.c.
◆ sdp_options
Initial value:
Definition at line 113 of file rtsp.c.
◆ rtp_options
Initial value:
Definition at line 124 of file rtsp.c.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define RTSP_RTP_PORT_MIN
@ AV_OPT_TYPE_DURATION
Underlying C type is int64_t.
#define FF_RTP_FLAG_OPTS(ctx, fieldname)
#define RTSP_FLAG_SATIP_RAW
Export SAT>IP stream as raw MPEG-TS.
@ RTSP_LOWER_TRANSPORT_HTTPS
HTTPS tunneled.
#define RTSP_FLAG_LISTEN
Wait for incoming connections.
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
#define RTSP_FLAG_OPTS(name, longname)
#define RTSP_MEDIATYPE_OPTS(name, longname)
#define FF_TLS_CLIENT_OPTIONS(pstruct, options_field)
#define RTSP_FLAG_PREFER_TCP
Try RTP via TCP first if possible.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Private data for the RTSP demuxer.
#define READ_PACKET_TIMEOUT_S
@ RTSP_LOWER_TRANSPORT_TCP
TCP; interleaved in RTSP.
#define RTSP_FLAG_CUSTOM_IO
Do all IO via the AVIOContext.
@ RTSP_LOWER_TRANSPORT_UDP_MULTICAST
UDP/multicast.
@ RTSP_LOWER_TRANSPORT_HTTP
HTTP tunneled - not a proper transport mode as such, only for use via AVOptions.
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define RTSP_RTP_PORT_MAX
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
#define RTSP_FLAG_FILTER_SRC
Filter incoming UDP packets - receive packets only from the right source address and port.
@ RTSP_LOWER_TRANSPORT_UDP
UDP/unicast.
#define RTSP_FLAG_RTCP_TO_SOURCE
Send RTCP packets to the source address of received packets.