FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
ffmpeg_opt.c File Reference
#include <stdint.h>
#include "ffmpeg.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 MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)
 
#define METADATA_CHECK_INDEX(index, nb_elems, desc)
 
#define SET_DICT(type, meta, context, 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 AVDictionarystrip_specifiers (AVDictionary *dict)
 
static int opt_sameq (void *optctx, const char *opt, const char *arg)
 
static int opt_video_channel (void *optctx, const char *opt, const char *arg)
 
static int opt_video_standard (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 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 int opt_recording_timestamp (void *optctx, const char *opt, const char *arg)
 
static AVCodecfind_codec_or_die (const char *name, enum AVMediaType type, int encoder)
 
static AVCodecchoose_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_tget_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 OutputStreamnew_output_stream (OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
 
static void parse_matrix_coeffs (uint16_t *dest, const char *str)
 
static uint8_tread_file (const char *filename)
 
static char * get_ost_filters (OptionsContext *o, AVFormatContext *oc, OutputStream *ost)
 
static void check_streamcopy_filters (OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type)
 
static OutputStreamnew_video_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static OutputStreamnew_audio_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static OutputStreamnew_data_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static OutputStreamnew_unknown_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static OutputStreamnew_attachment_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static OutputStreamnew_subtitle_stream (OptionsContext *o, AVFormatContext *oc, int source_index)
 
static int opt_streamid (void *optctx, const char *opt, const char *arg)
 
static int copy_chapters (InputFile *ifile, OutputFile *ofile, int copy_metadata)
 
static int read_ffserver_streams (OptionsContext *o, AVFormatContext *s, const char *filename)
 
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_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_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-fftool specific help handler. More...
 
void show_usage (void)
 
static int open_files (OptionGroupList *l, const char *inout, int(*open_file)(OptionsContext *, const char *))
 
int ffmpeg_parse_options (int argc, char **argv)
 
static int opt_progress (void *optctx, const char *opt, const char *arg)
 

Variables

const HWAccel hwaccels []
 
char * vstats_filename
 
char * sdp_filename
 
float audio_drift_threshold = 0.1
 
float dts_delta_threshold = 10
 
float dts_error_threshold = 3600*30
 
int audio_volume = 256
 
int audio_sync_method = 0
 
int video_sync_method = VSYNC_AUTO
 
float frame_drop_threshold = 0
 
int do_deinterlace = 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 print_stats = -1
 
int qp_hist = 0
 
int stdin_interaction = 1
 
int frame_bits_per_raw_sample = 0
 
float max_error_rate = 2.0/3
 
static int intra_only = 0
 
static int file_overwrite = 0
 
static int no_file_overwrite = 0
 
static int do_psnr = 0
 
static int input_sync
 
static int override_ffserver = 0
 
static int input_stream_potentially_available = 0
 
static int ignore_unknown_streams = 0
 
static int copy_unknown_streams = 0
 
static const OptionGroupDef groups []
 
const OptionDef options []
 

Macro Definition Documentation

#define MATCH_PER_STREAM_OPT (   name,
  type,
  outvar,
  fmtctx,
  st 
)
Value:
{\
int i, ret;\
for (i = 0; i < o->nb_ ## name; i++) {\
char *spec = o->name[i].specifier;\
if ((ret = check_stream_specifier(fmtctx, st, spec)) > 0)\
outvar = o->name[i].u.type;\
else if (ret < 0)\
}\
}
int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
Check if the given stream matches a stream specifier.
Definition: cmdutils.c:1986
if()
Definition: avfilter.c:975
ret
Definition: avfilter.c:974
void exit_program(int ret)
Wraps exit with a program-specific cleanup routine.
Definition: cmdutils.c:123
for(j=16;j >0;--j)
const char * name
Definition: opengl_enc.c:103

Definition at line 44 of file ffmpeg_opt.c.

Referenced by add_input_streams(), choose_decoder(), choose_encoder(), new_audio_stream(), new_output_stream(), new_subtitle_stream(), and new_video_stream().

#define MATCH_PER_TYPE_OPT (   name,
  type,
  outvar,
  fmtctx,
  mediatype 
)
Value:
{\
int i;\
for (i = 0; i < o->nb_ ## name; i++) {\
char *spec = o->name[i].specifier;\
if (!strcmp(spec, mediatype))\
outvar = o->name[i].u.type;\
}\
}
if()
Definition: avfilter.c:975
for(j=16;j >0;--j)
const char * name
Definition: opengl_enc.c:103

