#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 "libavutil/audioconvert.h"
#include "libavutil/parseutils.h"
#include "libavutil/samplefmt.h"
#include "libavutil/colorspace.h"
#include "libavutil/fifo.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/libm.h"
#include "libavformat/os_support.h"
#include "libavformat/ffm.h"
#include <time.h>
#include "cmdutils.h"
#include "libavutil/avassert.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 | AVChapterMap |
struct | AVOutputStream |
struct | AVInputStream |
struct | AVInputFile |
Defines | |
#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)+AV_SAMPLE_FMT_NB*(b)) |
#define | AV_DELAY_MAX 0.100 |
#define | METADATA_CHECK_INDEX(index, nb_elems, desc) |
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 | ffmpeg_exit (int ret) |
static void * | grow_array (void *array, int elem_size, int *size, int new_size) |
static void | choose_sample_fmt (AVStream *st, AVCodec *codec) |
static void | choose_sample_rate (AVStream *st, AVCodec *codec) |
static void | choose_pixel_fmt (AVStream *st, AVCodec *codec) |
static AVOutputStream * | new_output_stream (AVFormatContext *oc, int file_idx) |
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 void | generate_silence (uint8_t *buf, enum AVSampleFormat sample_fmt, size_t size) |
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 void | parse_forced_key_frames (char *kf, AVOutputStream *ost, AVCodecContext *avctx) |
static int | transcode (AVFormatContext **output_files, int nb_output_files, AVInputFile *input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) |
static int | opt_format (const char *opt, const char *arg) |
static int | opt_video_rc_override_string (const char *opt, 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 int | opt_frame_crop (const char *opt, const char *arg) |
static int | opt_frame_size (const char *opt, const char *arg) |
static int | opt_pad (const char *opt, const char *arg) |
static int | opt_frame_pix_fmt (const char *opt, const char *arg) |
static int | opt_frame_aspect_ratio (const char *opt, const char *arg) |
static int | opt_metadata (const char *opt, const char *arg) |
static int | opt_qscale (const char *opt, const char *arg) |
static int | opt_top_field_first (const char *opt, const char *arg) |
static int | opt_thread_count (const char *opt, const char *arg) |
static int | opt_audio_sample_fmt (const char *opt, 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 int | opt_video_channel (const char *opt, const char *arg) |
static int | opt_video_standard (const char *opt, const char *arg) |
static int | opt_codec (const char *opt, const char *arg) |
static int | opt_codec_tag (const char *opt, const char *arg) |
static int | opt_map (const char *opt, const char *arg) |
static void | parse_meta_type (char *arg, char *type, int *index, char **endptr) |
static int | opt_map_metadata (const char *opt, const char *arg) |
static int | opt_map_meta_data (const char *opt, const char *arg) |
static int | opt_map_chapters (const char *opt, const char *arg) |
static int | opt_input_ts_scale (const char *opt, 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_recording_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, int strict) |
static int | opt_input_file (const char *opt, const char *filename) |
static void | check_inputs (int *has_video_ptr, int *has_audio_ptr, int *has_subtitle_ptr, int *has_data_ptr) |
static void | new_video_stream (AVFormatContext *oc, int file_idx) |
static void | new_audio_stream (AVFormatContext *oc, int file_idx) |
static void | new_data_stream (AVFormatContext *oc, int file_idx) |
static void | new_subtitle_stream (AVFormatContext *oc, int file_idx) |
static int | opt_new_stream (const char *opt, const char *arg) |
static int | opt_streamid (const char *opt, const char *arg) |
static int | opt_output_file (const char *opt, const char *filename) |
static int | opt_pass (const char *opt, const char *arg) |
static int64_t | getutime (void) |
static int64_t | getmaxrss (void) |
static void | parse_matrix_coeffs (uint16_t *dest, const char *str) |
static int | opt_inter_matrix (const char *opt, const char *arg) |
static int | opt_intra_matrix (const char *opt, const char *arg) |
static void | show_usage (void) |
static int | opt_help (const char *opt, const char *arg) |
static int | opt_target (const char *opt, const char *arg) |
static int | opt_vstats_file (const char *opt, const char *arg) |
static int | opt_vstats (const char *opt, const char *arg) |
static int | opt_bsf (const char *opt, const char *arg) |
static int | opt_preset (const char *opt, const char *arg) |
static void | log_callback_null (void *ptr, int level, const char *fmt, va_list vl) |
static int | opt_passlogfile (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 int64_t | input_files_ts_offset [MAX_FILES] |
static double * | input_files_ts_scale [MAX_FILES] = {NULL} |
static AVCodec ** | input_codecs = NULL |
static int | nb_input_codecs = 0 |
static int | nb_input_files_ts_scale [MAX_FILES] = {0} |
static AVFormatContext * | output_files [MAX_FILES] |
static int | nb_output_files = 0 |
static AVStreamMap * | stream_maps = NULL |
static int | nb_stream_maps |
static AVMetaDataMap(* | meta_data_maps )[2] = NULL |
static int | nb_meta_data_maps |
static int | metadata_global_autocopy = 1 |
static int | metadata_streams_autocopy = 1 |
static int | metadata_chapters_autocopy = 1 |
static AVChapterMap * | chapter_maps = NULL |
static int | nb_chapter_maps |
static int * | streamid_map = NULL |
static int | nb_streamid_map = 0 |
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 int | frame_bits_per_raw_sample = 0 |
static enum AVSampleFormat | audio_sample_fmt = AV_SAMPLE_FMT_NONE |
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 unsigned 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 = 0 |
static int64_t | channel_layout = 0 |
static float | audio_qscale = QSCALE_NONE |
static int | audio_disable = 0 |
static int | audio_channels = 0 |
static char * | audio_codec_name = NULL |
static unsigned 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 unsigned int | subtitle_codec_tag = 0 |
static int | data_disable = 0 |
static char * | data_codec_name = NULL |
static unsigned int | data_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 | recording_timestamp = 0 |
static int64_t | input_ts_offset = 0 |
static int | file_overwrite = 0 |
static AVDictionary * | 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 const char * | pass_logfilename_prefix |
static int | audio_stream_copy = 0 |
static int | video_stream_copy = 0 |
static int | subtitle_stream_copy = 0 |
static int | data_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 | copy_tb = 0 |
static int | opt_shortest = 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 | run_as_daemon = 0 |
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 char * | forced_key_frames = NULL |
static float | dts_delta_threshold = 10 |
static int64_t | timer_start |
static uint8_t * | audio_buf |
static uint8_t * | audio_out |
static unsigned int | allocated_audio_out_size |
static unsigned int | allocated_audio_buf_size |
static short * | samples |
static AVBitStreamFilterContext * | video_bitstream_filters = NULL |
static AVBitStreamFilterContext * | audio_bitstream_filters = NULL |
static AVBitStreamFilterContext * | subtitle_bitstream_filters = NULL |
static AVOutputStream ** | output_streams_for_file [MAX_FILES] = { NULL } |
static int | nb_output_streams_for_file [MAX_FILES] = { 0 } |
static AVInputStream * | input_streams = NULL |
static int | nb_input_streams = 0 |
static AVInputFile * | input_files = NULL |
static int | nb_input_files = 0 |
static volatile int | received_sigterm = 0 |
static int | bit_buffer_size = 1024*256 |
static uint8_t * | bit_buffer = NULL |
#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" |
#define MAKE_SFMT_PAIR | ( | a, | |||
b | ) | ((a)+AV_SAMPLE_FMT_NB*(b)) |
Referenced by do_audio_out(), and transcode().
#define MAX_FILES 100 |
#define METADATA_CHECK_INDEX | ( | index, | |||
nb_elems, | |||||
desc | ) |
Value:
if ((index) < 0 || (index) >= (nb_elems)) {\ snprintf(error, sizeof(error), "Invalid %s index %d while processing metadata maps\n",\ (desc), (index));\ ret = AVERROR(EINVAL);\ goto dump_format;\ }
Referenced by transcode().
#define QSCALE_NONE -99999 |
static void check_inputs | ( | int * | has_video_ptr, | |
int * | has_audio_ptr, | |||
int * | has_subtitle_ptr, | |||
int * | has_data_ptr | |||
) | [static] |
Definition at line 615 of file ffmpeg.c.
Referenced by new_audio_stream(), and read_ffserver_streams().
static int copy_chapters | ( | int | infile, | |
int | outfile | |||
) | [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 int ffmpeg_exit | ( | int | ret | ) | [static] |
Definition at line 535 of file ffmpeg.c.
Referenced by do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), find_codec_or_die(), grow_array(), main(), new_audio_stream(), new_data_stream(), new_output_stream(), new_subtitle_stream(), new_video_stream(), opt_audio_sample_fmt(), opt_bsf(), opt_frame_pix_fmt(), opt_frame_rate(), opt_input_file(), opt_input_ts_scale(), opt_metadata(), opt_new_stream(), opt_output_file(), opt_preset(), opt_streamid(), opt_target(), output_packet(), parse_forced_key_frames(), parse_matrix_coeffs(), parse_meta_type(), read_ffserver_streams(), transcode(), and write_frame().
static enum CodecID find_codec_or_die | ( | const char * | name, | |
int | type, | |||
int | encoder, | |||
int | strict | |||
) | [static] |
Definition at line 3241 of file ffmpeg.c.
Referenced by new_audio_stream(), new_subtitle_stream(), new_video_stream(), and opt_input_file().
static void generate_silence | ( | uint8_t * | buf, | |
enum AVSampleFormat | sample_fmt, | |||
size_t | size | |||
) | [static] |
static double get_sync_ipts | ( | const AVOutputStream * | ost | ) | [static] |
static int64_t getmaxrss | ( | void | ) | [static] |
static int64_t getutime | ( | void | ) | [static] |
static void* grow_array | ( | void * | array, | |
int | elem_size, | |||
int * | size, | |||
int | new_size | |||
) | [static] |
Definition at line 596 of file ffmpeg.c.
Referenced by new_output_stream(), opt_input_file(), opt_input_ts_scale(), opt_map(), opt_map_chapters(), opt_map_metadata(), and opt_streamid().
static void log_callback_null | ( | void * | ptr, | |
int | level, | |||
const char * | fmt, | |||
va_list | vl | |||
) | [static] |
static void new_audio_stream | ( | AVFormatContext * | oc, | |
int | file_idx | |||
) | [static] |
static void new_data_stream | ( | AVFormatContext * | oc, | |
int | file_idx | |||
) | [static] |
static AVOutputStream* new_output_stream | ( | AVFormatContext * | oc, | |
int | file_idx | |||
) | [static] |
Definition at line 683 of file ffmpeg.c.
Referenced by new_audio_stream(), new_data_stream(), new_subtitle_stream(), new_video_stream(), and read_ffserver_streams().
static void new_subtitle_stream | ( | AVFormatContext * | oc, | |
int | file_idx | |||
) | [static] |
static void new_video_stream | ( | AVFormatContext * | oc, | |
int | file_idx | |||
) | [static] |
static int opt_audio_channels | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_audio_rate | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_audio_sample_fmt | ( | const char * | opt, | |
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 int opt_codec | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_codec_tag | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_format | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_frame_aspect_ratio | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_frame_crop | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_frame_pix_fmt | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_frame_rate | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_frame_size | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_help | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_input_file | ( | const char * | opt, | |
const char * | filename | |||
) | [static] |
static int opt_input_ts_offset | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_input_ts_scale | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_inter_matrix | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_intra_matrix | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_map | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_map_chapters | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_map_meta_data | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_map_metadata | ( | const char * | opt, | |
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 int opt_new_stream | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_output_file | ( | const char * | opt, | |
const char * | filename | |||
) | [static] |
static int opt_pad | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_pass | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_passlogfile | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_preset | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_qscale | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_recording_time | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_recording_timestamp | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_start_time | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_streamid | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_target | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_thread_count | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_top_field_first | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_verbose | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_video_channel | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_video_rc_override_string | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_video_standard | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_vstats | ( | const char * | opt, | |
const char * | arg | |||
) | [static] |
static int opt_vstats_file | ( | const char * | opt, | |
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 1518 of file ffmpeg.c.
Referenced by mpeg_mux_end(), and mpeg_mux_write_packet().
static void parse_forced_key_frames | ( | char * | kf, | |
AVOutputStream * | ost, | |||
AVCodecContext * | avctx | |||
) | [static] |
static void parse_matrix_coeffs | ( | uint16_t * | dest, | |
const char * | str | |||
) | [static] |
static void parse_meta_type | ( | char * | arg, | |
char * | type, | |||
int * | index, | |||
char ** | endptr | |||
) | [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 1337 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 show_usage | ( | void | ) | [static] |
static void sigterm_handler | ( | int | sig | ) | [static] |
static void term_exit | ( | void | ) | [static] |
static void term_init | ( | void | ) | [static] |
static int transcode | ( | AVFormatContext ** | output_files, | |
int | nb_output_files, | |||
AVInputFile * | input_files, | |||
int | nb_input_files, | |||
AVStreamMap * | stream_maps, | |||
int | nb_stream_maps | |||
) | [static] |
static void write_frame | ( | AVFormatContext * | s, | |
AVPacket * | pkt, | |||
AVCodecContext * | avctx, | |||
AVBitStreamFilterContext * | bsfc | |||
) | [static] |
Definition at line 769 of file ffmpeg.c.
Referenced by do_audio_out(), do_subtitle_out(), do_video_out(), flac_encode_frame(), and output_packet().
unsigned int allocated_audio_buf_size [static] |
Definition at line 255 of file ffmpeg.c.
Referenced by do_audio_out(), ffmpeg_exit(), and output_packet().
unsigned int allocated_audio_out_size [static] |
AVBitStreamFilterContext* audio_bitstream_filters = NULL [static] |
uint8_t* audio_buf [static] |
Definition at line 253 of file ffmpeg.c.
Referenced by do_audio_out(), ffmpeg_exit(), and output_packet().
int audio_channels = 0 [static] |
Definition at line 182 of file ffmpeg.c.
Referenced by ff_rtp_get_codec_info(), new_audio_stream(), opt_audio_channels(), opt_input_file(), opt_output_file(), and opt_target().
char* audio_codec_name = NULL [static] |
Definition at line 183 of file ffmpeg.c.
Referenced by compute_status(), ffmpeg_exit(), new_audio_stream(), opt_codec(), opt_input_file(), opt_output_file(), and opt_preset().
unsigned int audio_codec_tag = 0 [static] |
int audio_disable = 0 [static] |
Definition at line 181 of file ffmpeg.c.
Referenced by main(), new_audio_stream(), opt_input_file(), opt_output_file(), and read_thread().
float audio_drift_threshold = 0.1 [static] |
char* audio_language = NULL [static] |
uint8_t* audio_out [static] |
float audio_qscale = QSCALE_NONE [static] |
enum AVSampleFormat audio_sample_fmt = AV_SAMPLE_FMT_NONE [static] |
Definition at line 152 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_audio_sample_fmt(), and opt_input_file().
int audio_sample_rate = 0 [static] |
Definition at line 177 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_audio_rate(), opt_input_file(), opt_output_file(), and opt_target().
int64_t audio_size = 0 [static] |
Definition at line 240 of file ffmpeg.c.
Referenced by bfi_read_packet(), do_audio_out(), output_packet(), print_report(), read_packet(), rl2_read_header(), rpl_read_header(), and sdl_audio_callback().
int audio_stream_copy = 0 [static] |
Definition at line 211 of file ffmpeg.c.
Referenced by new_audio_stream(), opt_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 1153 of file ffmpeg.c.
Referenced by do_video_out(), output_packet(), and transcode().
int bit_buffer_size = 1024*256 [static] |
Definition at line 1152 of file ffmpeg.c.
Referenced by do_video_out(), output_packet(), and transcode().
int64_t channel_layout = 0 [static] |
Definition at line 178 of file ffmpeg.c.
Referenced by cdata_read_header(), new_audio_stream(), opt_input_file(), and pcm_bluray_parse_header().
AVChapterMap* chapter_maps = NULL [static] |
int copy_initial_nonkeyframes = 0 [static] |
int copy_tb = 0 [static] |
int copy_ts = 0 [static] |
char* data_codec_name = NULL [static] |
Definition at line 193 of file ffmpeg.c.
Referenced by ffmpeg_exit(), new_data_stream(), opt_codec(), and opt_output_file().
unsigned int data_codec_tag = 0 [static] |
int data_disable = 0 [static] |
int data_stream_copy = 0 [static] |
Definition at line 214 of file ffmpeg.c.
Referenced by new_data_stream(), opt_codec(), and opt_output_file().
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 233 of file ffmpeg.c.
Referenced by do_audio_out(), do_subtitle_out(), and write_frame().
int64_t extra_size = 0 [static] |
Definition at line 241 of file ffmpeg.c.
Referenced by ape_read_packet(), asf_write_header1(), print_report(), and transcode().
int file_overwrite = 0 [static] |
int force_fps = 0 [static] |
char* forced_key_frames = NULL [static] |
float frame_aspect_ratio = 0 [static] |
Definition at line 149 of file ffmpeg.c.
Referenced by new_video_stream(), and opt_frame_aspect_ratio().
int frame_bits_per_raw_sample = 0 [static] |
int frame_height = 0 [static] |
Definition at line 148 of file ffmpeg.c.
Referenced by new_video_stream(), opt_frame_size(), opt_input_file(), opt_output_file(), and vmd_decode().
enum PixelFormat frame_pix_fmt = PIX_FMT_NONE [static] |
Definition at line 150 of file ffmpeg.c.
Referenced by new_video_stream(), opt_frame_pix_fmt(), and opt_input_file().
AVRational frame_rate [static] |
Definition at line 154 of file ffmpeg.c.
Referenced by color_init(), dc1394_read_header(), parse_ffconfig(), parse_frame_rate(), parse_source_parameters(), read_header(), source_init(), and yop_read_header().
int frame_width = 0 [static] |
Definition at line 147 of file ffmpeg.c.
Referenced by new_video_stream(), opt_frame_size(), opt_input_file(), opt_output_file(), and vmd_decode().
AVCodec** input_codecs = NULL [static] |
AVInputFile* input_files = NULL [static] |
int64_t input_files_ts_offset[MAX_FILES] [static] |
Definition at line 121 of file ffmpeg.c.
Referenced by copy_chapters(), opt_input_file(), and transcode().
double* input_files_ts_scale[MAX_FILES] = {NULL} [static] |
Definition at line 122 of file ffmpeg.c.
Referenced by ffmpeg_exit(), opt_input_ts_scale(), and transcode().
AVInputStream* input_streams = NULL [static] |
int input_sync [static] |
int64_t input_ts_offset = 0 [static] |
uint16_t* inter_matrix = NULL [static] |
Definition at line 157 of file ffmpeg.c.
Referenced by avcodec_copy_context(), ffmpeg_exit(), new_video_stream(), and opt_inter_matrix().
int intra_dc_precision = 8 [static] |
uint16_t* intra_matrix = NULL [static] |
Definition at line 156 of file ffmpeg.c.
Referenced by avcodec_copy_context(), ffmpeg_exit(), new_video_stream(), and opt_intra_matrix().
int intra_only = 0 [static] |
const char* last_asked_format = NULL [static] |
Definition at line 120 of file ffmpeg.c.
Referenced by opt_format(), opt_input_file(), and opt_output_file().
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 153 of file ffmpeg.c.
Referenced by ac3_eac3_probe(), adts_aac_probe(), do_video_out(), mp3_read_probe(), and transcode().
int me_threshold = 0 [static] |
Definition at line 167 of file ffmpeg.c.
Referenced by do_video_out(), new_video_stream(), opt_input_file(), and opt_me_threshold().
AVMetaDataMap(* meta_data_maps)[2] = NULL [static] |
Definition at line 134 of file ffmpeg.c.
Referenced by ffmpeg_exit(), opt_map_metadata(), and transcode().
AVDictionary* metadata [static] |
Definition at line 204 of file ffmpeg.c.
Referenced by decode_info_header(), mxf_parse_structural_metadata(), and mxf_read_header().
int metadata_chapters_autocopy = 1 [static] |
int metadata_global_autocopy = 1 [static] |
int metadata_streams_autocopy = 1 [static] |
float mux_max_delay = 0.7 [static] |
float mux_preload = 0.5 [static] |
int nb_chapter_maps [static] |
int nb_frames_drop = 0 [static] |
int nb_frames_dup = 0 [static] |
int nb_input_codecs = 0 [static] |
int nb_input_files = 0 [static] |
Definition at line 360 of file ffmpeg.c.
Referenced by check_inputs(), ffmpeg_exit(), main(), opt_input_file(), opt_input_ts_scale(), opt_output_file(), and opt_target().
int nb_input_files_ts_scale[MAX_FILES] = {0} [static] |
int nb_input_streams = 0 [static] |
int nb_meta_data_maps [static] |
int nb_output_files = 0 [static] |
int nb_output_streams_for_file[MAX_FILES] = { 0 } [static] |
int nb_stream_maps [static] |
int nb_streamid_map = 0 [static] |
Definition at line 145 of file ffmpeg.c.
Referenced by new_audio_stream(), new_data_stream(), new_subtitle_stream(), new_video_stream(), and opt_streamid().
int opt_programid = 0 [static] |
int opt_shortest = 0 [static] |
AVFormatContext* output_files[MAX_FILES] [static] |
AVOutputStream** output_streams_for_file[MAX_FILES] = { NULL } [static] |
const char* pass_logfilename_prefix [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] |
Definition at line 238 of file ffmpeg.c.
Referenced by decode_interrupt_cb(), sigterm_handler(), and transcode().
int qp_hist = 0 [static] |
int rate_emu = 0 [static] |
volatile int received_sigterm = 0 [static] |
Definition at line 457 of file ffmpeg.c.
Referenced by ffmpeg_exit(), sigterm_handler(), and transcode().
int64_t recording_time = INT64_MAX [static] |
Definition at line 199 of file ffmpeg.c.
Referenced by copy_chapters(), opt_recording_time(), and transcode().
int64_t recording_timestamp = 0 [static] |
Definition at line 201 of file ffmpeg.c.
Referenced by opt_output_file(), and opt_recording_timestamp().
int run_as_daemon = 0 [static] |
Definition at line 236 of file ffmpeg.c.
Referenced by main(), read_key(), term_exit(), and term_init().
int same_quality = 0 [static] |
int64_t start_time = 0 [static] |
Definition at line 200 of file ffmpeg.c.
Referenced by asf_read_stream_properties(), av_update_stream_timings(), copy_chapters(), get_sync_ipts(), gxf_seek(), libAVFilter_Run(), opt_input_file(), opt_seek(), opt_start_time(), output_packet(), put_image(), read_thread(), rm_read_header(), skeleton_header(), and transcode().
AVStreamMap* stream_maps = NULL [static] |
int* streamid_map = NULL [static] |
Definition at line 144 of file ffmpeg.c.
Referenced by ffmpeg_exit(), new_audio_stream(), new_data_stream(), new_subtitle_stream(), new_video_stream(), and opt_streamid().
AVBitStreamFilterContext* subtitle_bitstream_filters = NULL [static] |
char* subtitle_codec_name = NULL [static] |
Definition at line 188 of file ffmpeg.c.
Referenced by ffmpeg_exit(), new_subtitle_stream(), opt_codec(), opt_input_file(), opt_output_file(), and opt_preset().
unsigned int subtitle_codec_tag = 0 [static] |
int subtitle_disable = 0 [static] |
Definition at line 187 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 213 of file ffmpeg.c.
Referenced by new_subtitle_stream(), opt_codec(), and opt_output_file().
int thread_count = 1 [static] |
Definition at line 237 of file ffmpeg.c.
Referenced by ff_h264_frame_start(), frame_thread_init(), new_audio_stream(), new_video_stream(), opt_input_file(), opt_thread_count(), stream_component_open(), thread_init(), and worker().
int64_t timer_start [static] |
int top_field_first = -1 [static] |
Definition at line 166 of file ffmpeg.c.
Referenced by do_video_out(), mpegvideo_extract_headers(), opt_input_file(), and opt_top_field_first().
int using_stdin = 0 [static] |
Definition at line 234 of file ffmpeg.c.
Referenced by opt_input_file(), opt_output_file(), and transcode().
int verbose = 1 [static] |
Definition at line 235 of file ffmpeg.c.
Referenced by do_audio_out(), do_video_out(), libdirac_encode_init(), main(), opt_input_file(), opt_target(), opt_thread_count(), opt_verbose(), output_packet(), print_report(), and transcode().
AVBitStreamFilterContext* video_bitstream_filters = NULL [static] |
int video_channel = 0 [static] |
char* video_codec_name = NULL [static] |
Definition at line 161 of file ffmpeg.c.
Referenced by compute_status(), ffmpeg_exit(), new_video_stream(), opt_codec(), opt_input_file(), opt_output_file(), and opt_preset().
unsigned int video_codec_tag = 0 [static] |
int video_disable = 0 [static] |
Definition at line 159 of file ffmpeg.c.
Referenced by main(), new_video_stream(), opt_input_file(), opt_output_file(), and read_thread().
int video_discard = 0 [static] |
char* video_language = NULL [static] |
float video_qscale = 0 [static] |
const char* video_rc_override_string = NULL [static] |
Definition at line 158 of file ffmpeg.c.
Referenced by new_video_stream(), and opt_video_rc_override_string().
int64_t video_size = 0 [static] |
Definition at line 239 of file ffmpeg.c.
Referenced by decode_frame(), do_video_out(), do_video_stats(), output_packet(), print_report(), and rpl_read_header().
char* video_standard [static] |
Definition at line 229 of file ffmpeg.c.
Referenced by ffmpeg_exit(), opt_input_file(), and opt_video_standard().
int video_stream_copy = 0 [static] |
Definition at line 212 of file ffmpeg.c.
Referenced by new_video_stream(), opt_codec(), opt_output_file(), and read_ffserver_streams().
int video_sync_method = -1 [static] |
FILE* vstats_file [static] |
char* vstats_filename [static] |
Definition at line 221 of file ffmpeg.c.
Referenced by do_video_stats(), ffmpeg_exit(), opt_vstats_file(), and output_packet().