FFmpeg
Data Structures | Macros | Functions | Variables
rtpenc_mpegts.c File Reference
#include "libavutil/mathematics.h"
#include "libavutil/mem.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 177 of file rtpenc_mpegts.c.

◆ E

Definition at line 178 of file rtpenc_mpegts.c.

Function Documentation

◆ rtp_mpegts_write_close()

static int rtp_mpegts_write_close ( AVFormatContext s)
static

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

◆ rtp_mpegts_write_packet()

static int rtp_mpegts_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 140 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 179 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 185 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 192 of file rtpenc_mpegts.c.

rtp_mpegts_class
static const AVClass rtp_mpegts_class
Definition: rtpenc_mpegts.c:185
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: codec_id.h:64
OFFSET
#define OFFSET(x)
Definition: rtpenc_mpegts.c:177
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:242
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:57
options
static const AVOption options[]
Definition: rtpenc_mpegts.c:179
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:442
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:94
MuxChain
Definition: rtpenc_mpegts.c:29
rtp_mpegts_write_close
static int rtp_mpegts_write_close(AVFormatContext *s)
Definition: rtpenc_mpegts.c:38
rtp_mpegts_write_packet
static int rtp_mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtpenc_mpegts.c:140
E
#define E
Definition: rtpenc_mpegts.c:178