FFmpeg
Loading...
Searching...
No Matches
ffmpeg_mux_init.c File Reference
#include <string.h>
#include "cmdutils.h"
#include "ffmpeg.h"
#include "ffmpeg_mux.h"
#include "ffmpeg_sched.h"
#include "fopen_utf8.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/avutil.h"
#include "libavutil/bprint.h"
#include "libavutil/dict.h"
#include "libavutil/display.h"
#include "libavutil/getenv_utf8.h"
#include "libavutil/iamf.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Data Structures

struct  EncStatsFile
 

Macros

#define DEFAULT_PASS_LOGFILENAME_PREFIX   "ffmpeg2pass"
 
#define IS_AV_ENC(ost, type)
 
#define IS_INTERLEAVED(type)
 
#define SERIALIZE(parent, child)
 
#define SERIALIZE_LOOP_SUBBLOCK(obj)
 
#define SERIALIZE_LOOP(parent, child, suffix, separator)
 
#define METADATA_CHECK_INDEX(index, nb_elems, desc)
 
#define SET_DICT(type, meta, context, index)
 
#define REENC_MASK(type)
 
#define REENC_AUDIO_ONLY   REENC_MASK(AVMEDIA_TYPE_AUDIO)
 
#define REENC_VIDEO_ONLY   REENC_MASK(AVMEDIA_TYPE_VIDEO)
 
#define REENC_ANY   (REENC_AUDIO_ONLY | REENC_VIDEO_ONLY)
 

Functions

static int check_opt_bitexact (void *ctx, const AVDictionary *opts, const char *opt_name, int flag)
 
static int choose_encoder (const OptionsContext *o, AVFormatContext *s, MuxStream *ms, const AVCodec **enc)
 
static char * get_line (AVIOContext *s, AVBPrint *bprint)
 
static int get_preset_file_2 (const char *preset_name, const char *codec_name, AVIOContext **s)
 
static int enc_stats_get_file (AVIOContext **io, const char *path)
 
void of_enc_stats_close (void)
 
static int unescape (char **pdst, size_t *dst_len, const char **pstr, char delim)
 
static int enc_stats_init (OutputStream *ost, EncStats *es, int pre, const char *path, const char *fmt_spec)
 
static const char * output_stream_item_name (void *obj)
 
static MuxStreammux_stream_alloc (Muxer *mux, enum AVMediaType type)
 
static int ost_get_filters (const OptionsContext *o, AVFormatContext *oc, OutputStream *ost, char **dst)
 
static int parse_matrix_coeffs (void *logctx, uint16_t *dest, const char *str)
 
static int pixfmt_in_list (const enum AVPixelFormat *formats, enum AVPixelFormat format)
 
static enum AVPixelFormat choose_pixel_fmt (const AVCodecContext *avctx, enum AVPixelFormat target)
 
static enum AVPixelFormat pix_fmt_parse (OutputStream *ost, const char *name)
 
static int new_stream_video (Muxer *mux, const OptionsContext *o, OutputStream *ost, int *keep_pix_fmt, enum VideoSyncMethod *vsync_method)
 
static int new_stream_audio (Muxer *mux, const OptionsContext *o, OutputStream *ost)
 
static int new_stream_subtitle (Muxer *mux, const OptionsContext *o, OutputStream *ost)
 
static int ost_bind_filter (const Muxer *mux, MuxStream *ms, OutputFilter *ofilter, const OptionsContext *o, AVRational enc_tb, enum VideoSyncMethod vsync_method, int keep_pix_fmt, int autoscale, int threads_manual, const ViewSpecifier *vs, SchedulerNode *src)
 
static int streamcopy_init (const OptionsContext *o, const Muxer *mux, OutputStream *ost, AVDictionary **encoder_opts)
 
static int set_encoder_id (OutputStream *ost, const AVCodec *codec)
 
static int ost_add (Muxer *mux, const OptionsContext *o, enum AVMediaType type, InputStream *ist, OutputFilter *ofilter, const ViewSpecifier *vs, OutputStream **post)
 
static int map_auto_video (Muxer *mux, const OptionsContext *o)
 
static int map_auto_audio (Muxer *mux, const OptionsContext *o)
 
static int map_auto_subtitle (Muxer *mux, const OptionsContext *o)
 
static int map_auto_data (Muxer *mux, const OptionsContext *o)
 
static int map_manual (Muxer *mux, const OptionsContext *o, const StreamMap *map)
 
