|
FFmpeg
|
#include "config.h"#include <stdint.h>#include "ffmpeg.h"#include "ffmpeg_sched.h"#include "cmdutils.h"#include "opt_common.h"#include "libavformat/avformat.h"#include "libavcodec/avcodec.h"#include "libavcodec/bsf.h"#include "libavfilter/avfilter.h"#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavutil/avutil.h"#include "libavutil/mathematics.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/parseutils.h"#include "libavutil/stereo3d.h"#include "graph/graphprint.h"Go to the source code of this file.
Data Structures | |
| struct | GlobalOptionsContext |
Macros | |
| #define | OPT_MATCH_PER_STREAM(name, type, opt_type, m) |
| #define | OFFSET(x) offsetof(OptionsContext, x) |
Functions | |
| static void | uninit_options (OptionsContext *o) |
| static void | init_options (OptionsContext *o) |
| static int | show_hwaccels (void *optctx, const char *opt, const char *arg) |
| const char * | opt_match_per_type_str (const SpecifierOptList *sol, char mediatype) |
| static unsigned | opt_match_per_stream (void *logctx, enum OptionType type, const SpecifierOptList *sol, AVFormatContext *fc, AVStream *st) |
| OPT_MATCH_PER_STREAM (str, const char *, OPT_TYPE_STRING, str) | |
| OPT_MATCH_PER_STREAM (int, int, OPT_TYPE_INT, i) | |
| OPT_MATCH_PER_STREAM (int64, int64_t, OPT_TYPE_INT64, i64) | |
| OPT_MATCH_PER_STREAM (dbl, double, OPT_TYPE_DOUBLE, dbl) | |
| int | view_specifier_parse (const char **pspec, ViewSpecifier *vs) |
| int | parse_and_set_vsync (const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global) |
| static void | correct_input_start_times (void) |
| static int | apply_sync_offsets (void) |
| static int | opt_filter_threads (void *optctx, const char *opt, const char *arg) |
| static int | opt_abort_on (void *optctx, const char *opt, const char *arg) |
| static int | opt_stats_period (void *optctx, const char *opt, const char *arg) |
| static int | opt_audio_codec (void *optctx, const char *opt, const char *arg) |
| static int | opt_video_codec (void *optctx, const char *opt, const char *arg) |
| static int | opt_subtitle_codec (void *optctx, const char *opt, const char *arg) |
| static int | opt_data_codec (void *optctx, const char *opt, const char *arg) |
| static int | opt_map (void *optctx, const char *opt, const char *arg) |
| static int | opt_attach (void *optctx, const char *opt, const char *arg) |
| static int | opt_sdp_file (void *optctx, const char *opt, const char *arg) |
| static int | opt_init_hw_device (void *optctx, const char *opt, const char *arg) |
| static int | opt_filter_hw_device (void *optctx, const char *opt, const char *arg) |
| static int | opt_recording_timestamp (void *optctx, const char *opt, const char *arg) |
| int | find_codec (void *logctx, const char *name, enum AVMediaType type, int encoder, const AVCodec **pcodec) |
| int | assert_file_overwrite (const char *filename) |
| static int | opt_streamid (void *optctx, const char *opt, const char *arg) |
| static int | opt_target (void *optctx, const char *opt, const char *arg) |
| static int | opt_vstats_file (void *optctx, const char *opt, const char *arg) |
| static int | opt_vstats (void *optctx, const char *opt, const char *arg) |
| static int | opt_video_frames (void *optctx, const char *opt, const char *arg) |
| static int | opt_audio_frames (void *optctx, const char *opt, const char *arg) |
| static int | opt_data_frames (void *optctx, const char *opt, const char *arg) |
| static int | opt_default_new (OptionsContext *o, const char *opt, const char *arg) |
| static int | opt_preset (void *optctx, const char *opt, const char *arg) |
| static int | opt_old2new (void *optctx, const char *opt, const char *arg) |
| static int | opt_bitrate (void *optctx, const char *opt, const char *arg) |
| static int | opt_qscale (void *optctx, const char *opt, const char *arg) |
| static int | opt_profile (void *optctx, const char *opt, const char *arg) |
| static int | opt_video_filters (void *optctx, const char *opt, const char *arg) |
| static int | opt_audio_filters (void *optctx, const char *opt, const char *arg) |
| static int | opt_vsync (void *optctx, const char *opt, const char *arg) |
| static int | opt_timecode (void *optctx, const char *opt, const char *arg) |
| static int | opt_audio_qscale (void *optctx, const char *opt, const char *arg) |
| static int | opt_filter_complex (void *optctx, const char *opt, const char *arg) |
| static int | opt_filter_complex_script (void *optctx, const char *opt, const char *arg) |
| void | show_help_default (const char *opt, const char *arg) |
| Per-fftool specific help handler. More... | |
| void | show_usage (void) |
Variables | |
| HWDevice * | filter_hw_device |
| char * | vstats_filename |
| float | dts_delta_threshold = 10 |
| float | dts_error_threshold = 3600*30 |
| enum VideoSyncMethod | video_sync_method = VSYNC_AUTO |
| float | frame_drop_threshold = 0 |
| int | do_benchmark = 0 |
| int | do_benchmark_all = 0 |
| int | do_hex_dump = 0 |
| int | do_pkt_dump = 0 |
| int | copy_ts = 0 |
| int | start_at_zero = 0 |
| int | copy_tb = -1 |
| int | debug_ts = 0 |
| int | exit_on_error = 0 |
| int | abort_on_flags = 0 |
| int | print_stats = -1 |
| int | stdin_interaction = 1 |
| float | max_error_rate = 2.0/3 |
| char * | filter_nbthreads |
| int | filter_complex_nbthreads = 0 |
| int | filter_buffered_frames = 0 |
| int | vstats_version = 2 |
| int | print_graphs = 0 |
| char * | print_graphs_file = NULL |
| char * | print_graphs_format = NULL |
| int | auto_conversion_filters = 1 |
| int64_t | stats_period = 500000 |
| static int | file_overwrite = 0 |
| static int | no_file_overwrite = 0 |
| int | ignore_unknown_streams = 0 |
| int | copy_unknown_streams = 0 |
| int | recast_media = 0 |
Definition at line 231 of file ffmpeg_opt.c.
| #define OFFSET | ( | x | ) | offsetof(OptionsContext, x) |
|
static |
Definition at line 102 of file ffmpeg_opt.c.
|
static |
Definition at line 138 of file ffmpeg_opt.c.
|
static |
Definition at line 156 of file ffmpeg_opt.c.
| const char* opt_match_per_type_str | ( | const SpecifierOptList * | sol, |
| char | mediatype | ||
| ) |
Definition at line 168 of file ffmpeg_opt.c.
Referenced by ifile_open(), map_auto_subtitle(), and opt_preset().
|
static |
Definition at line 181 of file ffmpeg_opt.c.
| OPT_MATCH_PER_STREAM | ( | str | , |
| const char * | , | ||
| OPT_TYPE_STRING | , | ||
| str | |||
| ) |
| OPT_MATCH_PER_STREAM | ( | int | , |
| int | , | ||
| OPT_TYPE_INT | , | ||
| i | |||
| ) |
| OPT_MATCH_PER_STREAM | ( | int64 | , |
| int64_t | , | ||
| OPT_TYPE_INT64 | , | ||
| i64 | |||
| ) |
| OPT_MATCH_PER_STREAM | ( | dbl | , |
| double | , | ||
| OPT_TYPE_DOUBLE | , | ||
| dbl | |||
| ) |
| int view_specifier_parse | ( | const char ** | pspec, |
| ViewSpecifier * | vs | ||
| ) |
Definition at line 245 of file ffmpeg_opt.c.
Referenced by fg_complex_bind_input(), and opt_map().
| int parse_and_set_vsync | ( | const char * | arg, |
| int * | vsync_var, | ||
| int | file_idx, | ||
| int | st_idx, | ||
| int | is_global | ||
| ) |
Definition at line 298 of file ffmpeg_opt.c.
Referenced by new_stream_video(), and opt_vsync().
|
static |
Definition at line 334 of file ffmpeg_opt.c.
|
static |
Definition at line 371 of file ffmpeg_opt.c.
|
static |
Definition at line 423 of file ffmpeg_opt.c.
|
static |
Definition at line 430 of file ffmpeg_opt.c.
|
static |
Definition at line 449 of file ffmpeg_opt.c.
|
static |
Definition at line 467 of file ffmpeg_opt.c.
Referenced by opt_preset(), and opt_target().
|
static |
Definition at line 473 of file ffmpeg_opt.c.
Referenced by opt_preset(), and opt_target().
|
static |
Definition at line 479 of file ffmpeg_opt.c.
Referenced by opt_preset().
|
static |
Definition at line 485 of file ffmpeg_opt.c.
Referenced by opt_preset().
|
static |
Definition at line 491 of file ffmpeg_opt.c.
|
static |
Definition at line 611 of file ffmpeg_opt.c.
|
static |
Definition at line 625 of file ffmpeg_opt.c.
|
static |
Definition at line 663 of file ffmpeg_opt.c.
|
static |
Definition at line 678 of file ffmpeg_opt.c.
|
static |
Definition at line 692 of file ffmpeg_opt.c.
| int find_codec | ( | void * | logctx, |
| const char * | name, | ||
| enum AVMediaType | type, | ||
| int | encoder, | ||
| const AVCodec ** | pcodec | ||
| ) |
Definition at line 715 of file ffmpeg_opt.c.
Referenced by choose_decoder(), choose_encoder(), and ifile_open().
| int assert_file_overwrite | ( | const char * | filename | ) |
Definition at line 748 of file ffmpeg_opt.c.
Referenced by dump_attachment(), and of_open().
|
static |
Definition at line 794 of file ffmpeg_opt.c.
|
static |
Definition at line 813 of file ffmpeg_opt.c.
|
static |
Definition at line 956 of file ffmpeg_opt.c.
Referenced by opt_vstats().
|
static |
Definition at line 963 of file ffmpeg_opt.c.
|
static |
Definition at line 979 of file ffmpeg_opt.c.
|
static |
Definition at line 985 of file ffmpeg_opt.c.
|
static |
Definition at line 991 of file ffmpeg_opt.c.
|
static |
Definition at line 997 of file ffmpeg_opt.c.
Referenced by opt_preset().
|
static |
Definition at line 1017 of file ffmpeg_opt.c.
|
static |
Definition at line 1068 of file ffmpeg_opt.c.
|
static |
Definition at line 1080 of file ffmpeg_opt.c.
|
static |
Definition at line 1096 of file ffmpeg_opt.c.
|
static |
Definition at line 1113 of file ffmpeg_opt.c.
|
static |
Definition at line 1125 of file ffmpeg_opt.c.
|
static |
Definition at line 1131 of file ffmpeg_opt.c.
|
static |
Definition at line 1138 of file ffmpeg_opt.c.
|
static |
Definition at line 1145 of file ffmpeg_opt.c.
|
static |
Definition at line 1159 of file ffmpeg_opt.c.
|
static |
Definition at line 1165 of file ffmpeg_opt.c.
|
static |
Definition at line 1186 of file ffmpeg_opt.c.
| void show_help_default | ( | const char * | opt, |
| const char * | arg | ||
| ) |
Per-fftool specific help handler.
Implemented in each fftool, called by show_help().
Definition at line 1210 of file ffmpeg_opt.c.
| void show_usage | ( | void | ) |
Definition at line 1327 of file ffmpeg_opt.c.
Referenced by main(), and show_help_default().
| HWDevice* filter_hw_device |
Definition at line 52 of file ffmpeg_opt.c.
Referenced by hw_device_for_filter(), and opt_filter_hw_device().
| char* vstats_filename |
Definition at line 54 of file ffmpeg_opt.c.
Referenced by encode_frame(), ffmpeg_cleanup(), opt_vstats_file(), and update_video_stats().
| float dts_delta_threshold = 10 |
Definition at line 56 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect().
| float dts_error_threshold = 3600*30 |
Definition at line 57 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect(), and video_sync_process().
| enum VideoSyncMethod video_sync_method = VSYNC_AUTO |
Definition at line 60 of file ffmpeg_opt.c.
Referenced by new_stream_video(), opt_vsync(), and parse_and_set_vsync().
| float frame_drop_threshold = 0 |
Definition at line 62 of file ffmpeg_opt.c.
Referenced by video_sync_process().
| int do_benchmark = 0 |
Definition at line 63 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), and main().
| int do_benchmark_all = 0 |
Definition at line 64 of file ffmpeg_opt.c.
Referenced by update_benchmark().
| int do_hex_dump = 0 |
Definition at line 65 of file ffmpeg_opt.c.
Referenced by input_thread().
| int do_pkt_dump = 0 |
Definition at line 66 of file ffmpeg_opt.c.
Referenced by input_thread().
| int copy_ts = 0 |
Definition at line 67 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), correct_input_start_times(), ifile_open(), input_packet_process(), ist_filter_add(), new_stream_video(), print_report(), readrate_sleep(), streamcopy_init(), and ts_discontinuity_detect().
| int start_at_zero = 0 |
Definition at line 68 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), correct_input_start_times(), ifile_open(), input_packet_process(), ist_filter_add(), and readrate_sleep().
| int copy_tb = -1 |
Definition at line 69 of file ffmpeg_opt.c.
| int debug_ts = 0 |
Definition at line 70 of file ffmpeg_opt.c.
Referenced by adjust_frame_pts_to_encoder_tb(), encode_frame(), fg_output_step(), input_packet_process(), mux_fixup_ts(), and video_frame_process().
| int exit_on_error = 0 |
Definition at line 71 of file ffmpeg_opt.c.
Referenced by do_subtitle_out(), input_thread(), multiview_setup(), mux_fixup_ts(), mux_packet_filter(), packet_decode(), and transcode_subtitles().
| int abort_on_flags = 0 |
Definition at line 72 of file ffmpeg_opt.c.
Referenced by check_written(), and opt_abort_on().
| int print_stats = -1 |
Definition at line 73 of file ffmpeg_opt.c.
Referenced by print_report().
| int stdin_interaction = 1 |
Definition at line 74 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite(), ifile_open(), term_init(), and transcode().
| float max_error_rate = 2.0/3 |
Definition at line 75 of file ffmpeg_opt.c.
Referenced by decoder_thread().
| char* filter_nbthreads |
Definition at line 76 of file ffmpeg_opt.c.
Referenced by configure_filtergraph(), ffmpeg_cleanup(), and opt_filter_threads().
| int filter_complex_nbthreads = 0 |
Definition at line 77 of file ffmpeg_opt.c.
Referenced by configure_filtergraph().
| int filter_buffered_frames = 0 |
Definition at line 78 of file ffmpeg_opt.c.
Referenced by configure_filtergraph().
| int vstats_version = 2 |
Definition at line 79 of file ffmpeg_opt.c.
Referenced by update_video_stats().
| int print_graphs = 0 |
Definition at line 80 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), filter_thread(), and print_filtergraphs_priv().
| char* print_graphs_file = NULL |
Definition at line 81 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), filter_thread(), and print_filtergraphs_priv().
| char* print_graphs_format = NULL |
Definition at line 82 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), and init_graphprint().
| int auto_conversion_filters = 1 |
Definition at line 83 of file ffmpeg_opt.c.
Referenced by fg_create().
| int64_t stats_period = 500000 |
Definition at line 84 of file ffmpeg_opt.c.
Referenced by opt_stats_period(), print_report(), and transcode().
|
static |
Definition at line 87 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite().
|
static |
Definition at line 88 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite().
| int ignore_unknown_streams = 0 |
Definition at line 89 of file ffmpeg_opt.c.
Referenced by map_manual().
| int copy_unknown_streams = 0 |
Definition at line 90 of file ffmpeg_opt.c.
Referenced by map_manual().
| int recast_media = 0 |
Definition at line 91 of file ffmpeg_opt.c.
Referenced by choose_decoder(), and find_codec().
1.8.17