Definition at line 56 of file ffmpeg_opt.c.

Referenced by open_input_file(), open_output_file(), and opt_preset().

#define METADATA_CHECK_INDEX (   index,
  nb_elems,
  desc 
)
Value:
if ((index) < 0 || (index) >= (nb_elems)) {\
av_log(NULL, AV_LOG_FATAL, "Invalid %s index %d while processing metadata maps.\n",\
(desc), (index));\
}
#define NULL
Definition: coverity.c:32
#define av_log(a,...)
void exit_program(int ret)
Wraps exit with a program-specific cleanup routine.
Definition: cmdutils.c:123
int index
Definition: gxfenc.c:89
#define AV_LOG_FATAL
Something went wrong and recovery is not possible.
Definition: log.h:170
#define SET_DICT (   type,
  meta,
  context,
  index 
)
Value:
switch (type) {\
case 'g':\
meta = &context->metadata;\
break;\
case 'c':\
METADATA_CHECK_INDEX(index, context->nb_chapters, "chapter")\
meta = &context->chapters[index]->metadata;\
break;\
case 'p':\
METADATA_CHECK_INDEX(index, context->nb_programs, "program")\
meta = &context->programs[index]->metadata;\
break;\
case 's':\
break; /* handled separately below */ \
default: av_assert0(0);\
}\
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Definition: avassert.h:37
#define METADATA_CHECK_INDEX(index, nb_elems, desc)
GLint GLenum type
Definition: opengl_enc.c:105
int index
Definition: gxfenc.c:89

Referenced by copy_metadata().

#define OFFSET (   x)    offsetof(OptionsContext, x)

Definition at line 2874 of file ffmpeg_opt.c.

Enumeration Type Documentation

enum OptGroup
Enumerator
GROUP_OUTFILE 
GROUP_INFILE 

Definition at line 2768 of file ffmpeg_opt.c.

Function Documentation

static void uninit_options ( OptionsContext o)
static

Definition at line 117 of file ffmpeg_opt.c.

Referenced by open_files().

static void init_options ( OptionsContext o)
static

Definition at line 149 of file ffmpeg_opt.c.

Referenced by open_files().

static AVDictionary* strip_specifiers ( AVDictionary dict)
static

Definition at line 163 of file ffmpeg_opt.c.

Referenced by open_input_file(), and open_output_file().

static int opt_sameq ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 180 of file ffmpeg_opt.c.

static int opt_video_channel ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 189 of file ffmpeg_opt.c.

static int opt_video_standard ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 195 of file ffmpeg_opt.c.

static int opt_audio_codec ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 201 of file ffmpeg_opt.c.

Referenced by opt_preset(), opt_target(), and read_ffserver_streams().

static int opt_video_codec ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 207 of file ffmpeg_opt.c.

Referenced by opt_preset(), opt_target(), and read_ffserver_streams().

static int opt_subtitle_codec ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 213 of file ffmpeg_opt.c.

Referenced by opt_preset().

static int opt_data_codec ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 219 of file ffmpeg_opt.c.

Referenced by opt_preset().

static int opt_map ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 225 of file ffmpeg_opt.c.

static int opt_attach ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 322 of file ffmpeg_opt.c.

static int opt_map_channel ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 330 of file ffmpeg_opt.c.

static int opt_sdp_file ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 389 of file ffmpeg_opt.c.

static void parse_meta_type ( char *  arg,
char *  type,
int *  index,
const char **  stream_spec 
)
static

Parse a metadata specifier passed as 'arg' parameter.

