FFmpegKit Linux API  4.5.1
fftools_ffmpeg.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /*
20  * CHANGES 06.2020
21  * - cancel_operation() method signature updated with id
22  *
23  * CHANGES 01.2020
24  * - ffprobe support changes
25  *
26  * CHANGES 12.2019
27  * - Concurrent execution support
28  *
29  * CHANGES 03.2019
30  * --------------------------------------------------------
31  * - config.h include removed
32  *
33  * CHANGES 08.2018
34  * --------------------------------------------------------
35  * - fftools_ prefix added to file name and include guards
36  * - set_report_callback() method declared
37  * - cancel_operation() method declared
38  *
39  * CHANGES 07.2018
40  * --------------------------------------------------------
41  * - Include guards renamed
42  */
43 
44 #ifndef FFTOOLS_FFMPEG_H
45 #define FFTOOLS_FFMPEG_H
46 
47 #include <stdint.h>
48 #include <stdio.h>
49 #include <signal.h>
50 
51 #include "fftools_cmdutils.h"
52 
53 #include "libavformat/avformat.h"
54 #include "libavformat/avio.h"
55 
56 #include "libavcodec/avcodec.h"
57 #include "libavcodec/bsf.h"
58 
59 #include "libavfilter/avfilter.h"
60 
61 #include "libavutil/avutil.h"
62 #include "libavutil/dict.h"
63 #include "libavutil/eval.h"
64 #include "libavutil/fifo.h"
65 #include "libavutil/hwcontext.h"
66 #include "libavutil/pixfmt.h"
67 #include "libavutil/rational.h"
68 #include "libavutil/thread.h"
69 #include "libavutil/threadmessage.h"
70 
71 #include "libswresample/swresample.h"
72 
73 #define VSYNC_AUTO -1
74 #define VSYNC_PASSTHROUGH 0
75 #define VSYNC_CFR 1
76 #define VSYNC_VFR 2
77 #define VSYNC_VSCFR 0xfe
78 #define VSYNC_DROP 0xff
79 
80 #define MAX_STREAMS 1024 /* arbitrary sanity check value */
81 
82 enum HWAccelID {
87 };
88 
89 typedef struct HWAccel {
90  const char *name;
91  int (*init)(AVCodecContext *s);
92  enum HWAccelID id;
93  enum AVPixelFormat pix_fmt;
94 } HWAccel;
95 
96 typedef struct HWDevice {
97  const char *name;
98  enum AVHWDeviceType type;
99  AVBufferRef *device_ref;
100 } HWDevice;
101 
102 /* select an input stream for an output stream */
103 typedef struct StreamMap {
104  int disabled; /* 1 is this mapping is disabled by a negative map */
109  char *linklabel; /* name of an output link, for mapping lavfi outputs */
110 } StreamMap;
111 
112 typedef struct {
113  int file_idx, stream_idx, channel_idx; // input
114  int ofile_idx, ostream_idx; // output
116 
117 typedef struct OptionsContext {
119 
120  /* input/output options */
121  int64_t start_time;
122  int64_t start_time_eof;
124  const char *format;
125 
140 
141  /* input options */
143  int loop;
144  int rate_emu;
145  float readrate;
148 
161 
162  /* output options */
165  AudioChannelMap *audio_channel_maps; /* one info entry per -map_channel */
166  int nb_audio_channel_maps; /* number of (valid) -map_channel settings */
170  const char **attachments;
172 
174 
175  int64_t recording_time;
176  int64_t stop_time;
177  uint64_t limit_filesize;
178  float mux_preload;
180  int shortest;
181  int bitexact;
182 
187 
188  /* indexed by output file stream index */
191 
239  int nb_pass;
249  int nb_apad;
263 
264 typedef struct InputFilter {
265  AVFilterContext *filter;
266  struct InputStream *ist;
268  uint8_t *name;
269  enum AVMediaType type; // AVMEDIA_TYPE_SUBTITLE for sub2video
270 
271  AVFifoBuffer *frame_queue;
272 
273  // parameters configured for this input
274  int format;
275 
276  int width, height;
278 
280  int channels;
281  uint64_t channel_layout;
282 
283  AVBufferRef *hw_frames_ctx;
284 
285  int eof;
286 } InputFilter;
287 
288 typedef struct OutputFilter {
289  AVFilterContext *filter;
290  struct OutputStream *ost;
292  uint8_t *name;
293 
294  /* temporary storage until stream maps are processed */
295  AVFilterInOut *out_tmp;
296  enum AVMediaType type;
297 
298  /* desired output stream properties */
299  int width, height;
300  AVRational frame_rate;
301  int format;
303  uint64_t channel_layout;
304 
305  // those are only set if no format is specified and the encoder gives us multiple options
306  int *formats;
307  uint64_t *channel_layouts;
309 } OutputFilter;
310 
311 typedef struct FilterGraph {
312  int index;
313  const char *graph_desc;
314 
315  AVFilterGraph *graph;
317 
322 } FilterGraph;
323 
324 typedef struct InputStream {
326  AVStream *st;
327  int discard; /* true if stream data should be discarded */
329  int decoding_needed; /* non zero if the packets must be decoded in 'raw_fifo', see DECODING_FOR_* */
330 #define DECODING_FOR_OST 1
331 #define DECODING_FOR_FILTER 2
332 
333  AVCodecContext *dec_ctx;
334  const AVCodec *dec;
335  AVFrame *decoded_frame;
336  AVFrame *filter_frame; /* a ref of decoded_frame, to be sent to filters */
337  AVPacket *pkt;
338 
339  int64_t start; /* time when read started */
340  /* predicted dts of the next packet read for this stream or (when there are
341  * several frames in a packet) of the next frame in current packet (in AV_TIME_BASE units) */
342  int64_t next_dts;
343  int64_t first_dts;
344  int64_t dts;
345 
346  int64_t next_pts;
347  int64_t pts;
349 
351 
352  int64_t min_pts; /* pts with the smallest value in a current stream */
353  int64_t max_pts; /* pts with the higher value in a current stream */
354 
355  // when forcing constant input framerate through -r,
356  // this contains the pts that will be given to the next decoded frame
357  int64_t cfr_next_pts;
358 
359  int64_t nb_samples; /* number of samples in the last decoded audio frame before looping */
360 
361  double ts_scale;
363  AVDictionary *decoder_opts;
364  AVRational framerate; /* framerate forced with -r */
367 
369 
371  struct { /* previous decoded subtitle and related variables */
373  int ret;
374  AVSubtitle subtitle;
375  } prev_sub;
376 
377  struct sub2video {
378  int64_t last_pts;
379  int64_t end_pts;
380  AVFifoBuffer *sub_queue;
381  AVFrame *frame;
382  int w, h;
383  unsigned int initialize;
384  } sub2video;
385 
386  int dr1;
387 
388  /* decoded data from this stream goes into all those filters
389  * currently video and audio only */
392 
394 
395  /* hwaccel options */
397  enum AVHWDeviceType hwaccel_device_type;
399  enum AVPixelFormat hwaccel_output_format;
400 
401  /* hwaccel context */
402  void *hwaccel_ctx;
403  void (*hwaccel_uninit)(AVCodecContext *s);
404  int (*hwaccel_get_buffer)(AVCodecContext *s, AVFrame *frame, int flags);
405  int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
406  enum AVPixelFormat hwaccel_pix_fmt;
407  enum AVPixelFormat hwaccel_retrieved_pix_fmt;
408  AVBufferRef *hw_frames_ctx;
409 
410  /* stats */
411  // combined size of all the packets read
412  uint64_t data_size;
413  /* number of packets successfully read for this stream */
414  uint64_t nb_packets;
415  // number of frames/samples retrieved from the decoder
416  uint64_t frames_decoded;
417  uint64_t samples_decoded;
418 
419  int64_t *dts_buffer;
421 
422  int got_output;
423 } InputStream;
424 
425 typedef struct InputFile {
426  AVFormatContext *ctx;
427  int eof_reached; /* true if eof reached */
428  int eagain; /* true if last read attempt returned EAGAIN */
429  int ist_index; /* index of first stream in input_streams */
430  int loop; /* set number of times input stream should be looped */
431  int64_t duration; /* actual duration of the longest stream in a file
432  at the moment when looping happens */
433  AVRational time_base; /* time base of the duration */
435 
436  int64_t ts_offset;
437  int64_t last_ts;
438  int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
440  int64_t recording_time;
441  int nb_streams; /* number of stream that ffmpeg is aware of; may be different
442  from ctx.nb_streams if new streams appear during av_read_frame() */
443  int nb_streams_warn; /* number of streams that the user was warned of */
444  int rate_emu;
445  float readrate;
447 
448  AVPacket *pkt;
449 
450 #if HAVE_THREADS
451  AVThreadMessageQueue *in_thread_queue;
452  pthread_t thread; /* thread reading from this file */
453  int non_blocking; /* reading packets from the thread should not block */
454  int joined; /* the thread has been joined */
455  int thread_queue_size; /* maximum number of queued packets */
456 #endif
457 } InputFile;
458 
466 };
467 
468 #define ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0)
469 #define ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM (1 << 1)
470 
471 extern const char *const forced_keyframes_const_names[];
472 
473 typedef enum {
476 } OSTFinished ;
477 
478 typedef struct OutputStream {
479  int file_index; /* file index */
480  int index; /* stream index in the output file */
481  int source_index; /* InputStream index */
482  AVStream *st; /* stream in the output file */
483  int encoding_needed; /* true if encoding needed for this stream */
485  /* input pts and corresponding output pts
486  for A/V sync */
487  struct InputStream *sync_ist; /* input stream to sync against */
488  int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
489  /* pts of the first frame encoded for this stream, used for limiting
490  * recording time */
491  int64_t first_pts;
492  /* dts of the last packet sent to the muxer */
493  int64_t last_mux_dts;
494  // the timebase of the packets sent to the muxer
495  AVRational mux_timebase;
496  AVRational enc_timebase;
497 
498  AVBSFContext *bsf_ctx;
499 
500  AVCodecContext *enc_ctx;
501  AVCodecParameters *ref_par; /* associated input codec parameters with encoders options applied */
502  const AVCodec *enc;
503  int64_t max_frames;
504  AVFrame *filtered_frame;
505  AVFrame *last_frame;
506  AVPacket *pkt;
509 
510  void *hwaccel_ctx;
511 
512  /* video only */
513  AVRational frame_rate;
514  AVRational max_frame_rate;
515  int is_cfr;
521 
522  AVRational frame_aspect_ratio;
523 
524  /* forced key frames */
526  int64_t *forced_kf_pts;
533 
534  /* audio only */
535  int *audio_channels_map; /* list of the channels id to pick from the source stream */
536  int audio_channels_mapped; /* number of channels in audio_channels_map */
537 
539  FILE *logfile;
540 
542  char *avfilter;
543  char *filters;
545 
546  AVDictionary *encoder_opts;
547  AVDictionary *sws_dict;
548  AVDictionary *swr_opts;
549  AVDictionary *resample_opts;
550  char *apad;
551  OSTFinished finished; /* no more packets should be written for this stream */
552  int unavailable; /* true if the steram is unavailable (possibly temporarily) */
554 
555  // init_output_stream() has been called for this stream
556  // The encoder and the bitstream filters have been initialized and the stream
557  // parameters are set in the AVStream.
559 
561 
562  const char *attachment_filename;
565  char *disposition;
566 
568 
569  /* stats */
570  // combined size of all the packets written
571  uint64_t data_size;
572  // number of packets send to the muxer
573  uint64_t packets_written;
574  // number of frames/samples sent to the encoder
575  uint64_t frames_encoded;
576  uint64_t samples_encoded;
577 
578  /* packet quality factor */
579  int quality;
580 
582 
583  /* the packets are buffered here until the muxer is ready to be initialized */
584  AVFifoBuffer *muxing_queue;
585 
586  /*
587  * The size of the AVPackets' buffers in queue.
588  * Updated when a packet is either pushed or pulled from the queue.
589  */
591 
592  /* Threshold after which max_muxing_queue_size will be in effect */
594 
595  /* packet picture type */
597 
598  /* frame encode sum of squared error values */
599  int64_t error[4];
600 } OutputStream;
601 
602 typedef struct OutputFile {
603  AVFormatContext *ctx;
604  AVDictionary *opts;
605  int ost_index; /* index of the first stream in output_streams */
606  int64_t recording_time;
607  int64_t start_time;
608  uint64_t limit_filesize; /* filesize limit expressed in bytes */
609 
610  int shortest;
611 
613 } OutputFile;
614 
615 extern __thread InputStream **input_streams;
616 extern __thread int nb_input_streams;
617 extern __thread InputFile **input_files;
618 extern __thread int nb_input_files;
619 
620 extern __thread OutputStream **output_streams;
621 extern __thread int nb_output_streams;
622 extern __thread OutputFile **output_files;
623 extern __thread int nb_output_files;
624 
625 extern __thread FilterGraph **filtergraphs;
626 extern __thread int nb_filtergraphs;
627 
628 extern __thread char *vstats_filename;
629 extern __thread char *sdp_filename;
630 
631 extern __thread float audio_drift_threshold;
632 extern __thread float dts_delta_threshold;
633 extern __thread float dts_error_threshold;
634 
635 extern __thread int audio_volume;
636 extern __thread int audio_sync_method;
637 extern __thread int video_sync_method;
638 extern __thread float frame_drop_threshold;
639 extern __thread int do_benchmark;
640 extern __thread int do_benchmark_all;
641 extern __thread int do_deinterlace;
642 extern __thread int do_hex_dump;
643 extern __thread int do_pkt_dump;
644 extern __thread int copy_ts;
645 extern __thread int start_at_zero;
646 extern __thread int copy_tb;
647 extern __thread int debug_ts;
648 extern __thread int exit_on_error;
649 extern __thread int abort_on_flags;
650 extern __thread int print_stats;
651 extern __thread int64_t stats_period;
652 extern __thread int qp_hist;
653 extern __thread int stdin_interaction;
654 extern __thread int frame_bits_per_raw_sample;
655 extern __thread AVIOContext *progress_avio;
656 extern __thread float max_error_rate;
657 extern __thread char *videotoolbox_pixfmt;
658 
659 extern __thread int filter_nbthreads;
660 extern __thread int filter_complex_nbthreads;
661 extern __thread int vstats_version;
662 extern __thread int auto_conversion_filters;
663 
664 extern __thread const AVIOInterruptCB int_cb;
665 
666 extern const HWAccel hwaccels[];
667 #if CONFIG_QSV
668 extern __thread char *qsv_device;
669 #endif
670 extern __thread HWDevice *filter_hw_device;
671 
672 void term_init(void);
673 void term_exit(void);
674 
675 void reset_options(OptionsContext *o, int is_input);
676 void show_usage(void);
677 
678 void opt_output_file(void *optctx, const char *filename);
679 
680 void remove_avoptions(AVDictionary **a, AVDictionary *b);
681 void assert_avoptions(AVDictionary *m);
682 
684 
685 enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, const AVCodec *codec, enum AVPixelFormat target);
686 void choose_sample_fmt(AVStream *st, const AVCodec *codec);
687 
689 int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out);
690 void check_filter_outputs(void);
695 
696 void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub);
697 
698 int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame);
699 
700 int ffmpeg_parse_options(int argc, char **argv);
701 
702 int videotoolbox_init(AVCodecContext *s);
703 int qsv_init(AVCodecContext *s);
704 
705 HWDevice *hw_device_get_by_name(const char *name);
706 int hw_device_init_from_string(const char *arg, HWDevice **dev);
707 void hw_device_free_all(void);
708 
712 
713 int hwaccel_decode_init(AVCodecContext *avctx);
714 
715 void set_report_callback(void (*callback)(int, float, float, int64_t, int, double, double));
716 
717 void cancel_operation(long id);
718 
719 int opt_map(void *optctx, const char *opt, const char *arg);
720 int opt_map_channel(void *optctx, const char *opt, const char *arg);
721 int opt_recording_timestamp(void *optctx, const char *opt, const char *arg);
722 int opt_data_frames(void *optctx, const char *opt, const char *arg);
723 int opt_progress(void *optctx, const char *opt, const char *arg);
724 int opt_target(void *optctx, const char *opt, const char *arg);
725 int opt_vsync(void *optctx, const char *opt, const char *arg);
726 int opt_abort_on(void *optctx, const char *opt, const char *arg);
727 int opt_stats_period(void *optctx, const char *opt, const char *arg);
728 int opt_qscale(void *optctx, const char *opt, const char *arg);
729 int opt_profile(void *optctx, const char *opt, const char *arg);
730 int opt_filter_complex(void *optctx, const char *opt, const char *arg);
731 int opt_filter_complex_script(void *optctx, const char *opt, const char *arg);
732 int opt_attach(void *optctx, const char *opt, const char *arg);
733 int opt_video_frames(void *optctx, const char *opt, const char *arg);
734 int opt_video_codec(void *optctx, const char *opt, const char *arg);
735 int opt_sameq(void *optctx, const char *opt, const char *arg);
736 int opt_timecode(void *optctx, const char *opt, const char *arg);
737 
738 int opt_vstats_file(void *optctx, const char *opt, const char *arg);
739 int opt_vstats(void *optctx, const char *opt, const char *arg);
740 int opt_video_frames(void *optctx, const char *opt, const char *arg);
741 int opt_old2new(void *optctx, const char *opt, const char *arg);
742 int opt_streamid(void *optctx, const char *opt, const char *arg);
743 int opt_bitrate(void *optctx, const char *opt, const char *arg);
744 int show_hwaccels(void *optctx, const char *opt, const char *arg);
745 int opt_video_filters(void *optctx, const char *opt, const char *arg);
746 int opt_audio_frames(void *optctx, const char *opt, const char *arg);
747 int opt_audio_qscale(void *optctx, const char *opt, const char *arg);
748 int opt_audio_codec(void *optctx, const char *opt, const char *arg);
749 int opt_channel_layout(void *optctx, const char *opt, const char *arg);
750 int opt_preset(void *optctx, const char *opt, const char *arg);
751 int opt_audio_filters(void *optctx, const char *opt, const char *arg);
752 int opt_subtitle_codec(void *optctx, const char *opt, const char *arg);
753 int opt_video_channel(void *optctx, const char *opt, const char *arg);
754 int opt_video_standard(void *optctx, const char *opt, const char *arg);
755 int opt_sdp_file(void *optctx, const char *opt, const char *arg);
756 int opt_data_codec(void *optctx, const char *opt, const char *arg);
757 int opt_init_hw_device(void *optctx, const char *opt, const char *arg);
758 int opt_filter_hw_device(void *optctx, const char *opt, const char *arg);
759 void add_input_streams(OptionsContext *o, AVFormatContext *ic);
760 void assert_file_overwrite(const char *filename);
761 void dump_attachment(AVStream *st, const char *filename);
762 uint8_t *get_line(AVIOContext *s);
765 AVDictionary *strip_specifiers(AVDictionary *dict);
766 void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec);
767 int fftools_copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o);
768 const AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder);
769 const AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *st);
770 int open_input_file(OptionsContext *o, const char *filename);
771 int get_preset_file_2(const char *preset_name, const char *codec_name, AVIOContext **s);
772 int choose_encoder(OptionsContext *o, AVFormatContext *s, OutputStream *ost);
773 OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index);
774 void parse_matrix_coeffs(uint16_t *dest, const char *str);
775 uint8_t *fftools_read_file(const char *filename);
776 char *get_ost_filters(OptionsContext *o, AVFormatContext *oc, OutputStream *ost);
777 void check_streamcopy_filters(OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type);
778 OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
779 OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
780 OutputStream *new_data_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
781 OutputStream *new_unknown_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
782 OutputStream *new_attachment_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
783 OutputStream *new_subtitle_stream(OptionsContext *o, AVFormatContext *oc, int source_index);
784 int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata);
785 void init_output_filter(OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc);
786 int init_complex_filters(void);
787 int open_output_file(OptionsContext *o, const char *filename);
788 int opt_default_new(OptionsContext *o, const char *opt, const char *arg);
789 int open_files(OptionGroupList *l, const char *inout, int (*open_file)(OptionsContext*, const char*));
790 
791 #endif /* FFTOOLS_FFMPEG_H */
OptionsContext::readrate
float readrate
Definition: fftools_ffmpeg.h:145
OptionsContext::force_fps
SpecifierOpt * force_fps
Definition: fftools_ffmpeg.h:206
OutputStream::last_mux_dts
int64_t last_mux_dts
Definition: fftools_ffmpeg.h:493
OptionsContext::disposition
SpecifierOpt * disposition
Definition: fftools_ffmpeg.h:252
InputStream::filter_frame
AVFrame * filter_frame
Definition: fftools_ffmpeg.h:336
OptionsContext::seek_timestamp
int seek_timestamp
Definition: fftools_ffmpeg.h:123
InputFile::eagain
int eagain
Definition: fftools_ffmpeg.h:428
OutputStream::avfilter
char * avfilter
Definition: fftools_ffmpeg.h:542
opt_data_codec
int opt_data_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:357
OutputStream::stream_copy
int stream_copy
Definition: fftools_ffmpeg.h:553
OptionsContext::discard
SpecifierOpt * discard
Definition: fftools_ffmpeg.h:250
fftools_read_file
uint8_t * fftools_read_file(const char *filename)
Definition: fftools_ffmpeg_opt.c:1683
index
fg index
Definition: fftools_ffmpeg_filter.c:177
progress_avio
__thread AVIOContext * progress_avio
Definition: fftools_ffmpeg.c:172
ffmpeg_parse_options
int ffmpeg_parse_options(int argc, char **argv)
OutputStream::forced_kf_index
int forced_kf_index
Definition: fftools_ffmpeg.h:528
ENCODER_FINISHED
@ ENCODER_FINISHED
Definition: fftools_ffmpeg.h:474
InputFilter::name
uint8_t * name
Definition: fftools_ffmpeg.h:268
qsv_init
int qsv_init(AVCodecContext *s)
assert_avoptions
void assert_avoptions(AVDictionary *m)
Definition: fftools_ffmpeg.c:791
OutputStream::sync_opts
int64_t sync_opts
Definition: fftools_ffmpeg.h:488
AudioChannelMap::stream_idx
int stream_idx
Definition: fftools_ffmpeg.h:113
OptionsContext::hwaccel_output_formats
SpecifierOpt * hwaccel_output_formats
Definition: fftools_ffmpeg.h:157
OutputStream::filtered_frame
AVFrame * filtered_frame
Definition: fftools_ffmpeg.h:504
InputStream::sub2video::h
int h
Definition: fftools_ffmpeg.h:382
OutputStream::finished
OSTFinished finished
Definition: fftools_ffmpeg.h:551
InputFile::nb_streams_warn
int nb_streams_warn
Definition: fftools_ffmpeg.h:443
get_line
uint8_t * get_line(AVIOContext *s)
Definition: fftools_ffmpeg_opt.c:1399
opt_data_frames
int opt_data_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3052
OptionsContext::nb_max_frame_rates
int nb_max_frame_rates
Definition: fftools_ffmpeg.h:135
FKF_NB
@ FKF_NB
Definition: fftools_ffmpeg.h:465
OutputStream::rotate_override_value
double rotate_override_value
Definition: fftools_ffmpeg.h:520
OutputStream::frame_number
int frame_number
Definition: fftools_ffmpeg.h:484
stdin_interaction
__thread int stdin_interaction
Definition: fftools_ffmpeg_opt.c:184
OutputStream::ref_par
AVCodecParameters * ref_par
Definition: fftools_ffmpeg.h:501
hw_device_init_from_string
int hw_device_init_from_string(const char *arg, HWDevice **dev)
Definition: fftools_ffmpeg_hw.c:103
OptionsContext::nb_fix_sub_duration
int nb_fix_sub_duration
Definition: fftools_ffmpeg.h:235
OptionsContext::accurate_seek
int accurate_seek
Definition: fftools_ffmpeg.h:146
OutputStream::autoscale
int autoscale
Definition: fftools_ffmpeg.h:519
abort_on_flags
__thread int abort_on_flags
Definition: fftools_ffmpeg_opt.c:181
OptionsContext::nb_filter_scripts
int nb_filter_scripts
Definition: fftools_ffmpeg.h:231
OptionsContext::nb_codec_tags
int nb_codec_tags
Definition: fftools_ffmpeg.h:199
opt_progress
int opt_progress(void *optctx, const char *opt, const char *arg)
choose_sample_fmt
void choose_sample_fmt(AVStream *st, const AVCodec *codec)
InputStream::ts_scale
double ts_scale
Definition: fftools_ffmpeg.h:361
InputStream::hw_frames_ctx
AVBufferRef * hw_frames_ctx
Definition: fftools_ffmpeg.h:408
OptionsContext::limit_filesize
uint64_t limit_filesize
Definition: fftools_ffmpeg.h:177
OutputStream::last_nb0_frames
int last_nb0_frames[3]
Definition: fftools_ffmpeg.h:508
InputStream::hwaccel_ctx
void * hwaccel_ctx
Definition: fftools_ffmpeg.h:402
OptionsContext::attachments
const char ** attachments
Definition: fftools_ffmpeg.h:170
OutputStream::filters
char * filters
filtergraph associated to the -filter option
Definition: fftools_ffmpeg.h:543
OptionsContext::mux_preload
float mux_preload
Definition: fftools_ffmpeg.h:178
InputStream::discard
int discard
Definition: fftools_ffmpeg.h:327
OutputStream::logfile_prefix
char * logfile_prefix
Definition: fftools_ffmpeg.h:538
OutputStream::muxing_queue
AVFifoBuffer * muxing_queue
Definition: fftools_ffmpeg.h:584
OutputStream::rotate_overridden
int rotate_overridden
Definition: fftools_ffmpeg.h:518
filter_hw_device
__thread HWDevice * filter_hw_device
Definition: fftools_ffmpeg_opt.c:158
opt_filter_complex
int opt_filter_complex(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3264
OutputFile::ctx
AVFormatContext * ctx
Definition: fftools_ffmpeg.h:603
OutputStream::last_dropped
int last_dropped
Definition: fftools_ffmpeg.h:507
FKF_PREV_FORCED_N
@ FKF_PREV_FORCED_N
Definition: fftools_ffmpeg.h:462
InputFile::seek_timestamp
int seek_timestamp
Definition: fftools_ffmpeg.h:439
opt_recording_timestamp
int opt_recording_timestamp(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:758
OutputStream::force_fps
int force_fps
Definition: fftools_ffmpeg.h:516
FilterGraph::index
int index
Definition: fftools_ffmpeg.h:312
OptionsContext::nb_reinit_filters
int nb_reinit_filters
Definition: fftools_ffmpeg.h:233
FKF_N
@ FKF_N
Definition: fftools_ffmpeg.h:460
OptionsContext::streamid_map
int * streamid_map
Definition: fftools_ffmpeg.h:189
InputStream
struct InputStream InputStream
OptionsContext::nb_hwaccels
int nb_hwaccels
Definition: fftools_ffmpeg.h:154
OptionsContext::nb_filters
int nb_filters
Definition: fftools_ffmpeg.h:229
frame_drop_threshold
__thread float frame_drop_threshold
Definition: fftools_ffmpeg_opt.c:170
opt_stats_period
int opt_stats_period(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:303
InputStream
Definition: fftools_ffmpeg.h:324
hwaccel_decode_init
int hwaccel_decode_init(AVCodecContext *avctx)
Definition: fftools_ffmpeg_hw.c:537
FilterGraph
struct FilterGraph FilterGraph
OptionsContext::start_time
int64_t start_time
Definition: fftools_ffmpeg.h:121
OptionsContext::nb_audio_channel_maps
int nb_audio_channel_maps
Definition: fftools_ffmpeg.h:166
OutputStream::is_cfr
int is_cfr
Definition: fftools_ffmpeg.h:515
OptionsContext::nb_copy_prior_start
int nb_copy_prior_start
Definition: fftools_ffmpeg.h:227
InputFile
struct InputFile InputFile
OptionsContext::stream_maps
StreamMap * stream_maps
Definition: fftools_ffmpeg.h:163
InputStream::dr1
int dr1
Definition: fftools_ffmpeg.h:386
forced_keyframes_const
forced_keyframes_const
Definition: fftools_ffmpeg.h:459
OptionsContext::enc_time_bases
SpecifierOpt * enc_time_bases
Definition: fftools_ffmpeg.h:258
OptionsContext::chroma_intra_matrices
SpecifierOpt * chroma_intra_matrices
Definition: fftools_ffmpeg.h:216
OptionsContext::dump_attachment
SpecifierOpt * dump_attachment
Definition: fftools_ffmpeg.h:151
configure_filtergraph
int configure_filtergraph(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:963
HWACCEL_NONE
@ HWACCEL_NONE
Definition: fftools_ffmpeg.h:83
OptionsContext::sample_fmts
SpecifierOpt * sample_fmts
Definition: fftools_ffmpeg.h:200
opt_video_channel
int opt_video_channel(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:327
opt_video_frames
int opt_video_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3040
OptionsContext::filter_scripts
SpecifierOpt * filter_scripts
Definition: fftools_ffmpeg.h:230
init_complex_filters
int init_complex_filters(void)
Definition: fftools_ffmpeg_opt.c:2198
InputStream::hwaccel_device_type
enum AVHWDeviceType hwaccel_device_type
Definition: fftools_ffmpeg.h:397
audio_drift_threshold
__thread float audio_drift_threshold
Definition: fftools_ffmpeg_opt.c:163
OutputFilter::channel_layout
uint64_t channel_layout
Definition: fftools_ffmpeg.h:303
find_codec_or_die
const AVCodec * find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
Definition: fftools_ffmpeg_opt.c:773
opt_timecode
int opt_timecode(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3208
OptionsContext::stop_time
int64_t stop_time
Definition: fftools_ffmpeg.h:176
OptionsContext::top_field_first
SpecifierOpt * top_field_first
Definition: fftools_ffmpeg.h:218
OutputStream::muxing_queue_data_threshold
size_t muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:593
ifilter_parameters_from_frame
int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *frame)
Definition: fftools_ffmpeg_filter.c:1141
opt_channel_layout
int opt_channel_layout(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3222
opt_audio_codec
int opt_audio_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:339
OutputStream::audio_channels_mapped
int audio_channels_mapped
Definition: fftools_ffmpeg.h:536
opt_audio_qscale
int opt_audio_qscale(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3258
OutputStream::attachment_filename
const char * attachment_filename
Definition: fftools_ffmpeg.h:562
OutputStream::file_index
int file_index
Definition: fftools_ffmpeg.h:479
OptionsContext::input_ts_offset
int64_t input_ts_offset
Definition: fftools_ffmpeg.h:142
OptionsContext::presets
SpecifierOpt * presets
Definition: fftools_ffmpeg.h:222
OptionsContext::data_disable
int data_disable
Definition: fftools_ffmpeg.h:186
InputFilter
Definition: fftools_ffmpeg.h:264
add_input_streams
void add_input_streams(OptionsContext *o, AVFormatContext *ic)
Definition: fftools_ffmpeg_opt.c:819
OptionsContext::metadata
SpecifierOpt * metadata
Definition: fftools_ffmpeg.h:192
InputStream::data_size
uint64_t data_size
Definition: fftools_ffmpeg.h:412
OutputStream::pkt
AVPacket * pkt
Definition: fftools_ffmpeg.h:506
input_streams
__thread InputStream ** input_streams
Definition: fftools_ffmpeg.c:176
guess_input_channel_layout
int guess_input_channel_layout(InputStream *ist)
Definition: fftools_ffmpeg.c:2303
debug_ts
__thread int debug_ts
Definition: fftools_ffmpeg_opt.c:179
opt_bitrate
int opt_bitrate(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3138
HWACCEL_AUTO
@ HWACCEL_AUTO
Definition: fftools_ffmpeg.h:84
new_audio_stream
OutputStream * new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:1956
max_error_rate
__thread float max_error_rate
Definition: fftools_ffmpeg_opt.c:186
InputStream::top_field_first
int top_field_first
Definition: fftools_ffmpeg.h:365
InputStream::sub2video
Definition: fftools_ffmpeg.h:377
OptionsContext::rc_overrides
SpecifierOpt * rc_overrides
Definition: fftools_ffmpeg.h:210
OptionsContext::metadata_chapters_manual
int metadata_chapters_manual
Definition: fftools_ffmpeg.h:169
new_attachment_stream
OutputStream * new_attachment_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2055
OptionGroupList
Definition: fftools_cmdutils.h:318
do_deinterlace
__thread int do_deinterlace
Definition: fftools_ffmpeg_opt.c:171
HWDevice::type
enum AVHWDeviceType type
Definition: fftools_ffmpeg.h:98
InputStream::nb_filters
int nb_filters
Definition: fftools_ffmpeg.h:391
opt_abort_on
int opt_abort_on(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:284
dts_error_threshold
__thread float dts_error_threshold
Definition: fftools_ffmpeg_opt.c:165
StreamMap::disabled
int disabled
Definition: fftools_ffmpeg.h:104
InputStream::pkt
AVPacket * pkt
Definition: fftools_ffmpeg.h:337
OutputStream::top_field_first
int top_field_first
Definition: fftools_ffmpeg.h:517
show_usage
void show_usage(void)
Definition: fftools_ffmpeg_opt.c:3369
InputFile::loop
int loop
Definition: fftools_ffmpeg.h:430
InputFile::readrate
float readrate
Definition: fftools_ffmpeg.h:445
opt_audio_frames
int opt_audio_frames(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3046
OutputStream::copy_prior_start
int copy_prior_start
Definition: fftools_ffmpeg.h:564
OptionsContext::frame_rates
SpecifierOpt * frame_rates
Definition: fftools_ffmpeg.h:132
OutputStream::disposition
char * disposition
Definition: fftools_ffmpeg.h:565
OptionsContext::nb_passlogfiles
int nb_passlogfiles
Definition: fftools_ffmpeg.h:241
OutputStream::max_frame_rate
AVRational max_frame_rate
Definition: fftools_ffmpeg.h:514
InputFile::pkt
AVPacket * pkt
Definition: fftools_ffmpeg.h:448
opt_streamid
int opt_streamid(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2091
OutputStream::source_index
int source_index
Definition: fftools_ffmpeg.h:481
OptionsContext::shortest
int shortest
Definition: fftools_ffmpeg.h:180
InputStream::sub2video::end_pts
int64_t end_pts
Definition: fftools_ffmpeg.h:379
OutputStream::quality
int quality
Definition: fftools_ffmpeg.h:579
OptionsContext::forced_key_frames
SpecifierOpt * forced_key_frames
Definition: fftools_ffmpeg.h:204
OutputFilter
Definition: fftools_ffmpeg.h:288
OutputStream::pict_type
int pict_type
Definition: fftools_ffmpeg.h:596
InputFilter::channel_layout
uint64_t channel_layout
Definition: fftools_ffmpeg.h:281
OptionsContext::guess_layout_max
SpecifierOpt * guess_layout_max
Definition: fftools_ffmpeg.h:246
configure_output_filter
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
Definition: fftools_ffmpeg_filter.c:629
InputStream::subtitle
AVSubtitle subtitle
Definition: fftools_ffmpeg.h:374
OutputStream::sws_dict
AVDictionary * sws_dict
Definition: fftools_ffmpeg.h:547
strip_specifiers
AVDictionary * strip_specifiers(AVDictionary *dict)
Definition: fftools_ffmpeg_opt.c:267
OutputFile::header_written
int header_written
Definition: fftools_ffmpeg.h:612
OptionsContext
Definition: fftools_ffmpeg.h:117
get_preset_file_2
int get_preset_file_2(const char *preset_name, const char *codec_name, AVIOContext **s)
Definition: fftools_ffmpeg_opt.c:1418
OutputStream::max_muxing_queue_size
int max_muxing_queue_size
Definition: fftools_ffmpeg.h:581
OptionsContext::frame_aspect_ratios
SpecifierOpt * frame_aspect_ratios
Definition: fftools_ffmpeg.h:208
OptionsContext::nb_frame_rates
int nb_frame_rates
Definition: fftools_ffmpeg.h:133
InputStream::decoded_frame
AVFrame * decoded_frame
Definition: fftools_ffmpeg.h:335
init_simple_filtergraph
int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
OptionsContext::nb_stream_maps
int nb_stream_maps
Definition: fftools_ffmpeg.h:164
do_pkt_dump
__thread int do_pkt_dump
Definition: fftools_ffmpeg_opt.c:175
OptionsContext::nb_ts_scale
int nb_ts_scale
Definition: fftools_ffmpeg.h:150
OutputStream::forced_keyframes_expr_const_values
double forced_keyframes_expr_const_values[FKF_NB]
Definition: fftools_ffmpeg.h:531
term_exit
void term_exit(void)
Definition: fftools_ffmpeg.c:430
opt_filter_hw_device
int opt_filter_hw_device(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:620
HWAccel::id
enum HWAccelID id
Definition: fftools_ffmpeg.h:92
InputStream::autorotate
int autorotate
Definition: fftools_ffmpeg.h:368
opt_qscale
int opt_qscale(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3154
OutputFilter::graph
struct FilterGraph * graph
Definition: fftools_ffmpeg.h:291
InputStream::sub2video::sub_queue
AVFifoBuffer * sub_queue
queue of AVSubtitle* before filter init
Definition: fftools_ffmpeg.h:380
FilterGraph::nb_inputs
int nb_inputs
Definition: fftools_ffmpeg.h:319
choose_encoder
int choose_encoder(OptionsContext *o, AVFormatContext *s, OutputStream *ost)
Definition: fftools_ffmpeg_opt.c:1444
OptionsContext::nb_copy_initial_nonkeyframes
int nb_copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:225
OptionsContext::pass
SpecifierOpt * pass
Definition: fftools_ffmpeg.h:238
opt_audio_filters
int opt_audio_filters(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3190
get_ost_filters
char * get_ost_filters(OptionsContext *o, AVFormatContext *oc, OutputStream *ost)
Definition: fftools_ffmpeg_opt.c:1711
Signal.h
OutputStream::packets_written
uint64_t packets_written
Definition: fftools_ffmpeg.h:573
OutputFile::opts
AVDictionary * opts
Definition: fftools_ffmpeg.h:604
FKF_N_FORCED
@ FKF_N_FORCED
Definition: fftools_ffmpeg.h:461
OutputStream::forced_keyframes_pexpr
AVExpr * forced_keyframes_pexpr
Definition: fftools_ffmpeg.h:530
OptionsContext::max_frames
SpecifierOpt * max_frames
Definition: fftools_ffmpeg.h:194
OutputStream::forced_kf_pts
int64_t * forced_kf_pts
Definition: fftools_ffmpeg.h:526
OptionsContext::nb_discard
int nb_discard
Definition: fftools_ffmpeg.h:251
auto_conversion_filters
__thread int auto_conversion_filters
Definition: fftools_ffmpeg_opt.c:190
opt_sameq
int opt_sameq(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:318
HWAccel::pix_fmt
enum AVPixelFormat pix_fmt
Definition: fftools_ffmpeg.h:93
HWDevice::name
const char * name
Definition: fftools_ffmpeg.h:97
InputFilter::ist
struct InputStream * ist
Definition: fftools_ffmpeg.h:266
vstats_filename
__thread char * vstats_filename
Definition: fftools_ffmpeg_opt.c:160
InputStream::cfr_next_pts
int64_t cfr_next_pts
Definition: fftools_ffmpeg.h:357
FKF_T
@ FKF_T
Definition: fftools_ffmpeg.h:464
hwaccels
const HWAccel hwaccels[]
Definition: fftools_ffmpeg_opt.c:152
opt_video_standard
int opt_video_standard(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:333
InputFilter::type
enum AVMediaType type
Definition: fftools_ffmpeg.h:269
InputStream::fix_sub_duration
int fix_sub_duration
Definition: fftools_ffmpeg.h:370
InputStream::got_output
int got_output
Definition: fftools_ffmpeg.h:372
InputFilter::frame_queue
AVFifoBuffer * frame_queue
Definition: fftools_ffmpeg.h:271
OptionsContext::mux_max_delay
float mux_max_delay
Definition: fftools_ffmpeg.h:179
InputFile
Definition: fftools_ffmpeg.h:425
OutputFilter::name
uint8_t * name
Definition: fftools_ffmpeg.h:292
InputFile::accurate_seek
int accurate_seek
Definition: fftools_ffmpeg.h:446
FilterGraph::graph_desc
const char * graph_desc
Definition: fftools_ffmpeg.h:313
InputStream::dts
int64_t dts
dts of the last packet read for this stream (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:344
OutputStream::encoding_needed
int encoding_needed
Definition: fftools_ffmpeg.h:483
MUXER_FINISHED
@ MUXER_FINISHED
Definition: fftools_ffmpeg.h:475
hw_device_free_all
void hw_device_free_all(void)
Definition: fftools_ffmpeg_hw.c:283
opt_video_filters
int opt_video_filters(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3184
OutputFile::shortest
int shortest
Definition: fftools_ffmpeg.h:610
open_output_file
int open_output_file(OptionsContext *o, const char *filename)
Definition: fftools_ffmpeg_opt.c:2210
OptionsContext::max_muxing_queue_size
SpecifierOpt * max_muxing_queue_size
Definition: fftools_ffmpeg.h:242
opt_video_codec
int opt_video_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:345
OptionsContext::audio_sample_rate
SpecifierOpt * audio_sample_rate
Definition: fftools_ffmpeg.h:130
OptionsContext::nb_codec_names
int nb_codec_names
Definition: fftools_ffmpeg.h:127
do_benchmark_all
__thread int do_benchmark_all
Definition: fftools_ffmpeg_opt.c:173
InputStream::hwaccel_get_buffer
int(* hwaccel_get_buffer)(AVCodecContext *s, AVFrame *frame, int flags)
Definition: fftools_ffmpeg.h:404
OutputFile::recording_time
int64_t recording_time
desired length of the resulting file in microseconds == AV_TIME_BASE units
Definition: fftools_ffmpeg.h:606
choose_pixel_fmt
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, const AVCodec *codec, enum AVPixelFormat target)
Definition: fftools_ffmpeg_filter.c:65
dts_delta_threshold
__thread float dts_delta_threshold
Definition: fftools_ffmpeg_opt.c:164
OutputStream::bsf_ctx
AVBSFContext * bsf_ctx
Definition: fftools_ffmpeg.h:498
filter_nbthreads
__thread int filter_nbthreads
Definition: fftools_ffmpeg_opt.c:187
OptionsContext::nb_sample_fmts
int nb_sample_fmts
Definition: fftools_ffmpeg.h:201
OptionsContext::metadata_global_manual
int metadata_global_manual
Definition: fftools_ffmpeg.h:167
StreamMap
Definition: fftools_ffmpeg.h:103
set_report_callback
void set_report_callback(void(*callback)(int, float, float, int64_t, int, double, double))
Definition: fftools_ffmpeg.c:5194
cancel_operation
void cancel_operation(long id)
Definition: fftools_ffmpeg.c:5199
OptionsContext::audio_channel_maps
AudioChannelMap * audio_channel_maps
Definition: fftools_ffmpeg.h:165
OutputStream::data_size
uint64_t data_size
Definition: fftools_ffmpeg.h:571
InputStream::sub2video::last_pts
int64_t last_pts
Definition: fftools_ffmpeg.h:378
OptionsContext::nb_audio_sample_rate
int nb_audio_sample_rate
Definition: fftools_ffmpeg.h:131
OutputStream::first_pts
int64_t first_pts
Definition: fftools_ffmpeg.h:491
OptionsContext::nb_frame_pix_fmts
int nb_frame_pix_fmts
Definition: fftools_ffmpeg.h:139
OutputStream::frames_encoded
uint64_t frames_encoded
Definition: fftools_ffmpeg.h:575
OptionsContext::loop
int loop
Definition: fftools_ffmpeg.h:143
hw_device_setup_for_filter
int hw_device_setup_for_filter(FilterGraph *fg)
Definition: fftools_ffmpeg_hw.c:546
OutputStream::forced_kf_ref_pts
int64_t forced_kf_ref_pts
Definition: fftools_ffmpeg.h:525
OptionsContext::qscale
SpecifierOpt * qscale
Definition: fftools_ffmpeg.h:202
OptionsContext::hwaccels
SpecifierOpt * hwaccels
Definition: fftools_ffmpeg.h:153
InputFile::ctx
AVFormatContext * ctx
Definition: fftools_ffmpeg.h:426
OptionsContext::passlogfiles
SpecifierOpt * passlogfiles
Definition: fftools_ffmpeg.h:240
forced_keyframes_const_names
const char *const forced_keyframes_const_names[]
Definition: fftools_ffmpeg.c:142
OutputStream::logfile
FILE * logfile
Definition: fftools_ffmpeg.h:539
opt_output_file
void opt_output_file(void *optctx, const char *filename)
OptionsContext::hwaccel_devices
SpecifierOpt * hwaccel_devices
Definition: fftools_ffmpeg.h:155
OSTFinished
OSTFinished
Definition: fftools_ffmpeg.h:473
opt_preset
int opt_preset(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3078
InputStream::max_pts
int64_t max_pts
Definition: fftools_ffmpeg.h:353
AudioChannelMap::ostream_idx
int ostream_idx
Definition: fftools_ffmpeg.h:114
audio_sync_method
__thread int audio_sync_method
Definition: fftools_ffmpeg_opt.c:168
OptionsContext::frame_pix_fmts
SpecifierOpt * frame_pix_fmts
Definition: fftools_ffmpeg.h:138
FilterGraph::nb_outputs
int nb_outputs
Definition: fftools_ffmpeg.h:321
InputFilter::sample_aspect_ratio
AVRational sample_aspect_ratio
Definition: fftools_ffmpeg.h:277
nb_output_streams
__thread int nb_output_streams
Definition: fftools_ffmpeg.c:182
opt_target
int opt_target(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:2873
HWDevice
struct HWDevice HWDevice
hw_device_setup_for_encode
int hw_device_setup_for_encode(OutputStream *ost)
Definition: fftools_ffmpeg_hw.c:440
InputStream::samples_decoded
uint64_t samples_decoded
Definition: fftools_ffmpeg.h:417
new_unknown_stream
OutputStream * new_unknown_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2042
StreamMap
struct StreamMap StreamMap
InputFilter::graph
struct FilterGraph * graph
Definition: fftools_ffmpeg.h:267
OutputStream::resample_opts
AVDictionary * resample_opts
Definition: fftools_ffmpeg.h:549
uninit_options
void uninit_options(OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:207
OptionsContext::bitstream_filters
SpecifierOpt * bitstream_filters
Definition: fftools_ffmpeg.h:196
opt_vstats
int opt_vstats(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3024
InputFilter::height
int height
Definition: fftools_ffmpeg.h:276
InputStream::sub2video::initialize
unsigned int initialize
marks if sub2video_update should force an initialization
Definition: fftools_ffmpeg.h:383
OutputStream::filter
OutputFilter * filter
Definition: fftools_ffmpeg.h:541
int_cb
const __thread AVIOInterruptCB int_cb
Definition: fftools_ffmpeg.c:617
parse_matrix_coeffs
void parse_matrix_coeffs(uint16_t *dest, const char *str)
Definition: fftools_ffmpeg_opt.c:1665
OptionsContext::autorotate
SpecifierOpt * autorotate
Definition: fftools_ffmpeg.h:159
HWACCEL_VIDEOTOOLBOX
@ HWACCEL_VIDEOTOOLBOX
Definition: fftools_ffmpeg.h:86
OutputFilter::sample_rates
int * sample_rates
Definition: fftools_ffmpeg.h:308
AudioChannelMap
Definition: fftools_ffmpeg.h:112
InputStream::sub2video::w
int w
Definition: fftools_ffmpeg.h:382
OutputStream::enc_timebase
AVRational enc_timebase
Definition: fftools_ffmpeg.h:496
ist
fg inputs[0] ist
Definition: fftools_ffmpeg_filter.c:191
OutputStream::hwaccel_ctx
void * hwaccel_ctx
Definition: fftools_ffmpeg.h:510
OptionsContext::nb_attachments
int nb_attachments
Definition: fftools_ffmpeg.h:171
opt_filter_complex_script
int opt_filter_complex_script(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3279
InputFile::nb_streams
int nb_streams
Definition: fftools_ffmpeg.h:441
check_streamcopy_filters
void check_streamcopy_filters(OptionsContext *o, AVFormatContext *oc, const OutputStream *ost, enum AVMediaType type)
Definition: fftools_ffmpeg_opt.c:1731
reset_options
void reset_options(OptionsContext *o, int is_input)
input_files
__thread InputFile ** input_files
Definition: fftools_ffmpeg.c:178
OptionsContext::nb_pass
int nb_pass
Definition: fftools_ffmpeg.h:239
FilterGraph::graph
AVFilterGraph * graph
Definition: fftools_ffmpeg.h:315
InputStream::user_set_discard
int user_set_discard
Definition: fftools_ffmpeg.h:328
OptionsContext::inter_matrices
SpecifierOpt * inter_matrices
Definition: fftools_ffmpeg.h:214
OutputFilter::formats
int * formats
Definition: fftools_ffmpeg.h:306
OptionsContext::thread_queue_size
int thread_queue_size
Definition: fftools_ffmpeg.h:147
OptionsContext::nb_audio_channels
int nb_audio_channels
Definition: fftools_ffmpeg.h:129
OptionsContext::nb_intra_matrices
int nb_intra_matrices
Definition: fftools_ffmpeg.h:213
opt_subtitle_codec
int opt_subtitle_codec(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:351
InputFilter::filter
AVFilterContext * filter
Definition: fftools_ffmpeg.h:265
frame_bits_per_raw_sample
__thread int frame_bits_per_raw_sample
Definition: fftools_ffmpeg_opt.c:185
InputStream::framerate
AVRational framerate
Definition: fftools_ffmpeg.h:364
OptionsContext::frame_sizes
SpecifierOpt * frame_sizes
Definition: fftools_ffmpeg.h:136
filtergraphs
__thread FilterGraph ** filtergraphs
Definition: fftools_ffmpeg.c:186
opt_init_hw_device
int opt_init_hw_device(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:605
OptionsContext::nb_qscale
int nb_qscale
Definition: fftools_ffmpeg.h:203
InputStream::wrap_correction_done
int wrap_correction_done
Definition: fftools_ffmpeg.h:348
opt_old2new
int opt_old2new(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3126
fftools_copy_metadata
int fftools_copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:668
StreamMap::sync_file_index
int sync_file_index
Definition: fftools_ffmpeg.h:107
FilterGraph::outputs
OutputFilter ** outputs
Definition: fftools_ffmpeg.h:320
OutputStream::sync_ist
struct InputStream * sync_ist
Definition: fftools_ffmpeg.h:487
OptionsContext::nb_hwaccel_devices
int nb_hwaccel_devices
Definition: fftools_ffmpeg.h:156
OptionsContext::autoscale
SpecifierOpt * autoscale
Definition: fftools_ffmpeg.h:260
OptionsContext::metadata_map
SpecifierOpt * metadata_map
Definition: fftools_ffmpeg.h:220
FilterGraph::inputs
InputFilter ** inputs
Definition: fftools_ffmpeg.h:318
new_data_stream
OutputStream * new_data_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2029
SpecifierOpt
Definition: fftools_cmdutils.h:178
InputFile::ts_offset
int64_t ts_offset
Definition: fftools_ffmpeg.h:436
OutputFilter::format
int format
Definition: fftools_ffmpeg.h:301
OutputStream::index
int index
Definition: fftools_ffmpeg.h:480
choose_decoder
const AVCodec * choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream *st)
Definition: fftools_ffmpeg_opt.c:802
InputStream::st
AVStream * st
Definition: fftools_ffmpeg.h:326
InputStream::hwaccel_pix_fmt
enum AVPixelFormat hwaccel_pix_fmt
Definition: fftools_ffmpeg.h:406
OptionsContext::nb_program
int nb_program
Definition: fftools_ffmpeg.h:255
InputFilter::eof
int eof
Definition: fftools_ffmpeg.h:285
HWAccel
Definition: fftools_ffmpeg.h:89
OutputStream::forced_keyframes
char * forced_keyframes
Definition: fftools_ffmpeg.h:529
OptionsContext::format
const char * format
Definition: fftools_ffmpeg.h:124
OutputStream::keep_pix_fmt
int keep_pix_fmt
Definition: fftools_ffmpeg.h:567
ist_in_filtergraph
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
InputStream::dec_ctx
AVCodecContext * dec_ctx
Definition: fftools_ffmpeg.h:333
OptionsContext
struct OptionsContext OptionsContext
InputFile::eof_reached
int eof_reached
Definition: fftools_ffmpeg.h:427
new_output_stream
OutputStream * new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
Definition: fftools_ffmpeg_opt.c:1479
OptionsContext::bitexact
int bitexact
Definition: fftools_ffmpeg.h:181
OptionsContext::nb_frame_aspect_ratios
int nb_frame_aspect_ratios
Definition: fftools_ffmpeg.h:209
OptionsContext::audio_disable
int audio_disable
Definition: fftools_ffmpeg.h:184
OptionsContext::nb_max_muxing_queue_size
int nb_max_muxing_queue_size
Definition: fftools_ffmpeg.h:243
InputStream::next_pts
int64_t next_pts
synthetic pts for the next decode frame (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:346
init_output_filter
void init_output_filter(OutputFilter *ofilter, OptionsContext *o, AVFormatContext *oc)
Definition: fftools_ffmpeg_opt.c:2156
InputStream::hwaccel_retrieve_data
int(* hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame)
Definition: fftools_ffmpeg.h:405
OutputStream::error
int64_t error[4]
Definition: fftools_ffmpeg.h:599
OptionsContext::nb_metadata_map
int nb_metadata_map
Definition: fftools_ffmpeg.h:221
OptionsContext::rate_emu
int rate_emu
Definition: fftools_ffmpeg.h:144
OptionsContext::nb_force_fps
int nb_force_fps
Definition: fftools_ffmpeg.h:207
OutputFile
struct OutputFile OutputFile
StreamMap::sync_stream_index
int sync_stream_index
Definition: fftools_ffmpeg.h:108
OptionsContext::time_bases
SpecifierOpt * time_bases
Definition: fftools_ffmpeg.h:256
OptionsContext::nb_max_frames
int nb_max_frames
Definition: fftools_ffmpeg.h:195
StreamMap::file_index
int file_index
Definition: fftools_ffmpeg.h:105
InputFile::ist_index
int ist_index
Definition: fftools_ffmpeg.h:429
InputFile::last_ts
int64_t last_ts
Definition: fftools_ffmpeg.h:437
OptionsContext::g
OptionGroup * g
Definition: fftools_ffmpeg.h:118
InputStream::decoding_needed
int decoding_needed
Definition: fftools_ffmpeg.h:329
InputFilter::format
int format
Definition: fftools_ffmpeg.h:274
OptionsContext::intra_matrices
SpecifierOpt * intra_matrices
Definition: fftools_ffmpeg.h:212
OptionsContext::nb_time_bases
int nb_time_bases
Definition: fftools_ffmpeg.h:257
OutputStream::frame_rate
AVRational frame_rate
Definition: fftools_ffmpeg.h:513
OptionsContext::nb_metadata
int nb_metadata
Definition: fftools_ffmpeg.h:193
int
int
Definition: fftools_ffmpeg_filter.c:165
OutputStream
struct OutputStream OutputStream
OutputFilter::sample_rate
int sample_rate
Definition: fftools_ffmpeg.h:302
OutputFilter::width
int width
Definition: fftools_ffmpeg.h:299
parse_meta_type
void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec)
Definition: fftools_ffmpeg_opt.c:641
InputStream::saw_first_ts
int saw_first_ts
Definition: fftools_ffmpeg.h:362
OptionsContext::nb_rc_overrides
int nb_rc_overrides
Definition: fftools_ffmpeg.h:211
qp_hist
__thread int qp_hist
Definition: fftools_ffmpeg_opt.c:183
OptionsContext::nb_enc_time_bases
int nb_enc_time_bases
Definition: fftools_ffmpeg.h:259
OutputStream::last_frame
AVFrame * last_frame
Definition: fftools_ffmpeg.h:505
InputFilter::sample_rate
int sample_rate
Definition: fftools_ffmpeg.h:279
OptionsContext::copy_initial_nonkeyframes
SpecifierOpt * copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:224
InputStream::guess_layout_max
int guess_layout_max
Definition: fftools_ffmpeg.h:366
OptionsContext::copy_prior_start
SpecifierOpt * copy_prior_start
Definition: fftools_ffmpeg.h:226
videotoolbox_init
int videotoolbox_init(AVCodecContext *s)
copy_tb
__thread int copy_tb
Definition: fftools_ffmpeg_opt.c:178
OptionsContext::max_frame_rates
SpecifierOpt * max_frame_rates
Definition: fftools_ffmpeg.h:134
OptionsContext::codec_names
SpecifierOpt * codec_names
Definition: fftools_ffmpeg.h:126
OptionsContext::nb_bitstream_filters
int nb_bitstream_filters
Definition: fftools_ffmpeg.h:197
OptionsContext::fix_sub_duration
SpecifierOpt * fix_sub_duration
Definition: fftools_ffmpeg.h:234
opt_map_channel
int opt_map_channel(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:489
OptionsContext::reinit_filters
SpecifierOpt * reinit_filters
Definition: fftools_ffmpeg.h:232
sub2video_update
void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub)
Definition: fftools_ffmpeg.c:334
OutputFile::ost_index
int ost_index
Definition: fftools_ffmpeg.h:605
OutputStream::filters_script
char * filters_script
filtergraph script associated to the -filter_script option
Definition: fftools_ffmpeg.h:544
HWAccelID
HWAccelID
Definition: fftools_ffmpeg.h:82
opt_attach
int opt_attach(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:481
InputFile::start_time
int64_t start_time
Definition: fftools_ffmpeg.h:438
nb_input_streams
__thread int nb_input_streams
Definition: fftools_ffmpeg.c:177
OutputFile::limit_filesize
uint64_t limit_filesize
Definition: fftools_ffmpeg.h:608
OptionsContext::nb_top_field_first
int nb_top_field_first
Definition: fftools_ffmpeg.h:219
StreamMap::stream_index
int stream_index
Definition: fftools_ffmpeg.h:106
copy_chapters
int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata)
Definition: fftools_ffmpeg_opt.c:2113
OutputStream::dropped_keyframe
int dropped_keyframe
Definition: fftools_ffmpeg.h:532
InputStream::nb_packets
uint64_t nb_packets
Definition: fftools_ffmpeg.h:414
InputStream::min_pts
int64_t min_pts
Definition: fftools_ffmpeg.h:352
OptionsContext::nb_canvas_sizes
int nb_canvas_sizes
Definition: fftools_ffmpeg.h:237
InputStream::filter_in_rescale_delta_last
int64_t filter_in_rescale_delta_last
Definition: fftools_ffmpeg.h:350
OutputFilter::filter
AVFilterContext * filter
Definition: fftools_ffmpeg.h:289
OutputStream::st
AVStream * st
Definition: fftools_ffmpeg.h:482
HWAccel::name
const char * name
Definition: fftools_ffmpeg.h:90
InputStream::sub2video::frame
AVFrame * frame
Definition: fftools_ffmpeg.h:381
dump_attachment
void dump_attachment(AVStream *st, const char *filename)
Definition: fftools_ffmpeg_opt.c:1077
OutputFilter
struct OutputFilter OutputFilter
video_sync_method
__thread int video_sync_method
Definition: fftools_ffmpeg_opt.c:169
do_hex_dump
__thread int do_hex_dump
Definition: fftools_ffmpeg_opt.c:174
InputStream::hwaccel_uninit
void(* hwaccel_uninit)(AVCodecContext *s)
Definition: fftools_ffmpeg.h:403
remove_avoptions
void remove_avoptions(AVDictionary **a, AVDictionary *b)
Definition: fftools_ffmpeg.c:782
InputStream::dts_buffer
int64_t * dts_buffer
Definition: fftools_ffmpeg.h:419
sdp_filename
__thread char * sdp_filename
Definition: fftools_ffmpeg_opt.c:161
OutputFile
Definition: fftools_ffmpeg.h:602
OutputStream::muxing_queue_data_size
size_t muxing_queue_data_size
Definition: fftools_ffmpeg.h:590
OptionsContext::nb_frame_sizes
int nb_frame_sizes
Definition: fftools_ffmpeg.h:137
opt_vstats_file
int opt_vstats_file(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3017
OptionsContext::chapters_input_file
int chapters_input_file
Definition: fftools_ffmpeg.h:173
OptionsContext::nb_apad
int nb_apad
Definition: fftools_ffmpeg.h:249
stats_period
__thread int64_t stats_period
Definition: fftools_ffmpeg_opt.c:191
OutputFilter::frame_rate
AVRational frame_rate
Definition: fftools_ffmpeg.h:300
opt_sdp_file
int opt_sdp_file(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:566
InputStream::ret
int ret
Definition: fftools_ffmpeg.h:373
HWAccel
struct HWAccel HWAccel
HWDevice
Definition: fftools_ffmpeg.h:96
new_video_stream
OutputStream * new_video_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:1745
opt_default_new
int opt_default_new(OptionsContext *o, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3058
HWAccel::init
int(* init)(AVCodecContext *s)
Definition: fftools_ffmpeg.h:91
FilterGraph::reconfiguration
int reconfiguration
Definition: fftools_ffmpeg.h:316
OutputStream::max_frames
int64_t max_frames
Definition: fftools_ffmpeg.h:503
OutputStream::apad
char * apad
Definition: fftools_ffmpeg.h:550
OptionsContext::canvas_sizes
SpecifierOpt * canvas_sizes
Definition: fftools_ffmpeg.h:236
OptionsContext::nb_streamid_map
int nb_streamid_map
Definition: fftools_ffmpeg.h:190
exit_on_error
__thread int exit_on_error
Definition: fftools_ffmpeg_opt.c:180
OutputStream::frame_aspect_ratio
AVRational frame_aspect_ratio
Definition: fftools_ffmpeg.h:522
OutputStream::unavailable
int unavailable
Definition: fftools_ffmpeg.h:552
OutputStream::mux_timebase
AVRational mux_timebase
Definition: fftools_ffmpeg.h:495
OptionsContext::nb_dump_attachment
int nb_dump_attachment
Definition: fftools_ffmpeg.h:152
new_subtitle_stream
OutputStream * new_subtitle_stream(OptionsContext *o, AVFormatContext *oc, int source_index)
Definition: fftools_ffmpeg_opt.c:2063
OptionsContext::apad
SpecifierOpt * apad
Definition: fftools_ffmpeg.h:248
OptionsContext::filters
SpecifierOpt * filters
Definition: fftools_ffmpeg.h:228
hw_device_setup_for_decode
int hw_device_setup_for_decode(InputStream *ist)
Definition: fftools_ffmpeg_hw.c:312
OptionsContext::nb_forced_key_frames
int nb_forced_key_frames
Definition: fftools_ffmpeg.h:205
fftools_cmdutils.h
OptionsContext::subtitle_disable
int subtitle_disable
Definition: fftools_ffmpeg.h:185
InputStream::hwaccel_device
char * hwaccel_device
Definition: fftools_ffmpeg.h:398
InputFilter::channels
int channels
Definition: fftools_ffmpeg.h:280
open_input_file
int open_input_file(OptionsContext *o, const char *filename)
Definition: fftools_ffmpeg_opt.c:1109
nb_filtergraphs
__thread int nb_filtergraphs
Definition: fftools_ffmpeg.c:187
FKF_PREV_FORCED_T
@ FKF_PREV_FORCED_T
Definition: fftools_ffmpeg.h:463
OutputFilter::type
enum AVMediaType type
Definition: fftools_ffmpeg.h:296
term_init
void term_init(void)
Definition: fftools_ffmpeg.c:495
InputStream::hwaccel_id
enum HWAccelID hwaccel_id
Definition: fftools_ffmpeg.h:396
OptionsContext::nb_autorotate
int nb_autorotate
Definition: fftools_ffmpeg.h:160
OptionsContext::recording_time
int64_t recording_time
Definition: fftools_ffmpeg.h:175
InputStream::nb_dts_buffer
int nb_dts_buffer
Definition: fftools_ffmpeg.h:420
nb_input_files
__thread int nb_input_files
Definition: fftools_ffmpeg.c:179
OutputStream::forced_kf_count
int forced_kf_count
Definition: fftools_ffmpeg.h:527
OptionsContext::metadata_streams_manual
int metadata_streams_manual
Definition: fftools_ffmpeg.h:168
InputStream::hwaccel_retrieved_pix_fmt
enum AVPixelFormat hwaccel_retrieved_pix_fmt
Definition: fftools_ffmpeg.h:407
InputFilter
struct InputFilter InputFilter
init_complex_filtergraph
int init_complex_filtergraph(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:314
OutputFilter::out_tmp
AVFilterInOut * out_tmp
Definition: fftools_ffmpeg.h:295
do_benchmark
__thread int do_benchmark
Definition: fftools_ffmpeg_opt.c:172
OptionsContext::muxing_queue_data_threshold
SpecifierOpt * muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:244
OptionsContext::nb_disposition
int nb_disposition
Definition: fftools_ffmpeg.h:253
opt_vsync
int opt_vsync(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3196
OptionsContext::nb_inter_matrices
int nb_inter_matrices
Definition: fftools_ffmpeg.h:215
check_filter_outputs
void check_filter_outputs(void)
Definition: fftools_ffmpeg_filter.c:643
InputStream::filters
InputFilter ** filters
Definition: fftools_ffmpeg.h:390
vstats_version
__thread int vstats_version
Definition: fftools_ffmpeg_opt.c:189
OptionsContext::audio_channels
SpecifierOpt * audio_channels
Definition: fftools_ffmpeg.h:128
opt_map
int opt_map(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:363
InputStream::nb_samples
int64_t nb_samples
Definition: fftools_ffmpeg.h:359
audio_volume
__thread int audio_volume
Definition: fftools_ffmpeg_opt.c:167
videotoolbox_pixfmt
__thread char * videotoolbox_pixfmt
OutputStream::enc_ctx
AVCodecContext * enc_ctx
Definition: fftools_ffmpeg.h:500
HWDevice::device_ref
AVBufferRef * device_ref
Definition: fftools_ffmpeg.h:99
OptionsContext::video_disable
int video_disable
Definition: fftools_ffmpeg.h:183
OptionsContext::nb_guess_layout_max
int nb_guess_layout_max
Definition: fftools_ffmpeg.h:247
InputStream::pts
int64_t pts
current pts of the decoded frame (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:347
OptionsContext::ts_scale
SpecifierOpt * ts_scale
Definition: fftools_ffmpeg.h:149
InputFile::time_base
AVRational time_base
Definition: fftools_ffmpeg.h:433
OptionsContext::program
SpecifierOpt * program
Definition: fftools_ffmpeg.h:254
InputStream::sub2video
struct InputStream::sub2video sub2video
start_at_zero
__thread int start_at_zero
Definition: fftools_ffmpeg_opt.c:177
OutputStream::samples_encoded
uint64_t samples_encoded
Definition: fftools_ffmpeg.h:576
InputStream::file_index
int file_index
Definition: fftools_ffmpeg.h:325
OutputFile::start_time
int64_t start_time
start time in microseconds == AV_TIME_BASE units
Definition: fftools_ffmpeg.h:607
OutputStream::audio_channels_map
int * audio_channels_map
Definition: fftools_ffmpeg.h:535
OptionGroup
Definition: fftools_cmdutils.h:300
hw_device_get_by_name
HWDevice * hw_device_get_by_name(const char *name)
Definition: fftools_ffmpeg_hw.c:53
FilterGraph
Definition: fftools_ffmpeg.h:311
InputStream::dec
const AVCodec * dec
Definition: fftools_ffmpeg.h:334
OutputStream
Definition: fftools_ffmpeg.h:478
InputStream::hwaccel_output_format
enum AVPixelFormat hwaccel_output_format
Definition: fftools_ffmpeg.h:399
InputStream::start
int64_t start
Definition: fftools_ffmpeg.h:339
open_files
int open_files(OptionGroupList *l, const char *inout, int(*open_file)(OptionsContext *, const char *))
HWACCEL_GENERIC
@ HWACCEL_GENERIC
Definition: fftools_ffmpeg.h:85
OptionsContext::start_time_eof
int64_t start_time_eof
Definition: fftools_ffmpeg.h:122
InputFilter::width
int width
Definition: fftools_ffmpeg.h:276
OptionsContext::nb_hwaccel_output_formats
int nb_hwaccel_output_formats
Definition: fftools_ffmpeg.h:158
OutputStream::copy_initial_nonkeyframes
int copy_initial_nonkeyframes
Definition: fftools_ffmpeg.h:563
print_stats
__thread int print_stats
Definition: fftools_ffmpeg_opt.c:182
assert_file_overwrite
void assert_file_overwrite(const char *filename)
Definition: fftools_ffmpeg_opt.c:1034
nb_output_files
__thread int nb_output_files
Definition: fftools_ffmpeg.c:184
OptionsContext::nb_muxing_queue_data_threshold
int nb_muxing_queue_data_threshold
Definition: fftools_ffmpeg.h:245
OutputFilter::height
int height
Definition: fftools_ffmpeg.h:299
init_options
void init_options(OptionsContext *o)
Definition: fftools_ffmpeg_opt.c:239
ost
OutputStream * ost
Definition: fftools_ffmpeg_filter.c:172
InputFilter::hw_frames_ctx
AVBufferRef * hw_frames_ctx
Definition: fftools_ffmpeg.h:283
InputFile::rate_emu
int rate_emu
Definition: fftools_ffmpeg.h:444
InputStream::decoder_opts
AVDictionary * decoder_opts
Definition: fftools_ffmpeg.h:363
InputStream::next_dts
int64_t next_dts
Definition: fftools_ffmpeg.h:342
InputFile::duration
int64_t duration
Definition: fftools_ffmpeg.h:431
filter_complex_nbthreads
__thread int filter_complex_nbthreads
Definition: fftools_ffmpeg_opt.c:188
OutputStream::initialized
int initialized
Definition: fftools_ffmpeg.h:558
OutputStream::encoder_opts
AVDictionary * encoder_opts
Definition: fftools_ffmpeg.h:546
OptionsContext::nb_chroma_intra_matrices
int nb_chroma_intra_matrices
Definition: fftools_ffmpeg.h:217
OutputStream::swr_opts
AVDictionary * swr_opts
Definition: fftools_ffmpeg.h:548
InputStream::prev_sub
struct InputStream::@2 prev_sub
output_streams
__thread OutputStream ** output_streams
Definition: fftools_ffmpeg.c:181
OutputFilter::ost
struct OutputStream * ost
Definition: fftools_ffmpeg.h:290
OutputFilter::channel_layouts
uint64_t * channel_layouts
Definition: fftools_ffmpeg.h:307
InputStream::first_dts
int64_t first_dts
dts of the first packet read for this stream (in AV_TIME_BASE units)
Definition: fftools_ffmpeg.h:343
InputFile::recording_time
int64_t recording_time
Definition: fftools_ffmpeg.h:440
StreamMap::linklabel
char * linklabel
Definition: fftools_ffmpeg.h:109
OptionsContext::nb_autoscale
int nb_autoscale
Definition: fftools_ffmpeg.h:261
InputFile::input_ts_offset
int64_t input_ts_offset
Definition: fftools_ffmpeg.h:434
InputStream::frames_decoded
uint64_t frames_decoded
Definition: fftools_ffmpeg.h:416
OptionsContext::codec_tags
SpecifierOpt * codec_tags
Definition: fftools_ffmpeg.h:198
InputStream::reinit_filters
int reinit_filters
Definition: fftools_ffmpeg.h:393
show_hwaccels
int show_hwaccels(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:254
copy_ts
__thread int copy_ts
Definition: fftools_ffmpeg_opt.c:176
opt_profile
int opt_profile(void *optctx, const char *opt, const char *arg)
Definition: fftools_ffmpeg_opt.c:3172
OutputStream::enc
const AVCodec * enc
Definition: fftools_ffmpeg.h:502
OptionsContext::nb_presets
int nb_presets
Definition: fftools_ffmpeg.h:223
output_files
__thread OutputFile ** output_files
Definition: fftools_ffmpeg.c:183
filtergraph_is_simple
int filtergraph_is_simple(FilterGraph *fg)
Definition: fftools_ffmpeg_filter.c:1164
OutputStream::inputs_done
int inputs_done
Definition: fftools_ffmpeg.h:560