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

Go to the source code of this file.

Data Structures

struct  MuxChain
 

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

AVOutputFormat ff_rtp_mpegts_muxer
 

Function Documentation

◆ rtp_mpegts_write_close()

static int rtp_mpegts_write_close ( AVFormatContext s)
static

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

◆ rtp_mpegts_write_packet()

static int rtp_mpegts_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 113 of file rtpenc_mpegts.c.

Variable Documentation

◆ 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(struct MuxChain),
.audio_codec = AV_CODEC_ID_AAC,
.video_codec = AV_CODEC_ID_MPEG4,
.write_header = rtp_mpegts_write_header,
.write_packet = rtp_mpegts_write_packet,
.write_trailer = rtp_mpegts_write_close,
}

Definition at line 150 of file rtpenc_mpegts.c.

AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: avcodec.h:230
rtp_mpegts_write_header
static int rtp_mpegts_write_header(AVFormatContext *s)
Definition: rtpenc_mpegts.c:47
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: avcodec.h:566
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:188
MuxChain
Definition: rtpenc_mpegts.c:26
rtp_mpegts_write_close
static int rtp_mpegts_write_close(AVFormatContext *s)
Definition: rtpenc_mpegts.c:31
rtp_mpegts_write_packet
static int rtp_mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtpenc_mpegts.c:113