ffmpeg.c File Reference

#include "config.h"
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <unistd.h>
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
#include "libavcodec/opt.h"
#include "libavcodec/audioconvert.h"
#include "libavcodec/colorspace.h"
#include "libavutil/fifo.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/libm.h"
#include "libavformat/os_support.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <time.h>
#include "cmdutils.h"
#include <assert.h>
#include "cmdutils_common_opts.h"

Go to the source code of this file.

Data Structures

struct  AVStreamMap
struct  AVMetaDataMap
 select an input file for an output file More...
struct  AVOutputStream
struct  AVInputStream
struct  AVInputFile

Defines

#define _XOPEN_SOURCE   600
#define MAX_FILES   100
#define QSCALE_NONE   -99999
#define DEFAULT_PASS_LOGFILENAME_PREFIX   "ffmpeg2pass"
#define MAX_AUDIO_PACKET_SIZE   (128 * 1024)
#define MAKE_SFMT_PAIR(a, b)   ((a)+SAMPLE_FMT_NB*(b))
#define AV_DELAY_MAX   0.100

Functions

static void term_exit (void)
static void sigterm_handler (int sig)
static void term_init (void)
static int read_key (void)
static int decode_interrupt_cb (void)
static int av_exit (int ret)
static void choose_sample_fmt (AVStream *st, AVCodec *codec)
static void choose_pixel_fmt (AVStream *st, AVCodec *codec)
static int read_ffserver_streams (AVFormatContext *s, const char *filename)
static double get_sync_ipts (const AVOutputStream *ost)
static void write_frame (AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx, AVBitStreamFilterContext *bsfc)
static void do_audio_out (AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, unsigned char *buf, int size)
static void pre_process_video_frame (AVInputStream *ist, AVPicture *picture, void **bufp)
static void do_subtitle_out (AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVSubtitle *sub, int64_t pts)
static void do_video_out (AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVFrame *in_picture, int *frame_size)
static double psnr (double d)
static void do_video_stats (AVFormatContext *os, AVOutputStream *ost, int frame_size)
static void print_report (AVFormatContext **output_files, AVOutputStream **ost_table, int nb_ostreams, int is_last_report)
static int output_packet (AVInputStream *ist, int ist_index, AVOutputStream **ost_table, int nb_ostreams, const AVPacket *pkt)
static void print_sdp (AVFormatContext **avc, int n)
static int copy_chapters (int infile, int outfile)
static int av_transcode (AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps)
static void opt_format (const char *arg)
static void opt_video_rc_override_string (const char *arg)
static int opt_me_threshold (const char *opt, const char *arg)
static int opt_verbose (const char *opt, const char *arg)
static int opt_frame_rate (const char *opt, const char *arg)
static int opt_bitrate (const char *opt, const char *arg)
static void opt_frame_crop_top (const char *arg)
static void opt_frame_crop_bottom (const char *arg)
static void opt_frame_crop_left (const char *arg)
static void opt_frame_crop_right (const char *arg)
static void opt_frame_size (const char *arg)
static void opt_pad_color (const char *arg)
static void opt_frame_pad_top (const char *arg)
static void opt_frame_pad_bottom (const char *arg)
static void opt_frame_pad_left (const char *arg)
static void opt_frame_pad_right (const char *arg)
static void opt_frame_pix_fmt (const char *arg)
static void opt_frame_aspect_ratio (const char *arg)
static int opt_metadata (const char *opt, const char *arg)
static void opt_qscale (const char *arg)
static void opt_top_field_first (const char *arg)
static int opt_thread_count (const char *opt, const char *arg)
static void opt_audio_sample_fmt (const char *arg)
static int opt_audio_rate (const char *opt, const char *arg)
static int opt_audio_channels (const char *opt, const char *arg)
static void opt_video_channel (const char *arg)
static void opt_video_standard (const char *arg)
static void opt_codec (int *pstream_copy, char **pcodec_name, int codec_type, const char *arg)
static void opt_audio_codec (const char *arg)
static void opt_audio_tag (const char *arg)
static void opt_video_tag (const char *arg)
static void opt_video_codec (const char *arg)
static void opt_subtitle_codec (const char *arg)
static void opt_subtitle_tag (const char *arg)
static void opt_map (const char *arg)
static void opt_map_meta_data (const char *arg)
static void opt_input_ts_scale (const char *arg)
static int opt_recording_time (const char *opt, const char *arg)
static int opt_start_time (const char *opt, const char *arg)
static int opt_rec_timestamp (const char *opt, const char *arg)
static int opt_input_ts_offset (const char *opt, const char *arg)
static enum CodecID find_codec_or_die (const char *name, int type, int encoder)
static void opt_input_file (const char *filename)
static void check_audio_video_sub_inputs (int *has_video_ptr, int *has_audio_ptr, int *has_subtitle_ptr)
static void new_video_stream (AVFormatContext *oc)
static void new_audio_stream (AVFormatContext *oc)
static void new_subtitle_stream (AVFormatContext *oc)
static void opt_new_audio_stream (void)
static void opt_new_video_stream (void)
static void opt_new_subtitle_stream (void)
static void opt_output_file (const char *filename)
static void opt_pass (const char *pass_str)
static int64_t getutime (void)
static int64_t getmaxrss (void)
static void parse_matrix_coeffs (uint16_t *dest, const char *str)
static void opt_inter_matrix (const char *arg)
static void opt_intra_matrix (const char *arg)
static void log_callback_help (void *ptr, int level, const char *fmt, va_list vl)
 Trivial log callback.
