Libav
|
#include <stdint.h>
#include "avconv.h"
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/avutil.h"
#include "libavutil/channel_layout.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"
#include "cmdutils_common_opts.h"
Go to the source code of this file.
Macros | |
#define | MATCH_PER_STREAM_OPT(name, type, outvar, fmtctx, st) |
#define | METADATA_CHECK_INDEX(index, nb_elems, desc) |
#define | SET_DICT(type, meta, context, index) |
#define | NEW_STREAM(type, index) |
#define | OFFSET(x) offsetof(OptionsContext, x) |
Enumerations | |
enum | OptGroup { GROUP_OUTFILE, GROUP_INFILE } |
Functions | |
static void | uninit_options (OptionsContext *o) |
static void | init_options (OptionsContext *o) |
static AVDictionary * | strip_specifiers (AVDictionary *dict) |
static double | parse_frame_aspect_ratio (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 void | parse_meta_type (char *arg, char *type, int *index, const char **stream_spec) |
Parse a metadata specifier passed as 'arg' parameter. More... | |
static int | copy_metadata (char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) |
static AVCodec * | find_codec_or_die (const char *name, enum AVMediaType type, int encoder) |
static AVCodec * | choose_decoder (OptionsContext *o, AVFormatContext *s, AVStream *st) |
static void | add_input_streams (OptionsContext *o, AVFormatContext *ic) |
static void | assert_file_overwrite (const char *filename) |
static void | dump_attachment (AVStream *st, const char *filename) |
static int | open_input_file (OptionsContext *o, const char *filename) |
static uint8_t * | get_line (AVIOContext *s) |
static int | get_preset_file_2 (const char *preset_name, const char *codec_name, AVIOContext **s) |
static void | choose_encoder (OptionsContext *o, AVFormatContext *s, OutputStream *ost) |
static OutputStream * | new_output_stream (OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) |
static void | parse_matrix_coeffs (uint16_t *dest, const char *str) |
static uint8_t * | read_file (const char *filename) |
static char * | get_ost_filters (OptionsContext *o, AVFormatContext *oc, OutputStream *ost) |
static OutputStream * | new_video_stream (OptionsContext *o, AVFormatContext *oc) |
static OutputStream * | new_audio_stream (OptionsContext *o, AVFormatContext *oc) |
static OutputStream * | new_data_stream (OptionsContext *o, AVFormatContext *oc) |
static OutputStream * | new_attachment_stream (OptionsContext *o, AVFormatContext *oc) |
static OutputStream * | new_subtitle_stream (OptionsContext *o, AVFormatContext *oc) |
static int | opt_streamid (void *optctx, const char *opt, const char *arg) |
static int | copy_chapters (InputFile *ifile, OutputFile *ofile, int copy_metadata) |
static void | init_output_filter (OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc) |
static int | configure_complex_filters (void) |
static int | open_output_file (OptionsContext *o, const char *filename) |
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_video_tag (void *optctx, const char *opt, const char *arg) |
static int | opt_audio_tag (void *optctx, const char *opt, const char *arg) |
static int | opt_subtitle_tag (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_channel_layout (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-avtool specific help handler. More... | |
void | show_usage (void) |
static int | open_files (OptionGroupList *l, const char *inout, int(*open_file)(OptionsContext *, const char *)) |
int | avconv_parse_options (int argc, char **argv) |
Variables | |
const HWAccel | hwaccels [] |
char * | vstats_filename |
float | audio_drift_threshold = 0.1 |
float | dts_delta_threshold = 10 |
int | audio_volume = 256 |
int | audio_sync_method = 0 |
int | video_sync_method = VSYNC_AUTO |
int | do_benchmark = 0 |
int | do_hex_dump = 0 |
int | do_pkt_dump = 0 |
int | copy_ts = 0 |
int | copy_tb = 1 |
int | exit_on_error = 0 |
int | print_stats = 1 |
int | qp_hist = 0 |
static int | file_overwrite = 0 |
static int | file_skip = 0 |
static int | video_discard = 0 |
static int | intra_dc_precision = 8 |
static int | using_stdin = 0 |
static int | input_sync |
static const OptionGroupDef | groups [] |
const OptionDef | options [] |
#define MATCH_PER_STREAM_OPT | ( | name, | |
type, | |||
outvar, | |||
fmtctx, | |||
st | |||
) |
Definition at line 44 of file avconv_opt.c.
Referenced by add_input_streams(), choose_decoder(), choose_encoder(), get_ost_filters(), new_audio_stream(), new_output_stream(), and new_video_stream().
#define METADATA_CHECK_INDEX | ( | index, | |
nb_elems, | |||
desc | |||
) |
#define SET_DICT | ( | type, | |
meta, | |||
context, | |||
index | |||
) |
Referenced by copy_metadata().
#define NEW_STREAM | ( | type, | |
index | |||
) |
Referenced by open_output_file().
#define OFFSET | ( | x | ) | offsetof(OptionsContext, x) |
Definition at line 2151 of file avconv_opt.c.
enum OptGroup |
Enumerator | |
---|---|
GROUP_OUTFILE | |
GROUP_INFILE |
Definition at line 2062 of file avconv_opt.c.
|
static |
Definition at line 87 of file avconv_opt.c.
Referenced by open_files().
|
static |
Definition at line 118 of file avconv_opt.c.
Referenced by open_files().
|
static |
Definition at line 131 of file avconv_opt.c.
Referenced by open_input_file(), and open_output_file().
|
static |
Definition at line 148 of file avconv_opt.c.
Referenced by new_video_stream().
|
static |
Definition at line 172 of file avconv_opt.c.
Referenced by opt_target().
|
static |
Definition at line 178 of file avconv_opt.c.
Referenced by opt_target().
|
static |
Definition at line 184 of file avconv_opt.c.
|
static |
Definition at line 190 of file avconv_opt.c.
|
static |
Definition at line 196 of file avconv_opt.c.
|
static |
Definition at line 291 of file avconv_opt.c.
|
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 306 of file avconv_opt.c.
Referenced by copy_metadata(), and open_output_file().
|
static |
Definition at line 333 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 413 of file avconv_opt.c.
Referenced by choose_decoder(), and choose_encoder().
|
static |
Definition at line 442 of file avconv_opt.c.
Referenced by add_input_streams(), and open_input_file().
|
static |
Definition at line 457 of file avconv_opt.c.
Referenced by open_input_file().
|
static |
Definition at line 554 of file avconv_opt.c.
Referenced by dump_attachment(), and open_output_file().
Definition at line 581 of file avconv_opt.c.
Referenced by open_input_file().
|
static |
Definition at line 613 of file avconv_opt.c.
Referenced by avconv_parse_options().
|
static |
Definition at line 791 of file avconv_opt.c.
Referenced by new_output_stream().
|
static |
Definition at line 810 of file avconv_opt.c.
Referenced by new_output_stream().
|
static |
Definition at line 836 of file avconv_opt.c.
Referenced by new_output_stream().
|
static |
Definition at line 853 of file avconv_opt.c.
Referenced by new_attachment_stream(), new_audio_stream(), new_data_stream(), new_subtitle_stream(), and new_video_stream().
|
static |
Definition at line 964 of file avconv_opt.c.
Referenced by new_video_stream().
|
static |
Definition at line 982 of file avconv_opt.c.
Referenced by get_ost_filters(), and opt_filter_complex_script().
|
static |
Definition at line 1010 of file avconv_opt.c.
Referenced by new_audio_stream(), and new_video_stream().
|
static |
Definition at line 1034 of file avconv_opt.c.
Referenced by init_output_filter(), and open_output_file().
|
static |
Definition at line 1155 of file avconv_opt.c.
Referenced by init_output_filter(), and open_output_file().
|
static |
Definition at line 1189 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1202 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1210 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1226 of file avconv_opt.c.
|
static |
Definition at line 1248 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1291 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1325 of file avconv_opt.c.
Referenced by open_output_file().
|
static |
Definition at line 1336 of file avconv_opt.c.
Referenced by avconv_parse_options().
|
static |
Definition at line 1707 of file avconv_opt.c.
|
static |
Definition at line 1845 of file avconv_opt.c.
Referenced by opt_vstats().
|
static |
Definition at line 1852 of file avconv_opt.c.
|
static |
Definition at line 1863 of file avconv_opt.c.
|
static |
Definition at line 1869 of file avconv_opt.c.
|
static |
Definition at line 1875 of file avconv_opt.c.
|
static |
Definition at line 1881 of file avconv_opt.c.
|
static |
Definition at line 1887 of file avconv_opt.c.
|
static |
Definition at line 1893 of file avconv_opt.c.
|
static |
Definition at line 1899 of file avconv_opt.c.
|
static |
Definition at line 1905 of file avconv_opt.c.
|
static |
Definition at line 1911 of file avconv_opt.c.
|
static |
Definition at line 1922 of file avconv_opt.c.
|
static |
Definition at line 1958 of file avconv_opt.c.
|
static |
Definition at line 1964 of file avconv_opt.c.
|
static |
Definition at line 1976 of file avconv_opt.c.
void show_help_default | ( | const char * | opt, |
const char * | arg | ||
) |
Per-avtool specific help handler.
Implemented in each avtool, called by show_help().
Definition at line 1990 of file avconv_opt.c.
Referenced by show_help().
Definition at line 2055 of file avconv_opt.c.
Referenced by main(), and show_help_default().
|
static |
Definition at line 2072 of file avconv_opt.c.
Referenced by avconv_parse_options().
int avconv_parse_options | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 2105 of file avconv_opt.c.
Referenced by main().
const HWAccel hwaccels[] |
char* vstats_filename |
Definition at line 63 of file avconv_opt.c.
Referenced by avconv_cleanup(), do_video_stats(), opt_vstats_file(), and poll_filter().
float audio_drift_threshold = 0.1 |
Definition at line 65 of file avconv_opt.c.
Referenced by configure_input_audio_filter().
float dts_delta_threshold = 10 |
Definition at line 66 of file avconv_opt.c.
Referenced by process_input().
int audio_volume = 256 |
Definition at line 68 of file avconv_opt.c.
Referenced by configure_input_audio_filter(), and transcode_init().
int audio_sync_method = 0 |
Definition at line 69 of file avconv_opt.c.
Referenced by configure_input_audio_filter(), and do_audio_out().
int video_sync_method = VSYNC_AUTO |
Definition at line 70 of file avconv_opt.c.
Referenced by do_video_out(), opt_vsync(), and transcode_init().
int do_benchmark = 0 |
Definition at line 71 of file avconv_opt.c.
Referenced by main().
int do_hex_dump = 0 |
Definition at line 72 of file avconv_opt.c.
Referenced by process_input().
int do_pkt_dump = 0 |
Definition at line 73 of file avconv_opt.c.
Referenced by process_input().
int copy_ts = 0 |
Definition at line 74 of file avconv_opt.c.
Referenced by open_input_file(), and process_input().
int copy_tb = 1 |
Definition at line 75 of file avconv_opt.c.
Referenced by transcode_init().
int exit_on_error = 0 |
Definition at line 76 of file avconv_opt.c.
Referenced by do_subtitle_out(), process_input(), and write_frame().
int print_stats = 1 |
Definition at line 77 of file avconv_opt.c.
Referenced by print_report().
int qp_hist = 0 |
Definition at line 78 of file avconv_opt.c.
Referenced by print_report().
|
static |
Definition at line 80 of file avconv_opt.c.
Referenced by assert_file_overwrite().
|
static |
Definition at line 81 of file avconv_opt.c.
Referenced by assert_file_overwrite().
|
static |
Definition at line 82 of file avconv_opt.c.
|
static |
Definition at line 83 of file avconv_opt.c.
Referenced by new_video_stream().
|
static |
Definition at line 84 of file avconv_opt.c.
Referenced by assert_file_overwrite(), and open_input_file().
|
static |
Definition at line 85 of file avconv_opt.c.
|
static |
Definition at line 2067 of file avconv_opt.c.
const OptionDef options[] |
Definition at line 2152 of file avconv_opt.c.
Referenced by avconv_parse_options(), avfilter_init_str(), main(), opt_audio_codec(), opt_audio_filters(), opt_audio_frames(), opt_audio_qscale(), opt_audio_tag(), opt_channel_layout(), opt_data_codec(), opt_data_frames(), opt_subtitle_codec(), opt_subtitle_tag(), opt_target(), opt_video_codec(), opt_video_filters(), opt_video_frames(), opt_video_tag(), show_help_default(), and uninit_options().