FFmpeg
|
#include "config.h"
#include <stdint.h>
#include "ffmpeg.h"
#include "cmdutils.h"
#include "opt_common.h"
#include "sync_queue.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/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/display.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/fifo.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
Go to the source code of this file.
Macros | |
#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) |
AVDictionary * | strip_specifiers (const AVDictionary *dict) |
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_map_channel (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) |
char * | file_read (const char *filename) |
static int | opt_streamid (void *optctx, const char *opt, const char *arg) |
static int | init_complex_filters (void) |
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) |
#define OFFSET | ( | x | ) | offsetof(OptionsContext, x) |
|
static |
Definition at line 103 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.
AVDictionary* strip_specifiers | ( | const AVDictionary * | dict | ) |
Definition at line 169 of file ffmpeg_opt.c.
Referenced by ifile_open(), and validate_enc_avopt().
int parse_and_set_vsync | ( | const char * | arg, |
int * | vsync_var, | ||
int | file_idx, | ||
int | st_idx, | ||
int | is_global | ||
) |
Definition at line 186 of file ffmpeg_opt.c.
Referenced by new_stream_video(), and opt_vsync().
|
static |
Definition at line 214 of file ffmpeg_opt.c.
|
static |
Definition at line 251 of file ffmpeg_opt.c.
|
static |
Definition at line 303 of file ffmpeg_opt.c.
|
static |
Definition at line 310 of file ffmpeg_opt.c.
|
static |
Definition at line 329 of file ffmpeg_opt.c.
|
static |
Definition at line 347 of file ffmpeg_opt.c.
Referenced by opt_preset(), and opt_target().
|
static |
Definition at line 353 of file ffmpeg_opt.c.
Referenced by opt_preset(), and opt_target().
|
static |
Definition at line 359 of file ffmpeg_opt.c.
Referenced by opt_preset().
|
static |
Definition at line 365 of file ffmpeg_opt.c.
Referenced by opt_preset().
|
static |
Definition at line 371 of file ffmpeg_opt.c.
|
static |
Definition at line 476 of file ffmpeg_opt.c.
|
static |
Definition at line 488 of file ffmpeg_opt.c.
|
static |
Definition at line 580 of file ffmpeg_opt.c.
|
static |
Definition at line 619 of file ffmpeg_opt.c.
|
static |
Definition at line 634 of file ffmpeg_opt.c.
|
static |
Definition at line 648 of file ffmpeg_opt.c.
int find_codec | ( | void * | logctx, |
const char * | name, | ||
enum AVMediaType | type, | ||
int | encoder, | ||
const AVCodec ** | pcodec | ||
) |
Definition at line 671 of file ffmpeg_opt.c.
Referenced by choose_decoder(), choose_encoder(), and ifile_open().
int assert_file_overwrite | ( | const char * | filename | ) |
Definition at line 704 of file ffmpeg_opt.c.
Referenced by dump_attachment(), and of_open().
char* file_read | ( | const char * | filename | ) |
Definition at line 750 of file ffmpeg_opt.c.
Referenced by filter_opt_apply(), new_stream_video(), opt_filter_complex_script(), and ost_get_filters().
|
static |
Definition at line 776 of file ffmpeg_opt.c.
|
static |
Definition at line 795 of file ffmpeg_opt.c.
|
static |
Definition at line 807 of file ffmpeg_opt.c.
|
static |
Definition at line 950 of file ffmpeg_opt.c.
Referenced by opt_vstats().
|
static |
Definition at line 957 of file ffmpeg_opt.c.
|
static |
Definition at line 973 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.
Referenced by opt_preset().
|
static |
Definition at line 1011 of file ffmpeg_opt.c.
|
static |
Definition at line 1063 of file ffmpeg_opt.c.
|
static |
Definition at line 1075 of file ffmpeg_opt.c.
|
static |
Definition at line 1091 of file ffmpeg_opt.c.
|
static |
Definition at line 1108 of file ffmpeg_opt.c.
|
static |
Definition at line 1120 of file ffmpeg_opt.c.
|
static |
Definition at line 1126 of file ffmpeg_opt.c.
|
static |
Definition at line 1132 of file ffmpeg_opt.c.
|
static |
Definition at line 1138 of file ffmpeg_opt.c.
|
static |
Definition at line 1152 of file ffmpeg_opt.c.
|
static |
Definition at line 1158 of file ffmpeg_opt.c.
|
static |
Definition at line 1167 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 1176 of file ffmpeg_opt.c.
void show_usage | ( | void | ) |
Definition at line 1248 of file ffmpeg_opt.c.
Referenced by main(), and show_help_default().
const char* const opt_name_codec_names[] = {"c", "codec", "acodec", "vcodec", "scodec", "dcodec", NULL} |
Definition at line 56 of file ffmpeg_opt.c.
const char* const opt_name_frame_rates[] = {"r", NULL} |
Definition at line 57 of file ffmpeg_opt.c.
const char* const opt_name_codec_tags[] = {"tag", "atag", "vtag", "stag", NULL} |
Definition at line 58 of file ffmpeg_opt.c.
const char* const opt_name_top_field_first[] = {"top", NULL} |
Definition at line 60 of file ffmpeg_opt.c.
HWDevice* filter_hw_device |
Definition at line 63 of file ffmpeg_opt.c.
Referenced by hw_device_for_filter(), and opt_filter_hw_device().
char* vstats_filename |
Definition at line 65 of file ffmpeg_opt.c.
Referenced by encode_frame(), ffmpeg_cleanup(), opt_vstats_file(), and update_video_stats().
char* sdp_filename |
Definition at line 66 of file ffmpeg_opt.c.
Referenced by mux_check_init(), opt_sdp_file(), and print_sdp().
float audio_drift_threshold = 0.1 |
Definition at line 68 of file ffmpeg_opt.c.
float dts_delta_threshold = 10 |
Definition at line 69 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect().
float dts_error_threshold = 3600*30 |
Definition at line 70 of file ffmpeg_opt.c.
Referenced by ts_discontinuity_detect(), and video_sync_process().
enum VideoSyncMethod video_sync_method = VSYNC_AUTO |
Definition at line 72 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 73 of file ffmpeg_opt.c.
Referenced by video_sync_process().
int do_benchmark = 0 |
Definition at line 74 of file ffmpeg_opt.c.
Referenced by ffmpeg_cleanup(), and main().
int do_benchmark_all = 0 |
Definition at line 75 of file ffmpeg_opt.c.
Referenced by update_benchmark().
int do_hex_dump = 0 |
Definition at line 76 of file ffmpeg_opt.c.
Referenced by input_thread().
int do_pkt_dump = 0 |
Definition at line 77 of file ffmpeg_opt.c.
Referenced by input_thread().
int copy_ts = 0 |
Definition at line 78 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), configure_input_audio_filter(), configure_input_video_filter(), correct_input_start_times(), ifile_open(), new_stream_video(), print_report(), process_input_packet(), readrate_sleep(), streamcopy_init(), and ts_discontinuity_detect().
int start_at_zero = 0 |
Definition at line 79 of file ffmpeg_opt.c.
Referenced by apply_sync_offsets(), configure_input_audio_filter(), configure_input_video_filter(), correct_input_start_times(), ifile_open(), process_input_packet(), and readrate_sleep().
int copy_tb = -1 |
Definition at line 80 of file ffmpeg_opt.c.
Referenced by avformat_transfer_internal_stream_timing_info(), and streamcopy_init().
int debug_ts = 0 |
Definition at line 81 of file ffmpeg_opt.c.
Referenced by adjust_frame_pts_to_encoder_tb(), encode_frame(), fg_output_step(), input_packet_process(), video_frame_process(), and write_packet().
int exit_on_error = 0 |
Definition at line 82 of file ffmpeg_opt.c.
Referenced by enc_subtitle(), input_thread(), of_output_packet(), packet_decode(), process_input(), transcode_subtitles(), and write_packet().
int abort_on_flags = 0 |
Definition at line 83 of file ffmpeg_opt.c.
Referenced by check_written(), and opt_abort_on().
int print_stats = -1 |
Definition at line 84 of file ffmpeg_opt.c.
Referenced by print_report().
int stdin_interaction = 1 |
Definition at line 85 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 86 of file ffmpeg_opt.c.
Referenced by transcode().
char* filter_nbthreads |
Definition at line 87 of file ffmpeg_opt.c.
Referenced by configure_filtergraph(), ffmpeg_cleanup(), and opt_filter_threads().
int filter_complex_nbthreads = 0 |
Definition at line 88 of file ffmpeg_opt.c.
Referenced by configure_filtergraph().
int vstats_version = 2 |
Definition at line 89 of file ffmpeg_opt.c.
Referenced by update_video_stats().
int auto_conversion_filters = 1 |
Definition at line 90 of file ffmpeg_opt.c.
Referenced by fg_create().
int64_t stats_period = 500000 |
Definition at line 91 of file ffmpeg_opt.c.
Referenced by opt_stats_period(), and print_report().
|
static |
Definition at line 94 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite().
|
static |
Definition at line 95 of file ffmpeg_opt.c.
Referenced by assert_file_overwrite().
int do_psnr = 0 |
Definition at line 97 of file ffmpeg_opt.c.
Referenced by new_stream_video().
int ignore_unknown_streams = 0 |
Definition at line 99 of file ffmpeg_opt.c.
Referenced by map_manual().
int copy_unknown_streams = 0 |
Definition at line 100 of file ffmpeg_opt.c.
Referenced by map_manual().
int recast_media = 0 |
Definition at line 101 of file ffmpeg_opt.c.
Referenced by choose_decoder(), and find_codec().