static void show_usage (void)
static void show_help (void)
static void opt_target (const char *arg)
static void opt_vstats_file (const char *arg)
static void opt_vstats (void)
static int opt_bsf (const char *opt, const char *arg)
static int opt_preset (const char *opt, const char *arg)
int main (int argc, char **argv)

Variables

const char program_name [] = "FFmpeg"
 program name, defined by the program for show_version().
const int program_birth_year = 2000
 program birth year, defined by the program for show_banner()
static const OptionDef options []
static const char * last_asked_format = NULL
static AVFormatContextinput_files [MAX_FILES]
static int64_t input_files_ts_offset [MAX_FILES]
static double input_files_ts_scale [MAX_FILES][MAX_STREAMS]
static AVCodecinput_codecs [MAX_FILES *MAX_STREAMS]
static int nb_input_files = 0
static int nb_icodecs
static AVFormatContextoutput_files [MAX_FILES]
static AVCodecoutput_codecs [MAX_FILES *MAX_STREAMS]
static int nb_output_files = 0
static int nb_ocodecs
static AVStreamMap stream_maps [MAX_FILES *MAX_STREAMS]
static int nb_stream_maps
static AVMetaDataMap meta_data_maps [MAX_FILES]
static int nb_meta_data_maps
static int frame_width = 0
static int frame_height = 0
static float frame_aspect_ratio = 0
static enum PixelFormat frame_pix_fmt = PIX_FMT_NONE
static enum SampleFormat audio_sample_fmt = SAMPLE_FMT_NONE
static int frame_padtop = 0
static int frame_padbottom = 0
static int frame_padleft = 0
static int frame_padright = 0
static int padcolor [3] = {16,128,128}
static int frame_topBand = 0
static int frame_bottomBand = 0
static int frame_leftBand = 0
static int frame_rightBand = 0
static int max_frames [4] = {INT_MAX, INT_MAX, INT_MAX, INT_MAX}
static AVRational frame_rate
static float video_qscale = 0
static uint16_t * intra_matrix = NULL
static uint16_t * inter_matrix = NULL
static const char * video_rc_override_string = NULL
static int video_disable = 0
static int video_discard = 0
static char * video_codec_name = NULL
static int video_codec_tag = 0
static char * video_language = NULL
static int same_quality = 0
static int do_deinterlace = 0
static int top_field_first = -1
static int me_threshold = 0
static int intra_dc_precision = 8
static int loop_input = 0
static int loop_output = AVFMT_NOOUTPUTLOOP
static int qp_hist = 0
static int intra_only = 0
static int audio_sample_rate = 44100
static int64_t channel_layout = 0
static float audio_qscale = QSCALE_NONE
static int audio_disable = 0
static int audio_channels = 1
static char * audio_codec_name = NULL
static int audio_codec_tag = 0
static char * audio_language = NULL
static int subtitle_disable = 0
static char * subtitle_codec_name = NULL
static char * subtitle_language = NULL
static int subtitle_codec_tag = 0
static float mux_preload = 0.5
static float mux_max_delay = 0.7
static int64_t recording_time = INT64_MAX
static int64_t start_time = 0
static int64_t rec_timestamp = 0
static int64_t input_ts_offset = 0
static int file_overwrite = 0
static int metadata_count
static AVMetadataTagmetadata
static int do_benchmark = 0
static int do_hex_dump = 0
static int do_pkt_dump = 0
static int do_psnr = 0
static int do_pass = 0
static char * pass_logfilename_prefix = NULL
static int audio_stream_copy = 0
static int video_stream_copy = 0
static int subtitle_stream_copy = 0
static int video_sync_method = -1
static int audio_sync_method = 0
static float audio_drift_threshold = 0.1
static int copy_ts = 0
static int opt_shortest = 0
static int video_global_header = 0
static char * vstats_filename
static FILE * vstats_file
static int opt_programid = 0
static int copy_initial_nonkeyframes = 0
static int rate_emu = 0
static int video_channel = 0
static char * video_standard
static int audio_volume = 256
static int exit_on_error = 0
static int using_stdin = 0
static int verbose = 1
static int thread_count = 1
static int q_pressed = 0
static int64_t video_size = 0
static int64_t audio_size = 0
static int64_t extra_size = 0
static int nb_frames_dup = 0
static int nb_frames_drop = 0
static int input_sync
static uint64_t limit_filesize = 0
static int force_fps = 0
static int pgmyuv_compatibility_hack = 0
static float dts_delta_threshold = 10
static unsigned int sws_flags = SWS_BICUBIC
static int64_t timer_start
static uint8_t * audio_buf
static uint8_t * audio_out
unsigned int allocated_audio_out_size
unsigned int allocated_audio_buf_size
static short * samples
static AVBitStreamFilterContextvideo_bitstream_filters = NULL
static AVBitStreamFilterContextaudio_bitstream_filters = NULL
static AVBitStreamFilterContextsubtitle_bitstream_filters = NULL
static AVBitStreamFilterContextbitstream_filters [MAX_FILES][MAX_STREAMS]
static struct termios oldtty
static volatile int received_sigterm = 0
static int bit_buffer_size = 1024*256
static uint8_t * bit_buffer = NULL


