|
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, 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 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 | 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. 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 | 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 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 |
| 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 |
|
static |
Definition at line 53 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 69 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 113 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 126 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 164 of file ffmpeg_mux_init.c.
Referenced by enc_stats_init().
| void of_enc_stats_close | ( | void | ) |
Definition at line 197 of file ffmpeg_mux_init.c.
Referenced by ffmpeg_cleanup().
|
static |
Definition at line 207 of file ffmpeg_mux_init.c.
Referenced by enc_stats_init().
|
static |
Definition at line 246 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 378 of file ffmpeg_mux_init.c.
|
static |
Definition at line 392 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 416 of file ffmpeg_mux_init.c.
Referenced by ost_bind_filter().
|
static |
Definition at line 440 of file ffmpeg_mux_init.c.
Referenced by new_stream_video().
|
static |
Definition at line 459 of file ffmpeg_mux_init.c.
Referenced by pix_fmt_parse().
|
static |
Definition at line 468 of file ffmpeg_mux_init.c.
Referenced by pix_fmt_parse().
|
static |
Definition at line 499 of file ffmpeg_mux_init.c.
Referenced by new_stream_video().
|
static |
Definition at line 548 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 781 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 820 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 862 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 984 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 1112 of file ffmpeg_mux_init.c.
Referenced by ost_add().
|
static |
Definition at line 1134 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 1539 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1647 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1691 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1730 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1753 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1838 of file ffmpeg_mux_init.c.
Referenced by create_streams().
|
static |
Definition at line 1921 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2045 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2147 of file ffmpeg_mux_init.c.
Referenced by of_parse_group_token().
|
static |
Definition at line 2223 of file ffmpeg_mux_init.c.
Referenced by of_parse_group_token().
|
static |
Definition at line 2352 of file ffmpeg_mux_init.c.
Referenced by of_map_group().
Definition at line 2393 of file ffmpeg_mux_init.c.
Referenced by of_map_group().
|
static |
Definition at line 2404 of file ffmpeg_mux_init.c.
Referenced by of_parse_group_token().
|
static |
Definition at line 2504 of file ffmpeg_mux_init.c.
Referenced by of_add_groups().
|
static |
Definition at line 2652 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2679 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 2748 of file ffmpeg_mux_init.c.
Referenced by copy_meta(), copy_metadata(), meta_spec_matches(), and of_add_metadata().
|
static |
Definition at line 2778 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 2836 of file ffmpeg_mux_init.c.
Referenced by copy_meta().
|
static |
Definition at line 2878 of file ffmpeg_mux_init.c.
Referenced by copy_chapters(), and copy_meta().
|
static |
Definition at line 3012 of file ffmpeg_mux_init.c.
Referenced by reenc_delete_metadata_key().
|
static |
Definition at line 3038 of file ffmpeg_mux_init.c.
Referenced by reenc_delete_stale_metadata().
|
static |
Definition at line 3078 of file ffmpeg_mux_init.c.
Referenced by copy_meta().
|
static |
Definition at line 3112 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 3230 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 3310 of file ffmpeg_mux_init.c.
Referenced by parse_forced_key_frames().
|
static |
Definition at line 3315 of file ffmpeg_mux_init.c.
Referenced by process_forced_keyframes().
|
static |
Definition at line 3393 of file ffmpeg_mux_init.c.
Referenced by of_open().
|
static |
Definition at line 3435 of file ffmpeg_mux_init.c.
|
static |
Definition at line 3449 of file ffmpeg_mux_init.c.
Referenced by of_open().
| int of_open | ( | const OptionsContext * | o, |
| const char * | filename, | ||
| Scheduler * | sch | ||
| ) |
Definition at line 3464 of file ffmpeg_mux_init.c.
|
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 162 of file ffmpeg_mux_init.c.
Referenced by enc_stats_get_file(), and of_enc_stats_close().
|
static |
Definition at line 385 of file ffmpeg_mux_init.c.
Referenced by mux_stream_alloc().
| const char* key |
Definition at line 2971 of file ffmpeg_mux_init.c.
Referenced by aa_read_header(), add_metadata(), add_opt(), add_timecode_metadata(), amf_parse_object(), ape_tag_read_field(), av_aes_init(), av_blowfish_init(), av_camellia_init(), av_cast5_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_tea_init(), 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_get_jedec_vendor_name(), checkasm_json(), checkasm_json_push(), checkasm_json_str(), cipher_init56_create_table(), cmp(), cmp_find(), cmp_id_key(), 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_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_val(), get_meta(), get_string(), 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(), 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(), opt_preset(), parse_audio(), parse_key(), 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_metadata_float(), set_metadata_int(), 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().
| int flags |
Definition at line 2972 of file ffmpeg_mux_init.c.
Referenced by reenc_delete_metadata_key(), and reenc_delete_stale_metadata().
| unsigned reenc_mask |
Definition at line 2973 of file ffmpeg_mux_init.c.
Referenced by copy_meta(), and reenc_delete_stale_metadata().
| const { ... } reenc_delete_keys[] |
Referenced by reenc_delete_stale_metadata().
|
static |
Definition at line 3301 of file ffmpeg_mux_init.c.
Referenced by process_forced_keyframes().
|
static |
Definition at line 3442 of file ffmpeg_mux_init.c.
Referenced by mux_alloc().
1.8.17