FFmpeg
Data Structures | Functions | Variables
srtenc.c File Reference
#include "avformat.h"
#include "internal.h"
#include "mux.h"
#include "libavutil/log.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  SRTContext
 

Functions

static int srt_write_header (AVFormatContext *avf)
 
static int srt_write_packet (AVFormatContext *avf, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_srt_muxer
 

Function Documentation

◆ srt_write_header()

static int srt_write_header ( AVFormatContext avf)
static

Definition at line 38 of file srtenc.c.

◆ srt_write_packet()

static int srt_write_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 60 of file srtenc.c.

Variable Documentation

◆ ff_srt_muxer

const FFOutputFormat ff_srt_muxer
Initial value:
= {
.p.name = "srt",
.p.long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
.p.mime_type = "application/x-subrip",
.p.extensions = "srt",
.p.subtitle_codec = AV_CODEC_ID_SUBRIP,
.priv_data_size = sizeof(SRTContext),
}

Definition at line 100 of file srtenc.c.

AVFMT_VARIABLE_FPS
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:482
SRTContext
Definition: srtenc.c:35
srt_write_header
static int srt_write_header(AVFormatContext *avf)
Definition: srtenc.c:38
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:115
AV_CODEC_ID_SUBRIP
@ AV_CODEC_ID_SUBRIP
Definition: codec_id.h:561
write_packet
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:61
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:489
srt_write_packet
static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition: srtenc.c:60
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:346