Define Documentation

#define _XOPEN_SOURCE   600

Definition at line 23 of file ffmpeg.c.

#define AV_DELAY_MAX   0.100

Definition at line 855 of file ffmpeg.c.

#define DEFAULT_PASS_LOGFILENAME_PREFIX   "ffmpeg2pass"

Definition at line 236 of file ffmpeg.c.

#define MAKE_SFMT_PAIR ( a,
 )     ((a)+SAMPLE_FMT_NB*(b))

#define MAX_AUDIO_PACKET_SIZE   (128 * 1024)

Definition at line 594 of file ffmpeg.c.

#define MAX_FILES   100

Definition at line 96 of file ffmpeg.c.

#define QSCALE_NONE   -99999

Definition at line 154 of file ffmpeg.c.


Function Documentation

static int av_exit ( int  ret  )  [static]

Definition at line 407 of file ffmpeg.c.

static int av_transcode ( AVFormatContext **  output_files,
int  nb_output_files,
AVFormatContext **  input_files,
int  nb_input_files,
AVStreamMap stream_maps,
int  nb_stream_maps 
) [static]

Definition at line 1724 of file ffmpeg.c.

static void check_audio_video_sub_inputs ( int *  has_video_ptr,
int *  has_audio_ptr,
int *  has_subtitle_ptr 
) [static]

Definition at line 3105 of file ffmpeg.c.

static void choose_pixel_fmt ( AVStream st,
AVCodec codec 
) [static]

Definition at line 488 of file ffmpeg.c.

static void choose_sample_fmt ( AVStream st,
AVCodec codec 
) [static]

Definition at line 475 of file ffmpeg.c.

static int copy_chapters ( int  infile,
int  outfile 
) [static]

Definition at line 1680 of file ffmpeg.c.

static int decode_interrupt_cb ( void   )  [static]

Definition at line 402 of file ffmpeg.c.

static void do_audio_out ( AVFormatContext s,
AVOutputStream ost,
AVInputStream ist,
unsigned char *  buf,
int  size 
) [static]