static int of_add_attachments (Muxer *mux, const OptionsContext *o)
 
static int create_streams (Muxer *mux, const OptionsContext *o)
 
static int setup_sync_queues (Muxer *mux, AVFormatContext *oc, int64_t buf_size_us, int shortest)
 
static int of_parse_iamf_audio_element_layers (Muxer *mux, AVStreamGroup *stg, char *ptr)
 
static int of_parse_iamf_submixes (Muxer *mux, AVStreamGroup *stg, char *ptr)
 
static int of_serialize_options (Muxer *mux, void *obj, AVBPrint *bp)
 
static int64_t get_stream_group_index_from_id (Muxer *mux, int64_t id)
 
static int of_map_group (Muxer *mux, AVDictionary **dict, AVBPrint *bp, const char *map)
 
static int of_parse_group_token (Muxer *mux, const char *token, char *ptr)
 
static int of_add_groups (Muxer *mux, const OptionsContext *o)
 
static int of_add_programs (Muxer *mux, const OptionsContext *o)
 
static int parse_meta_type (void *logctx, const char *arg, char *type, int *index, const char **stream_spec)
 Parse a metadata specifier passed as 'arg' parameter.
 
static int of_add_metadata (OutputFile *of, AVFormatContext *oc, const OptionsContext *o)
 
static int copy_chapters (InputFile *ifile, OutputFile *ofile, AVFormatContext *os, int copy_metadata)
 
static int copy_metadata (Muxer *mux, AVFormatContext *ic, const char *outspec, const char *inspec, int *metadata_global_manual, int *metadata_streams_manual, int *metadata_chapters_manual)
 
static int meta_spec_matches (void *log_ctx, AVFormatContext *oc, AVStream *st, const char *spec)
 
static int reenc_delete_metadata_key (const OptionsContext *o, void *log_ctx, AVFormatContext *oc, AVStream *st, const char *family, const char *key, int flags)
 
static int reenc_delete_stale_metadata (const OptionsContext *o, void *log_ctx, AVFormatContext *oc, AVStream *st, AVDictionary **dict, const char *kind, unsigned reenc_mask)
 
static int copy_meta (Muxer *mux, const OptionsContext *o)
 
static int set_dispositions (Muxer *mux, const OptionsContext *o)
 
static int compare_int64 (const void *a, const void *b)
 
static int parse_forced_key_frames (void *log, KeyframeForceCtx *kf, const Muxer *mux, const char *spec)
 
static int process_forced_keyframes (Muxer *mux, const OptionsContext *o)
 
static const char * output_file_item_name (void *obj)
 
static Muxermux_alloc (void)
 
int of_open (const OptionsContext *o, const char *filename, Scheduler *sch)
 

Variables

static EncStatsFileenc_stats_files
 
static int nb_enc_stats_files
 
static const AVClass output_stream_class
 
struct { 
 
   const char *   key 
 
   int   flags 
 
   unsigned   reenc_mask 
 
reenc_delete_keys [] 
 
static const char *const forced_keyframes_const_names []
 
static const AVClass output_file_class
 

Macro Definition Documentation

◆ DEFAULT_PASS_LOGFILENAME_PREFIX

#define DEFAULT_PASS_LOGFILENAME_PREFIX   "ffmpeg2pass"

Definition at line 51 of file ffmpeg_mux_init.c.

Referenced by new_stream_video().

◆ IS_AV_ENC

#define IS_AV_ENC ( ost,
type )
Value:
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
cl_device_type type
static AVStream * ost

Referenced by setup_sync_queues().

◆ IS_INTERLEAVED

#define IS_INTERLEAVED ( type)
Value:
@ AVMEDIA_TYPE_ATTACHMENT
Opaque data information usually sparse.
Definition avutil.h:204

Referenced by setup_sync_queues().

◆ SERIALIZE

#define SERIALIZE ( parent,
child )
Value:
do { \
ret = of_serialize_options(mux, parent->child, bp); \
if (ret < 0) \
return ret; \
} while (0)
static int of_serialize_options(Muxer *mux, void *obj, AVBPrint *bp)

Definition at line 2385 of file ffmpeg_mux_init.c.

Referenced by of_map_group().

◆ SERIALIZE_LOOP_SUBBLOCK

