fftools_ffmpeg.h
Go to the documentation of this file.
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* CHANGES 06.2020
* - cancel_operation() method signature updated with id
*
* CHANGES 01.2020
* - ffprobe support changes
*
* CHANGES 12.2019
* - Concurrent execution support
*
* CHANGES 03.2019
* --------------------------------------------------------
* - config.h include removed
*
* CHANGES 08.2018
* --------------------------------------------------------
* - fftools_ prefix added to file name and include guards
* - set_report_callback() method declared
* - cancel_operation() method declared
*
* CHANGES 07.2018
* --------------------------------------------------------
* - Include guards renamed
*/
#ifndef FFTOOLS_FFMPEG_H
#define FFTOOLS_FFMPEG_H
#include <stdint.h>
#include <stdio.h>
#include <signal.h>
#include "fftools_cmdutils.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavutil/avutil.h"
#include "libavutil/dict.h"
#include "libavutil/eval.h"
#include "libavutil/fifo.h"
#include "libavutil/hwcontext.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
#include "libavutil/thread.h"
#include "libavutil/threadmessage.h"
#include "libswresample/swresample.h"
#define VSYNC_AUTO -1
#define VSYNC_PASSTHROUGH 0
#define VSYNC_CFR 1
#define VSYNC_VFR 2
#define VSYNC_VSCFR 0xfe
#define VSYNC_DROP 0xff
#define MAX_STREAMS 1024 /* arbitrary sanity check value */
enum HWAccelID {
HWACCEL_NONE = 0,
HWACCEL_AUTO,
HWACCEL_GENERIC,
HWACCEL_VIDEOTOOLBOX,
HWACCEL_QSV,
};
typedef struct HWAccel {
const char *name;
int (*init)(AVCodecContext *s);
enum HWAccelID id;
enum AVPixelFormat pix_fmt;
} HWAccel;
typedef struct HWDevice {
const char *name;
enum AVHWDeviceType type;
AVBufferRef *device_ref;
} HWDevice;
/* select an input stream for an output stream */
typedef struct StreamMap {
int disabled; /* 1 is this mapping is disabled by a negative map */
int file_index;
int stream_index;
int sync_file_index;
int sync_stream_index;
char *linklabel; /* name of an output link, for mapping lavfi outputs */
} StreamMap;
typedef struct {
int file_idx, stream_idx, channel_idx; // input
int ofile_idx, ostream_idx; // output
} AudioChannelMap;
typedef struct OptionsContext {
OptionGroup *g;
/* input/output options */
int64_t start_time;
int64_t start_time_eof;
int seek_timestamp;
const char *format;
SpecifierOpt *codec_names;
int nb_codec_names;
SpecifierOpt *audio_channels;
int nb_audio_channels;
SpecifierOpt *audio_sample_rate;
int nb_audio_sample_rate;
SpecifierOpt *frame_rates;
int nb_frame_rates;
SpecifierOpt *max_frame_rates;
int nb_max_frame_rates;
SpecifierOpt *frame_sizes;
int nb_frame_sizes;
SpecifierOpt *frame_pix_fmts;
int nb_frame_pix_fmts;
/* input options */
int64_t input_ts_offset;
int loop;
int rate_emu;
int accurate_seek;
int thread_queue_size;
SpecifierOpt *ts_scale;
int nb_ts_scale;
SpecifierOpt *dump_attachment;
int nb_dump_attachment;
SpecifierOpt *hwaccels;
int nb_hwaccels;
SpecifierOpt *hwaccel_devices;
int nb_hwaccel_devices;
SpecifierOpt *hwaccel_output_formats;
int nb_hwaccel_output_formats;
SpecifierOpt *autorotate;
int nb_autorotate;
/* output options */
StreamMap *stream_maps;
int nb_stream_maps;
AudioChannelMap *audio_channel_maps; /* one info entry per -map_channel */
int nb_audio_channel_maps; /* number of (valid) -map_channel settings */
int metadata_global_manual;
int metadata_streams_manual;
int metadata_chapters_manual;
const char **attachments;
int nb_attachments;
int chapters_input_file;
int64_t recording_time;
int64_t stop_time;
uint64_t limit_filesize;
float mux_preload;
float mux_max_delay;
int shortest;
int bitexact;
int video_disable;
int audio_disable;
int subtitle_disable;
int data_disable;
/* indexed by output file stream index */
int *streamid_map;
int nb_streamid_map;
SpecifierOpt *metadata;
int nb_metadata;
SpecifierOpt *max_frames;
int nb_max_frames;
SpecifierOpt *bitstream_filters;
int nb_bitstream_filters;
SpecifierOpt *codec_tags;
int nb_codec_tags;
SpecifierOpt *sample_fmts;
int nb_sample_fmts;
SpecifierOpt *qscale;
int nb_qscale;
SpecifierOpt *forced_key_frames;
int nb_forced_key_frames;
SpecifierOpt *force_fps;
int nb_force_fps;
SpecifierOpt *frame_aspect_ratios;
int nb_frame_aspect_ratios;
SpecifierOpt *rc_overrides;
int nb_rc_overrides;
SpecifierOpt *intra_matrices;
int nb_intra_matrices;
SpecifierOpt *inter_matrices;
int nb_inter_matrices;
SpecifierOpt *chroma_intra_matrices;
int nb_chroma_intra_matrices;
SpecifierOpt *top_field_first;
int nb_top_field_first;
SpecifierOpt *metadata_map;
int nb_metadata_map;
SpecifierOpt *presets;
int nb_presets;
SpecifierOpt *copy_initial_nonkeyframes;
int nb_copy_initial_nonkeyframes;
SpecifierOpt *copy_prior_start;
int nb_copy_prior_start;
SpecifierOpt *filters;
int nb_filters;
SpecifierOpt *filter_scripts;
int nb_filter_scripts;
SpecifierOpt *reinit_filters;
int nb_reinit_filters;
SpecifierOpt *fix_sub_duration;
int nb_fix_sub_duration;
SpecifierOpt *canvas_sizes;
int nb_canvas_sizes;
SpecifierOpt *pass;
int nb_pass;
SpecifierOpt *passlogfiles;
int nb_passlogfiles;
SpecifierOpt *max_muxing_queue_size;
int nb_max_muxing_queue_size;
SpecifierOpt *muxing_queue_data_threshold;
int nb_muxing_queue_data_threshold;
SpecifierOpt *guess_layout_max;
int nb_guess_layout_max;
SpecifierOpt *apad;
int nb_apad;
SpecifierOpt *discard;
int nb_discard;
SpecifierOpt *disposition;
int nb_disposition;
SpecifierOpt *program;
int nb_program;
SpecifierOpt *time_bases;
int nb_time_bases;
SpecifierOpt *enc_time_bases;
int nb_enc_time_bases;
SpecifierOpt *autoscale;
int nb_autoscale;
} OptionsContext;
typedef struct InputFilter {
AVFilterContext *filter;
struct InputStream *ist;
struct FilterGraph *graph;
uint8_t *name;
enum AVMediaType type; // AVMEDIA_TYPE_SUBTITLE for sub2video
AVFifoBuffer *frame_queue;
// parameters configured for this input
int format;
int width, height;
AVRational sample_aspect_ratio;
int sample_rate;
int channels;
uint64_t channel_layout;
AVBufferRef *hw_frames_ctx;
int eof;
} InputFilter;
typedef struct OutputFilter {
AVFilterContext *filter;
struct OutputStream *ost;
struct FilterGraph *graph;
uint8_t *name;
/* temporary storage until stream maps are processed */
AVFilterInOut *out_tmp;
enum AVMediaType type;
/* desired output stream properties */
int width, height;
AVRational frame_rate;
int format;
int sample_rate;
uint64_t channel_layout;
// those are only set if no format is specified and the encoder gives us multiple options
int *formats;
uint64_t *channel_layouts;
int *sample_rates;
} OutputFilter;
typedef struct FilterGraph {
int index;
const char *graph_desc;
AVFilterGraph *graph;
int reconfiguration;
InputFilter **inputs;
int nb_inputs;
OutputFilter **outputs;
int nb_outputs;
} FilterGraph;
typedef struct InputStream {
int file_index;
AVStream *st;
int discard; /* true if stream data should be discarded */
int user_set_discard;
int decoding_needed; /* non zero if the packets must be decoded in 'raw_fifo', see DECODING_FOR_* */
#define DECODING_FOR_OST 1
#define DECODING_FOR_FILTER 2
AVCodecContext *dec_ctx;
AVCodec *dec;
AVFrame *decoded_frame;
AVFrame *filter_frame; /* a ref of decoded_frame, to be sent to filters */
int64_t start; /* time when read started */
/* predicted dts of the next packet read for this stream or (when there are
* several frames in a packet) of the next frame in current packet (in AV_TIME_BASE units) */
int64_t next_dts;
int64_t dts;
int64_t next_pts;
int64_t pts;
int wrap_correction_done;
int64_t filter_in_rescale_delta_last;
int64_t min_pts; /* pts with the smallest value in a current stream */
int64_t max_pts; /* pts with the higher value in a current stream */
// when forcing constant input framerate through -r,
// this contains the pts that will be given to the next decoded frame
int64_t cfr_next_pts;
int64_t nb_samples; /* number of samples in the last decoded audio frame before looping */
double ts_scale;
int saw_first_ts;
AVDictionary *decoder_opts;
AVRational framerate; /* framerate forced with -r */
int top_field_first;
int guess_layout_max;
int autorotate;
int fix_sub_duration;
struct { /* previous decoded subtitle and related variables */
int got_output;
int ret;
AVSubtitle subtitle;
} prev_sub;
struct sub2video {
int64_t last_pts;
int64_t end_pts;
AVFifoBuffer *sub_queue;
AVFrame *frame;
int w, h;
unsigned int initialize;
} sub2video;
int dr1;
/* decoded data from this stream goes into all those filters
* currently video and audio only */
InputFilter **filters;
int nb_filters;
int reinit_filters;
/* hwaccel options */
enum HWAccelID hwaccel_id;
enum AVHWDeviceType hwaccel_device_type;
char *hwaccel_device;
enum AVPixelFormat hwaccel_output_format;
/* hwaccel context */
void *hwaccel_ctx;
void (*hwaccel_uninit)(AVCodecContext *s);
int (*hwaccel_get_buffer)(AVCodecContext *s, AVFrame *frame, int flags);
int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
enum AVPixelFormat hwaccel_pix_fmt;
enum AVPixelFormat hwaccel_retrieved_pix_fmt;
AVBufferRef *hw_frames_ctx;
/* stats */
// combined size of all the packets read
uint64_t data_size;
/* number of packets successfully read for this stream */
uint64_t nb_packets;
// number of frames/samples retrieved from the decoder
uint64_t frames_decoded;
uint64_t samples_decoded;
int64_t *dts_buffer;
int nb_dts_buffer;
int got_output;
} InputStream;
typedef struct InputFile {
AVFormatContext *ctx;
int eof_reached; /* true if eof reached */
int eagain; /* true if last read attempt returned EAGAIN */
int ist_index; /* index of first stream in input_streams */
int loop; /* set number of times input stream should be looped */
int64_t duration; /* actual duration of the longest stream in a file
at the moment when looping happens */
AVRational time_base; /* time base of the duration */
int64_t input_ts_offset;
int64_t ts_offset;
int64_t last_ts;
int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
int seek_timestamp;
int64_t recording_time;
int nb_streams; /* number of stream that ffmpeg is aware of; may be different
from ctx.nb_streams if new streams appear during av_read_frame() */
int nb_streams_warn; /* number of streams that the user was warned of */
int rate_emu;
int accurate_seek;
#if HAVE_THREADS
AVThreadMessageQueue *in_thread_queue;
pthread_t thread; /* thread reading from this file */
int non_blocking; /* reading packets from the thread should not block */
int joined; /* the thread has been joined */
int thread_queue_size; /* maximum number of queued packets */
#endif
} InputFile;
enum forced_keyframes_const {
FKF_N,
FKF_N_FORCED,
FKF_PREV_FORCED_N,
FKF_PREV_FORCED_T,
FKF_T,
FKF_NB
};
#define ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0)
#define ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM (1 << 1)
extern const char *const forced_keyframes_const_names[];
typedef enum {
ENCODER_FINISHED = 1,
MUXER_FINISHED = 2,
} OSTFinished ;
typedef struct OutputStream {
int file_index; /* file index */
int index; /* stream index in the output file */
int source_index; /* InputStream index */
AVStream *st; /* stream in the output file */
int encoding_needed; /* true if encoding needed for this stream */
int frame_number;
/* input pts and corresponding output pts
for A/V sync */
struct InputStream *sync_ist; /* input stream to sync against */
int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
/* pts of the first frame encoded for this stream, used for limiting
* recording time */
int64_t first_pts;
/* dts of the last packet sent to the muxer */
int64_t last_mux_dts;
// the timebase of the packets sent to the muxer
AVRational mux_timebase;
AVRational enc_timebase;
AVBSFContext *bsf_ctx;
AVCodecContext *enc_ctx;
AVCodecParameters *ref_par; /* associated input codec parameters with encoders options applied */
AVCodec *enc;
int64_t max_frames;
AVFrame *filtered_frame;
AVFrame *last_frame;
int last_dropped;
int last_nb0_frames[3];
void *hwaccel_ctx;
/* video only */
AVRational frame_rate;
AVRational max_frame_rate;
int is_cfr;
int force_fps;
int top_field_first;
int rotate_overridden;
int autoscale;
double rotate_override_value;
AVRational frame_aspect_ratio;
/* forced key frames */
int64_t forced_kf_ref_pts;
int64_t *forced_kf_pts;
int forced_kf_count;
int forced_kf_index;
char *forced_keyframes;
AVExpr *forced_keyframes_pexpr;
double forced_keyframes_expr_const_values[FKF_NB];
/* audio only */
int *audio_channels_map; /* list of the channels id to pick from the source stream */
int audio_channels_mapped; /* number of channels in audio_channels_map */
char *logfile_prefix;
FILE *logfile;
OutputFilter *filter;
char *avfilter;
char *filters;
char *filters_script;
AVDictionary *encoder_opts;
AVDictionary *sws_dict;
AVDictionary *swr_opts;
AVDictionary *resample_opts;
char *apad;
OSTFinished finished; /* no more packets should be written for this stream */
int unavailable; /* true if the steram is unavailable (possibly temporarily) */
int stream_copy;
// init_output_stream() has been called for this stream
// The encoder and the bitstream filters have been initialized and the stream
// parameters are set in the AVStream.
int initialized;
int inputs_done;
const char *attachment_filename;
int copy_initial_nonkeyframes;
int copy_prior_start;
char *disposition;
int keep_pix_fmt;
/* stats */
// combined size of all the packets written
uint64_t data_size;
// number of packets send to the muxer
uint64_t packets_written;
// number of frames/samples sent to the encoder
uint64_t frames_encoded;
uint64_t samples_encoded;
/* packet quality factor */
int quality;
int max_muxing_queue_size;
/* the packets are buffered here until the muxer is ready to be initialized */
AVFifoBuffer *muxing_queue;
/*
* The size of the AVPackets' buffers in queue.
* Updated when a packet is either pushed or pulled from the queue.
*/
size_t muxing_queue_data_size;
/* Threshold after which max_muxing_queue_size will be in effect */
size_t muxing_queue_data_threshold;
/* packet picture type */
int pict_type;
/* frame encode sum of squared error values */
int64_t error[4];
} OutputStream;
typedef struct OutputFile {
AVFormatContext *ctx;
AVDictionary *opts;
int ost_index; /* index of the first stream in output_streams */
int64_t recording_time;
int64_t start_time;
uint64_t limit_filesize; /* filesize limit expressed in bytes */
int shortest;
int header_written;
} OutputFile;
extern __thread InputStream **input_streams;
extern __thread int nb_input_streams;
extern __thread InputFile **input_files;
extern __thread int nb_input_files;
extern __thread OutputStream **output_streams;
extern __thread int nb_output_streams;
extern __thread OutputFile **output_files;
extern __thread int nb_output_files;
extern __thread FilterGraph **filtergraphs;
extern __thread int nb_filtergraphs;
extern __thread char *vstats_filename;
extern __thread char *sdp_filename;
extern __thread float audio_drift_threshold;
extern __thread float dts_delta_threshold;
extern __thread float dts_error_threshold;
extern __thread int audio_volume;
extern __thread int audio_sync_method;
extern __thread int video_sync_method;
extern __thread float frame_drop_threshold;
extern __thread int do_benchmark;
extern __thread int do_benchmark_all;
extern __thread int do_deinterlace;
extern __thread int do_hex_dump;
extern __thread int do_pkt_dump;
extern __thread int copy_ts;
extern __thread int start_at_zero;
extern __thread int copy_tb;
extern __thread int debug_ts;
extern __thread int exit_on_error;
extern __thread int abort_on_flags;
extern __thread int print_stats;
extern __thread int64_t stats_period;
extern __thread int qp_hist;
extern __thread int stdin_interaction;
extern __thread int frame_bits_per_raw_sample;
extern __thread AVIOContext *progress_avio;
extern __thread float max_error_rate;
extern __thread char *videotoolbox_pixfmt;
extern __thread int filter_nbthreads;
extern __thread int filter_complex_nbthreads;
extern __thread int vstats_version;
extern __thread int auto_conversion_filters;
extern __thread const AVIOInterruptCB int_cb;
extern const HWAccel hwaccels[];
#if CONFIG_QSV
extern __thread char *qsv_device;
#endif
extern __thread HWDevice *filter_hw_device;
void term_init(void);
void term_exit(void);
void reset_options(OptionsContext *o, int is_input);
void show_usage(void);
void opt_output_file(void *optctx, const char *filename);
void remove_avoptions(AVDictionary **a, AVDictionary *b);
void assert_avoptions(AVDictionary *m);
int guess_input_channel_layout(InputStream *ist);
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, const AVCodec *codec, enum AVPixelFormat target);
void choose_sample_fmt(AVStream *st, const AVCodec *codec);
int configure_filtergraph(FilterGraph *fg);
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out);
void check_filter_outputs(void);
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist);
int filtergraph_is_simple(FilterGraph *fg);
int init_simple_filtergraph(InputStream *ist, OutputStream *ost);
int init_complex_filtergraph(FilterGraph *fg);
void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub);
int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame);
int ffmpeg_parse_options(int argc, char **argv);
int videotoolbox_init(AVCodecContext *s);
int qsv_init(AVCodecContext *s);
HWDevice *hw_device_get_by_name(const char *name);
int hw_device_init_from_string(const char *arg, HWDevice **dev);
void hw_device_free_all(void);
int hw_device_setup_for_decode(InputStream *ist);
int hw_device_setup_for_encode(OutputStream *ost);
int hw_device_setup_for_filter(FilterGraph *fg);
int hwaccel_decode_init(AVCodecContext *avctx);
void set_report_callback(void (*callback)(int, float, float, int64_t, int, double, double));
void cancel_operation(long id);
int opt_map(void *optctx, const char *opt, const char *arg);
int opt_map_channel(void *optctx, const char *opt, const char *arg);
int opt_recording_timestamp(void *optctx, const char *opt, const char *arg);
int opt_data_frames(void *optctx, const char *opt, const char *arg);
int opt_progress(void *optctx, const char *opt, const char *arg);
int opt_target(void *optctx, const char *opt, const char *arg);
int opt_vsync(void *optctx, const char *opt, const char *arg);
int opt_abort_on(void *optctx, const char *opt, const char *arg);
int opt_stats_period(void *optctx, const char *opt, const char *arg);
int opt_qscale(void *optctx, const char *opt, const char *arg);
int opt_profile(void *optctx, const char *opt, const char *arg);
int opt_filter_complex(void *optctx, const char *opt, const char *arg);
int opt_filter_complex_script(void *optctx, const char *opt, const char *arg);
int opt_attach(void *optctx, const char *opt, const char *arg);
int opt_video_frames(void *optctx, const char *opt, const char *arg);
int opt_video_codec(void *optctx, const char *opt, const char *arg);
int opt_sameq(void *optctx, const char *opt, const char *arg);
int opt_timecode(void *optctx, const char *opt, const char *arg);
int opt_vstats_file(void *optctx, const char *opt, const char *arg);
int opt_vstats(void *optctx, const char *opt, const char *arg);
int opt_video_frames(void *optctx, const char *opt, const char *arg);
int opt_old2new(void *optctx, const char *opt, const char *arg);
int opt_streamid(void *optctx, const char *opt, const char *arg);
int opt_bitrate(void *optctx, const char *opt, const char *arg);
int show_hwaccels(void *optctx, const char *opt, const char *arg);
int opt_video_filters(void *optctx, const char *opt, const char *arg);
int opt_audio_frames(void *optctx, const char *opt, const char *arg);
int opt_audio_qscale(void *optctx, const char *opt, const char *arg);
int opt_audio_codec(void *optctx, const char *opt, const char *arg);
int opt_channel_layout(void *optctx, const char *opt, const char *arg);
int opt_preset(void *optctx, const char *opt, const char *arg);
int opt_audio_filters(void *optctx, const char *opt, const char *arg);
int opt_subtitle_codec(void *optctx, const char *opt, const char *arg);
int opt_video_channel(void *optctx, const char *opt, const char *arg);
int opt_video_standard(void *optctx, const char *opt, const char *arg);
int opt_sdp_file(void *optctx, const char *opt, const char *arg);
int opt_data_codec(void *optctx, const char *opt, const char *arg);
int opt_init_hw_device(void *optctx, const char *opt, const char *arg);
int opt_filter_hw_device(void *optctx, const char *opt, const char *arg);
void add_input_streams(OptionsContext *o, AVFormatContext *ic);
void assert_file_overwrite(const char *filename);
void dump_attachment(AVStream *st, const char *filename);
uint8_t *get_line(AVIOContext *s);
void uninit_options(OptionsContext *o);
void init_options(OptionsContext *o);
AVDictionary *strip_specifiers(AVDictionary *dict);
void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec);
int fftools_copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o);
AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder);
AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *st);
int open_input_file(OptionsContext *o, const char *filename);
int get_preset_file_2(const char *preset_name, const char *codec_name, AVIOContext **s);
int choose_encoder(OptionsContext *o, AVFormatContext *s, OutputStream *ost);
OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index);
void parse_matrix_coeffs(uint16_t *dest, const char *str);
uint8_t *fftools_read_file(const char *filename);
char *get_ost_filters(OptionsContext *o, AVFormatContext *oc, OutputStream *ost);
void check_streamcopy_filters(OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type);
OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
OutputStream *new_data_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
OutputStream *new_unknown_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
OutputStream *new_attachment_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
OutputStream *new_subtitle_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata);
void init_output_filter(OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc);
int init_complex_filters(void);
int open_output_file(OptionsContext *o, const char *filename);
int opt_default_new(OptionsContext *o, const char *opt, const char *arg);
int open_files(OptionGroupList *l, const char *inout, int (*open_file)(OptionsContext*, const char*));
#endif /* FFTOOLS_FFMPEG_H */
fftools_cmdutils.h
dts_delta_threshold
__thread float dts_delta_threshold
Definition: fftools_ffmpeg_opt.c:169
hw_device_setup_for_encode
int hw_device_setup_for_encode(OutputStream *ost)
Definition: fftools_ffmpeg_hw.c:428
opt_channel_layout
int opt_channel_layout(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3173
uninit_options
void uninit_options(OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:211
choose_encoder
int choose_encoder(OptionsContext *o, AVFormatContext *s, OutputStream *ost)
Definition: fftools_ffmpeg_opt.c:1406
configure_output_filter
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
Definition: fftools_ffmpeg_filter.c:678
InputFile
struct InputFile InputFile
copy_tb
__thread int copy_tb
Definition: fftools_ffmpeg_opt.c:183
HWAccelID
HWAccelID
Definition: fftools_ffmpeg.h:81
HWACCEL_NONE
@ HWACCEL_NONE
Definition: fftools_ffmpeg.h:82
HWACCEL_QSV
@ HWACCEL_QSV
Definition: fftools_ffmpeg.h:86
HWACCEL_GENERIC
@ HWACCEL_GENERIC
Definition: fftools_ffmpeg.h:84
HWACCEL_AUTO
@ HWACCEL_AUTO
Definition: fftools_ffmpeg.h:83
HWACCEL_VIDEOTOOLBOX
@ HWACCEL_VIDEOTOOLBOX
Definition: fftools_ffmpeg.h:85
opt_sdp_file
int opt_sdp_file(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:570
new_attachment_stream
OutputStream * new_attachment_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2017
frame_bits_per_raw_sample
__thread int frame_bits_per_raw_sample
Definition: fftools_ffmpeg_opt.c:190
opt_timecode
int opt_timecode(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3159
ifilter_parameters_from_frame
int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame)
Definition: fftools_ffmpeg_filter.c:1186
opt_vstats_file
int opt_vstats_file(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2968
input_streams
__thread InputStream ** input_streams
Definition: fftools_ffmpeg.c:179
parse_meta_type
void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec)
Definition: fftools_ffmpeg_opt.c:628
new_audio_stream
OutputStream * new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:1918
copy_chapters
int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata)
Definition: fftools_ffmpeg_opt.c:2075
int_cb
__thread const AVIOInterruptCB int_cb
Definition: fftools_ffmpeg.c:621
reset_options
void reset_options(OptionsContext *o, int is_input)
stats_period
__thread int64_t stats_period
Definition: fftools_ffmpeg_opt.c:196
opt_data_codec
int opt_data_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:361
opt_streamid
int opt_streamid(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2053
nb_input_streams
__thread int nb_input_streams
Definition: fftools_ffmpeg.c:180
term_exit
void term_exit(void)
Definition: fftools_ffmpeg.c:432
forced_keyframes_const_names
const char *const forced_keyframes_const_names[]
Definition: fftools_ffmpeg.c:145
opt_qscale
int opt_qscale(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3105
opt_sameq
int opt_sameq(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:322
output_streams
__thread OutputStream ** output_streams
Definition: fftools_ffmpeg.c:184
new_subtitle_stream
OutputStream * new_subtitle_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2025
output_files
__thread OutputFile ** output_files
Definition: fftools_ffmpeg.c:186
opt_filter_complex_script
int opt_filter_complex_script(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3230
sdp_filename
__thread char * sdp_filename
Definition: fftools_ffmpeg_opt.c:166
opt_filter_complex
int opt_filter_complex(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3215
videotoolbox_init
int videotoolbox_init(AVCodecContext *s)
opt_vsync
int opt_vsync(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3147
fftools_read_file
uint8_t * fftools_read_file(const char *filename)
Definition: fftools_ffmpeg_opt.c:1645
nb_output_streams
__thread int nb_output_streams
Definition: fftools_ffmpeg.c:185
guess_input_channel_layout
int guess_input_channel_layout(InputStream *ist)
Definition: fftools_ffmpeg.c:2301
opt_output_file
void opt_output_file(void *optctx, const char *filename)
print_stats
__thread int print_stats
Definition: fftools_ffmpeg_opt.c:187
video_sync_method
__thread int video_sync_method
Definition: fftools_ffmpeg_opt.c:174
filter_complex_nbthreads
__thread int filter_complex_nbthreads
Definition: fftools_ffmpeg_opt.c:193
abort_on_flags
__thread int abort_on_flags
Definition: fftools_ffmpeg_opt.c:186
nb_input_files
__thread int nb_input_files
Definition: fftools_ffmpeg.c:182
audio_volume
__thread int audio_volume
Definition: fftools_ffmpeg_opt.c:172
max_error_rate
__thread float max_error_rate
Definition: fftools_ffmpeg_opt.c:191
nb_output_files
__thread int nb_output_files
Definition: fftools_ffmpeg.c:187
copy_ts
__thread int copy_ts
Definition: fftools_ffmpeg_opt.c:181
stdin_interaction
__thread int stdin_interaction
Definition: fftools_ffmpeg_opt.c:189
opt_subtitle_codec
int opt_subtitle_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:355
dts_error_threshold
__thread float dts_error_threshold
Definition: fftools_ffmpeg_opt.c:170
opt_video_standard
int opt_video_standard(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:337
set_report_callback
void set_report_callback(void(*callback)(int, float, float, int64_t, int, double, double))
Definition: fftools_ffmpeg.c:5149
hwaccel_decode_init
int hwaccel_decode_init(AVCodecContext *avctx)
Definition: fftools_ffmpeg_hw.c:525
open_input_file
int open_input_file(OptionsContext *o, const char *filename)
Definition: fftools_ffmpeg_opt.c:1087
opt_profile
int opt_profile(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3123
OSTFinished
OSTFinished
Definition: fftools_ffmpeg.h:467
ENCODER_FINISHED
@ ENCODER_FINISHED
Definition: fftools_ffmpeg.h:468
MUXER_FINISHED
@ MUXER_FINISHED
Definition: fftools_ffmpeg.h:469
get_ost_filters
char * get_ost_filters(OptionsContext *o, AVFormatContext *oc, OutputStream *ost)
Definition: fftools_ffmpeg_opt.c:1673
find_codec_or_die
AVCodec * find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
Definition: fftools_ffmpeg_opt.c:760
filter_nbthreads
__thread int filter_nbthreads
Definition: fftools_ffmpeg_opt.c:192
opt_abort_on
int opt_abort_on(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:288
show_usage
void show_usage(void)
Definition: fftools_ffmpeg_opt.c:3320
choose_pixel_fmt
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, const AVCodec *codec, enum AVPixelFormat target)
Definition: fftools_ffmpeg_filter.c:71
opt_video_codec
int opt_video_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:349
OutputFile
struct OutputFile OutputFile
opt_data_frames
int opt_data_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3003
get_line
uint8_t * get_line(AVIOContext *s)
Definition: fftools_ffmpeg_opt.c:1361
opt_video_filters
int opt_video_filters(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3135
FilterGraph
struct FilterGraph FilterGraph
opt_attach
int opt_attach(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:485
do_benchmark
__thread int do_benchmark
Definition: fftools_ffmpeg_opt.c:177
opt_filter_hw_device
int opt_filter_hw_device(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:607
frame_drop_threshold
__thread float frame_drop_threshold
Definition: fftools_ffmpeg_opt.c:175
vstats_version
__thread int vstats_version
Definition: fftools_ffmpeg_opt.c:194
vstats_filename
__thread char * vstats_filename
Definition: fftools_ffmpeg_opt.c:165
do_deinterlace
__thread int do_deinterlace
Definition: fftools_ffmpeg_opt.c:176
opt_audio_frames
int opt_audio_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2997
hw_device_setup_for_decode
int hw_device_setup_for_decode(InputStream *ist)
Definition: fftools_ffmpeg_hw.c:312
hw_device_free_all
void hw_device_free_all(void)
Definition: fftools_ffmpeg_hw.c:283
opt_target
int opt_target(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2824
check_streamcopy_filters
void check_streamcopy_filters(OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type)
Definition: fftools_ffmpeg_opt.c:1693
audio_sync_method
__thread int audio_sync_method
Definition: fftools_ffmpeg_opt.c:173
init_complex_filters
int init_complex_filters(void)
Definition: fftools_ffmpeg_opt.c:2160
hw_device_setup_for_filter
int hw_device_setup_for_filter(FilterGraph *fg)
Definition: fftools_ffmpeg_hw.c:534
new_output_stream
OutputStream * new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
Definition: fftools_ffmpeg_opt.c:1441
init_simple_filtergraph
int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
opt_map
int opt_map(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:367
audio_drift_threshold
__thread float audio_drift_threshold
Definition: fftools_ffmpeg_opt.c:168
cancel_operation
void cancel_operation(long id)
Definition: fftools_ffmpeg.c:5154
progress_avio
__thread AVIOContext * progress_avio
Definition: fftools_ffmpeg.c:175
input_files
__thread InputFile ** input_files
Definition: fftools_ffmpeg.c:181
sub2video_update
void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub)
Definition: fftools_ffmpeg.c:336
OutputStream
struct OutputStream OutputStream
do_benchmark_all
__thread int do_benchmark_all
Definition: fftools_ffmpeg_opt.c:178
opt_vstats
int opt_vstats(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2975
choose_decoder
AVCodec * choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *st)
Definition: fftools_ffmpeg_opt.c:789
opt_video_channel
int opt_video_channel(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:331
filtergraphs
__thread FilterGraph ** filtergraphs
Definition: fftools_ffmpeg.c:189
ist_in_filtergraph
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
start_at_zero
__thread int start_at_zero
Definition: fftools_ffmpeg_opt.c:182
parse_matrix_coeffs
void parse_matrix_coeffs(uint16_t *dest, const char *str)
Definition: fftools_ffmpeg_opt.c:1627
open_files
int open_files(OptionGroupList *l, const char *inout, int(*open_file)(OptionsContext *, const char *))
opt_video_frames
int opt_video_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2991
assert_file_overwrite
void assert_file_overwrite(const char *filename)
Definition: fftools_ffmpeg_opt.c:1012
InputFilter
struct InputFilter InputFilter
opt_audio_filters
int opt_audio_filters(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3141
forced_keyframes_const
forced_keyframes_const
Definition: fftools_ffmpeg.h:453
FKF_NB
@ FKF_NB
Definition: fftools_ffmpeg.h:459
FKF_PREV_FORCED_N
@ FKF_PREV_FORCED_N
Definition: fftools_ffmpeg.h:456
FKF_T
@ FKF_T
Definition: fftools_ffmpeg.h:458
FKF_PREV_FORCED_T
@ FKF_PREV_FORCED_T
Definition: fftools_ffmpeg.h:457
FKF_N_FORCED
@ FKF_N_FORCED
Definition: fftools_ffmpeg.h:455
FKF_N
@ FKF_N
Definition: fftools_ffmpeg.h:454
exit_on_error
__thread int exit_on_error
Definition: fftools_ffmpeg_opt.c:185
remove_avoptions
void remove_avoptions(AVDictionary **a, AVDictionary *b)
Definition: fftools_ffmpeg.c:783
choose_sample_fmt
void choose_sample_fmt(AVStream *st, const AVCodec *codec)
Definition: fftools_ffmpeg_filter.c:101
opt_audio_qscale
int opt_audio_qscale(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3209
get_preset_file_2
int get_preset_file_2(const char *preset_name, const char *codec_name, AVIOContext **s)
Definition: fftools_ffmpeg_opt.c:1380
ffmpeg_parse_options
int ffmpeg_parse_options(int argc, char **argv)
init_output_filter
void init_output_filter(OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc)
Definition: fftools_ffmpeg_opt.c:2118
new_data_stream
OutputStream * new_data_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:1991
StreamMap
struct StreamMap StreamMap
strip_specifiers
AVDictionary * strip_specifiers(AVDictionary *dict)
Definition: fftools_ffmpeg_opt.c:271
show_hwaccels
int show_hwaccels(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:258
filter_hw_device
__thread HWDevice * filter_hw_device
Definition: fftools_ffmpeg_opt.c:163
opt_preset
int opt_preset(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3029
qsv_init
int qsv_init(AVCodecContext *s)
OutputFilter
struct OutputFilter OutputFilter
opt_old2new
int opt_old2new(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3077
nb_filtergraphs
__thread int nb_filtergraphs
Definition: fftools_ffmpeg.c:190
term_init
void term_init(void)
Definition: fftools_ffmpeg.c:504
opt_stats_period
int opt_stats_period(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:307
add_input_streams
void add_input_streams(OptionsContext *o, AVFormatContext *ic)
Definition: fftools_ffmpeg_opt.c:804
qp_hist
__thread int qp_hist
Definition: fftools_ffmpeg_opt.c:188
OptionsContext
struct OptionsContext OptionsContext
opt_bitrate
int opt_bitrate(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3089
filtergraph_is_simple
int filtergraph_is_simple(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:1209
hw_device_init_from_string
int hw_device_init_from_string(const char *arg, HWDevice **dev)
Definition: fftools_ffmpeg_hw.c:103
new_unknown_stream
OutputStream * new_unknown_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2004
check_filter_outputs
void check_filter_outputs(void)
Definition: fftools_ffmpeg_filter.c:692
fftools_copy_metadata
int fftools_copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:655
HWAccel
struct HWAccel HWAccel
opt_default_new
int opt_default_new(OptionsContext *o, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3009
new_video_stream
OutputStream * new_video_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:1707
HWDevice
struct HWDevice HWDevice
configure_filtergraph
int configure_filtergraph(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:1012
do_hex_dump
__thread int do_hex_dump
Definition: fftools_ffmpeg_opt.c:179
do_pkt_dump
__thread int do_pkt_dump
Definition: fftools_ffmpeg_opt.c:180
hwaccels
const HWAccel hwaccels[]
Definition: fftools_ffmpeg_opt.c:154
hw_device_get_by_name
HWDevice * hw_device_get_by_name(const char *name)
Definition: fftools_ffmpeg_hw.c:53
dump_attachment
void dump_attachment(AVStream *st, const char *filename)
Definition: fftools_ffmpeg_opt.c:1055
init_options
void init_options(OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:243
debug_ts
__thread int debug_ts
Definition: fftools_ffmpeg_opt.c:184
opt_map_channel
int opt_map_channel(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:493
opt_progress
int opt_progress(void *optctx, const char *opt, const char *arg)
videotoolbox_pixfmt
__thread char * videotoolbox_pixfmt
open_output_file
int open_output_file(OptionsContext *o, const char *filename)
Definition: fftools_ffmpeg_opt.c:2172
opt_audio_codec
int opt_audio_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:343
opt_recording_timestamp
int opt_recording_timestamp(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:745
auto_conversion_filters
__thread int auto_conversion_filters
Definition: fftools_ffmpeg_opt.c:195
assert_avoptions
void assert_avoptions(AVDictionary *m)
Definition: fftools_ffmpeg.c:792
InputStream
struct InputStream InputStream
opt_init_hw_device
int opt_init_hw_device(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:592
init_complex_filtergraph
int init_complex_filtergraph(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:349
int
int
Definition: fftools_ffmpeg_filter.c:200
AudioChannelMap
Definition: fftools_ffmpeg.h:112
AudioChannelMap::ofile_idx
int ofile_idx
Definition: fftools_ffmpeg.h:114
AudioChannelMap::channel_idx
int channel_idx
Definition: fftools_ffmpeg.h:113
FilterGraph
Definition: fftools_ffmpeg.h:310
FilterGraph::index
int index
Definition: fftools_ffmpeg.h:311
FilterGraph::reconfiguration
int reconfiguration
Definition: fftools_ffmpeg.h:315
FilterGraph::nb_outputs
int nb_outputs
Definition: fftools_ffmpeg.h:320
FilterGraph::outputs
OutputFilter ** outputs
Definition: fftools_ffmpeg.h:319
FilterGraph::nb_inputs
int nb_inputs
Definition: fftools_ffmpeg.h:318
FilterGraph::graph_desc
const char * graph_desc
Definition: fftools_ffmpeg.h:312
FilterGraph::graph
AVFilterGraph * graph
Definition: fftools_ffmpeg.h:314
FilterGraph::inputs
InputFilter ** inputs
Definition: fftools_ffmpeg.h:317
HWAccel
Definition: fftools_ffmpeg.h:89
HWAccel::id
enum HWAccelID id
Definition: fftools_ffmpeg.h:92
HWAccel::pix_fmt
enum AVPixelFormat pix_fmt
Definition: fftools_ffmpeg.h:93
HWAccel::init
int(* init)(AVCodecContext *s)
Definition: fftools_ffmpeg.h:91
HWAccel::name
const char * name
Definition: fftools_ffmpeg.h:90
HWDevice
Definition: fftools_ffmpeg.h:96
HWDevice::device_ref
AVBufferRef * device_ref
Definition: fftools_ffmpeg.h:99
HWDevice::type
enum AVHWDeviceType type
Definition: fftools_ffmpeg.h:98
HWDevice::name
const char * name
Definition: fftools_ffmpeg.h:97
InputFile
Definition: fftools_ffmpeg.h:422
InputFile::eagain
int eagain
Definition: fftools_ffmpeg.h:425
InputFile::ts_offset
int64_t ts_offset
Definition: fftools_ffmpeg.h:433
InputFile::duration
int64_t duration
Definition: fftools_ffmpeg.h:428
InputFile::accurate_seek
int accurate_seek
Definition: fftools_ffmpeg.h:442
InputFile::ctx
AVFormatContext * ctx
Definition: fftools_ffmpeg.h:423
InputFile::rate_emu
int rate_emu
Definition: fftools_ffmpeg.h:441
InputFile::input_ts_offset
int64_t input_ts_offset
Definition: fftools_ffmpeg.h:431
InputFile::loop
int loop
Definition: fftools_ffmpeg.h:427
InputFile::seek_timestamp
int seek_timestamp
Definition: fftools_ffmpeg.h:436
InputFile::recording_time
int64_t recording_time
Definition: fftools_ffmpeg.h:437
InputFile::time_base
AVRational time_base
Definition: fftools_ffmpeg.h:430
InputFile::eof_reached
int eof_reached
Definition: fftools_ffmpeg.h:424
InputFile::nb_streams_warn
int nb_streams_warn
Definition: fftools_ffmpeg.h:440
InputFile::last_ts
int64_t last_ts
Definition: fftools_ffmpeg.h:434
InputFile::ist_index
int ist_index
Definition: fftools_ffmpeg.h:426
InputFile::start_time
int64_t start_time
Definition: fftools_ffmpeg.h:435
InputFile::nb_streams
int nb_streams
Definition: fftools_ffmpeg.h:438
InputFilter
Definition: fftools_ffmpeg.h:263
InputFilter::hw_frames_ctx
AVBufferRef * hw_frames_ctx
Definition: fftools_ffmpeg.h:282
InputFilter::name
uint8_t * name
Definition: fftools_ffmpeg.h:267
InputFilter::sample_rate
int sample_rate
Definition: fftools_ffmpeg.h:278
InputFilter::height
int height
Definition: fftools_ffmpeg.h:275
InputFilter::ist
struct InputStream * ist
Definition: fftools_ffmpeg.h:265
InputFilter::filter
AVFilterContext * filter
Definition: fftools_ffmpeg.h:264
InputFilter::type
enum AVMediaType type
Definition: fftools_ffmpeg.h:268
InputFilter::frame_queue
AVFifoBuffer * frame_queue
Definition: fftools_ffmpeg.h:270
InputFilter::channel_layout
uint64_t channel_layout
Definition: fftools_ffmpeg.h:280
InputFilter::graph
struct FilterGraph * graph
Definition: fftools_ffmpeg.h:266
InputFilter::sample_aspect_ratio
AVRational sample_aspect_ratio
Definition: fftools_ffmpeg.h:276
InputFilter::eof
int eof
Definition: fftools_ffmpeg.h:284
InputFilter::channels
int channels
Definition: fftools_ffmpeg.h:279
InputFilter::format
int format
Definition: fftools_ffmpeg.h:273
InputFilter::width
int width
Definition: fftools_ffmpeg.h:275
InputStream::sub2video
Definition: fftools_ffmpeg.h:374
InputStream::sub2video::w
int w
Definition: fftools_ffmpeg.h:379
InputStream::sub2video::frame
AVFrame * frame
Definition: fftools_ffmpeg.h:378
InputStream::sub2video::initialize
unsigned int initialize
marks if sub2video_update should force an initialization
Definition: fftools_ffmpeg.h:380
InputStream::sub2video::last_pts
int64_t last_pts
Definition: fftools_ffmpeg.h:375
InputStream::sub2video::end_pts
int64_t end_pts
Definition: fftools_ffmpeg.h:376
InputStream::sub2video::sub_queue
AVFifoBuffer * sub_queue
queue of AVSubtitle* before filter init
Definition: fftools_ffmpeg.h:377
InputStream::sub2video::h
int h
Definition: fftools_ffmpeg.h:379
InputStream
Definition: fftools_ffmpeg.h:323
InputStream::hwaccel_pix_fmt
enum AVPixelFormat hwaccel_pix_fmt
Definition: fftools_ffmpeg.h:403
InputStream::saw_first_ts
int saw_first_ts
Definition: fftools_ffmpeg.h:359
InputStream::ts_scale
double ts_scale
Definition: fftools_ffmpeg.h:358
InputStream::decoded_frame
AVFrame * decoded_frame
Definition: fftools_ffmpeg.h:334
InputStream::dts_buffer
int64_t * dts_buffer
Definition: fftools_ffmpeg.h:416
InputStream::dts
int64_t dts
dts of the last packet read for this stream (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:341
InputStream::fix_sub_duration
int fix_sub_duration
Definition: fftools_ffmpeg.h:367
InputStream::hwaccel_output_format
enum AVPixelFormat hwaccel_output_format
Definition: fftools_ffmpeg.h:396
InputStream::cfr_next_pts
int64_t cfr_next_pts
Definition: fftools_ffmpeg.h:354
InputStream::got_output
int got_output
Definition: fftools_ffmpeg.h:369
InputStream::hwaccel_uninit
void(* hwaccel_uninit)(AVCodecContext *s)
Definition: fftools_ffmpeg.h:400
InputStream::nb_dts_buffer
int nb_dts_buffer
Definition: fftools_ffmpeg.h:417
InputStream::dec_ctx
AVCodecContext * dec_ctx
Definition: fftools_ffmpeg.h:332
InputStream::pts
int64_t pts
current pts of the decoded frame (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:344
InputStream::hw_frames_ctx
AVBufferRef * hw_frames_ctx
Definition: fftools_ffmpeg.h:405
InputStream::dec
AVCodec * dec
Definition: fftools_ffmpeg.h:333
InputStream::prev_sub
struct InputStream::@2 prev_sub
InputStream::start
int64_t start
Definition: fftools_ffmpeg.h:337
InputStream::dr1
int dr1
Definition: fftools_ffmpeg.h:383
InputStream::ret
int ret
Definition: fftools_ffmpeg.h:370
InputStream::hwaccel_id
enum HWAccelID hwaccel_id
Definition: fftools_ffmpeg.h:393
InputStream::data_size
uint64_t data_size
Definition: fftools_ffmpeg.h:409
InputStream::hwaccel_get_buffer
int(* hwaccel_get_buffer)(AVCodecContext *s, AVFrame *frame, int flags)
Definition: fftools_ffmpeg.h:401
InputStream::nb_filters
int nb_filters
Definition: fftools_ffmpeg.h:388
InputStream::filter_in_rescale_delta_last
int64_t filter_in_rescale_delta_last
Definition: fftools_ffmpeg.h:347
InputStream::next_dts
int64_t next_dts
Definition: fftools_ffmpeg.h:340
InputStream::reinit_filters
int reinit_filters
Definition: fftools_ffmpeg.h:390
InputStream::user_set_discard
int user_set_discard
Definition: fftools_ffmpeg.h:327
InputStream::wrap_correction_done
int wrap_correction_done
Definition: fftools_ffmpeg.h:345
InputStream::max_pts
int64_t max_pts
Definition: fftools_ffmpeg.h:350
InputStream::hwaccel_retrieved_pix_fmt
enum AVPixelFormat hwaccel_retrieved_pix_fmt
Definition: fftools_ffmpeg.h:404
InputStream::guess_layout_max
int guess_layout_max
Definition: fftools_ffmpeg.h:363
InputStream::filter_frame
AVFrame * filter_frame
Definition: fftools_ffmpeg.h:335
InputStream::hwaccel_ctx
void * hwaccel_ctx
Definition: fftools_ffmpeg.h:399
InputStream::samples_decoded
uint64_t samples_decoded
Definition: fftools_ffmpeg.h:414
InputStream::next_pts
int64_t next_pts
synthetic pts for the next decode frame (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:343
InputStream::top_field_first
int top_field_first
Definition: fftools_ffmpeg.h:362
InputStream::autorotate
int autorotate
Definition: fftools_ffmpeg.h:365
InputStream::discard
int discard
Definition: fftools_ffmpeg.h:326
InputStream::frames_decoded
uint64_t frames_decoded
Definition: fftools_ffmpeg.h:413
InputStream::decoding_needed
int decoding_needed
Definition: fftools_ffmpeg.h:328
InputStream::sub2video
struct InputStream::sub2video sub2video
InputStream::st
AVStream * st
Definition: fftools_ffmpeg.h:325
InputStream::file_index
int file_index
Definition: fftools_ffmpeg.h:324
InputStream::filters
InputFilter ** filters
Definition: fftools_ffmpeg.h:387
InputStream::hwaccel_retrieve_data
int(* hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame)
Definition: fftools_ffmpeg.h:402
InputStream::nb_packets
uint64_t nb_packets
Definition: fftools_ffmpeg.h:411
InputStream::subtitle
AVSubtitle subtitle
Definition: fftools_ffmpeg.h:371
InputStream::hwaccel_device
char * hwaccel_device
Definition: fftools_ffmpeg.h:395
InputStream::decoder_opts
AVDictionary * decoder_opts
Definition: fftools_ffmpeg.h:360
InputStream::min_pts
int64_t min_pts
Definition: fftools_ffmpeg.h:349
InputStream::hwaccel_device_type
enum AVHWDeviceType hwaccel_device_type
Definition: fftools_ffmpeg.h:394
InputStream::nb_samples
int64_t nb_samples
Definition: fftools_ffmpeg.h:356
InputStream::framerate
AVRational framerate
Definition: fftools_ffmpeg.h:361
OptionGroup
Definition: fftools_cmdutils.h:297
OptionGroupList
Definition: fftools_cmdutils.h:315
OptionsContext
Definition: fftools_ffmpeg.h:117
OptionsContext::nb_codec_tags
int nb_codec_tags
Definition: fftools_ffmpeg.h:198
OptionsContext::metadata_map
SpecifierOpt * metadata_map
Definition: fftools_ffmpeg.h:219
OptionsContext::nb_pass
int nb_pass
Definition: fftools_ffmpeg.h:238
OptionsContext::nb_copy_initial_nonkeyframes
int nb_copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:224
OptionsContext::mux_preload
float mux_preload
Definition: fftools_ffmpeg.h:177
OptionsContext::frame_pix_fmts
SpecifierOpt * frame_pix_fmts
Definition: fftools_ffmpeg.h:138
OptionsContext::dump_attachment
SpecifierOpt * dump_attachment
Definition: fftools_ffmpeg.h:150
OptionsContext::autoscale
SpecifierOpt * autoscale
Definition: fftools_ffmpeg.h:259
OptionsContext::nb_chroma_intra_matrices
int nb_chroma_intra_matrices
Definition: fftools_ffmpeg.h:216
OptionsContext::nb_reinit_filters
int nb_reinit_filters
Definition: fftools_ffmpeg.h:232
OptionsContext::nb_stream_maps
int nb_stream_maps
Definition: fftools_ffmpeg.h:163
OptionsContext::nb_muxing_queue_data_threshold
int nb_muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:244
OptionsContext::nb_max_frame_rates
int nb_max_frame_rates
Definition: fftools_ffmpeg.h:135
OptionsContext::frame_aspect_ratios
SpecifierOpt * frame_aspect_ratios
Definition: fftools_ffmpeg.h:207
OptionsContext::pass
SpecifierOpt * pass
Definition: fftools_ffmpeg.h:237
OptionsContext::bitexact
int bitexact
Definition: fftools_ffmpeg.h:180
OptionsContext::filter_scripts
SpecifierOpt * filter_scripts
Definition: fftools_ffmpeg.h:229
OptionsContext::copy_initial_nonkeyframes
SpecifierOpt * copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:223
OptionsContext::guess_layout_max
SpecifierOpt * guess_layout_max
Definition: fftools_ffmpeg.h:245
OptionsContext::start_time
int64_t start_time
Definition: fftools_ffmpeg.h:121
OptionsContext::format
const char * format
Definition: fftools_ffmpeg.h:124
OptionsContext::nb_streamid_map
int nb_streamid_map
Definition: fftools_ffmpeg.h:189
OptionsContext::enc_time_bases
SpecifierOpt * enc_time_bases
Definition: fftools_ffmpeg.h:257
OptionsContext::max_frame_rates
SpecifierOpt * max_frame_rates
Definition: fftools_ffmpeg.h:134
OptionsContext::input_ts_offset
int64_t input_ts_offset
Definition: fftools_ffmpeg.h:142
OptionsContext::audio_sample_rate
SpecifierOpt * audio_sample_rate
Definition: fftools_ffmpeg.h:130
OptionsContext::nb_audio_channel_maps
int nb_audio_channel_maps
Definition: fftools_ffmpeg.h:165
OptionsContext::rate_emu
int rate_emu
Definition: fftools_ffmpeg.h:144
OptionsContext::nb_frame_rates
int nb_frame_rates
Definition: fftools_ffmpeg.h:133
OptionsContext::nb_passlogfiles
int nb_passlogfiles
Definition: fftools_ffmpeg.h:240
OptionsContext::nb_time_bases
int nb_time_bases
Definition: fftools_ffmpeg.h:256
OptionsContext::nb_attachments
int nb_attachments
Definition: fftools_ffmpeg.h:170
OptionsContext::max_frames
SpecifierOpt * max_frames
Definition: fftools_ffmpeg.h:193
OptionsContext::nb_intra_matrices
int nb_intra_matrices
Definition: fftools_ffmpeg.h:212
OptionsContext::metadata_global_manual
int metadata_global_manual
Definition: fftools_ffmpeg.h:166
OptionsContext::nb_hwaccel_devices
int nb_hwaccel_devices
Definition: fftools_ffmpeg.h:155
OptionsContext::nb_codec_names
int nb_codec_names
Definition: fftools_ffmpeg.h:127
OptionsContext::stream_maps
StreamMap * stream_maps
Definition: fftools_ffmpeg.h:162
OptionsContext::frame_sizes
SpecifierOpt * frame_sizes
Definition: fftools_ffmpeg.h:136
OptionsContext::muxing_queue_data_threshold
SpecifierOpt * muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:243
OptionsContext::discard
SpecifierOpt * discard
Definition: fftools_ffmpeg.h:249
OptionsContext::forced_key_frames
SpecifierOpt * forced_key_frames
Definition: fftools_ffmpeg.h:203
OptionsContext::nb_max_frames
int nb_max_frames
Definition: fftools_ffmpeg.h:194
OptionsContext::nb_metadata
int nb_metadata
Definition: fftools_ffmpeg.h:192
OptionsContext::nb_rc_overrides
int nb_rc_overrides
Definition: fftools_ffmpeg.h:210
OptionsContext::hwaccel_devices
SpecifierOpt * hwaccel_devices
Definition: fftools_ffmpeg.h:154
OptionsContext::nb_discard
int nb_discard
Definition: fftools_ffmpeg.h:250
OptionsContext::accurate_seek
int accurate_seek
Definition: fftools_ffmpeg.h:145
OptionsContext::metadata_streams_manual
int metadata_streams_manual
Definition: fftools_ffmpeg.h:167
OptionsContext::filters
SpecifierOpt * filters
Definition: fftools_ffmpeg.h:227
OptionsContext::nb_top_field_first
int nb_top_field_first
Definition: fftools_ffmpeg.h:218
OptionsContext::nb_autorotate
int nb_autorotate
Definition: fftools_ffmpeg.h:159
OptionsContext::metadata
SpecifierOpt * metadata
Definition: fftools_ffmpeg.h:191
OptionsContext::nb_canvas_sizes
int nb_canvas_sizes
Definition: fftools_ffmpeg.h:236
OptionsContext::nb_frame_sizes
int nb_frame_sizes
Definition: fftools_ffmpeg.h:137
OptionsContext::autorotate
SpecifierOpt * autorotate
Definition: fftools_ffmpeg.h:158
OptionsContext::nb_dump_attachment
int nb_dump_attachment
Definition: fftools_ffmpeg.h:151
OptionsContext::recording_time
int64_t recording_time
Definition: fftools_ffmpeg.h:174
OptionsContext::disposition
SpecifierOpt * disposition
Definition: fftools_ffmpeg.h:251
OptionsContext::nb_frame_aspect_ratios
int nb_frame_aspect_ratios
Definition: fftools_ffmpeg.h:208
OptionsContext::nb_fix_sub_duration
int nb_fix_sub_duration
Definition: fftools_ffmpeg.h:234
OptionsContext::nb_forced_key_frames
int nb_forced_key_frames
Definition: fftools_ffmpeg.h:204
OptionsContext::nb_metadata_map
int nb_metadata_map
Definition: fftools_ffmpeg.h:220
OptionsContext::nb_disposition
int nb_disposition
Definition: fftools_ffmpeg.h:252
OptionsContext::limit_filesize
uint64_t limit_filesize
Definition: fftools_ffmpeg.h:176
OptionsContext::nb_audio_channels
int nb_audio_channels
Definition: fftools_ffmpeg.h:129
OptionsContext::nb_apad
int nb_apad
Definition: fftools_ffmpeg.h:248
OptionsContext::sample_fmts
SpecifierOpt * sample_fmts
Definition: fftools_ffmpeg.h:199
OptionsContext::audio_channels
SpecifierOpt * audio_channels
Definition: fftools_ffmpeg.h:128
OptionsContext::codec_names
SpecifierOpt * codec_names
Definition: fftools_ffmpeg.h:126
OptionsContext::start_time_eof
int64_t start_time_eof
Definition: fftools_ffmpeg.h:122
OptionsContext::canvas_sizes
SpecifierOpt * canvas_sizes
Definition: fftools_ffmpeg.h:235
OptionsContext::reinit_filters
SpecifierOpt * reinit_filters
Definition: fftools_ffmpeg.h:231
OptionsContext::thread_queue_size
int thread_queue_size
Definition: fftools_ffmpeg.h:146
OptionsContext::passlogfiles
SpecifierOpt * passlogfiles
Definition: fftools_ffmpeg.h:239
OptionsContext::data_disable
int data_disable
Definition: fftools_ffmpeg.h:185
OptionsContext::frame_rates
SpecifierOpt * frame_rates
Definition: fftools_ffmpeg.h:132
OptionsContext::chapters_input_file
int chapters_input_file
Definition: fftools_ffmpeg.h:172
OptionsContext::streamid_map
int * streamid_map
Definition: fftools_ffmpeg.h:188
OptionsContext::video_disable
int video_disable
Definition: fftools_ffmpeg.h:182
OptionsContext::nb_force_fps
int nb_force_fps
Definition: fftools_ffmpeg.h:206
OptionsContext::audio_disable
int audio_disable
Definition: fftools_ffmpeg.h:183
OptionsContext::intra_matrices
SpecifierOpt * intra_matrices
Definition: fftools_ffmpeg.h:211
OptionsContext::nb_inter_matrices
int nb_inter_matrices
Definition: fftools_ffmpeg.h:214
OptionsContext::nb_enc_time_bases
int nb_enc_time_bases
Definition: fftools_ffmpeg.h:258
OptionsContext::apad
SpecifierOpt * apad
Definition: fftools_ffmpeg.h:247
OptionsContext::chroma_intra_matrices
SpecifierOpt * chroma_intra_matrices
Definition: fftools_ffmpeg.h:215
OptionsContext::nb_hwaccel_output_formats
int nb_hwaccel_output_formats
Definition: fftools_ffmpeg.h:157
OptionsContext::top_field_first
SpecifierOpt * top_field_first
Definition: fftools_ffmpeg.h:217
OptionsContext::metadata_chapters_manual
int metadata_chapters_manual
Definition: fftools_ffmpeg.h:168
OptionsContext::nb_presets
int nb_presets
Definition: fftools_ffmpeg.h:222
OptionsContext::nb_program
int nb_program
Definition: fftools_ffmpeg.h:254
OptionsContext::force_fps
SpecifierOpt * force_fps
Definition: fftools_ffmpeg.h:205
OptionsContext::qscale
SpecifierOpt * qscale
Definition: fftools_ffmpeg.h:201
OptionsContext::copy_prior_start
SpecifierOpt * copy_prior_start
Definition: fftools_ffmpeg.h:225
OptionsContext::max_muxing_queue_size
SpecifierOpt * max_muxing_queue_size
Definition: fftools_ffmpeg.h:241
OptionsContext::stop_time
int64_t stop_time
Definition: fftools_ffmpeg.h:175
OptionsContext::nb_sample_fmts
int nb_sample_fmts
Definition: fftools_ffmpeg.h:200
OptionsContext::rc_overrides
SpecifierOpt * rc_overrides
Definition: fftools_ffmpeg.h:209
OptionsContext::attachments
const char ** attachments
Definition: fftools_ffmpeg.h:169
OptionsContext::nb_copy_prior_start
int nb_copy_prior_start
Definition: fftools_ffmpeg.h:226
OptionsContext::hwaccels
SpecifierOpt * hwaccels
Definition: fftools_ffmpeg.h:152
OptionsContext::nb_filter_scripts
int nb_filter_scripts
Definition: fftools_ffmpeg.h:230
OptionsContext::nb_qscale
int nb_qscale
Definition: fftools_ffmpeg.h:202
OptionsContext::program
SpecifierOpt * program
Definition: fftools_ffmpeg.h:253
OptionsContext::nb_frame_pix_fmts
int nb_frame_pix_fmts
Definition: fftools_ffmpeg.h:139
OptionsContext::loop
int loop
Definition: fftools_ffmpeg.h:143
OptionsContext::mux_max_delay
float mux_max_delay
Definition: fftools_ffmpeg.h:178
OptionsContext::codec_tags
SpecifierOpt * codec_tags
Definition: fftools_ffmpeg.h:197
OptionsContext::time_bases
SpecifierOpt * time_bases
Definition: fftools_ffmpeg.h:255
OptionsContext::shortest
int shortest
Definition: fftools_ffmpeg.h:179
OptionsContext::presets
SpecifierOpt * presets
Definition: fftools_ffmpeg.h:221
OptionsContext::ts_scale
SpecifierOpt * ts_scale
Definition: fftools_ffmpeg.h:148
OptionsContext::nb_audio_sample_rate
int nb_audio_sample_rate
Definition: fftools_ffmpeg.h:131
OptionsContext::nb_hwaccels
int nb_hwaccels
Definition: fftools_ffmpeg.h:153
OptionsContext::fix_sub_duration
SpecifierOpt * fix_sub_duration
Definition: fftools_ffmpeg.h:233
OptionsContext::inter_matrices
SpecifierOpt * inter_matrices
Definition: fftools_ffmpeg.h:213
OptionsContext::hwaccel_output_formats
SpecifierOpt * hwaccel_output_formats
Definition: fftools_ffmpeg.h:156
OptionsContext::nb_autoscale
int nb_autoscale
Definition: fftools_ffmpeg.h:260
OptionsContext::subtitle_disable
int subtitle_disable
Definition: fftools_ffmpeg.h:184
OptionsContext::nb_bitstream_filters
int nb_bitstream_filters
Definition: fftools_ffmpeg.h:196
OptionsContext::nb_guess_layout_max
int nb_guess_layout_max
Definition: fftools_ffmpeg.h:246
OptionsContext::seek_timestamp
int seek_timestamp
Definition: fftools_ffmpeg.h:123
OptionsContext::bitstream_filters
SpecifierOpt * bitstream_filters
Definition: fftools_ffmpeg.h:195
OptionsContext::nb_max_muxing_queue_size
int nb_max_muxing_queue_size
Definition: fftools_ffmpeg.h:242
OptionsContext::nb_ts_scale
int nb_ts_scale
Definition: fftools_ffmpeg.h:149
OptionsContext::audio_channel_maps
AudioChannelMap * audio_channel_maps
Definition: fftools_ffmpeg.h:164
OptionsContext::g
OptionGroup * g
Definition: fftools_ffmpeg.h:118
OptionsContext::nb_filters
int nb_filters
Definition: fftools_ffmpeg.h:228
OutputFile
Definition: fftools_ffmpeg.h:594
OutputFile::limit_filesize
uint64_t limit_filesize
Definition: fftools_ffmpeg.h:600
OutputFile::ctx
AVFormatContext * ctx
Definition: fftools_ffmpeg.h:595
OutputFile::header_written
int header_written
Definition: fftools_ffmpeg.h:604
OutputFile::start_time
int64_t start_time
start time in microseconds == AV_TIME_BASE units
Definition: fftools_ffmpeg.h:599
OutputFile::opts
AVDictionary * opts
Definition: fftools_ffmpeg.h:596
OutputFile::ost_index
int ost_index
Definition: fftools_ffmpeg.h:597
OutputFile::shortest
int shortest
Definition: fftools_ffmpeg.h:602
OutputFile::recording_time
int64_t recording_time
desired length of the resulting file in microseconds == AV_TIME_BASE units
Definition: fftools_ffmpeg.h:598
OutputFilter
Definition: fftools_ffmpeg.h:287
OutputFilter::width
int width
Definition: fftools_ffmpeg.h:298
OutputFilter::out_tmp
AVFilterInOut * out_tmp
Definition: fftools_ffmpeg.h:294
OutputFilter::ost
struct OutputStream * ost
Definition: fftools_ffmpeg.h:289
OutputFilter::channel_layouts
uint64_t * channel_layouts
Definition: fftools_ffmpeg.h:306
OutputFilter::filter
AVFilterContext * filter
Definition: fftools_ffmpeg.h:288
OutputFilter::name
uint8_t * name
Definition: fftools_ffmpeg.h:291
OutputFilter::sample_rates
int * sample_rates
Definition: fftools_ffmpeg.h:307
OutputFilter::graph
struct FilterGraph * graph
Definition: fftools_ffmpeg.h:290
OutputFilter::height
int height
Definition: fftools_ffmpeg.h:298
OutputFilter::sample_rate
int sample_rate
Definition: fftools_ffmpeg.h:301
OutputFilter::formats
int * formats
Definition: fftools_ffmpeg.h:305
OutputFilter::frame_rate
AVRational frame_rate
Definition: fftools_ffmpeg.h:299
OutputFilter::channel_layout
uint64_t channel_layout
Definition: fftools_ffmpeg.h:302
OutputFilter::format
int format
Definition: fftools_ffmpeg.h:300
OutputFilter::type
enum AVMediaType type
Definition: fftools_ffmpeg.h:295
OutputStream
Definition: fftools_ffmpeg.h:472
OutputStream::max_muxing_queue_size
int max_muxing_queue_size
Definition: fftools_ffmpeg.h:573
OutputStream::last_dropped
int last_dropped
Definition: fftools_ffmpeg.h:500
OutputStream::swr_opts
AVDictionary * swr_opts
Definition: fftools_ffmpeg.h:540
OutputStream::copy_initial_nonkeyframes
int copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:555
OutputStream::last_mux_dts
int64_t last_mux_dts
Definition: fftools_ffmpeg.h:487
OutputStream::top_field_first
int top_field_first
Definition: fftools_ffmpeg.h:510
OutputStream::mux_timebase
AVRational mux_timebase
Definition: fftools_ffmpeg.h:489
OutputStream::source_index
int source_index
Definition: fftools_ffmpeg.h:475
OutputStream::forced_keyframes_expr_const_values
double forced_keyframes_expr_const_values[FKF_NB]
Definition: fftools_ffmpeg.h:524
OutputStream::finished
OSTFinished finished
Definition: fftools_ffmpeg.h:543
OutputStream::initialized
int initialized
Definition: fftools_ffmpeg.h:550
OutputStream::audio_channels_map
int * audio_channels_map
Definition: fftools_ffmpeg.h:527
OutputStream::frame_aspect_ratio
AVRational frame_aspect_ratio
Definition: fftools_ffmpeg.h:515
OutputStream::rotate_override_value
double rotate_override_value
Definition: fftools_ffmpeg.h:513
OutputStream::last_frame
AVFrame * last_frame
Definition: fftools_ffmpeg.h:499
OutputStream::autoscale
int autoscale
Definition: fftools_ffmpeg.h:512
OutputStream::unavailable
int unavailable
Definition: fftools_ffmpeg.h:544
OutputStream::audio_channels_mapped
int audio_channels_mapped
Definition: fftools_ffmpeg.h:528
OutputStream::sync_opts
int64_t sync_opts
Definition: fftools_ffmpeg.h:482
OutputStream::force_fps
int force_fps
Definition: fftools_ffmpeg.h:509
OutputStream::forced_kf_pts
int64_t * forced_kf_pts
Definition: fftools_ffmpeg.h:519
OutputStream::error
int64_t error[4]
Definition: fftools_ffmpeg.h:591
OutputStream::packets_written
uint64_t packets_written
Definition: fftools_ffmpeg.h:565
OutputStream::pict_type
int pict_type
Definition: fftools_ffmpeg.h:588
OutputStream::frames_encoded
uint64_t frames_encoded
Definition: fftools_ffmpeg.h:567
OutputStream::max_frames
int64_t max_frames
Definition: fftools_ffmpeg.h:497
OutputStream::muxing_queue_data_threshold
size_t muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:585
OutputStream::forced_kf_index
int forced_kf_index
Definition: fftools_ffmpeg.h:521
OutputStream::apad
char * apad
Definition: fftools_ffmpeg.h:542
OutputStream::inputs_done
int inputs_done
Definition: fftools_ffmpeg.h:552
OutputStream::resample_opts
AVDictionary * resample_opts
Definition: fftools_ffmpeg.h:541
OutputStream::max_frame_rate
AVRational max_frame_rate
Definition: fftools_ffmpeg.h:507
OutputStream::quality
int quality
Definition: fftools_ffmpeg.h:571
OutputStream::enc_timebase
AVRational enc_timebase
Definition: fftools_ffmpeg.h:490
OutputStream::stream_copy
int stream_copy
Definition: fftools_ffmpeg.h:545
OutputStream::muxing_queue
AVFifoBuffer * muxing_queue
Definition: fftools_ffmpeg.h:576
OutputStream::is_cfr
int is_cfr
Definition: fftools_ffmpeg.h:508
OutputStream::ref_par
AVCodecParameters * ref_par
Definition: fftools_ffmpeg.h:495
OutputStream::forced_keyframes
char * forced_keyframes
Definition: fftools_ffmpeg.h:522
OutputStream::filtered_frame
AVFrame * filtered_frame
Definition: fftools_ffmpeg.h:498
OutputStream::attachment_filename
const char * attachment_filename
Definition: fftools_ffmpeg.h:554
OutputStream::frame_rate
AVRational frame_rate
Definition: fftools_ffmpeg.h:506
OutputStream::copy_prior_start
int copy_prior_start
Definition: fftools_ffmpeg.h:556
OutputStream::enc_ctx
AVCodecContext * enc_ctx
Definition: fftools_ffmpeg.h:494
OutputStream::sync_ist
struct InputStream * sync_ist
Definition: fftools_ffmpeg.h:481
OutputStream::encoding_needed
int encoding_needed
Definition: fftools_ffmpeg.h:477
OutputStream::encoder_opts
AVDictionary * encoder_opts
Definition: fftools_ffmpeg.h:538
OutputStream::data_size
uint64_t data_size
Definition: fftools_ffmpeg.h:563
OutputStream::st
AVStream * st
Definition: fftools_ffmpeg.h:476
OutputStream::filters
char * filters
filtergraph associated to the -filter option
Definition: fftools_ffmpeg.h:535
OutputStream::avfilter
char * avfilter
Definition: fftools_ffmpeg.h:534
OutputStream::forced_kf_ref_pts
int64_t forced_kf_ref_pts
Definition: fftools_ffmpeg.h:518
OutputStream::samples_encoded
uint64_t samples_encoded
Definition: fftools_ffmpeg.h:568
OutputStream::filters_script
char * filters_script
filtergraph script associated to the -filter_script option
Definition: fftools_ffmpeg.h:536
OutputStream::bsf_ctx
AVBSFContext * bsf_ctx
Definition: fftools_ffmpeg.h:492
OutputStream::first_pts
int64_t first_pts
Definition: fftools_ffmpeg.h:485
OutputStream::enc
AVCodec * enc
Definition: fftools_ffmpeg.h:496
OutputStream::hwaccel_ctx
void * hwaccel_ctx
Definition: fftools_ffmpeg.h:503
OutputStream::sws_dict
AVDictionary * sws_dict
Definition: fftools_ffmpeg.h:539
OutputStream::forced_kf_count
int forced_kf_count
Definition: fftools_ffmpeg.h:520
OutputStream::filter
OutputFilter * filter
Definition: fftools_ffmpeg.h:533
OutputStream::disposition
char * disposition
Definition: fftools_ffmpeg.h:557
OutputStream::index
int index
Definition: fftools_ffmpeg.h:474
OutputStream::rotate_overridden
int rotate_overridden
Definition: fftools_ffmpeg.h:511
OutputStream::forced_keyframes_pexpr
AVExpr * forced_keyframes_pexpr
Definition: fftools_ffmpeg.h:523
OutputStream::keep_pix_fmt
int keep_pix_fmt
Definition: fftools_ffmpeg.h:559
OutputStream::muxing_queue_data_size
size_t muxing_queue_data_size
Definition: fftools_ffmpeg.h:582
OutputStream::logfile
FILE * logfile
Definition: fftools_ffmpeg.h:531
OutputStream::last_nb0_frames
int last_nb0_frames[3]
Definition: fftools_ffmpeg.h:501
OutputStream::file_index
int file_index
Definition: fftools_ffmpeg.h:473
OutputStream::frame_number
int frame_number
Definition: fftools_ffmpeg.h:478
OutputStream::logfile_prefix
char * logfile_prefix
Definition: fftools_ffmpeg.h:530
SpecifierOpt
Definition: fftools_cmdutils.h:175
StreamMap
Definition: fftools_ffmpeg.h:103
StreamMap::stream_index
int stream_index
Definition: fftools_ffmpeg.h:106
StreamMap::disabled
int disabled
Definition: fftools_ffmpeg.h:104
StreamMap::sync_stream_index
int sync_stream_index
Definition: fftools_ffmpeg.h:108
StreamMap::linklabel
char * linklabel
Definition: fftools_ffmpeg.h:109
StreamMap::sync_file_index
int sync_file_index
Definition: fftools_ffmpeg.h:107
StreamMap::file_index
int file_index
Definition: fftools_ffmpeg.h:105