FFmpeg
Data Structures | Macros | Functions | Variables
rtpenc_mpegts.c File Reference
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  MuxChain
 

Macros

#define OFFSET(x)   offsetof(MuxChain, x)
 
#define E   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int rtp_mpegts_write_close (AVFormatContext *s)
 
static int rtp_mpegts_write_header (AVFormatContext *s)
 
static int rtp_mpegts_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass rtp_mpegts_class
 
const FFOutputFormat ff_rtp_mpegts_muxer
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(MuxChain, x)

Definition at line 176 of file rtpenc_mpegts.c.

◆ E

Definition at line 177 of file rtpenc_mpegts.c.

Function Documentation

◆ rtp_mpegts_write_close()

static int rtp_mpegts_write_close ( AVFormatContext s)
static

Definition at line 37 of file rtpenc_mpegts.c.

Referenced by rtp_mpegts_write_header().

◆ rtp_mpegts_write_header()

static int rtp_mpegts_write_header ( AVFormatContext s)
static

Definition at line 56 of file rtpenc_mpegts.c.

◆ rtp_mpegts_write_packet()

static int rtp_mpegts_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 139 of file rtpenc_mpegts.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "mpegts_muxer_options", "set list of options for the MPEG-TS muxer", OFFSET(mpegts_muxer_options), AV_OPT_TYPE_DICT, {.str = NULL}, 0, 0, E },
{ "rtp_muxer_options", "set list of options for the RTP muxer", OFFSET(rtp_muxer_options), AV_OPT_TYPE_DICT, {.str = NULL}, 0, 0, E },
{ NULL },
}

Definition at line 178 of file rtpenc_mpegts.c.

◆ rtp_mpegts_class

const AVClass rtp_mpegts_class
static
Initial value:
= {
.class_name = "rtp_mpegts muxer",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 184 of file rtpenc_mpegts.c.

◆ ff_rtp_mpegts_muxer

const FFOutputFormat ff_rtp_mpegts_muxer
Initial value:
= {
.p.name = "rtp_mpegts",
.p.long_name = NULL_IF_CONFIG_SMALL("RTP/mpegts output format"),
.priv_data_size = sizeof(MuxChain),
.p.audio_codec = AV_CODEC_ID_AAC,
.p.video_codec = AV_CODEC_ID_MPEG4,
.write_header = rtp_mpegts_write_header,
.write_packet = rtp_mpegts_write_packet,
.write_trailer = rtp_mpegts_write_close,
.p.priv_class = &rtp_mpegts_class,
}

Definition at line 191 of file rtpenc_mpegts.c.

rtp_mpegts_class
static const AVClass rtp_mpegts_class
Definition: rtpenc_mpegts.c:184
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
OFFSET
#define OFFSET(x)
Definition: rtpenc_mpegts.c:176
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
AV_OPT_TYPE_DICT
@ AV_OPT_TYPE_DICT
Definition: opt.h:232
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
rtp_mpegts_write_header
static int rtp_mpegts_write_header(AVFormatContext *s)
Definition: rtpenc_mpegts.c:56
options
static const AVOption options[]
Definition: rtpenc_mpegts.c:178
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:445
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
MuxChain
Definition: rtpenc_mpegts.c:28
rtp_mpegts_write_close
static int rtp_mpegts_write_close(AVFormatContext *s)
Definition: rtpenc_mpegts.c:37
rtp_mpegts_write_packet
static int rtp_mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtpenc_mpegts.c:139
E
#define E
Definition: rtpenc_mpegts.c:177