#define SERIALIZE_LOOP_SUBBLOCK ( obj)
Value:
do { \
for (int k = 0; k < obj->nb_subblocks; k++) { \
ret = of_serialize_options(mux, \
if (ret < 0) \
return ret; \
} \
} while (0)
static av_always_inline void * av_iamf_param_definition_get_subblock(const AVIAMFParamDefinition *par, unsigned int idx)
Get the subblock at the specified idx.
Definition iamf.h:260

Definition at line 2391 of file ffmpeg_mux_init.c.

Referenced by of_map_group().

◆ SERIALIZE_LOOP

#define SERIALIZE_LOOP ( parent,
child,
suffix,
separator )
Value:
do { \
for (int j = 0; j < parent->nb_## child ## suffix; j++) { \
av_bprintf(bp, separator#child "="); \
SERIALIZE(parent, child ## suffix[j]); \
} \
} while (0)
static char separator(CheckasmFormat format)
Definition checkasm.c:149

Definition at line 2400 of file ffmpeg_mux_init.c.

Referenced by of_map_group().

◆ METADATA_CHECK_INDEX

#define METADATA_CHECK_INDEX ( index,
nb_elems,
desc )
Value:
if ((index) < 0 || (index) >= (nb_elems)) {\
av_log(mux, AV_LOG_FATAL, "Invalid %s index %d while processing metadata maps.\n",\
(desc), (index));\
return AVERROR(EINVAL);\
}
#define AVERROR(e)
Definition error.h:45
#define AV_LOG_FATAL
Something went wrong and recovery is not possible.
Definition log.h:204
int index
Definition gxfenc.c:90
const char * desc
Definition libsvtav1.c:83

◆ SET_DICT

#define SET_DICT ( type,
meta,
context,
index )
Value:
switch (type) {\
case 'g':\
meta = &context->metadata;\
break;\
case 'c':\
METADATA_CHECK_INDEX(index, context->nb_chapters, "chapter")\
meta = &context->chapters[index]->metadata;\
break;\
case 'p':\
METADATA_CHECK_INDEX(index, context->nb_programs, "program")\
meta = &context->programs[index]->metadata;\
break;\
case 's':\
break; /* handled separately below */ \
default: av_assert0(0);\
}\
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Definition avassert.h:42

Referenced by copy_metadata().

◆ REENC_MASK

#define REENC_MASK ( type)
Value:
(1u << (type))

Definition at line 2979 of file ffmpeg_mux_init.c.

Referenced by copy_meta().

◆ REENC_AUDIO_ONLY

#define REENC_AUDIO_ONLY   REENC_MASK(AVMEDIA_TYPE_AUDIO)

Definition at line 2980 of file ffmpeg_mux_init.c.

◆ REENC_VIDEO_ONLY

#define REENC_VIDEO_ONLY   REENC_MASK(AVMEDIA_TYPE_VIDEO)

Definition at line 2981 of file ffmpeg_mux_init.c.

◆ REENC_ANY

#define REENC_ANY   (REENC_AUDIO_ONLY | REENC_VIDEO_ONLY)

Definition at line 2982 of file ffmpeg_mux_init.c.

Function Documentation

◆ check_opt_bitexact()

static int check_opt_bitexact ( void * ctx,
const AVDictionary * opts,
const char * opt_name,
int flag )
static

Definition at line 53 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ choose_encoder()

static int choose_encoder ( const OptionsContext * o,
AVFormatContext * s,
MuxStream * ms,
const AVCodec ** enc )
static

Definition at line 69 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ get_line()

static char * get_line ( AVIOContext * s,
AVBPrint * bprint )
static

Definition at line 113 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ get_preset_file_2()

static int get_preset_file_2 ( const char * preset_name,
const char * codec_name,
AVIOContext ** s )
static

Definition at line 126 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ enc_stats_get_file()

static int enc_stats_get_file ( AVIOContext ** io,
const char * path )
static

Definition at line 164 of file ffmpeg_mux_init.c.

Referenced by enc_stats_init().

◆ of_enc_stats_close()

void of_enc_stats_close ( void )

Definition at line 197 of file ffmpeg_mux_init.c.

Referenced by ffmpeg_cleanup().

◆ unescape()

static int unescape ( char ** pdst,
size_t * dst_len,
const char ** pstr,
char delim )
static

Definition at line 207 of file ffmpeg_mux_init.c.

Referenced by enc_stats_init().

◆ enc_stats_init()

static int enc_stats_init ( OutputStream * ost,
EncStats * es,
int pre,
const char * path,
const char * fmt_spec )
static

