FFmpeg
Loading...
Searching...
No Matches
rtpenc_mpegts.c File Reference
#include "libavutil/attributes_internal.h"
#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)
 
#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)
Value:
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 39 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 58 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 },
}
#define E
Definition avdct.c:34
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_DICT
Underlying C type is AVDictionary*.
Definition opt.h:289

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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

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,
}
@ AV_CODEC_ID_AAC
Definition codec_id.h:455
@ AV_CODEC_ID_MPEG4
Definition codec_id.h:62
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static const AVClass rtp_mpegts_class
static int rtp_mpegts_write_header(AVFormatContext *s)
static int rtp_mpegts_write_close(AVFormatContext *s)
static int rtp_mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)

Definition at line 191 of file rtpenc_mpegts.c.