#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 "libavformat/framehook.h"
#include "libavcodec/opt.h"
#include "libavcodec/audioconvert.h"
#include "libavutil/fifo.h"
#include "libavutil/avstring.h"
#include "libavformat/os_support.h"
#include <time.h>
#include "cmdutils.h"
#include <assert.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 20 |
#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 |
#define | SCALEBITS 10 |
#define | ONE_HALF (1 << (SCALEBITS - 1)) |
#define | FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) |
#define | RGB_TO_Y(r, g, b) |
#define | RGB_TO_U(r1, g1, b1, shift) |
#define | RGB_TO_V(r1, g1, b1, shift) |
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 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 | stream_index_from_inputs (AVFormatContext **input_files, int nb_input_files, AVInputFile *file_table, AVInputStream **ist_table, enum CodecType type, int programid) |
static int | av_encode (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 | list_fmts (void(*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts) |
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_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 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_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 AVFormatContext * | input_files [MAX_FILES] |
static int64_t | input_files_ts_offset [MAX_FILES] |
static double | input_files_ts_scale [MAX_FILES][MAX_STREAMS] |
static AVCodec * | input_codecs [MAX_FILES *MAX_STREAMS] |
static int | nb_input_files = 0 |
static int | nb_icodecs |
static AVFormatContext * | output_files [MAX_FILES] |
static AVCodec * | output_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 AVInputFormat * | file_iformat |
static AVOutputFormat * | file_oformat |
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 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 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 AVMetadataTag * | metadata |
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 | using_vhook = 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 AVBitStreamFilterContext * | video_bitstream_filters = NULL |
static AVBitStreamFilterContext * | audio_bitstream_filters = NULL |
static AVBitStreamFilterContext * | subtitle_bitstream_filters = NULL |
static AVBitStreamFilterContext * | bitstream_filters [MAX_FILES][MAX_STREAMS] |
static volatile sig_atomic_t | received_sigterm = 0 |
static int | bit_buffer_size = 1024*256 |
static uint8_t * | bit_buffer = NULL |
#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" |
#define FIX | ( | x | ) | ((int) ((x) * (1<<SCALEBITS) + 0.5)) |
Definition at line 2415 of file ffmpeg.c.
Referenced by C_JPEG_TO_CCIR(), idct32(), and rgb24_to_yuv420p().
#define MAKE_SFMT_PAIR | ( | a, | |||
b | ) | ((a)+SAMPLE_FMT_NB*(b)) |
Referenced by av_encode(), and do_audio_out().
#define MAX_AUDIO_PACKET_SIZE (128 * 1024) |
#define ONE_HALF (1 << (SCALEBITS - 1)) |
#define QSCALE_NONE -99999 |
#define RGB_TO_U | ( | r1, | |||
g1, | |||||
b1, | |||||
shift | ) |
#define RGB_TO_V | ( | r1, | |||
g1, | |||||
b1, | |||||
shift | ) |
#define RGB_TO_Y | ( | r, | |||
g, | |||||
b | ) |
#define SCALEBITS 10 |
static int av_encode | ( | AVFormatContext ** | output_files, | |
int | nb_output_files, | |||
AVFormatContext ** | input_files, | |||
int | nb_input_files, | |||
AVStreamMap * | stream_maps, | |||
int | nb_stream_maps | |||
) | [static] |
static int av_exit | ( | int | ret | ) | [static] |
Definition at line 383 of file ffmpeg.c.
Referenced by av_encode(), do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), find_codec_or_die(), main(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), opt_audio_sample_fmt(), opt_bsf(), opt_format(), opt_frame_aspect_ratio(), opt_frame_crop_bottom(), opt_frame_crop_left(), opt_frame_crop_right(), opt_frame_crop_top(), opt_frame_pad_bottom(), opt_frame_pad_left(), opt_frame_pad_right(), opt_frame_pad_top(), opt_frame_pix_fmt(), opt_frame_rate(), opt_frame_size(), opt_input_file(), opt_input_ts_scale(), opt_metadata(), opt_new_audio_stream(), opt_new_subtitle_stream(), opt_new_video_stream(), opt_output_file(), opt_pass(), opt_preset(), opt_qscale(), opt_target(), output_packet(), parse_matrix_coeffs(), and write_frame().
static void check_audio_video_sub_inputs | ( | int * | has_video_ptr, | |
int * | has_audio_ptr, | |||
int * | has_subtitle_ptr | |||
) | [static] |
static int decode_interrupt_cb | ( | void | ) | [static] |
static void do_audio_out | ( | AVFormatContext * | s, | |
AVOutputStream * | ost, | |||
AVInputStream * | ist, | |||
unsigned char * | buf, | |||
int | size | |||
) | [static] |
static void do_subtitle_out | ( | AVFormatContext * | s, | |
AVOutputStream * | ost, | |||
AVInputStream * | ist, | |||
AVSubtitle * | sub, | |||
int64_t | pts | |||
) | [static] |
static void do_video_out | ( | AVFormatContext * | s, | |
AVOutputStream * | ost, | |||
AVInputStream * | ist, | |||
AVFrame * | in_picture, | |||
int * | frame_size | |||
) | [static] |
static void do_video_stats | ( | AVFormatContext * | os, | |
AVOutputStream * | ost, | |||
int | frame_size | |||
) | [static] |
static enum CodecID find_codec_or_die | ( | const char * | name, | |
int | type, | |||
int | encoder | |||
) | [static] |
Definition at line 2763 of file ffmpeg.c.
Referenced by new_audio_stream(), new_subtitle_stream(), new_video_stream(), and opt_input_file().
static double get_sync_ipts | ( | const AVOutputStream * | ost | ) | [static] |
static int64_t getutime | ( | void | ) | [static] |
static void list_fmts | ( | void(*)(char *buf, int buf_size, int fmt) | get_fmt_string, | |
int | nb_fmts | |||
) | [static] |
Definition at line 2498 of file ffmpeg.c.
Referenced by opt_audio_sample_fmt(), and opt_frame_pix_fmt().
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 3483 of file ffmpeg.c.
Referenced by show_help().
int main | ( | int | argc, | |
char ** | argv | |||
) |
static void new_audio_stream | ( | AVFormatContext * | oc | ) | [static] |
Definition at line 3126 of file ffmpeg.c.
Referenced by opt_new_audio_stream(), and opt_output_file().
static void new_subtitle_stream | ( | AVFormatContext * | oc | ) | [static] |
Definition at line 3207 of file ffmpeg.c.
Referenced by opt_new_subtitle_stream(), and opt_output_file().
static void new_video_stream | ( | AVFormatContext * | oc | ) | [static] |
Definition at line 2984 of file ffmpeg.c.
Referenced by opt_new_video_stream(), and opt_output_file().
static int opt_audio_channels | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_audio_codec | ( | const char * | arg | ) | [static] |
Definition at line 2628 of file ffmpeg.c.
Referenced by opt_preset(), opt_target(), and parse_ffconfig().
static int opt_audio_rate | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_audio_sample_fmt | ( | const char * | arg | ) | [static] |
static int opt_bitrate | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_bsf | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_codec | ( | int * | pstream_copy, | |
char ** | pcodec_name, | |||
int | codec_type, | |||
const char * | arg | |||
) | [static] |
Definition at line 2617 of file ffmpeg.c.
Referenced by opt_audio_codec(), opt_subtitle_codec(), and opt_video_codec().
static void opt_format | ( | const char * | arg | ) | [static] |
static void opt_frame_aspect_ratio | ( | const char * | arg | ) | [static] |
static void opt_frame_crop_bottom | ( | const char * | arg | ) | [static] |
static void opt_frame_crop_left | ( | const char * | arg | ) | [static] |
static void opt_frame_crop_right | ( | const char * | arg | ) | [static] |
static void opt_frame_crop_top | ( | const char * | arg | ) | [static] |
static void opt_frame_pad_bottom | ( | const char * | arg | ) | [static] |
static void opt_frame_pad_left | ( | const char * | arg | ) | [static] |
static void opt_frame_pad_right | ( | const char * | arg | ) | [static] |
static void opt_frame_pad_top | ( | const char * | arg | ) | [static] |
static void opt_frame_pix_fmt | ( | const char * | arg | ) | [static] |
static int opt_frame_rate | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_frame_size | ( | const char * | arg | ) | [static] |
static void opt_input_file | ( | const char * | filename | ) | [static] |
static int opt_input_ts_offset | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_input_ts_scale | ( | const char * | arg | ) | [static] |
static void opt_inter_matrix | ( | const char * | arg | ) | [static] |
static void opt_intra_matrix | ( | const char * | arg | ) | [static] |
static void opt_map_meta_data | ( | const char * | arg | ) | [static] |
static int opt_me_threshold | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_metadata | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_output_file | ( | const char * | filename | ) | [static] |
static int opt_preset | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_rec_timestamp | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_recording_time | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_start_time | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_subtitle_codec | ( | const char * | arg | ) | [static] |
static int opt_thread_count | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_top_field_first | ( | const char * | arg | ) | [static] |
static int opt_verbose | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static void opt_video_channel | ( | const char * | arg | ) | [static] |
static void opt_video_codec | ( | const char * | arg | ) | [static] |
Definition at line 2674 of file ffmpeg.c.
Referenced by opt_preset(), opt_target(), and parse_ffconfig().
static void opt_video_rc_override_string | ( | const char * | arg | ) | [static] |
static void opt_video_standard | ( | const char * | arg | ) | [static] |
static void opt_vstats_file | ( | const char * | arg | ) | [static] |
static int output_packet | ( | AVInputStream * | ist, | |
int | ist_index, | |||
AVOutputStream ** | ost_table, | |||
int | nb_ostreams, | |||
const AVPacket * | pkt | |||
) | [static] |
Definition at line 1176 of file ffmpeg.c.
Referenced by av_encode(), mpeg_mux_end(), and mpeg_mux_write_packet().
static void parse_matrix_coeffs | ( | uint16_t * | dest, | |
const char * | str | |||
) | [static] |
static void pre_process_video_frame | ( | AVInputStream * | ist, | |
AVPicture * | picture, | |||
void ** | bufp | |||
) | [static] |
static void print_report | ( | AVFormatContext ** | output_files, | |
AVOutputStream ** | ost_table, | |||
int | nb_ostreams, | |||
int | is_last_report | |||
) | [static] |
static void print_sdp | ( | AVFormatContext ** | avc, | |
int | n | |||
) | [static] |
static double psnr | ( | double | d | ) | [static] |
Definition at line 1010 of file ffmpeg.c.
Referenced by do_video_stats(), main(), and print_report().
static int read_ffserver_streams | ( | AVFormatContext * | s, | |
const char * | filename | |||
) | [static] |
static int read_key | ( | void | ) | [static] |
static void sigterm_handler | ( | int | sig | ) | [static] |
static int stream_index_from_inputs | ( | AVFormatContext ** | input_files, | |
int | nb_input_files, | |||
AVInputFile * | file_table, | |||
AVInputStream ** | ist_table, | |||
enum CodecType | type, | |||
int | programid | |||
) | [static] |
static void term_exit | ( | void | ) | [static] |
Definition at line 300 of file ffmpeg.c.
Referenced by av_encode(), sigterm_handler(), and term_init().
static void term_init | ( | void | ) | [static] |
static void write_frame | ( | AVFormatContext * | s, | |
AVPacket * | pkt, | |||
AVCodecContext * | avctx, | |||
AVBitStreamFilterContext * | bsfc | |||
) | [static] |
Definition at line 491 of file ffmpeg.c.
Referenced by do_audio_out(), do_subtitle_out(), do_video_out(), flac_encode_frame(), and output_packet().
AVBitStreamFilterContext* audio_bitstream_filters = NULL [static] |
int audio_channels = 1 [static] |
Definition at line 158 of file ffmpeg.c.
Referenced by ff_rtp_get_codec_info(), new_audio_stream(), opt_audio_channels(), opt_input_file(), and opt_target().
char* audio_codec_name = NULL [static] |
Definition at line 159 of file ffmpeg.c.
Referenced by av_exit(), compute_status(), new_audio_stream(), opt_audio_codec(), opt_input_file(), opt_output_file(), and opt_preset().
int audio_codec_tag = 0 [static] |
int audio_disable = 0 [static] |
Definition at line 157 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_input_file(), and opt_output_file().
float audio_drift_threshold = 0.1 [static] |
char* audio_language = NULL [static] |
float audio_qscale = QSCALE_NONE [static] |
enum SampleFormat audio_sample_fmt = SAMPLE_FMT_NONE [static] |
Definition at line 118 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_audio_sample_fmt(), and opt_input_file().
int audio_sample_rate = 44100 [static] |
Definition at line 153 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_audio_rate(), opt_input_file(), and opt_target().
int64_t audio_size = 0 [static] |
Definition at line 211 of file ffmpeg.c.
Referenced by bfi_read_packet(), do_audio_out(), output_packet(), print_report(), rl2_read_header(), rpl_read_header(), and sdl_audio_callback().
int audio_stream_copy = 0 [static] |
Definition at line 183 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_audio_codec(), opt_output_file(), and read_ffserver_streams().
int audio_sync_method = 0 [static] |
int audio_volume = 256 [static] |
uint8_t* bit_buffer = NULL [static] |
Definition at line 834 of file ffmpeg.c.
Referenced by av_encode(), do_video_out(), and output_packet().
int bit_buffer_size = 1024*256 [static] |
Definition at line 833 of file ffmpeg.c.
Referenced by av_encode(), do_video_out(), and output_packet().
AVBitStreamFilterContext* bitstream_filters[MAX_FILES][MAX_STREAMS] [static] |
int64_t channel_layout = 0 [static] |
int copy_initial_nonkeyframes = 0 [static] |
int copy_ts = 0 [static] |
int do_benchmark = 0 [static] |
int do_deinterlace = 0 [static] |
int do_hex_dump = 0 [static] |
int do_pass = 0 [static] |
int do_pkt_dump = 0 [static] |
int do_psnr = 0 [static] |
float dts_delta_threshold = 10 [static] |
int exit_on_error = 0 [static] |
Definition at line 204 of file ffmpeg.c.
Referenced by av_encode(), do_audio_out(), do_subtitle_out(), do_video_out(), and write_frame().
int64_t extra_size = 0 [static] |
Definition at line 212 of file ffmpeg.c.
Referenced by ape_read_packet(), asf_write_header1(), av_encode(), and print_report().
AVInputFormat* file_iformat [static] |
AVOutputFormat* file_oformat [static] |
int file_overwrite = 0 [static] |
int force_fps = 0 [static] |
float frame_aspect_ratio = 0 [static] |
Definition at line 116 of file ffmpeg.c.
Referenced by new_video_stream(), opt_frame_aspect_ratio(), and opt_input_file().
int frame_bottomBand = 0 [static] |
int frame_height = 0 [static] |
Definition at line 115 of file ffmpeg.c.
Referenced by av_parse_video_frame_size(), new_video_stream(), opt_frame_crop_bottom(), opt_frame_crop_top(), opt_frame_size(), opt_input_file(), and vmd_decode().
int frame_leftBand = 0 [static] |
int frame_padbottom = 0 [static] |
Definition at line 120 of file ffmpeg.c.
Referenced by av_encode(), new_video_stream(), opt_frame_pad_bottom(), and opt_input_file().
int frame_padleft = 0 [static] |
Definition at line 121 of file ffmpeg.c.
Referenced by av_encode(), new_video_stream(), opt_frame_pad_left(), and opt_input_file().
int frame_padright = 0 [static] |
Definition at line 122 of file ffmpeg.c.
Referenced by av_encode(), new_video_stream(), opt_frame_pad_right(), and opt_input_file().
int frame_padtop = 0 [static] |
Definition at line 119 of file ffmpeg.c.
Referenced by av_encode(), new_video_stream(), opt_frame_pad_top(), and opt_input_file().
enum PixelFormat frame_pix_fmt = PIX_FMT_NONE [static] |
Definition at line 117 of file ffmpeg.c.
Referenced by new_video_stream(), opt_frame_pix_fmt(), and opt_input_file().
AVRational frame_rate [static] |
Definition at line 129 of file ffmpeg.c.
Referenced by dc1394_read_common(), grab_read_header(), mm_read_header(), parse_ffconfig(), and parse_frame_rate().
int frame_rightBand = 0 [static] |
int frame_topBand = 0 [static] |
int frame_width = 0 [static] |
Definition at line 114 of file ffmpeg.c.
Referenced by av_parse_video_frame_size(), new_video_stream(), opt_frame_crop_left(), opt_frame_crop_right(), opt_frame_size(), opt_input_file(), and vmd_decode().
AVCodec* input_codecs[MAX_FILES *MAX_STREAMS] [static] |
AVFormatContext* input_files[MAX_FILES] [static] |
int64_t input_files_ts_offset[MAX_FILES] [static] |
double input_files_ts_scale[MAX_FILES][MAX_STREAMS] [static] |
int input_sync [static] |
int64_t input_ts_offset = 0 [static] |
uint16_t* inter_matrix = NULL [static] |
Definition at line 132 of file ffmpeg.c.
Referenced by av_exit(), new_video_stream(), and opt_inter_matrix().
int intra_dc_precision = 8 [static] |
uint16_t* intra_matrix = NULL [static] |
Definition at line 131 of file ffmpeg.c.
Referenced by av_exit(), new_video_stream(), and opt_intra_matrix().
int intra_only = 0 [static] |
uint64_t limit_filesize = 0 [static] |
int loop_input = 0 [static] |
int loop_output = AVFMT_NOOUTPUTLOOP [static] |
int max_frames[4] = {INT_MAX, INT_MAX, INT_MAX, INT_MAX} [static] |
Definition at line 128 of file ffmpeg.c.
Referenced by av_encode(), do_video_out(), and mp3_read_probe().
int me_threshold = 0 [static] |
Definition at line 146 of file ffmpeg.c.
Referenced by do_video_out(), new_video_stream(), opt_input_file(), and opt_me_threshold().
AVMetaDataMap meta_data_maps[MAX_FILES] [static] |
AVMetadataTag* metadata [static] |
Definition at line 176 of file ffmpeg.c.
Referenced by decode_info_header(), mxf_parse_structural_metadata(), and mxf_read_header().
int metadata_count [static] |
Definition at line 175 of file ffmpeg.c.
Referenced by asf_write_header1(), opt_metadata(), and opt_output_file().
float mux_max_delay = 0.7 [static] |
float mux_preload = 0.5 [static] |
int nb_frames_drop = 0 [static] |
int nb_frames_dup = 0 [static] |
int nb_icodecs [static] |
int nb_input_files = 0 [static] |
Definition at line 98 of file ffmpeg.c.
Referenced by av_exit(), check_audio_video_sub_inputs(), main(), opt_input_file(), opt_input_ts_scale(), opt_output_file(), and opt_target().
int nb_meta_data_maps [static] |
int nb_ocodecs [static] |
Definition at line 104 of file ffmpeg.c.
Referenced by new_audio_stream(), new_subtitle_stream(), and new_video_stream().
int nb_output_files = 0 [static] |
Definition at line 103 of file ffmpeg.c.
Referenced by av_exit(), main(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), opt_new_audio_stream(), opt_new_subtitle_stream(), opt_new_video_stream(), and opt_output_file().
int nb_stream_maps [static] |
int opt_programid = 0 [static] |
int opt_shortest = 0 [static] |
AVCodec* output_codecs[MAX_FILES *MAX_STREAMS] [static] |
AVFormatContext* output_files[MAX_FILES] [static] |
int padcolor[3] = {16,128,128} [static] |
char* pass_logfilename_prefix = NULL [static] |
int pgmyuv_compatibility_hack = 0 [static] |
const int program_birth_year = 2000 |
program birth year, defined by the program for show_banner()
const char program_name[] = "FFmpeg" |
int q_pressed = 0 [static] |
int qp_hist = 0 [static] |
int rate_emu = 0 [static] |
int64_t rec_timestamp = 0 [static] |
volatile sig_atomic_t received_sigterm = 0 [static] |
Definition at line 307 of file ffmpeg.c.
Referenced by av_encode(), av_exit(), and sigterm_handler().
int64_t recording_time = INT64_MAX [static] |
int same_quality = 0 [static] |
int64_t start_time = 0 [static] |
Definition at line 171 of file ffmpeg.c.
Referenced by asf_read_header(), av_update_stream_timings(), get_sync_ipts(), gxf_seek(), opt_input_file(), opt_start_time(), output_packet(), and rm_read_header().
AVStreamMap stream_maps[MAX_FILES *MAX_STREAMS] [static] |
AVBitStreamFilterContext* subtitle_bitstream_filters = NULL [static] |
char* subtitle_codec_name = NULL [static] |
Definition at line 164 of file ffmpeg.c.
Referenced by av_exit(), new_subtitle_stream(), opt_input_file(), opt_output_file(), opt_preset(), and opt_subtitle_codec().
int subtitle_disable = 0 [static] |
Definition at line 163 of file ffmpeg.c.
Referenced by new_subtitle_stream(), opt_input_file(), and opt_output_file().
char* subtitle_language = NULL [static] |
int subtitle_stream_copy = 0 [static] |
Definition at line 185 of file ffmpeg.c.
Referenced by new_subtitle_stream(), opt_output_file(), and opt_subtitle_codec().
unsigned int sws_flags = SWS_BICUBIC [static] |
Definition at line 222 of file ffmpeg.c.
Referenced by av_encode(), get_watermark_picture(), main(), Process(), Process0(), Process1(), queue_picture(), and write_video_frame().
int thread_count = 1 [static] |
Definition at line 208 of file ffmpeg.c.
Referenced by avcodec_thread_execute(), new_audio_stream(), new_video_stream(), opt_input_file(), opt_thread_count(), and worker().
int64_t timer_start [static] |
int top_field_first = -1 [static] |
Definition at line 145 of file ffmpeg.c.
Referenced by do_video_out(), mpegvideo_extract_headers(), and opt_top_field_first().
int using_stdin = 0 [static] |
Definition at line 205 of file ffmpeg.c.
Referenced by av_encode(), opt_input_file(), and opt_output_file().
int using_vhook = 0 [static] |
int verbose = 1 [static] |
Definition at line 207 of file ffmpeg.c.
Referenced by av_encode(), do_audio_out(), do_video_out(), libdirac_encode_init(), opt_input_file(), opt_target(), opt_thread_count(), opt_verbose(), output_packet(), and print_report().
AVBitStreamFilterContext* video_bitstream_filters = NULL [static] |
int video_channel = 0 [static] |
char* video_codec_name = NULL [static] |
Definition at line 141 of file ffmpeg.c.
Referenced by av_exit(), compute_status(), new_video_stream(), opt_input_file(), opt_output_file(), opt_preset(), and opt_video_codec().
int video_codec_tag = 0 [static] |
int video_disable = 0 [static] |
Definition at line 139 of file ffmpeg.c.
Referenced by new_video_stream(), opt_input_file(), and opt_output_file().
int video_discard = 0 [static] |
int video_global_header = 0 [static] |
float video_qscale = 0 [static] |
const char* video_rc_override_string = NULL [static] |
Definition at line 138 of file ffmpeg.c.
Referenced by new_video_stream(), and opt_video_rc_override_string().
int64_t video_size = 0 [static] |
Definition at line 210 of file ffmpeg.c.
Referenced by do_video_out(), do_video_stats(), output_packet(), print_report(), and rpl_read_header().
char* video_standard [static] |
Definition at line 200 of file ffmpeg.c.
Referenced by av_exit(), opt_input_file(), and opt_video_standard().
int video_stream_copy = 0 [static] |
Definition at line 184 of file ffmpeg.c.
Referenced by new_video_stream(), opt_output_file(), opt_video_codec(), and read_ffserver_streams().
int video_sync_method = -1 [static] |
FILE* vstats_file [static] |
char* vstats_filename [static] |
Definition at line 192 of file ffmpeg.c.
Referenced by av_exit(), do_video_stats(), opt_vstats_file(), and output_packet().