FFmpegKit iOS / macOS / tvOS API 6.0
|
Go to the source code of this file.
Data Structures | |
struct | HWDevice |
struct | StreamMap |
struct | AudioChannelMap |
struct | OptionsContext |
struct | InputFilter |
struct | OutputFilter |
struct | FilterGraph |
struct | InputStream |
struct | InputStream::sub2video |
struct | LastFrameDuration |
struct | InputFile |
struct | EncStatsComponent |
struct | EncStats |
struct | KeyframeForceCtx |
struct | OutputStream |
struct | OutputFile |
Macros | |
#define | FFMPEG_OPT_PSNR 1 |
#define | FFMPEG_OPT_MAP_CHANNEL 1 |
#define | FFMPEG_OPT_MAP_SYNC 1 |
#define | FFMPEG_ROTATION_METADATA 1 |
#define | MAX_STREAMS 1024 /* arbitrary sanity check value */ |
#define | DECODING_FOR_OST 1 |
#define | DECODING_FOR_FILTER 2 |
#define | ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0) |
#define | ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM (1 << 1) |
Typedefs | |
typedef struct HWDevice | HWDevice |
typedef struct StreamMap | StreamMap |
typedef struct OptionsContext | OptionsContext |
typedef struct InputFilter | InputFilter |
typedef struct OutputFilter | OutputFilter |
typedef struct FilterGraph | FilterGraph |
typedef struct InputStream | InputStream |
typedef struct LastFrameDuration | LastFrameDuration |
typedef struct InputFile | InputFile |
typedef struct EncStatsComponent | EncStatsComponent |
typedef struct EncStats | EncStats |
typedef struct KeyframeForceCtx | KeyframeForceCtx |
typedef struct OutputStream | OutputStream |
typedef struct OutputFile | OutputFile |
Enumerations | |
enum | VideoSyncMethod { VSYNC_AUTO = -1 , VSYNC_PASSTHROUGH , VSYNC_CFR , VSYNC_VFR , VSYNC_VSCFR , VSYNC_DROP } |
enum | HWAccelID { HWACCEL_NONE = 0 , HWACCEL_AUTO , HWACCEL_GENERIC } |
enum | forced_keyframes_const { FKF_N , FKF_N_FORCED , FKF_PREV_FORCED_N , FKF_PREV_FORCED_T , FKF_T , FKF_NB } |
enum | EncStatsType { ENC_STATS_LITERAL = 0 , ENC_STATS_FILE_IDX , ENC_STATS_STREAM_IDX , ENC_STATS_FRAME_NUM , ENC_STATS_FRAME_NUM_IN , ENC_STATS_TIMEBASE , ENC_STATS_TIMEBASE_IN , ENC_STATS_PTS , ENC_STATS_PTS_TIME , ENC_STATS_PTS_IN , ENC_STATS_PTS_TIME_IN , ENC_STATS_DTS , ENC_STATS_DTS_TIME , ENC_STATS_SAMPLE_NUM , ENC_STATS_NB_SAMPLES , ENC_STATS_PKT_SIZE , ENC_STATS_BITRATE , ENC_STATS_AVG_BITRATE } |
enum | OSTFinished { ENCODER_FINISHED = 1 , MUXER_FINISHED = 2 } |
enum | { KF_FORCE_SOURCE = 1 , KF_FORCE_SOURCE_NO_DROP = 2 } |
Functions | |
void | term_init (void) |
void | term_exit (void) |
void | show_usage (void) |
void | remove_avoptions (AVDictionary **a, AVDictionary *b) |
void | assert_avoptions (AVDictionary *m) |
void | assert_file_overwrite (const char *filename) |
char * | file_read (const char *filename) |
AVDictionary * | strip_specifiers (const AVDictionary *dict) |
const AVCodec * | find_codec_or_die (void *logctx, const char *name, enum AVMediaType type, int encoder) |
int | parse_and_set_vsync (const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global) |
int | configure_filtergraph (FilterGraph *fg) |
void | check_filter_outputs (void) |
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) |
void | enc_stats_write (OutputStream *ost, EncStats *es, const AVFrame *frame, const AVPacket *pkt, uint64_t frame_num) |
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) |
int | of_stream_init (OutputFile *of, OutputStream *ost) |
int | of_write_trailer (OutputFile *of) |
int | of_open (const OptionsContext *o, const char *filename) |
void | of_close (OutputFile **pof) |
void | of_enc_stats_close (void) |
void | of_output_packet (OutputFile *of, AVPacket *pkt, OutputStream *ost, int eof) |
int64_t | of_filesize (OutputFile *of) |
int | ifile_open (const OptionsContext *o, const char *filename) |
void | ifile_close (InputFile **f) |
int | ifile_get_packet (InputFile *f, AVPacket **pkt) |
InputStream * | ist_iter (InputStream *prev) |
void | set_report_callback (void(*callback)(int, float, float, int64_t, double, double, double)) |
void | cancel_operation (long id) |
#define ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0) |
Definition at line 545 of file fftools_ffmpeg.h.
#define ABORT_ON_FLAG_EMPTY_OUTPUT_STREAM (1 << 1) |
Definition at line 546 of file fftools_ffmpeg.h.
#define DECODING_FOR_FILTER 2 |
Definition at line 391 of file fftools_ffmpeg.h.
#define DECODING_FOR_OST 1 |
Definition at line 390 of file fftools_ffmpeg.h.
#define FFMPEG_OPT_MAP_CHANNEL 1 |
Definition at line 103 of file fftools_ffmpeg.h.
#define FFMPEG_OPT_MAP_SYNC 1 |
Definition at line 104 of file fftools_ffmpeg.h.
#define FFMPEG_OPT_PSNR 1 |
Definition at line 102 of file fftools_ffmpeg.h.
#define FFMPEG_ROTATION_METADATA 1 |
Definition at line 105 of file fftools_ffmpeg.h.
#define MAX_STREAMS 1024 /* arbitrary sanity check value */ |
Definition at line 116 of file fftools_ffmpeg.h.
typedef struct EncStatsComponent EncStatsComponent |
typedef struct FilterGraph FilterGraph |
typedef struct InputFilter InputFilter |
typedef struct InputStream InputStream |
typedef struct KeyframeForceCtx KeyframeForceCtx |
typedef struct LastFrameDuration LastFrameDuration |
typedef struct OptionsContext OptionsContext |
typedef struct OutputFile OutputFile |
typedef struct OutputFilter OutputFilter |
typedef struct OutputStream OutputStream |
anonymous enum |
Enumerator | |
---|---|
KF_FORCE_SOURCE | |
KF_FORCE_SOURCE_NO_DROP |
Definition at line 590 of file fftools_ffmpeg.h.
enum EncStatsType |
Definition at line 548 of file fftools_ffmpeg.h.
Enumerator | |
---|---|
FKF_N | |
FKF_N_FORCED | |
FKF_PREV_FORCED_N | |
FKF_PREV_FORCED_T | |
FKF_T | |
FKF_NB |
Definition at line 536 of file fftools_ffmpeg.h.
enum HWAccelID |
Enumerator | |
---|---|
HWACCEL_NONE | |
HWACCEL_AUTO | |
HWACCEL_GENERIC |
Definition at line 118 of file fftools_ffmpeg.h.
enum OSTFinished |
Enumerator | |
---|---|
ENCODER_FINISHED | |
MUXER_FINISHED |
Definition at line 585 of file fftools_ffmpeg.h.
enum VideoSyncMethod |
Enumerator | |
---|---|
VSYNC_AUTO | |
VSYNC_PASSTHROUGH | |
VSYNC_CFR | |
VSYNC_VFR | |
VSYNC_VSCFR | |
VSYNC_DROP |
Definition at line 107 of file fftools_ffmpeg.h.
void assert_avoptions | ( | AVDictionary * | m | ) |
Definition at line 788 of file fftools_ffmpeg.c.
void assert_file_overwrite | ( | const char * | filename | ) |
Definition at line 700 of file fftools_ffmpeg_opt.c.
void cancel_operation | ( | long | id | ) |
Definition at line 4367 of file fftools_ffmpeg.c.
void check_filter_outputs | ( | void | ) |
Definition at line 822 of file fftools_ffmpeg_filter.c.
int configure_filtergraph | ( | FilterGraph * | fg | ) |
Definition at line 1136 of file fftools_ffmpeg_filter.c.
void enc_stats_write | ( | OutputStream * | ost, |
EncStats * | es, | ||
const AVFrame * | frame, | ||
const AVPacket * | pkt, | ||
uint64_t | frame_num | ||
) |
Definition at line 970 of file fftools_ffmpeg.c.
Definition at line 1303 of file fftools_ffmpeg_opt.c.
char * file_read | ( | const char * | filename | ) |
Definition at line 743 of file fftools_ffmpeg_opt.c.
int filtergraph_is_simple | ( | FilterGraph * | fg | ) |
Definition at line 1331 of file fftools_ffmpeg_filter.c.
const AVCodec * find_codec_or_die | ( | void * | logctx, |
const char * | name, | ||
enum AVMediaType | type, | ||
int | encoder | ||
) |
Definition at line 670 of file fftools_ffmpeg_opt.c.
void hw_device_free_all | ( | void | ) |
Definition at line 313 of file fftools_ffmpeg_hw.c.
HWDevice * hw_device_get_by_name | ( | const char * | name | ) |
Definition at line 69 of file fftools_ffmpeg_hw.c.
Definition at line 119 of file fftools_ffmpeg_hw.c.
int hw_device_setup_for_decode | ( | InputStream * | ist | ) |
Definition at line 342 of file fftools_ffmpeg_hw.c.
int hw_device_setup_for_encode | ( | OutputStream * | ost | ) |
Definition at line 470 of file fftools_ffmpeg_hw.c.
int hw_device_setup_for_filter | ( | FilterGraph * | fg | ) |
Definition at line 576 of file fftools_ffmpeg_hw.c.
int hwaccel_decode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 567 of file fftools_ffmpeg_hw.c.
void ifile_close | ( | InputFile ** | f | ) |
Definition at line 496 of file fftools_ffmpeg_demux.c.
Get next input packet from the demuxer.
pkt | the packet is written here when this function returns 0 |
Definition at line 427 of file fftools_ffmpeg_demux.c.
int ifile_open | ( | const OptionsContext * | o, |
const char * | filename | ||
) |
Definition at line 859 of file fftools_ffmpeg_demux.c.
int ifilter_parameters_from_frame | ( | InputFilter * | ifilter, |
const AVFrame * | frame | ||
) |
Definition at line 1299 of file fftools_ffmpeg_filter.c.
int init_complex_filtergraph | ( | FilterGraph * | fg | ) |
Definition at line 491 of file fftools_ffmpeg_filter.c.
int init_simple_filtergraph | ( | InputStream * | ist, |
OutputStream * | ost | ||
) |
Definition at line 203 of file fftools_ffmpeg_filter.c.
InputStream * ist_iter | ( | InputStream * | prev | ) |
Definition at line 763 of file fftools_ffmpeg.c.
void of_close | ( | OutputFile ** | pof | ) |
Definition at line 750 of file fftools_ffmpeg_mux.c.
void of_enc_stats_close | ( | void | ) |
Definition at line 232 of file fftools_ffmpeg_mux_init.c.
int64_t of_filesize | ( | OutputFile * | of | ) |
Definition at line 777 of file fftools_ffmpeg_mux.c.
int of_open | ( | const OptionsContext * | o, |
const char * | filename | ||
) |
Definition at line 2221 of file fftools_ffmpeg_mux_init.c.
void of_output_packet | ( | OutputFile * | of, |
AVPacket * | pkt, | ||
OutputStream * | ost, | ||
int | eof | ||
) |
Definition at line 359 of file fftools_ffmpeg_mux.c.
int of_stream_init | ( | OutputFile * | of, |
OutputStream * | ost | ||
) |
Definition at line 613 of file fftools_ffmpeg_mux.c.
int of_write_trailer | ( | OutputFile * | of | ) |
Definition at line 634 of file fftools_ffmpeg_mux.c.
int parse_and_set_vsync | ( | const char * | arg, |
int * | vsync_var, | ||
int | file_idx, | ||
int | st_idx, | ||
int | is_global | ||
) |
Definition at line 228 of file fftools_ffmpeg_opt.c.
void remove_avoptions | ( | AVDictionary ** | a, |
AVDictionary * | b | ||
) |
Definition at line 779 of file fftools_ffmpeg.c.
void set_report_callback | ( | void(*)(int, float, float, int64_t, double, double, double) | callback | ) |
Definition at line 4362 of file fftools_ffmpeg.c.
void show_usage | ( | void | ) |
Definition at line 1252 of file fftools_ffmpeg_opt.c.
AVDictionary * strip_specifiers | ( | const AVDictionary * | dict | ) |
Definition at line 211 of file fftools_ffmpeg_opt.c.
void sub2video_update | ( | InputStream * | ist, |
int64_t | heartbeat_pts, | ||
AVSubtitle * | sub | ||
) |
Definition at line 362 of file fftools_ffmpeg.c.
void term_exit | ( | void | ) |
Definition at line 458 of file fftools_ffmpeg.c.
void term_init | ( | void | ) |
Definition at line 535 of file fftools_ffmpeg.c.
|
extern |
Definition at line 123 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 108 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 131 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 120 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 118 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 141 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 121 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 114 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 115 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 116 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 117 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 138 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 109 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 110 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 122 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 129 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 103 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 128 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 213 of file fftools_ffmpeg.c.
|
extern |
Definition at line 2044 of file fftools_ffmpeg_mux_init.c.
|
extern |
Definition at line 113 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 140 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 207 of file fftools_ffmpeg.c.
|
extern |
Definition at line 657 of file fftools_ffmpeg.c.
|
extern |
Definition at line 468 of file fftools_ffmpeg.c.
|
extern |
Definition at line 127 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 214 of file fftools_ffmpeg.c.
|
extern |
Definition at line 208 of file fftools_ffmpeg.c.
|
extern |
Definition at line 202 of file fftools_ffmpeg.c.
|
extern |
Definition at line 211 of file fftools_ffmpeg.c.
|
extern |
Definition at line 98 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 100 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 99 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 101 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 210 of file fftools_ffmpeg.c.
|
extern |
Definition at line 124 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 205 of file fftools_ffmpeg.c.
|
extern |
Definition at line 125 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 142 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 106 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 119 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 132 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 126 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 112 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 105 of file fftools_ffmpeg_opt.c.
|
extern |
Definition at line 130 of file fftools_ffmpeg_opt.c.