Parameters
argmetadata string to parse
typemetadata type is written here – g(lobal)/s(tream)/c(hapter)/p(rogram)
indexfor type c/p, chapter/program index is written here
stream_specfor type s, the stream specifier is written here

Definition at line 403 of file ffmpeg_opt.c.

Referenced by copy_metadata(), and open_output_file().

static int copy_metadata ( char *  outspec,
char *  inspec,
AVFormatContext oc,
AVFormatContext ic,
OptionsContext o 
)
static

Definition at line 430 of file ffmpeg_opt.c.

Referenced by open_output_file().

static int opt_recording_timestamp ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 520 of file ffmpeg_opt.c.

static AVCodec* find_codec_or_die ( const char *  name,
enum AVMediaType  type,
int  encoder 
)
static

Definition at line 535 of file ffmpeg_opt.c.

Referenced by choose_decoder(), choose_encoder(), and open_input_file().

static AVCodec* choose_decoder ( OptionsContext o,
AVFormatContext s,
AVStream st 
)
static

Definition at line 564 of file ffmpeg_opt.c.

Referenced by add_input_streams(), and open_input_file().

static void add_input_streams ( OptionsContext o,
AVFormatContext ic 
)
static

Definition at line 579 of file ffmpeg_opt.c.

Referenced by open_input_file().

static void assert_file_overwrite ( const char *  filename)
static

Definition at line 739 of file ffmpeg_opt.c.

Referenced by dump_attachment(), and open_output_file().

static void dump_attachment ( AVStream st,
const char *  filename 
)
static

Definition at line 768 of file ffmpeg_opt.c.

Referenced by open_input_file().

static int open_input_file ( OptionsContext o,
const char *  filename 
)
static

Definition at line 800 of file ffmpeg_opt.c.

Referenced by ffmpeg_parse_options().

static uint8_t* get_line ( AVIOContext s)
static

Definition at line 1035 of file ffmpeg_opt.c.

Referenced by new_output_stream().

static int get_preset_file_2 ( const char *  preset_name,
const char *  codec_name,
AVIOContext **  s 
)
static

Definition at line 1054 of file ffmpeg_opt.c.

Referenced by new_output_stream().

static void choose_encoder ( OptionsContext o,
AVFormatContext s,
OutputStream ost 
)
static

Definition at line 1080 of file ffmpeg_opt.c.

Referenced by new_output_stream().

static OutputStream* new_output_stream ( OptionsContext o,
AVFormatContext oc,
enum AVMediaType  type,
int  source_index 
)
static
static void parse_matrix_coeffs ( uint16_t *  dest,
const char *  str 
)
static

Definition at line 1240 of file ffmpeg_opt.c.

Referenced by new_video_stream().

static uint8_t* read_file ( const char *  filename)
static

Definition at line 1258 of file ffmpeg_opt.c.

Referenced by get_ost_filters(), and opt_filter_complex_script().

static char* get_ost_filters ( OptionsContext o,
AVFormatContext oc,
OutputStream ost 
)
static

Definition at line 1286 of file ffmpeg_opt.c.

Referenced by new_audio_stream(), and new_video_stream().

static void check_streamcopy_filters ( OptionsContext o,
AVFormatContext oc,
const OutputStream ost,
enum AVMediaType  type 
)
static

Definition at line 1306 of file ffmpeg_opt.c.

Referenced by new_audio_stream(), and new_video_stream().

static OutputStream* new_video_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1320 of file ffmpeg_opt.c.

Referenced by init_output_filter(), and open_output_file().

static OutputStream* new_audio_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1484 of file ffmpeg_opt.c.

Referenced by init_output_filter(), and open_output_file().

static OutputStream* new_data_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1557 of file ffmpeg_opt.c.

Referenced by open_output_file().

static OutputStream* new_unknown_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1570 of file ffmpeg_opt.c.

Referenced by open_output_file().

static OutputStream* new_attachment_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1583 of file ffmpeg_opt.c.

Referenced by open_output_file().