Definition at line 246 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ output_stream_item_name()

static const char * output_stream_item_name ( void * obj)
static

Definition at line 378 of file ffmpeg_mux_init.c.

◆ mux_stream_alloc()

static MuxStream * mux_stream_alloc ( Muxer * mux,
enum AVMediaType type )
static

Definition at line 392 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ ost_get_filters()

static int ost_get_filters ( const OptionsContext * o,
AVFormatContext * oc,
OutputStream * ost,
char ** dst )
static

Definition at line 416 of file ffmpeg_mux_init.c.

Referenced by ost_bind_filter().

◆ parse_matrix_coeffs()

static int parse_matrix_coeffs ( void * logctx,
uint16_t * dest,
const char * str )
static

Definition at line 440 of file ffmpeg_mux_init.c.

Referenced by new_stream_video().

◆ pixfmt_in_list()

static int pixfmt_in_list ( const enum AVPixelFormat * formats,
enum AVPixelFormat format )
static

Definition at line 459 of file ffmpeg_mux_init.c.

Referenced by pix_fmt_parse().

◆ choose_pixel_fmt()

static enum AVPixelFormat choose_pixel_fmt ( const AVCodecContext * avctx,
enum AVPixelFormat target )
static

Definition at line 468 of file ffmpeg_mux_init.c.

Referenced by pix_fmt_parse().

◆ pix_fmt_parse()

static enum AVPixelFormat pix_fmt_parse ( OutputStream * ost,
const char * name )
static

Definition at line 499 of file ffmpeg_mux_init.c.

Referenced by new_stream_video().

◆ new_stream_video()

static int new_stream_video ( Muxer * mux,
const OptionsContext * o,
OutputStream * ost,
int * keep_pix_fmt,
enum VideoSyncMethod * vsync_method )
static

Definition at line 548 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ new_stream_audio()

static int new_stream_audio ( Muxer * mux,
const OptionsContext * o,
OutputStream * ost )
static

Definition at line 781 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ new_stream_subtitle()

static int new_stream_subtitle ( Muxer * mux,
const OptionsContext * o,
OutputStream * ost )
static

Definition at line 820 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ ost_bind_filter()

static int ost_bind_filter ( const Muxer * mux,
MuxStream * ms,
OutputFilter * ofilter,
const OptionsContext * o,
AVRational enc_tb,
enum VideoSyncMethod vsync_method,
int keep_pix_fmt,
int autoscale,
int threads_manual,
const ViewSpecifier * vs,
SchedulerNode * src )
static

Definition at line 862 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ streamcopy_init()

static int streamcopy_init ( const OptionsContext * o,
const Muxer * mux,
OutputStream * ost,
AVDictionary ** encoder_opts )
static

Definition at line 985 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ set_encoder_id()

static int set_encoder_id ( OutputStream * ost,
const AVCodec * codec )
static

Definition at line 1113 of file ffmpeg_mux_init.c.

Referenced by ost_add().

◆ ost_add()

static int ost_add ( Muxer * mux,
const OptionsContext * o,
enum AVMediaType type,
InputStream * ist,
OutputFilter * ofilter,
const ViewSpecifier * vs,
OutputStream ** post )
static

◆ map_auto_video()

static int map_auto_video ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1553 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ map_auto_audio()

static int map_auto_audio ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1661 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ map_auto_subtitle()

static int map_auto_subtitle ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1705 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ map_auto_data()

static int map_auto_data ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1744 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ map_manual()

static int map_manual ( Muxer * mux,
const OptionsContext * o,
const StreamMap * map )
static

Definition at line 1767 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ of_add_attachments()

static int of_add_attachments ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1852 of file ffmpeg_mux_init.c.

Referenced by create_streams().

◆ create_streams()

static int create_streams ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 1935 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ setup_sync_queues()

static int setup_sync_queues ( Muxer * mux,
AVFormatContext * oc,
int64_t buf_size_us,
int shortest )
static

Definition at line 2059 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ of_parse_iamf_audio_element_layers()

static int of_parse_iamf_audio_element_layers ( Muxer * mux,
AVStreamGroup * stg,
char * ptr )
static

Definition at line 2161 of file ffmpeg_mux_init.c.

Referenced by of_parse_group_token().

◆ of_parse_iamf_submixes()

static int of_parse_iamf_submixes ( Muxer * mux,
AVStreamGroup * stg,
char * ptr )
static