Definition at line 596 of file ffmpeg.c.

static void do_subtitle_out ( AVFormatContext s,
AVOutputStream ost,
AVInputStream ist,
AVSubtitle sub,
int64_t  pts 
) [static]

Definition at line 857 of file ffmpeg.c.

static void do_video_out ( AVFormatContext s,
AVOutputStream ost,
AVInputStream ist,
AVFrame in_picture,
int *  frame_size 
) [static]

Definition at line 923 of file ffmpeg.c.

static void do_video_stats ( AVFormatContext os,
AVOutputStream ost,
int  frame_size 
) [static]

Definition at line 1153 of file ffmpeg.c.

static enum CodecID find_codec_or_die ( const char *  name,
int  type,
int  encoder 
) [static]

Definition at line 2890 of file ffmpeg.c.

static double get_sync_ipts ( const AVOutputStream ost  )  [static]

Definition at line 561 of file ffmpeg.c.

static int64_t getmaxrss ( void   )  [static]

Definition at line 3602 of file ffmpeg.c.

static int64_t getutime ( void   )  [static]

Definition at line 3584 of file ffmpeg.c.

static void log_callback_help ( void *  ptr,
int  level,
const char *  fmt,
va_list  vl 
) [static]

Trivial log callback.

Only suitable for show_help and similar since it lacks prefix handling.

Definition at line 3653 of file ffmpeg.c.

int main ( int  argc,
char **  argv 
)

Definition at line 4066 of file ffmpeg.c.

static void new_audio_stream ( AVFormatContext oc  )  [static]

Definition at line 3279 of file ffmpeg.c.

static void new_subtitle_stream ( AVFormatContext oc  )  [static]

Definition at line 3350 of file ffmpeg.c.

static void new_video_stream ( AVFormatContext oc  )  [static]

Definition at line 3142 of file ffmpeg.c.

static int opt_audio_channels ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2742 of file ffmpeg.c.

static void opt_audio_codec ( const char *  arg  )  [static]

Definition at line 2769 of file ffmpeg.c.

static int opt_audio_rate ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2736 of file ffmpeg.c.

static void opt_audio_sample_fmt ( const char *  arg  )  [static]

Definition at line 2726 of file ffmpeg.c.

static void opt_audio_tag ( const char *  arg  )  [static]

Definition at line 2774 of file ffmpeg.c.

static int opt_bitrate ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2516 of file ffmpeg.c.

static int opt_bsf ( const char *  opt,
const char *  arg 
) [static]

Definition at line 3862 of file ffmpeg.c.

static void opt_codec ( int *  pstream_copy,
char **  pcodec_name,
int  codec_type,
const char *  arg 
) [static]

Definition at line 2758 of file ffmpeg.c.

static void opt_format ( const char *  arg  )  [static]

Definition at line 2477 of file ffmpeg.c.

static void opt_frame_aspect_ratio ( const char *  arg  )  [static]

Definition at line 2659 of file ffmpeg.c.

static void opt_frame_crop_bottom ( const char *  arg  )  [static]

Definition at line 2542 of file ffmpeg.c.

static void opt_frame_crop_left ( const char *  arg  )  [static]

Definition at line 2556 of file ffmpeg.c.

static void opt_frame_crop_right ( const char *  arg  )  [static]

Definition at line 2570 of file ffmpeg.c.

static void opt_frame_crop_top ( const char *  arg  )  [static]

Definition at line 2528 of file ffmpeg.c.

static void opt_frame_pad_bottom ( const char *  arg  )  [static]

Definition at line 2616 of file ffmpeg.c.

static void opt_frame_pad_left ( const char *  arg  )  [static]

Definition at line 2626 of file ffmpeg.c.

static void opt_frame_pad_right ( const char *  arg  )  [static]

Definition at line 2636 of file ffmpeg.c.

static void opt_frame_pad_top ( const char *  arg  )  [static]

Definition at line 2607 of file ffmpeg.c.

static void opt_frame_pix_fmt ( const char *  arg  )  [static]

Definition at line 2645 of file ffmpeg.c.

static int opt_frame_rate ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2507 of file ffmpeg.c.

static void opt_frame_size ( const char *  arg  )  [static]

Definition at line 2584 of file ffmpeg.c.

