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"

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
 
AVOutputFormat ff_rtp_mpegts_muxer
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 175 of file rtpenc_mpegts.c.

◆ E

Definition at line 176 of file rtpenc_mpegts.c.

Function Documentation

◆ rtp_mpegts_write_close()

static int rtp_mpegts_write_close ( AVFormatContext s)
static

Definition at line 36 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 55 of file rtpenc_mpegts.c.

◆ rtp_mpegts_write_packet()

static int rtp_mpegts_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 138 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 177 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 183 of file rtpenc_mpegts.c.

◆ ff_rtp_mpegts_muxer

AVOutputFormat ff_rtp_mpegts_muxer
Initial value:
= {
.name = "rtp_mpegts",
.long_name = NULL_IF_CONFIG_SMALL("RTP/mpegts output format"),
.priv_data_size = sizeof(MuxChain),
.audio_codec = AV_CODEC_ID_AAC,
.video_codec = AV_CODEC_ID_MPEG4,
.priv_class = &rtp_mpegts_class,
}

Definition at line 190 of file rtpenc_mpegts.c.

rtp_mpegts_class
static const AVClass rtp_mpegts_class
Definition: rtpenc_mpegts.c:183
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:61
OFFSET
#define OFFSET(x)
Definition: rtpenc_mpegts.c:175
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
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:235
rtp_mpegts_write_header
static int rtp_mpegts_write_header(AVFormatContext *s)
Definition: rtpenc_mpegts.c:55
options
static const AVOption options[]
Definition: rtpenc_mpegts.c:177
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:426
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:117
MuxChain
Definition: rtpenc_mpegts.c:27
rtp_mpegts_write_close
static int rtp_mpegts_write_close(AVFormatContext *s)
Definition: rtpenc_mpegts.c:36
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:729
rtp_mpegts_write_packet
static int rtp_mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtpenc_mpegts.c:138
E
#define E
Definition: rtpenc_mpegts.c:176
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:346