Libav
Data Structures | Macros | Enumerations | Functions | Variables
avconv.h File Reference
#include "config.h"
#include <stdint.h>
#include <stdio.h>
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavutil/avutil.h"
#include "libavutil/dict.h"
#include "libavutil/fifo.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"

Go to the source code of this file.

Data Structures

struct  HWAccel
 
struct  StreamMap
 
struct  MetadataMap
 
struct  OptionsContext
 
struct  InputFilter
 
struct  OutputFilter
 
struct  FilterGraph
 
struct  InputStream
 
struct  InputFile
 
struct  OutputStream
 
struct  OutputFile
 

Macros

#define VSYNC_AUTO   -1
 
#define VSYNC_PASSTHROUGH   0
 
#define VSYNC_CFR   1
 
#define VSYNC_VFR   2
 

Enumerations

enum  HWAccelID { HWACCEL_NONE = 0, HWACCEL_AUTO, HWACCEL_VDPAU }
 

Functions

void reset_options (OptionsContext *o)
 
void show_usage (void)
 
void opt_output_file (void *optctx, const char *filename)
 
void assert_avoptions (AVDictionary *m)
 
int guess_input_channel_layout (InputStream *ist)
 
int configure_filtergraph (FilterGraph *fg)
 
int configure_output_filter (FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
 
int ist_in_filtergraph (FilterGraph *fg, InputStream *ist)
 
FilterGraphinit_simple_filtergraph (InputStream *ist, OutputStream *ost)
 
int avconv_parse_options (int argc, char **argv)
 
int vdpau_init (AVCodecContext *s)
 

Variables

InputStream ** input_streams
 
int nb_input_streams
 
InputFile ** input_files
 
int nb_input_files
 
OutputStream ** output_streams
 
int nb_output_streams
 
OutputFile ** output_files
 
int nb_output_files
 
FilterGraph ** filtergraphs
 
int nb_filtergraphs
 
char * vstats_filename
 
float audio_drift_threshold
 
float dts_delta_threshold
 
int audio_volume
 
int audio_sync_method
 
int video_sync_method
 
int do_benchmark
 
int do_deinterlace
 
int do_hex_dump
 
int do_pkt_dump
 
int copy_ts
 
int copy_tb
 
int exit_on_error
 
int print_stats
 
int qp_hist
 
const AVIOInterruptCB int_cb
 
const OptionDef options []
 
const HWAccel hwaccels []
 

Macro Definition Documentation

#define VSYNC_AUTO   -1

Definition at line 46 of file avconv.h.

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

#define VSYNC_PASSTHROUGH   0

Definition at line 47 of file avconv.h.

Referenced by do_video_out(), and opt_vsync().

#define VSYNC_CFR   1

Definition at line 48 of file avconv.h.

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

#define VSYNC_VFR   2

Definition at line 49 of file avconv.h.

Referenced by do_video_out(), and opt_vsync().

Enumeration Type Documentation

enum HWAccelID
Enumerator
HWACCEL_NONE 
HWACCEL_AUTO 
HWACCEL_VDPAU 

Definition at line 51 of file avconv.h.

Function Documentation

void reset_options ( OptionsContext o)
void show_usage ( void  )

Definition at line 2054 of file avconv_opt.c.

Referenced by main(), and show_help_default().

void opt_output_file ( void optctx,
const char *  filename 
)
void assert_avoptions ( AVDictionary m)

Definition at line 227 of file avconv.c.

Referenced by init_input_stream(), open_input_file(), and transcode_init().

int guess_input_channel_layout ( InputStream ist)

Definition at line 1046 of file avconv.c.

Referenced by add_input_streams(), and decode_audio().

int configure_filtergraph ( FilterGraph fg)
int configure_output_filter ( FilterGraph fg,
OutputFilter ofilter,
AVFilterInOut out 
)

Definition at line 409 of file avconv_filter.c.

Referenced by configure_filtergraph(), and init_output_filter().

int ist_in_filtergraph ( FilterGraph fg,
InputStream ist 
)

Definition at line 650 of file avconv_filter.c.

Referenced by decode_audio(), and decode_video().

FilterGraph* init_simple_filtergraph ( InputStream ist,
OutputStream ost 
)

Referenced by transcode_init().

int avconv_parse_options ( int  argc,
char **  argv 
)

Definition at line 2104 of file avconv_opt.c.

Referenced by main().

int vdpau_init ( AVCodecContext s)

Definition at line 294 of file avconv_vdpau.c.

Variable Documentation

InputStream** input_streams

Definition at line 102 of file avconv.c.

Referenced by add_input_streams(), init_input_filter(), open_input_file(), and open_output_file().

int nb_input_streams
InputFile** input_files
int nb_input_files
OutputStream** output_streams

Definition at line 107 of file avconv.c.

Referenced by new_output_stream(), and open_output_file().

int nb_output_streams
OutputFile** output_files
int nb_output_files
FilterGraph** filtergraphs
int nb_filtergraphs
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

Definition at line 65 of file avconv_opt.c.

Referenced by configure_input_audio_filter().

float dts_delta_threshold

Definition at line 66 of file avconv_opt.c.

Referenced by process_input().

int audio_volume

Definition at line 68 of file avconv_opt.c.

Referenced by configure_input_audio_filter(), and transcode_init().

int audio_sync_method

Definition at line 69 of file avconv_opt.c.

Referenced by configure_input_audio_filter(), and do_audio_out().

int video_sync_method

Definition at line 70 of file avconv_opt.c.

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

int do_benchmark

Definition at line 71 of file avconv_opt.c.

Referenced by main().

int do_deinterlace
int do_hex_dump

Definition at line 72 of file avconv_opt.c.

Referenced by process_input().

int do_pkt_dump

Definition at line 73 of file avconv_opt.c.

Referenced by process_input().

int copy_ts

Definition at line 74 of file avconv_opt.c.

Referenced by open_input_file(), and process_input().

int copy_tb

Definition at line 75 of file avconv_opt.c.

Referenced by transcode_init().

int exit_on_error

Definition at line 76 of file avconv_opt.c.

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

int print_stats

Definition at line 77 of file avconv_opt.c.

Referenced by print_report().

int qp_hist

Definition at line 78 of file avconv_opt.c.

Referenced by print_report().

const AVIOInterruptCB int_cb
static const OptionDef options
Initial value:
= {
{ "L" , OPT_EXIT, {.func_arg = show_license}, "show license" },
{ "h" , OPT_EXIT, {.func_arg = show_help}, "show help", "topic" },
{ "?" , OPT_EXIT, {.func_arg = show_help}, "show help", "topic" },
{ "help" , OPT_EXIT, {.func_arg = show_help}, "show help", "topic" },
{ "-help" , OPT_EXIT, {.func_arg = show_help}, "show help", "topic" },
{ "version" , OPT_EXIT, {.func_arg = show_version}, "show version" },
{ "formats" , OPT_EXIT, {.func_arg = show_formats }, "show available formats" },
{ "codecs" , OPT_EXIT, {.func_arg = show_codecs }, "show available codecs" },
{ "decoders" , OPT_EXIT, {.func_arg = show_decoders }, "show available decoders" },
{ "encoders" , OPT_EXIT, {.func_arg = show_encoders }, "show available encoders" },
{ "bsfs" , OPT_EXIT, {.func_arg = show_bsfs }, "show available bit stream filters" },
{ "protocols" , OPT_EXIT, {.func_arg = show_protocols}, "show available protocols" },
{ "filters" , OPT_EXIT, {.func_arg = show_filters }, "show available filters" },
{ "pix_fmts" , OPT_EXIT, {.func_arg = show_pix_fmts }, "show available pixel formats" },
{ "sample_fmts", OPT_EXIT, {.func_arg = show_sample_fmts }, "show available audio sample formats" },
{ "loglevel" , HAS_ARG, {.func_arg = opt_loglevel}, "set libav* logging level", "loglevel" },
{ "v", HAS_ARG, {.func_arg = opt_loglevel}, "set libav* logging level", "loglevel" },
{ "cpuflags", HAS_ARG | OPT_EXPERT, { .func_arg = opt_cpuflags }, "set CPU flags mask", "mask" },
{ "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" },
{ "d", 0, {(void*)opt_debug}, "enable debug mode" },
{ "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/avserver.conf", "configfile" },
{ NULL },
}
static const char * config_filename
Definition: avserver.c:304
#define OPT_EXPERT
Definition: cmdutils.h:144
int show_decoders(void *optctx, const char *opt, const char *arg)
Print a listing containing all the decoders supported by the program.
Definition: cmdutils.c:1126
int show_license(void *optctx, const char *opt, const char *arg)
Print the license of the program to stdout.
Definition: cmdutils.c:836
int opt_loglevel(void *optctx, const char *opt, const char *arg)
Set the libav* libraries log level.
Definition: cmdutils.c:710
int show_protocols(void *optctx, const char *opt, const char *arg)
Print a listing containing all the protocols supported by the program.
Definition: cmdutils.c:1149
int show_formats(void *optctx, const char *opt, const char *arg)
Print a listing containing all the formats supported by the program.
Definition: cmdutils.c:907
int show_pix_fmts(void *optctx, const char *opt, const char *arg)
Print a listing containing all the pixel formats supported by the program.
Definition: cmdutils.c:1176
int show_codecs(void *optctx, const char *opt, const char *arg)
Print a listing containing all the codecs supported by the program.
Definition: cmdutils.c:1047
#define HAS_ARG
Definition: cmdutils.h:142
static void opt_debug(void)
Definition: avserver.c:4610
int show_help(void *optctx, const char *opt, const char *arg)
Generic -h handler common to all avtools.
Definition: cmdutils.c:1347
int show_sample_fmts(void *optctx, const char *opt, const char *arg)
Print a listing containing all the sample formats supported by the program.
Definition: cmdutils.c:1209
int show_filters(void *optctx, const char *opt, const char *arg)
Print a listing containing all the filters supported by the program.
Definition: cmdutils.c:1164
int show_bsfs(void *optctx, const char *opt, const char *arg)
Print a listing containing all the bit stream filters supported by the program.
Definition: cmdutils.c:1138
#define OPT_EXIT
Definition: cmdutils.h:152
NULL
Definition: eval.c:55
#define OPT_STRING
Definition: cmdutils.h:145
#define OPT_BOOL
Definition: cmdutils.h:143
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
Override the cpuflags mask.
Definition: cmdutils.c:699
int show_version(void *optctx, const char *opt, const char *arg)
Print the version of the program to stdout.
Definition: cmdutils.c:827
static int no_launch
Definition: avserver.c:307
int show_encoders(void *optctx, const char *opt, const char *arg)
Print a listing containing all the encoders supported by the program.
Definition: cmdutils.c:1132

Definition at line 4624 of file avserver.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().

const HWAccel hwaccels[]

Definition at line 56 of file avconv_opt.c.

Referenced by get_hwaccel().