Definition at line 2237 of file ffmpeg_mux_init.c.

Referenced by of_parse_group_token().

◆ of_serialize_options()

static int of_serialize_options ( Muxer * mux,
void * obj,
AVBPrint * bp )
static

Definition at line 2366 of file ffmpeg_mux_init.c.

Referenced by of_map_group().

◆ get_stream_group_index_from_id()

static int64_t get_stream_group_index_from_id ( Muxer * mux,
int64_t id )
static

Definition at line 2407 of file ffmpeg_mux_init.c.

Referenced by of_map_group().

◆ of_map_group()

static int of_map_group ( Muxer * mux,
AVDictionary ** dict,
AVBPrint * bp,
const char * map )
static

Definition at line 2418 of file ffmpeg_mux_init.c.

Referenced by of_parse_group_token().

◆ of_parse_group_token()

static int of_parse_group_token ( Muxer * mux,
const char * token,
char * ptr )
static

Definition at line 2518 of file ffmpeg_mux_init.c.

Referenced by of_add_groups().

◆ of_add_groups()

static int of_add_groups ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 2666 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ of_add_programs()

static int of_add_programs ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 2693 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ parse_meta_type()

static int parse_meta_type ( void * logctx,
const char * arg,
char * type,
int * index,
const char ** stream_spec )
static

Parse a metadata specifier passed as 'arg' parameter.

Parameters
argmetadata string to parse
typemetadata type is written here – g(lobal)/s(tream)/c(hapter)/p(rogram)
indexfor type c/p, chapter/program index is written here
stream_specfor type s, the stream specifier is written here

Definition at line 2762 of file ffmpeg_mux_init.c.

Referenced by copy_meta(), copy_metadata(), meta_spec_matches(), and of_add_metadata().

◆ of_add_metadata()

static int of_add_metadata ( OutputFile * of,
AVFormatContext * oc,
const OptionsContext * o )
static

Definition at line 2792 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ copy_chapters()

static int copy_chapters ( InputFile * ifile,
OutputFile * ofile,
AVFormatContext * os,
int copy_metadata )
static

Definition at line 2850 of file ffmpeg_mux_init.c.

Referenced by copy_meta().

◆ copy_metadata()

static int copy_metadata ( Muxer * mux,
AVFormatContext * ic,
const char * outspec,
const char * inspec,
int * metadata_global_manual,
int * metadata_streams_manual,
int * metadata_chapters_manual )
static

Definition at line 2892 of file ffmpeg_mux_init.c.

Referenced by copy_chapters(), and copy_meta().

◆ meta_spec_matches()

static int meta_spec_matches ( void * log_ctx,
AVFormatContext * oc,
AVStream * st,
const char * spec )
static

Definition at line 3026 of file ffmpeg_mux_init.c.

Referenced by reenc_delete_metadata_key().

◆ reenc_delete_metadata_key()

static int reenc_delete_metadata_key ( const OptionsContext * o,
void * log_ctx,
AVFormatContext * oc,
AVStream * st,
const char * family,
const char * key,
int flags )
static

Definition at line 3052 of file ffmpeg_mux_init.c.

Referenced by reenc_delete_stale_metadata().

◆ reenc_delete_stale_metadata()

static int reenc_delete_stale_metadata ( const OptionsContext * o,
void * log_ctx,
AVFormatContext * oc,
AVStream * st,
AVDictionary ** dict,
const char * kind,
unsigned reenc_mask )
static

Definition at line 3092 of file ffmpeg_mux_init.c.

Referenced by copy_meta().

◆ copy_meta()

static int copy_meta ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 3126 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ set_dispositions()

static int set_dispositions ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 3244 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ compare_int64()

static int compare_int64 ( const void * a,
const void * b )
static

Definition at line 3324 of file ffmpeg_mux_init.c.

Referenced by parse_forced_key_frames().

◆ parse_forced_key_frames()

static int parse_forced_key_frames ( void * log,
KeyframeForceCtx * kf,
const Muxer * mux,
const char * spec )
static

Definition at line 3329 of file ffmpeg_mux_init.c.

Referenced by process_forced_keyframes().

◆ process_forced_keyframes()

static int process_forced_keyframes ( Muxer * mux,
const OptionsContext * o )
static

Definition at line 3415 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ output_file_item_name()

static const char * output_file_item_name ( void * obj)
static

Definition at line 3457 of file ffmpeg_mux_init.c.

