FFmpeg
Loading...
Searching...
No Matches
sccenc.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  SCCContext
 

Functions

static int scc_write_header (AVFormatContext *avf)
 
static int scc_write_packet (AVFormatContext *avf, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_scc_muxer
 

Function Documentation

◆ scc_write_header()

static int scc_write_header ( AVFormatContext * avf)
static

Definition at line 34 of file sccenc.c.

◆ scc_write_packet()

static int scc_write_packet ( AVFormatContext * avf,
AVPacket * pkt )
static

Definition at line 47 of file sccenc.c.

Variable Documentation

◆ ff_scc_muxer

const FFOutputFormat ff_scc_muxer
Initial value:
= {
.p.name = "scc",
.p.long_name = NULL_IF_CONFIG_SMALL("Scenarist Closed Captions"),
.p.extensions = "scc",
.p.video_codec = AV_CODEC_ID_NONE,
.p.audio_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_EIA_608,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
.priv_data_size = sizeof(SCCContext),
}
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition avformat.h:501
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition avformat.h:507
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition avformat.h:497
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
Definition ffmpeg_mux.c:204
static void write_header(FFV1Context *f)
Definition ffv1enc.c:384
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_EIA_608
Definition codec_id.h:576
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition mux.h:50
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59
static int scc_write_header(AVFormatContext *avf)
Definition sccenc.c:34
static int scc_write_packet(AVFormatContext *avf, AVPacket *pkt)
Definition sccenc.c:47

Definition at line 103 of file sccenc.c.