static OutputStream* new_subtitle_stream ( OptionsContext o,
AVFormatContext oc,
int  source_index 
)
static

Definition at line 1591 of file ffmpeg_opt.c.

Referenced by open_output_file().

static int opt_streamid ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 1619 of file ffmpeg_opt.c.

static int copy_chapters ( InputFile ifile,
OutputFile ofile,
int  copy_metadata 
)
static

Definition at line 1641 of file ffmpeg_opt.c.

Referenced by open_output_file().

static int read_ffserver_streams ( OptionsContext o,
AVFormatContext s,
const char *  filename 
)
static

Definition at line 1684 of file ffmpeg_opt.c.

Referenced by open_output_file().

static void init_output_filter ( OutputFilter ofilter,
OptionsContext o,
AVFormatContext oc 
)
static

Definition at line 1734 of file ffmpeg_opt.c.

Referenced by open_output_file().

static int configure_complex_filters ( void  )
static

Definition at line 1780 of file ffmpeg_opt.c.

Referenced by open_output_file().

static int open_output_file ( OptionsContext o,
const char *  filename 
)
static

Definition at line 1791 of file ffmpeg_opt.c.

Referenced by ffmpeg_parse_options().

static int opt_target ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2285 of file ffmpeg_opt.c.

static int opt_vstats_file ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2428 of file ffmpeg_opt.c.

Referenced by opt_vstats().

static int opt_vstats ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2435 of file ffmpeg_opt.c.

static int opt_video_frames ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2446 of file ffmpeg_opt.c.

static int opt_audio_frames ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2452 of file ffmpeg_opt.c.

static int opt_data_frames ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2458 of file ffmpeg_opt.c.

static int opt_default_new ( OptionsContext o,
const char *  opt,
const char *  arg 
)
static

Definition at line 2464 of file ffmpeg_opt.c.

Referenced by opt_channel_layout(), and opt_preset().

static int opt_preset ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2484 of file ffmpeg_opt.c.

static int opt_old2new ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2532 of file ffmpeg_opt.c.

static int opt_bitrate ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2541 of file ffmpeg_opt.c.

static int opt_qscale ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2557 of file ffmpeg_opt.c.

static int opt_profile ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2572 of file ffmpeg_opt.c.

static int opt_video_filters ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2584 of file ffmpeg_opt.c.

static int opt_audio_filters ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2590 of file ffmpeg_opt.c.

static int opt_vsync ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2596 of file ffmpeg_opt.c.

static int opt_timecode ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2608 of file ffmpeg_opt.c.

static int opt_channel_layout ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2619 of file ffmpeg_opt.c.

static int opt_audio_qscale ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2655 of file ffmpeg_opt.c.

static int opt_filter_complex ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2661 of file ffmpeg_opt.c.

static int opt_filter_complex_script ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2676 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 2693 of file ffmpeg_opt.c.

void show_usage ( void  )

Definition at line 2761 of file ffmpeg_opt.c.

Referenced by main(), and show_help_default().

static int open_files ( OptionGroupList l,
const char *  inout,
int(*)(OptionsContext *, const char *)  open_file 
)
static

Definition at line 2778 of file ffmpeg_opt.c.

Referenced by ffmpeg_parse_options().

int ffmpeg_parse_options ( int  argc,
char **  argv 
)

Definition at line 2811 of file ffmpeg_opt.c.

Referenced by main().

static int opt_progress ( void optctx,
const char *  opt,
const char *  arg 
)
static

Definition at line 2857 of file ffmpeg_opt.c.

Variable Documentation

const HWAccel hwaccels[]
Initial value:
= {
{ 0 },
}

Definition at line 66 of file ffmpeg_opt.c.

Referenced by get_hwaccel().

char* vstats_filename
char* sdp_filename

Definition at line 80 of file ffmpeg_opt.c.

Referenced by opt_sdp_file(), and print_sdp().

float audio_drift_threshold = 0.1

Definition at line 82 of file ffmpeg_opt.c.

Referenced by configure_input_audio_filter().

float dts_delta_threshold = 10