◆ mux_alloc()

static Muxer * mux_alloc ( void )
static

Definition at line 3471 of file ffmpeg_mux_init.c.

Referenced by of_open().

◆ of_open()

int of_open ( const OptionsContext * o,
const char * filename,
Scheduler * sch )

Definition at line 3486 of file ffmpeg_mux_init.c.

Referenced by ffmpeg_parse_options().

Variable Documentation

◆ enc_stats_files

EncStatsFile* enc_stats_files
static

Definition at line 161 of file ffmpeg_mux_init.c.

Referenced by enc_stats_get_file(), and of_enc_stats_close().

◆ nb_enc_stats_files

int nb_enc_stats_files
static

Definition at line 162 of file ffmpeg_mux_init.c.

Referenced by enc_stats_get_file(), and of_enc_stats_close().

◆ output_stream_class

const AVClass output_stream_class
static
Initial value:
= {
.class_name = "OutputStream",
}
static const char * output_stream_item_name(void *obj)
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
@ AV_CLASS_CATEGORY_MUXER
Definition log.h:32

Definition at line 385 of file ffmpeg_mux_init.c.

Referenced by mux_stream_alloc().

◆ key

const char* key

Definition at line 2985 of file ffmpeg_mux_init.c.

Referenced by aa_read_header(), add_metadata(), add_metadata(), add_opt(), add_timecode_metadata(), amf_parse_object(), ape_tag_read_field(), av_aes_ctr_init(), av_aes_init(), av_blowfish_init(), av_camellia_init(), av_cast5_init(), av_des_init(), av_des_init(), av_dict_get(), av_dict_set(), av_dict_set_fxp(), av_dict_set_int(), av_hmac_calc(), av_hmac_init(), av_opt_get_key_value(), av_opt_query_ranges(), av_opt_query_ranges_default(), av_opt_set_from_string(), av_packet_unpack_dictionary(), av_rc4_init(), av_tea_init(), av_tree_find(), av_tree_find(), av_tree_insert(), av_twofish_init(), av_xtea_init(), av_xtea_le_init(), avi_read_packet(), avi_read_tag(), avtext_print_data(), avtext_print_data_hash(), avtext_print_integer(), avtext_print_rational(), avtext_print_string(), avtext_print_time(), avtext_print_ts(), avtext_print_unit_double(), avtext_print_unit_integer(), bsf_opt_parse(), cat_header(), check_keyboard_interaction(), checkasm_check_key(), checkasm_get_jedec_vendor_name(), checkasm_json(), checkasm_json(), checkasm_json_push(), checkasm_json_str(), cipher_init56_create_table(), cmp(), cmp_find(), cmp_insert(), compact_print_int(), compact_print_str(), compare_sl(), cri_decode_frame(), dat_read_packet(), decode_block(), decode_frame(), decode_header(), decode_key(), default_print_int(), default_print_str(), descriptor_compare(), dict_copy_entry(), dict_iterate(), djb2_hash(), do_encrypt(), dss_read_metadata_date(), dss_read_metadata_string(), ea_read_packet(), epic_add_pixel_to_cache(), epic_hash_add(), epic_hash_find(), exif_ifd_to_dict(), ff_asfcrypt_dec(), ff_attributes_dump(), ff_dict_set_timestamp(), ff_dolby_e_convert_input(), ff_dolby_e_parse_header(), ff_filter_opt_parse(), ff_hashtable_delete(), ff_hashtable_get(), ff_hashtable_set(), ff_http_auth_handle_header(), ff_id3v2_parse_priv_dict(), ff_metadata_conv(), ff_parse_key_value(), ff_read_riff_info(), ff_rtmp_calc_digest(), ff_ssl_gen_key_cert(), ff_ssl_read_key_cert(), ff_tee_parse_slave_options(), filter_frame(), filter_frame(), filter_frame(), filter_opt_apply(), flat_print_int(), flat_print_str(), free_segment_dynarray(), free_uop_key(), gain_entry_compare(), gen_roundkeys(), generate_entry_args(), generate_entry_struct(), get_geokey_name(), get_geokey_type(), get_geokey_val(), get_meta(), get_string(), get_tag(), get_tag(), gnutls_gen_certificate(), gnutls_gen_private_key(), handle_basic_params(), handle_digest_params(), handle_digest_update(), handle_init_section_args(), handle_key_args(), handle_rendition_args(), handle_variant_args(), hash_key(), hls_encryption_start(), hls_read_header(), hpel_motion_search(), id3v1_set_string(), id3v2_3_metadata_split_date(), id3v2_check_write_lang_descr_tag(), id3v2_put_priv(), ini_print_int(), ini_print_str(), init_report(), is_key_selected_callback(), ivr_read_header(), json_measurement(), json_print_int(), json_print_item_str(), json_print_str(), json_var(), libx265_param_parse_float(), libx265_param_parse_int(), main(), match_stream_specifier(), matroska_convert_tags(), mbedtls_gen_pkey(), mbedtls_gen_x509_cert(), mediaformat_jni_getBuffer(), mediaformat_jni_getFloat(), mediaformat_jni_getInt32(), mediaformat_jni_getInt64(), mediaformat_jni_getString(), mediaformat_jni_setBuffer(), mediaformat_jni_setFloat(), mediaformat_jni_setInt32(), mediaformat_jni_setInt64(), mediaformat_jni_setString(), mermaid_print_int(), mermaid_print_str(), mermaid_print_value(), metadata_header_size(), microdvd_close_no_persistent_tags(), microdvd_init(), microdvd_open_tags(), mkv_write_simpletag(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_metadata_loci(), mov_metadata_track_or_disc_number(), mov_parse_vc1_frame(), mov_read_custom(), mov_read_udta_string(), mov_write_raw_metadata_tag(), move_metadata(), mpegts_write_pes(), multiswap_dec(), multiswap_enc(), mxf_add_timecode_metadata(), mxf_add_umid_metadata(), mxf_is_partition_pack_key(), mxf_match_uid(), mxf_parse_package_comments(), mxf_read_indirect_value(), mxf_read_sync(), mxf_read_sync_klv(), mxf_write_generic_desc(), mxf_write_generic_sound_common(), mxf_write_opatom_body_partition(), mxf_write_partition(), mxf_write_wav_common(), nist_read_header(), nuv_read_dts(), offset_fn(), ogm_chapter(), open_input(), opencl_filter_device(), opencl_filter_platform(), opencl_get_device_string(), opencl_get_platform_string(), opt_preset(), parse_audio(), parse_key(), parse_key(), parse_key_value_pair(), parse_key_value_pair(), parse_legacy_attrib(), parse_playlist(), parse_str_int(), parse_utf(), pkey_to_pem_string(), print_integers(), print_sanizied_id(), put_meta(), read_info_chunk(), read_lang_descr_tag(), read_odml_index(), read_sb_block(), read_tag(), read_ttag(), read_vblock(), redspark_probe(), redspark_read_header(), reenc_delete_metadata_key(), reenc_delete_stale_metadata(), register_uop(), sab_diamond_search(), set_encoder_int_property_or_log(), set_encoder_property_or_log(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_meta(), set_metadata_float(), set_metadata_int(), set_option(), small_diamond_search(), str_to_dict(), subviewer_read_header(), sws_uops_macros_gen(), test(), test_encrypt(), tls_export_key_cert(), tls_gen_self_signed(), tls_import_key_cert(), tls_load_key_cert(), tls_open(), update_metadata(), url_alloc_for_protocol(), vgs_eval(), vgs_get_command(), viv_read_header(), vivo_read_header(), vpx_ts_param_parse(), write_metadata_header(), write_sm_data(), write_tag(), write_tag_int32(), xml_print_int(), xml_print_str(), xml_print_value(), and xor_block().

◆ flags

int flags

Definition at line 2986 of file ffmpeg_mux_init.c.

◆ reenc_mask

unsigned reenc_mask

Definition at line 2987 of file ffmpeg_mux_init.c.

Referenced by copy_meta(), and reenc_delete_stale_metadata().

◆ [struct]

const struct { ... } reenc_delete_keys[]

◆ forced_keyframes_const_names

const char* const forced_keyframes_const_names[]
static
Initial value:
= {
"n",
"n_forced",
"prev_forced_n",
"prev_forced_t",
"t",
}
#define NULL
Definition coverity.c:32

Definition at line 3315 of file ffmpeg_mux_init.c.

Referenced by process_forced_keyframes().

◆ output_file_class

const AVClass output_file_class
static
Initial value:
= {
.class_name = "OutputFile",
.item_name = output_file_item_name,
}
static const char * output_file_item_name(void *obj)

Definition at line 3464 of file ffmpeg_mux_init.c.

Referenced by mux_alloc().