static void opt_input_file ( const char *  filename  )  [static]

Definition at line 2911 of file ffmpeg.c.

static int opt_input_ts_offset ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2884 of file ffmpeg.c.

static void opt_input_ts_scale ( const char *  arg  )  [static]

Definition at line 2849 of file ffmpeg.c.

static void opt_inter_matrix ( const char *  arg  )  [static]

Definition at line 3637 of file ffmpeg.c.

static void opt_intra_matrix ( const char *  arg  )  [static]

Definition at line 3643 of file ffmpeg.c.

static void opt_map ( const char *  arg  )  [static]

Definition at line 2811 of file ffmpeg.c.

static void opt_map_meta_data ( const char *  arg  )  [static]

Definition at line 2835 of file ffmpeg.c.

static int opt_me_threshold ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2495 of file ffmpeg.c.

static int opt_metadata ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2683 of file ffmpeg.c.

static void opt_new_audio_stream ( void   )  [static]

Definition at line 3390 of file ffmpeg.c.

static void opt_new_subtitle_stream ( void   )  [static]

Definition at line 3412 of file ffmpeg.c.

static void opt_new_video_stream ( void   )  [static]

Definition at line 3401 of file ffmpeg.c.

static void opt_output_file ( const char *  filename  )  [static]

Definition at line 3423 of file ffmpeg.c.

static void opt_pad_color ( const char *  arg  )  [static]

Definition at line 2592 of file ffmpeg.c.

static void opt_pass ( const char *  pass_str  )  [static]

Definition at line 3573 of file ffmpeg.c.

static int opt_preset ( const char *  opt,
const char *  arg 
) [static]

Definition at line 3883 of file ffmpeg.c.

static void opt_qscale ( const char *  arg  )  [static]

Definition at line 2701 of file ffmpeg.c.

static int opt_rec_timestamp ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2878 of file ffmpeg.c.

static int opt_recording_time ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2866 of file ffmpeg.c.

static int opt_start_time ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2872 of file ffmpeg.c.

static void opt_subtitle_codec ( const char *  arg  )  [static]

Definition at line 2797 of file ffmpeg.c.

static void opt_subtitle_tag ( const char *  arg  )  [static]

Definition at line 2802 of file ffmpeg.c.

static void opt_target ( const char *  arg  )  [static]

Definition at line 3700 of file ffmpeg.c.

static int opt_thread_count ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2716 of file ffmpeg.c.

static void opt_top_field_first ( const char *  arg  )  [static]

Definition at line 2711 of file ffmpeg.c.

static int opt_verbose ( const char *  opt,
const char *  arg 
) [static]

Definition at line 2501 of file ffmpeg.c.

static void opt_video_channel ( const char *  arg  )  [static]

Definition at line 2748 of file ffmpeg.c.

static void opt_video_codec ( const char *  arg  )  [static]

Definition at line 2792 of file ffmpeg.c.

static void opt_video_rc_override_string ( const char *  arg  )  [static]

Definition at line 2490 of file ffmpeg.c.

static void opt_video_standard ( const char *  arg  )  [static]

Definition at line 2753 of file ffmpeg.c.

static void opt_video_tag ( const char *  arg  )  [static]

Definition at line 2783 of file ffmpeg.c.

static void opt_vstats ( void   )  [static]

Definition at line 3851 of file ffmpeg.c.

static void opt_vstats_file ( const char *  arg  )  [static]

Definition at line 3845 of file ffmpeg.c.

static int output_packet ( AVInputStream ist,
int  ist_index,
AVOutputStream **  ost_table,
int  nb_ostreams,
const AVPacket pkt 
) [static]

Definition at line 1314 of file ffmpeg.c.

static void parse_matrix_coeffs ( uint16_t *  dest,
const char *  str 
) [static]

Definition at line 3620 of file ffmpeg.c.

static void pre_process_video_frame ( AVInputStream ist,
AVPicture picture,
void **  bufp 
) [static]

Definition at line 815 of file ffmpeg.c.

static void print_report ( AVFormatContext **  output_files,
AVOutputStream **  ost_table,
int  nb_ostreams,
int  is_last_report 
) [static]

Definition at line 1190 of file ffmpeg.c.

static void print_sdp ( AVFormatContext **  avc,
int  n 
) [static]

