FFmpeg
|
#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"
Go to the source code of this file.
Data Structures | |
struct | EncStatsFile |
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, OutputStream *ost, 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 MuxStream * | mux_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 | fmt_in_list (const int *formats, int format) |
static enum AVPixelFormat | choose_pixel_fmt (const AVCodec *codec, 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) |
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 | streamcopy_init (const Muxer *mux, OutputStream *ost) |
static int | ost_add (Muxer *mux, const OptionsContext *o, enum AVMediaType type, InputStream *ist, OutputFilter *ofilter, 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) |
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_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. More... | |
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 | 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 int | validate_enc_avopt (Muxer *mux, const AVDictionary *codec_avopt) |
static const char * | output_file_item_name (void *obj) |
static Muxer * | mux_alloc (void) |
int | of_open (const OptionsContext *o, const char *filename, Scheduler *sch) |
Variables | |
static EncStatsFile * | enc_stats_files |
static int | nb_enc_stats_files |
static const AVClass | output_stream_class |
const char *const | forced_keyframes_const_names [] |
static const AVClass | output_file_class |
|
static |
Definition at line 53 of file ffmpeg_mux_init.c.
|
static |
Definition at line 69 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 112 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 125 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 163 of file ffmpeg_mux_init.c.
Referenced by enc_stats_init().
void of_enc_stats_close | ( | void | ) |
Definition at line 196 of file ffmpeg_mux_init.c.
Referenced by ffmpeg_cleanup().
|
static |
Definition at line 206 of file ffmpeg_mux_init.c.
Referenced by enc_stats_init().
|
static |
Definition at line 245 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 377 of file ffmpeg_mux_init.c.
|
static |
Definition at line 391 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 415 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 486 of file ffmpeg_mux_init.c.
Referenced by new_stream_video().
Definition at line 505 of file ffmpeg_mux_init.c.
Referenced by pix_fmt_parse().
|
static |
Definition at line 514 of file ffmpeg_mux_init.c.
Referenced by pix_fmt_parse().
|
static |
Definition at line 539 of file ffmpeg_mux_init.c.
Referenced by new_stream_video().
|
static |
Definition at line 582 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 824 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 869 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 910 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 1035 of file ffmpeg_mux_init.c.
Referenced by create_streams(), map_auto_audio(), map_auto_data(), map_auto_subtitle(), map_auto_video(), map_manual(), and of_add_attachments().
|
static |
Definition at line 1438 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1491 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1535 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1574 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1597 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1672 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1752 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 1849 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 1949 of file ffmpeg_mux_init.c.
Referenced by of_parse_group_token().
|
static |
Definition at line 2025 of file ffmpeg_mux_init.c.
Referenced by of_parse_group_token().
Definition at line 2154 of file ffmpeg_mux_init.c.
Referenced by of_add_groups().
|
static |
Definition at line 2271 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2298 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Parse a metadata specifier passed as 'arg' parameter.
arg | metadata string to parse |
type | metadata type is written here – g(lobal)/s(tream)/c(hapter)/p(rogram) |
index | for type c/p, chapter/program index is written here |
stream_spec | for type s, the stream specifier is written here |
Definition at line 2367 of file ffmpeg_mux_init.c.
Referenced by copy_metadata(), and of_add_metadata().
|
static |
Definition at line 2397 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2455 of file ffmpeg_mux_init.c.
Referenced by copy_meta().
|
static |
Definition at line 2497 of file ffmpeg_mux_init.c.
Referenced by copy_chapters(), and copy_meta().
|
static |
Definition at line 2584 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2659 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2739 of file ffmpeg_mux_init.c.
Referenced by parse_forced_key_frames().
|
static |
Definition at line 2744 of file ffmpeg_mux_init.c.
Referenced by process_forced_keyframes().
|
static |
Definition at line 2818 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2863 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2909 of file ffmpeg_mux_init.c.
|
static |
Definition at line 2923 of file ffmpeg_mux_init.c.
Referenced by of_open().
int of_open | ( | const OptionsContext * | o, |
const char * | filename, | ||
Scheduler * | sch | ||
) |
Definition at line 2938 of file ffmpeg_mux_init.c.
|
static |
Definition at line 160 of file ffmpeg_mux_init.c.
Referenced by enc_stats_get_file(), and of_enc_stats_close().
|
static |
Definition at line 161 of file ffmpeg_mux_init.c.
Referenced by enc_stats_get_file(), and of_enc_stats_close().
|
static |
Definition at line 384 of file ffmpeg_mux_init.c.
Referenced by mux_stream_alloc().
const char* const forced_keyframes_const_names[] |
Definition at line 2730 of file ffmpeg_mux_init.c.
Referenced by process_forced_keyframes().
|
static |
Definition at line 2916 of file ffmpeg_mux_init.c.
Referenced by mux_alloc().