Definition at line 83 of file ffmpeg_opt.c.

Referenced by process_input().

float dts_error_threshold = 3600*30

Definition at line 84 of file ffmpeg_opt.c.

Referenced by do_video_out(), and process_input().

int audio_volume = 256
int audio_sync_method = 0

Definition at line 87 of file ffmpeg_opt.c.

Referenced by configure_input_audio_filter(), do_audio_out(), and write_frame().

int video_sync_method = VSYNC_AUTO

Definition at line 88 of file ffmpeg_opt.c.

Referenced by do_video_out(), new_video_stream(), opt_vsync(), transcode_init(), and write_frame().

float frame_drop_threshold = 0

Definition at line 89 of file ffmpeg_opt.c.

Referenced by do_video_out().

int do_deinterlace = 0

Definition at line 90 of file ffmpeg_opt.c.

Referenced by configure_input_video_filter().

int do_benchmark = 0

Definition at line 91 of file ffmpeg_opt.c.

Referenced by ffmpeg_cleanup(), and main().

int do_benchmark_all = 0

Definition at line 92 of file ffmpeg_opt.c.

Referenced by update_benchmark().

int do_hex_dump = 0

Definition at line 93 of file ffmpeg_opt.c.

Referenced by check_keyboard_interaction(), and process_input().

int do_pkt_dump = 0

Definition at line 94 of file ffmpeg_opt.c.

Referenced by check_keyboard_interaction(), and process_input().

int copy_ts = 0
int start_at_zero = 0
int copy_tb = -1

Definition at line 97 of file ffmpeg_opt.c.

Referenced by transcode_init().

int debug_ts = 0
int exit_on_error = 0

Definition at line 99 of file ffmpeg_opt.c.

Referenced by do_subtitle_out(), process_input(), and write_frame().

int print_stats = -1

Definition at line 100 of file ffmpeg_opt.c.

Referenced by print_report().

int qp_hist = 0

Definition at line 101 of file ffmpeg_opt.c.

Referenced by check_keyboard_interaction(), and print_report().

int stdin_interaction = 1

Definition at line 102 of file ffmpeg_opt.c.

Referenced by assert_file_overwrite(), open_input_file(), and transcode().

int frame_bits_per_raw_sample = 0

Definition at line 103 of file ffmpeg_opt.c.

Referenced by new_video_stream(), and transcode_init().

float max_error_rate = 2.0/3

Definition at line 104 of file ffmpeg_opt.c.

Referenced by main().

int intra_only = 0
static

Definition at line 107 of file ffmpeg_opt.c.

Referenced by build_frame_code(), and new_video_stream().

int file_overwrite = 0
static

Definition at line 108 of file ffmpeg_opt.c.

Referenced by assert_file_overwrite().

int no_file_overwrite = 0
static

Definition at line 109 of file ffmpeg_opt.c.

Referenced by assert_file_overwrite().

int do_psnr = 0
static

Definition at line 110 of file ffmpeg_opt.c.

Referenced by new_video_stream().

int input_sync
static

Definition at line 111 of file ffmpeg_opt.c.

int override_ffserver = 0
static

Definition at line 112 of file ffmpeg_opt.c.

Referenced by open_output_file().

int input_stream_potentially_available = 0
static
int ignore_unknown_streams = 0
static

Definition at line 114 of file ffmpeg_opt.c.

Referenced by open_output_file().

int copy_unknown_streams = 0
static

Definition at line 115 of file ffmpeg_opt.c.

Referenced by open_output_file().

const OptionGroupDef groups[]
static
Initial value:
= {
[GROUP_OUTFILE] = { "output file", NULL, OPT_OUTPUT },
[GROUP_INFILE] = { "input file", "i", OPT_INPUT },
}
#define NULL
Definition: coverity.c:32
#define OPT_OUTPUT
Definition: cmdutils.h:182
#define OPT_INPUT
Definition: cmdutils.h:181

Definition at line 2773 of file ffmpeg_opt.c.

const OptionDef options[]