Definition at line 1671 of file ffmpeg.c.

static double psnr ( double  d  )  [static]

Definition at line 1149 of file ffmpeg.c.

static int read_ffserver_streams ( AVFormatContext s,
const char *  filename 
) [static]

Definition at line 505 of file ffmpeg.c.

static int read_key ( void   )  [static]

Definition at line 373 of file ffmpeg.c.

static void show_help ( void   )  [static]

Definition at line 3665 of file ffmpeg.c.

static void show_usage ( void   )  [static]

Definition at line 3658 of file ffmpeg.c.

static void sigterm_handler ( int  sig  )  [static]

Definition at line 333 of file ffmpeg.c.

static void term_exit ( void   )  [static]

Definition at line 323 of file ffmpeg.c.

static void term_init ( void   )  [static]

Definition at line 339 of file ffmpeg.c.

static void write_frame ( AVFormatContext s,
AVPacket pkt,
AVCodecContext avctx,
AVBitStreamFilterContext bsfc 
) [static]

Definition at line 567 of file ffmpeg.c.


Variable Documentation

Definition at line 227 of file ffmpeg.c.

Definition at line 227 of file ffmpeg.c.

Definition at line 232 of file ffmpeg.c.

uint8_t* audio_buf [static]

Definition at line 225 of file ffmpeg.c.

int audio_channels = 1 [static]

Definition at line 157 of file ffmpeg.c.

char* audio_codec_name = NULL [static]

Definition at line 158 of file ffmpeg.c.

int audio_codec_tag = 0 [static]

Definition at line 159 of file ffmpeg.c.

int audio_disable = 0 [static]

Definition at line 156 of file ffmpeg.c.

float audio_drift_threshold = 0.1 [static]

Definition at line 188 of file ffmpeg.c.

char* audio_language = NULL [static]

Definition at line 160 of file ffmpeg.c.

uint8_t* audio_out [static]

Definition at line 226 of file ffmpeg.c.

float audio_qscale = QSCALE_NONE [static]

Definition at line 155 of file ffmpeg.c.

enum SampleFormat audio_sample_fmt = SAMPLE_FMT_NONE [static]

Definition at line 121 of file ffmpeg.c.

int audio_sample_rate = 44100 [static]

Definition at line 152 of file ffmpeg.c.

int64_t audio_size = 0 [static]

Definition at line 210 of file ffmpeg.c.

int audio_stream_copy = 0 [static]

Definition at line 183 of file ffmpeg.c.

int audio_sync_method = 0 [static]

Definition at line 187 of file ffmpeg.c.

int audio_volume = 256 [static]

Definition at line 202 of file ffmpeg.c.

uint8_t* bit_buffer = NULL [static]

Definition at line 921 of file ffmpeg.c.

int bit_buffer_size = 1024*256 [static]

Definition at line 920 of file ffmpeg.c.

AVBitStreamFilterContext* bitstream_filters[MAX_FILES][MAX_STREAMS] [static]

Definition at line 234 of file ffmpeg.c.

int64_t channel_layout = 0 [static]

Definition at line 153 of file ffmpeg.c.

int copy_initial_nonkeyframes = 0 [static]

Definition at line 195 of file ffmpeg.c.

int copy_ts = 0 [static]

Definition at line 189 of file ffmpeg.c.

int do_benchmark = 0 [static]

Definition at line 177 of file ffmpeg.c.

int do_deinterlace = 0 [static]

Definition at line 143 of file ffmpeg.c.

int do_hex_dump = 0 [static]

Definition at line 178 of file ffmpeg.c.

int do_pass = 0 [static]

Definition at line 181 of file ffmpeg.c.

int do_pkt_dump = 0 [static]

Definition at line 179 of file ffmpeg.c.

int do_psnr = 0 [static]

Definition at line 180 of file ffmpeg.c.

float dts_delta_threshold = 10 [static]

Definition at line 219 of file ffmpeg.c.

int exit_on_error = 0 [static]

Definition at line 204 of file ffmpeg.c.

int64_t extra_size = 0 [static]

Definition at line 211 of file ffmpeg.c.

int file_overwrite = 0 [static]

Definition at line 174 of file ffmpeg.c.

int force_fps = 0 [static]

Definition at line 216 of file ffmpeg.c.

