19 #ifndef FFTOOLS_FFMPEG_H
20 #define FFTOOLS_FFMPEG_H
50 #define VSYNC_PASSTHROUGH 0
53 #define VSYNC_VSCFR 0xfe
54 #define VSYNC_DROP 0xff
56 #define MAX_STREAMS 1024
301 #define DECODING_FOR_OST 1
302 #define DECODING_FOR_FILTER 2
420 int thread_queue_size;
433 #define ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0)
SpecifierOpt * passlogfiles
int64_t recording_time
desired length of the resulting file in microseconds == AV_TIME_BASE units
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, AVCodec *codec, enum AVPixelFormat target)
This structure describes decoded (raw) audio or video data.
char * filters
filtergraph associated to the -filter option
SpecifierOpt * hwaccel_output_formats
HWDevice * filter_hw_device
OutputFile ** output_files
int64_t forced_kf_ref_pts
Main libavfilter public API header.
SpecifierOpt * copy_initial_nonkeyframes
int nb_chroma_intra_matrices
void choose_sample_fmt(AVStream *st, AVCodec *codec)
SpecifierOpt * reinit_filters
The bitstream filter state.
int max_muxing_queue_size
SpecifierOpt * sample_fmts
SpecifierOpt * guess_layout_max
void hw_device_free_all(void)
Convenience header that includes libavutil's core.
int cuvid_init(AVCodecContext *s)
FilterGraph ** filtergraphs
This struct describes the properties of an encoded stream.
float dts_error_threshold
int64_t start_time
start time in microseconds == AV_TIME_BASE units
SpecifierOpt * frame_pix_fmts
SpecifierOpt * chroma_intra_matrices
SpecifierOpt * intra_matrices
void remove_avoptions(AVDictionary **a, AVDictionary *b)
int copy_initial_nonkeyframes
AVDictionary * resample_opts
void reset_options(OptionsContext *o, int is_input)
SpecifierOpt * bitstream_filters
int init_complex_filtergraph(FilterGraph *fg)
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
int filter_complex_nbthreads
SpecifierOpt * disposition
SpecifierOpt * enc_time_bases
Callback for checking whether to abort blocking functions.
libswresample public header
void check_filter_outputs(void)
int ffmpeg_parse_options(int argc, char **argv)
AudioChannelMap * audio_channel_maps
SpecifierOpt * codec_tags
SpecifierOpt * rc_overrides
int(* init)(AVCodecContext *s)
int hw_device_setup_for_encode(OutputStream *ost)
float frame_drop_threshold
AVRational frame_aspect_ratio
int nb_audio_channel_maps
SpecifierOpt * filter_scripts
int nb_hwaccel_output_formats
SpecifierOpt * audio_channels
uint64_t * channel_layouts
SpecifierOpt * time_bases
int metadata_chapters_manual
struct OutputStream * ost
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
SpecifierOpt * audio_sample_rate
int hw_device_setup_for_decode(InputStream *ist)
double forced_keyframes_expr_const_values[FKF_NB]
void opt_output_file(void *optctx, const char *filename)
int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame)
SpecifierOpt * dump_attachment
void assert_avoptions(AVDictionary *m)
SpecifierOpt * canvas_sizes
int qsv_init(AVCodecContext *s)
SpecifierOpt * metadata_map
int audio_channels_mapped
SpecifierOpt * copy_prior_start
SpecifierOpt * frame_aspect_ratios
SpecifierOpt * frame_sizes
HWDevice * hw_device_get_by_name(const char *name)
A linked-list of the inputs/outputs of the filter chain.
SpecifierOpt * frame_rates
struct InputStream * sync_ist
Libavcodec external API header.
AVFifoBuffer * muxing_queue
OutputStream ** output_streams
main external API structure.
int metadata_streams_manual
const char * attachment_filename
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
a very simple circular buffer FIFO implementation
SpecifierOpt * top_field_first
int configure_filtergraph(FilterGraph *fg)
Rational number (pair of numerator and denominator).
int metadata_global_manual
double rotate_override_value
int filtergraph_is_simple(FilterGraph *fg)
int frame_bits_per_raw_sample
char * filters_script
filtergraph script associated to the -filter_script option
SpecifierOpt * hwaccel_devices
float audio_drift_threshold
InputStream ** input_streams
AVIOContext * progress_avio
#define flags(name, subs,...)
AVExpr * forced_keyframes_pexpr
const AVIOInterruptCB int_cb
A reference to a data buffer.
SpecifierOpt * max_muxing_queue_size
struct FilterGraph * graph
const OptionDef options[]
AVCodecParameters * ref_par
Utilties for rational number calculation.
SpecifierOpt * inter_matrices
const char *const forced_keyframes_const_names[]
SpecifierOpt * forced_key_frames
const char ** attachments
int nb_max_muxing_queue_size
AVBufferRef * hw_device_ctx
enum AVPixelFormat pix_fmt
SpecifierOpt * fix_sub_duration
SpecifierOpt * autorotate
int hwaccel_decode_init(AVCodecContext *avctx)
float dts_delta_threshold
int guess_input_channel_layout(InputStream *ist)
SpecifierOpt * max_frames
int nb_copy_initial_nonkeyframes
int hw_device_init_from_string(const char *arg, HWDevice **dev)
SpecifierOpt * codec_names
AVDictionary * encoder_opts
char * videotoolbox_pixfmt
int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
AVPixelFormat
Pixel format.
void sub2video_update(InputStream *ist, AVSubtitle *sub)
int nb_frame_aspect_ratios
int videotoolbox_init(AVCodecContext *s)
simple arithmetic expression evaluator