rtspenc.c File Reference
#include "avformat.h"
#include "network.h"
#include "os_support.h"
#include "rtsp.h"
#include "internal.h"
#include "avio_internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/time.h"
#include "url.h"
Include dependency graph for rtspenc.c:

Go to the source code of this file.

Macros

#define SDP_MAX_SIZE   16384
 

Functions

int ff_rtsp_setup_output_streams (AVFormatContext *s, const char *addr)
 Announce the stream to the server and set up the RTSPStream child objects for each media stream. More...
 
static int rtsp_write_record (AVFormatContext *s)
 
static int rtsp_write_header (AVFormatContext *s)
 
static int tcp_write_packet (AVFormatContext *s, RTSPStream *rtsp_st)
 
static int rtsp_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int rtsp_write_close (AVFormatContext *s)
 

Variables

static const AVClass rtsp_muxer_class
 
AVOutputFormat ff_rtsp_muxer
 

Macro Definition Documentation

#define SDP_MAX_SIZE   16384

Definition at line 37 of file rtspenc.c.

Referenced by ff_rtsp_setup_output_streams().

Function Documentation

int ff_rtsp_setup_output_streams ( AVFormatContext s,
const char *  addr 
)

Announce the stream to the server and set up the RTSPStream child objects for each media stream.

Definition at line 46 of file rtspenc.c.

Referenced by ff_rtsp_open_transport_ctx().

static int rtsp_write_close ( AVFormatContext s)
static

Definition at line 224 of file rtspenc.c.

static int rtsp_write_header ( AVFormatContext s)
static

Definition at line 123 of file rtspenc.c.

static int rtsp_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 178 of file rtspenc.c.

static int rtsp_write_record ( AVFormatContext s)
static

Definition at line 108 of file rtspenc.c.

Referenced by rtsp_write_header().

static int tcp_write_packet ( AVFormatContext s,
RTSPStream rtsp_st 
)
static

Definition at line 139 of file rtspenc.c.

Referenced by rtsp_write_packet().

Variable Documentation

AVOutputFormat ff_rtsp_muxer
Initial value:
= {
.name = "rtsp",
.long_name = NULL_IF_CONFIG_SMALL("RTSP output"),
.priv_data_size = sizeof(RTSPState),
.audio_codec = AV_CODEC_ID_AAC,
.video_codec = AV_CODEC_ID_MPEG4,
.priv_class = &rtsp_muxer_class,
}
static int write_packet(AVFormatContext *s, AVPacket *pkt)
static int write_trailer(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int rtsp_write_close(AVFormatContext *s)
Definition: rtspenc.c:224
static int rtsp_write_header(AVFormatContext *s)
Definition: rtspenc.c:123
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:351
struct RTSPState RTSPState
Private data for the RTSP demuxer.
static int flags
Definition: cpu.c:23
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:470
static int rtsp_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtspenc.c:178
static const AVClass rtsp_muxer_class
Definition: rtspenc.c:39

Definition at line 236 of file rtspenc.c.

const AVClass rtsp_muxer_class
static
Initial value:
= {
.class_name = "RTSP muxer",
.item_name = av_default_item_name,
.option = ff_rtsp_options,
}
av_default_item_name
const AVOption ff_rtsp_options[]
Definition: rtsp.c:81
LIBAVUTIL_VERSION_INT
Definition: eval.c:55

Definition at line 39 of file rtspenc.c.