float frame_aspect_ratio = 0 [static]

Definition at line 119 of file ffmpeg.c.

int frame_bottomBand = 0 [static]

Definition at line 128 of file ffmpeg.c.

int frame_height = 0 [static]

Definition at line 118 of file ffmpeg.c.

int frame_leftBand = 0 [static]

Definition at line 129 of file ffmpeg.c.

int frame_padbottom = 0 [static]

Definition at line 123 of file ffmpeg.c.

int frame_padleft = 0 [static]

Definition at line 124 of file ffmpeg.c.

int frame_padright = 0 [static]

Definition at line 125 of file ffmpeg.c.

int frame_padtop = 0 [static]

Definition at line 122 of file ffmpeg.c.

enum PixelFormat frame_pix_fmt = PIX_FMT_NONE [static]

Definition at line 120 of file ffmpeg.c.

Definition at line 132 of file ffmpeg.c.

int frame_rightBand = 0 [static]

Definition at line 130 of file ffmpeg.c.

int frame_topBand = 0 [static]

Definition at line 127 of file ffmpeg.c.

int frame_width = 0 [static]

Definition at line 117 of file ffmpeg.c.

AVCodec* input_codecs[MAX_FILES *MAX_STREAMS] [static]

Definition at line 102 of file ffmpeg.c.

AVFormatContext* input_files[MAX_FILES] [static]

Definition at line 99 of file ffmpeg.c.

int64_t input_files_ts_offset[MAX_FILES] [static]

Definition at line 100 of file ffmpeg.c.

double input_files_ts_scale[MAX_FILES][MAX_STREAMS] [static]

Definition at line 101 of file ffmpeg.c.

int input_sync [static]

Definition at line 214 of file ffmpeg.c.

int64_t input_ts_offset = 0 [static]

Definition at line 173 of file ffmpeg.c.

uint16_t* inter_matrix = NULL [static]

Definition at line 135 of file ffmpeg.c.

int intra_dc_precision = 8 [static]

Definition at line 146 of file ffmpeg.c.

uint16_t* intra_matrix = NULL [static]

Definition at line 134 of file ffmpeg.c.

int intra_only = 0 [static]

Definition at line 151 of file ffmpeg.c.

const char* last_asked_format = NULL [static]

Definition at line 98 of file ffmpeg.c.

uint64_t limit_filesize = 0 [static]

Definition at line 215 of file ffmpeg.c.

int loop_input = 0 [static]

Definition at line 147 of file ffmpeg.c.

int loop_output = AVFMT_NOOUTPUTLOOP [static]

Definition at line 148 of file ffmpeg.c.

int max_frames[4] = {INT_MAX, INT_MAX, INT_MAX, INT_MAX} [static]

Definition at line 131 of file ffmpeg.c.

int me_threshold = 0 [static]

Definition at line 145 of file ffmpeg.c.

AVMetaDataMap meta_data_maps[MAX_FILES] [static]

Definition at line 114 of file ffmpeg.c.

Definition at line 176 of file ffmpeg.c.

int metadata_count [static]

Definition at line 175 of file ffmpeg.c.

float mux_max_delay = 0.7 [static]

Definition at line 168 of file ffmpeg.c.

float mux_preload = 0.5 [static]

Definition at line 167 of file ffmpeg.c.

int nb_frames_drop = 0 [static]

Definition at line 213 of file ffmpeg.c.

int nb_frames_dup = 0 [static]

Definition at line 212 of file ffmpeg.c.

int nb_icodecs [static]

Definition at line 104 of file ffmpeg.c.

int nb_input_files = 0 [static]

Definition at line 103 of file ffmpeg.c.

int nb_meta_data_maps [static]

Definition at line 115 of file ffmpeg.c.

int nb_ocodecs [static]

Definition at line 109 of file ffmpeg.c.

int nb_output_files = 0 [static]

Definition at line 108 of file ffmpeg.c.

int nb_stream_maps [static]

Definition at line 112 of file ffmpeg.c.

struct termios oldtty [static]

Definition at line 320 of file ffmpeg.c.

int opt_programid = 0 [static]

Definition at line 194 of file ffmpeg.c.

int opt_shortest = 0 [static]

Definition at line 190 of file ffmpeg.c.

static const OptionDef options [static]

Definition at line 94 of file ffmpeg.c.

AVCodec* output_codecs[MAX_FILES *MAX_STREAMS] [static]

Definition at line 107 of file ffmpeg.c.

AVFormatContext* output_files[MAX_FILES] [static]

Definition at line 106 of file ffmpeg.c.

int padcolor[3] = {16,128,128} [static]

Definition at line 126 of file ffmpeg.c.

char* pass_logfilename_prefix = NULL [static]

Definition at line 182 of file ffmpeg.c.

int pgmyuv_compatibility_hack = 0 [static]

Definition at line 218 of file ffmpeg.c.

const int program_birth_year = 2000

program birth year, defined by the program for show_banner()

Definition at line 78 of file ffmpeg.c.

const char program_name[] = "FFmpeg"

program name, defined by the program for show_version().

Definition at line 77 of file ffmpeg.c.

int q_pressed = 0 [static]

Definition at line 208 of file ffmpeg.c.

int qp_hist = 0 [static]

Definition at line 149 of file ffmpeg.c.

int rate_emu = 0 [static]

Definition at line 197 of file ffmpeg.c.

int64_t rec_timestamp = 0 [static]

Definition at line 172 of file ffmpeg.c.

volatile int received_sigterm = 0 [static]

Definition at line 330 of file ffmpeg.c.

int64_t recording_time = INT64_MAX [static]

Definition at line 170 of file ffmpeg.c.

int same_quality = 0 [static]

Definition at line 142 of file ffmpeg.c.

short* samples [static]

Definition at line 229 of file ffmpeg.c.

int64_t start_time = 0 [static]

Definition at line 171 of file ffmpeg.c.

AVStreamMap stream_maps[MAX_FILES *MAX_STREAMS] [static]

Definition at line 111 of file ffmpeg.c.

Definition at line 233 of file ffmpeg.c.

char* subtitle_codec_name = NULL [static]

Definition at line 163 of file ffmpeg.c.

int subtitle_codec_tag = 0 [static]

Definition at line 165 of file ffmpeg.c.

int subtitle_disable = 0 [static]

Definition at line 162 of file ffmpeg.c.

char* subtitle_language = NULL [static]

Definition at line 164 of file ffmpeg.c.

int subtitle_stream_copy = 0 [static]

Definition at line 185 of file ffmpeg.c.

unsigned int sws_flags = SWS_BICUBIC [static]

Definition at line 221 of file ffmpeg.c.

int thread_count = 1 [static]

Definition at line 207 of file ffmpeg.c.

int64_t timer_start [static]

Definition at line 223 of file ffmpeg.c.

int top_field_first = -1 [static]

Definition at line 144 of file ffmpeg.c.

int using_stdin = 0 [static]

Definition at line 205 of file ffmpeg.c.

int verbose = 1 [static]

Definition at line 206 of file ffmpeg.c.

Definition at line 231 of file ffmpeg.c.

int video_channel = 0 [static]

Definition at line 199 of file ffmpeg.c.

char* video_codec_name = NULL [static]

Definition at line 139 of file ffmpeg.c.

int video_codec_tag = 0 [static]

Definition at line 140 of file ffmpeg.c.

int video_disable = 0 [static]

Definition at line 137 of file ffmpeg.c.

int video_discard = 0 [static]

Definition at line 138 of file ffmpeg.c.

int video_global_header = 0 [static]

Definition at line 191 of file ffmpeg.c.

char* video_language = NULL [static]

Definition at line 141 of file ffmpeg.c.

float video_qscale = 0 [static]

Definition at line 133 of file ffmpeg.c.

const char* video_rc_override_string = NULL [static]

Definition at line 136 of file ffmpeg.c.

int64_t video_size = 0 [static]

Definition at line 209 of file ffmpeg.c.

char* video_standard [static]

Definition at line 200 of file ffmpeg.c.

int video_stream_copy = 0 [static]

Definition at line 184 of file ffmpeg.c.

int video_sync_method = -1 [static]

Definition at line 186 of file ffmpeg.c.

FILE* vstats_file [static]

Definition at line 193 of file ffmpeg.c.

char* vstats_filename [static]

Definition at line 192 of file ffmpeg.c.


Generated on Tue Apr 20 17:39:17 2010 for FFmpeg by  doxygen 1.5.6