Libav
avconv.h
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav 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  * Libav 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 Libav; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVCONV_H
20 #define AVCONV_H
21 
22 #include "config.h"
23 
24 #include <stdint.h>
25 #include <stdio.h>
26 
27 #if HAVE_PTHREADS
28 #include <pthread.h>
29 #endif
30 
31 #include "cmdutils.h"
32 
33 #include "libavformat/avformat.h"
34 #include "libavformat/avio.h"
35 
36 #include "libavcodec/avcodec.h"
37 
38 #include "libavfilter/avfilter.h"
39 
40 #include "libavutil/avutil.h"
41 #include "libavutil/dict.h"
42 #include "libavutil/fifo.h"
43 #include "libavutil/pixfmt.h"
44 #include "libavutil/rational.h"
45 
46 #define VSYNC_AUTO -1
47 #define VSYNC_PASSTHROUGH 0
48 #define VSYNC_CFR 1
49 #define VSYNC_VFR 2
50 
51 enum HWAccelID {
55 };
56 
57 typedef struct HWAccel {
58  const char *name;
59  int (*init)(AVCodecContext *s);
60  enum HWAccelID id;
62 } HWAccel;
63 
64 /* select an input stream for an output stream */
65 typedef struct StreamMap {
66  int disabled; /* 1 is this mapping is disabled by a negative map */
71  char *linklabel; /* name of an output link, for mapping lavfi outputs */
72 } StreamMap;
73 
74 /* select an input file for an output file */
75 typedef struct MetadataMap {
76  int file; // file index
77  char type; // type of metadata to copy -- (g)lobal, (s)tream, (c)hapter or (p)rogram
78  int index; // stream/chapter/program number
79 } MetadataMap;
80 
81 typedef struct OptionsContext {
83 
84  /* input/output options */
85  int64_t start_time;
86  const char *format;
87 
100 
101  /* input options */
103  int rate_emu;
105 
114 
115  /* output options */
118  /* first item specifies output metadata, second is input */
124  const char **attachments;
126 
128 
129  int64_t recording_time;
130  uint64_t limit_filesize;
131  float mux_preload;
133  int shortest;
134 
139 
140  /* indexed by output file stream index */
143 
181  int nb_pass;
185 
186 typedef struct InputFilter {
188  struct InputStream *ist;
191 } InputFilter;
192 
193 typedef struct OutputFilter {
195  struct OutputStream *ost;
198 
199  /* temporary storage until stream maps are processed */
201 } OutputFilter;
202 
203 typedef struct FilterGraph {
204  int index;
205  const char *graph_desc;
206 
208 
213 } FilterGraph;
214 
215 typedef struct InputStream {
218  int discard; /* true if stream data should be discarded */
219  int decoding_needed; /* true if the packets must be decoded in 'raw_fifo' */
222  AVFrame *filter_frame; /* a ref of decoded_frame, to be sent to filters */
223 
224  int64_t start; /* time when read started */
225  /* predicted dts of the next packet read for this stream or (when there are
226  * several frames in a packet) of the next frame in current packet */
227  int64_t next_dts;
228  /* dts of the last packet read for this stream */
229  int64_t last_dts;
231  double ts_scale;
232  int is_start; /* is 1 at the start and after a discontinuity */
235  AVRational framerate; /* framerate forced with -r */
236 
240 
245 
246  /* decoded data from this stream goes into all those filters
247  * currently video and audio only */
250 
251  /* hwaccel options */
254 
255  /* hwaccel context */
257  void *hwaccel_ctx;
263 } InputStream;
264 
265 typedef struct InputFile {
267  int eof_reached; /* true if eof reached */
268  int eagain; /* true if last read attempt returned EAGAIN */
269  int ist_index; /* index of first stream in ist_table */
270  int64_t ts_offset;
271  int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
272  int64_t recording_time;
273  int nb_streams; /* number of stream that avconv is aware of; may be different
274  from ctx.nb_streams if new streams appear during av_read_frame() */
275  int rate_emu;
277 
278 #if HAVE_PTHREADS
279  pthread_t thread; /* thread reading from this file */
280  int finished; /* the thread has exited */
281  int joined; /* the thread has been joined */
282  pthread_mutex_t fifo_lock; /* lock for access to fifo */
283  pthread_cond_t fifo_cond; /* the main thread will signal on this cond after reading from fifo */
284  AVFifoBuffer *fifo; /* demuxed packets are stored here; freed by the main thread */
285 #endif
286 } InputFile;
287 
288 typedef struct OutputStream {
289  int file_index; /* file index */
290  int index; /* stream index in the output file */
291  int source_index; /* InputStream index */
292  AVStream *st; /* stream in the output file */
293  int encoding_needed; /* true if encoding needed for this stream */
295  /* input pts and corresponding output pts
296  for A/V sync */
297  // double sync_ipts; /* dts from the AVPacket of the demuxer in second units */
298  struct InputStream *sync_ist; /* input stream to sync against */
299  int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
300  /* pts of the first frame encoded for this stream, used for limiting
301  * recording time */
302  int64_t first_pts;
303  /* dts of the last packet sent to the muxer */
304  int64_t last_mux_dts;
307  int64_t max_frames;
309 
310  /* video only */
314 
316 
317  /* forced key frames */
318  int64_t *forced_kf_pts;
322 
324  FILE *logfile;
325 
327  char *avfilter;
328 
329  int64_t sws_flags;
332  int finished; /* no more packets should be written for this stream */
334  const char *attachment_filename;
336 
338 
340 } OutputStream;
341 
342 typedef struct OutputFile {
345  int ost_index; /* index of the first stream in output_streams */
346  int64_t recording_time; /* desired length of the resulting file in microseconds */
347  int64_t start_time; /* start time in microseconds */
348  uint64_t limit_filesize;
349 
350  int shortest;
351 } OutputFile;
352 
353 extern InputStream **input_streams;
354 extern int nb_input_streams;
355 extern InputFile **input_files;
356 extern int nb_input_files;
357 
359 extern int nb_output_streams;
360 extern OutputFile **output_files;
361 extern int nb_output_files;
362 
363 extern FilterGraph **filtergraphs;
364 extern int nb_filtergraphs;
365 
366 extern char *vstats_filename;
367 
368 extern float audio_drift_threshold;
369 extern float dts_delta_threshold;
370 
371 extern int audio_volume;
372 extern int audio_sync_method;
373 extern int video_sync_method;
374 extern int do_benchmark;
375 extern int do_deinterlace;
376 extern int do_hex_dump;
377 extern int do_pkt_dump;
378 extern int copy_ts;
379 extern int copy_tb;
380 extern int exit_on_error;
381 extern int print_stats;
382 extern int qp_hist;
383 
384 extern const AVIOInterruptCB int_cb;
385 
386 extern const OptionDef options[];
387 
388 extern const HWAccel hwaccels[];
389 
391 void show_usage(void);
392 
393 void opt_output_file(void *optctx, const char *filename);
394 
396 
398 
403 
404 int avconv_parse_options(int argc, char **argv);
405 
406 int vdpau_init(AVCodecContext *s);
407 
408 #endif /* AVCONV_H */
SpecifierOpt * passlogfiles
Definition: avconv.h:182
int nb_dump_attachment
Definition: avconv.h:109
int nb_metadata
Definition: avconv.h:145
int nb_streamid_map
Definition: avconv.h:142
int frame_number
Definition: avconv.h:294
enum HWAccelID active_hwaccel_id
Definition: avconv.h:256
float mux_preload
Definition: avconv.h:131
int64_t recording_time
Definition: avconv.h:346
Buffered I/O operations.
uint8_t * name
Definition: avconv.h:197
int nb_outputs
Definition: avconv.h:212
int resample_channels
Definition: avconv.h:243
This structure describes decoded (raw) audio or video data.
Definition: frame.h:107
int stream_copy
Definition: avconv.h:333
AVRational frame_rate
Definition: avconv.h:311
int64_t * forced_kf_pts
Definition: avconv.h:318
int data_disable
Definition: avconv.h:138
float mux_max_delay
Definition: avconv.h:132
int accurate_seek
Definition: avconv.h:276
int nb_forced_key_frames
Definition: avconv.h:157
int * streamid_map
Definition: avconv.h:141
Main libavfilter public API header.
int nb_stream_maps
Definition: avconv.h:117
SpecifierOpt * copy_initial_nonkeyframes
Definition: avconv.h:174
AVStream * st
Definition: avconv.h:292
AVRational framerate
Definition: avconv.h:235
PtsCorrectionContext pts_ctx
Definition: avconv.h:230
SpecifierOpt * ts_scale
Definition: avconv.h:106
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
AVCodecParserContext * parser
Definition: avconv.h:339
AVFilterInOut * out_tmp
Definition: avconv.h:200
int decoding_needed
Definition: avconv.h:219
int guess_input_channel_layout(InputStream *ist)
Definition: avconv.c:1041
int nb_frame_pix_fmts
Definition: avconv.h:99
SpecifierOpt * sample_fmts
Definition: avconv.h:152
int eagain
Definition: avconv.h:268
AVBitStreamFilterContext * bitstream_filters
Definition: avconv.h:305
external API header
AVFrame * filter_frame
Definition: avconv.h:222
FilterGraph * init_simple_filtergraph(InputStream *ist, OutputStream *ost)
int copy_ts
Definition: avconv_opt.c:74
int print_stats
Definition: avconv_opt.c:77
int(* hwaccel_get_buffer)(AVCodecContext *s, AVFrame *frame, int flags)
Definition: avconv.h:259
int nb_filter_scripts
Definition: avconv.h:179
const char * name
Definition: avconv.h:58
int nb_filtergraphs
Definition: avconv.c:113
AVCodec.
Definition: avcodec.h:2755
SpecifierOpt * filters
Definition: avconv.h:176
int64_t start_time
Definition: avconv.h:347
int index
Definition: avconv.h:204
SpecifierOpt * qscale
Definition: avconv.h:154
FilterGraph ** filtergraphs
Definition: avconv.c:112
int64_t last_dts
Definition: avconv.h:229
int video_sync_method
Definition: avconv_opt.c:70
SpecifierOpt * frame_pix_fmts
Definition: avconv.h:98
struct FilterGraph * graph
Definition: avconv.h:189
float dts_delta_threshold
Definition: avconv_opt.c:66
SpecifierOpt * intra_matrices
Definition: avconv.h:164
int encoding_needed
Definition: avconv.h:293
Format I/O context.
Definition: avformat.h:871
struct InputStream * ist
Definition: avconv.h:188
enum HWAccelID id
Definition: avconv.h:60
AVFilterGraph * graph
Definition: avconv.h:207
Public dictionary API.
char * logfile_prefix
Definition: avconv.h:323
int copy_initial_nonkeyframes
Definition: avconv.h:335
uint8_t
float audio_drift_threshold
Definition: avconv_opt.c:65
int is_start
Definition: avconv.h:232
FILE * logfile
Definition: avconv.h:324
AVDictionary * opts
Definition: avconv.h:344
AVDictionary * opts
Definition: avconv.h:330
HWAccelID
Definition: avconv.h:51
CRITICAL_SECTION pthread_mutex_t
Definition: w32pthreads.h:54
void assert_avoptions(AVDictionary *m)
Definition: avconv.c:227
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(constuint8_t *) pi-0x80)*(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(constuint8_t *) pi-0x80)*(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(constint16_t *) pi >>8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t,*(constint16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t,*(constint16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(constint32_t *) pi >>24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t,*(constint32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t,*(constint32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(constfloat *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(constfloat *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(constfloat *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(constdouble *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(constdouble *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(constdouble *) pi *(1U<< 31))))#defineSET_CONV_FUNC_GROUP(ofmt, ifmt) staticvoidset_generic_function(AudioConvert *ac){}voidff_audio_convert_free(AudioConvert **ac){if(!*ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);}AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enumAVSampleFormatout_fmt, enumAVSampleFormatin_fmt, intchannels, intsample_rate, intapply_map){AudioConvert *ac;intin_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) returnNULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method!=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt)>2){ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc){av_free(ac);returnNULL;}returnac;}in_planar=av_sample_fmt_is_planar(in_fmt);out_planar=av_sample_fmt_is_planar(out_fmt);if(in_planar==out_planar){ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar?ac->channels:1;}elseif(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;elseac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);returnac;}intff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in){intuse_generic=1;intlen=in->nb_samples;intp;if(ac->dc){av_dlog(ac->avr,"%dsamples-audio_convert:%sto%s(dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));returnff_convert_dither(ac-> out
int nb_max_frames
Definition: avconv.h:147
int shortest
Definition: avconv.h:350
int nb_meta_data_maps
Definition: avconv.h:120
InputFile ** input_files
Definition: avconv.c:104
int nb_streams
Definition: avconv.h:273
int sync_file_index
Definition: avconv.h:69
AVDictionary * resample_opts
Definition: avconv.h:331
static int flags
Definition: log.c:44
AVFilterContext * filter
Definition: avconv.h:194
SpecifierOpt * bitstream_filters
Definition: avconv.h:148
int resample_sample_rate
Definition: avconv.h:242
OutputFile ** output_files
Definition: avconv.c:109
AVCodec * dec
Definition: avconv.h:220
int file_index
Definition: avconv.h:216
int resample_pix_fmt
Definition: avconv.h:239
int resample_height
Definition: avconv.h:237
int64_t next_dts
Definition: avconv.h:227
int configure_filtergraph(FilterGraph *fg)
Callback for checking whether to abort blocking functions.
Definition: avio.h:51
int nb_top_field_first
Definition: avconv.h:169
int rate_emu
Definition: avconv.h:275
int do_deinterlace
void opt_output_file(void *optctx, const char *filename)
enum AVPixelFormat hwaccel_pix_fmt
Definition: avconv.h:261
AVFilterContext * filter
Definition: avconv.h:187
void(* hwaccel_uninit)(AVCodecContext *s)
Definition: avconv.h:258
int nb_filters
Definition: avconv.h:177
int64_t start_time
Definition: avconv.h:85
int64_t start
Definition: avconv.h:224
int64_t last_mux_dts
Definition: avconv.h:304
int64_t sws_flags
Definition: avconv.h:329
int nb_hwaccel_devices
Definition: avconv.h:113
int finished
Definition: avconv.h:332
SpecifierOpt * codec_tags
Definition: avconv.h:150
SpecifierOpt * rc_overrides
Definition: avconv.h:162
int(* init)(AVCodecContext *s)
Definition: avconv.h:59
int video_disable
Definition: avconv.h:135
int force_fps
Definition: avconv.h:312
char type
Definition: avconv.h:77
int nb_codec_names
Definition: avconv.h:89
StreamMap * stream_maps
Definition: avconv.h:116
uint64_t limit_filesize
Definition: avconv.h:130
const char * format
Definition: avconv.h:86
int nb_passlogfiles
Definition: avconv.h:183
int nb_force_fps
Definition: avconv.h:159
OutputFilter * filter
Definition: avconv.h:326
int nb_sample_fmts
Definition: avconv.h:153
AVDictionary * opts
Definition: avconv.h:234
int file_index
Definition: avconv.h:67
MetadataMap(* meta_data_maps)[2]
Definition: avconv.h:119
SpecifierOpt * filter_scripts
Definition: avconv.h:178
int nb_attachments
Definition: avconv.h:125
int copy_tb
Definition: avconv_opt.c:75
char * linklabel
Definition: avconv.h:71
int nb_ts_scale
Definition: avconv.h:107
SpecifierOpt * audio_channels
Definition: avconv.h:90
int nb_audio_sample_rate
Definition: avconv.h:93
int metadata_chapters_manual
Definition: avconv.h:123
struct OutputStream * ost
Definition: avconv.h:195
int accurate_seek
Definition: avconv.h:104
SpecifierOpt * pass
Definition: avconv.h:180
SpecifierOpt * audio_sample_rate
Definition: avconv.h:92
SpecifierOpt * dump_attachment
Definition: avconv.h:108
int nb_codec_tags
Definition: avconv.h:151
SpecifierOpt * metadata_map
Definition: avconv.h:170
int64_t max_frames
Definition: avconv.h:307
int(* hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame)
Definition: avconv.h:260
SpecifierOpt * frame_aspect_ratios
Definition: avconv.h:160
SpecifierOpt * frame_sizes
Definition: avconv.h:96
int vdpau_init(AVCodecContext *s)
Definition: avconv_vdpau.c:294
int nb_hwaccels
Definition: avconv.h:111
int do_benchmark
Definition: avconv_opt.c:71
int nb_output_files
Definition: avconv.c:110
OutputStream ** output_streams
Definition: avconv.c:107
Stream structure.
Definition: avformat.h:683
A linked-list of the inputs/outputs of the filter chain.
Definition: avfilter.h:1091
int audio_sync_method
Definition: avconv_opt.c:69
InputFilter ** filters
Definition: avconv.h:248
int64_t recording_time
Definition: avconv.h:272
SpecifierOpt * hwaccels
Definition: avconv.h:110
Definition: avconv.h:57
SpecifierOpt * frame_rates
Definition: avconv.h:94
int nb_presets
Definition: avconv.h:173
int ost_index
Definition: avconv.h:345
struct InputStream * sync_ist
Definition: avconv.h:298
int exit_on_error
Definition: avconv_opt.c:76
Libavcodec external API header.
double ts_scale
Definition: avconv.h:231
int64_t recording_time
Definition: avconv.h:129
const AVIOInterruptCB int_cb
Definition: avconv.c:145
int chapters_input_file
Definition: avconv.h:127
int ist_index
Definition: avconv.h:269
const char * graph_desc
Definition: avconv.h:205
int64_t start_time
Definition: avconv.h:271
void reset_options(OptionsContext *o)
main external API structure.
Definition: avcodec.h:1054
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
int rate_emu
Definition: avconv.h:103
int metadata_streams_manual
Definition: avconv.h:122
const char * attachment_filename
Definition: avconv.h:334
a very simple circular buffer FIFO implementation
int audio_disable
Definition: avconv.h:136
int64_t input_ts_offset
Definition: avconv.h:102
AVFrame * decoded_frame
Definition: avconv.h:221
int nb_bitstream_filters
Definition: avconv.h:149
int avconv_parse_options(int argc, char **argv)
Definition: avconv_opt.c:2104
SpecifierOpt * top_field_first
Definition: avconv.h:168
AVStream * st
Definition: avconv.h:217
int nb_input_files
Definition: avconv.c:105
int index
Definition: avconv.h:78
rational number numerator/denominator
Definition: rational.h:43
int file_index
Definition: avconv.h:289
int metadata_global_manual
Definition: avconv.h:121
int64_t sync_opts
Definition: avconv.h:299
SpecifierOpt * force_fps
Definition: avconv.h:158
int nb_inter_matrices
Definition: avconv.h:167
int shortest
Definition: avconv.h:133
int showed_multi_packet_warning
Definition: avconv.h:233
int64_t ts_offset
Definition: avconv.h:270
int nb_qscale
Definition: avconv.h:155
SpecifierOpt * hwaccel_devices
Definition: avconv.h:112
AVFrame * filtered_frame
Definition: avconv.h:308
int nb_audio_channels
Definition: avconv.h:91
int source_index
Definition: avconv.h:291
SpecifierOpt * metadata
Definition: avconv.h:144
int nb_filters
Definition: avconv.h:249
int qp_hist
Definition: avconv_opt.c:78
int forced_kf_count
Definition: avconv.h:319
int resample_sample_fmt
Definition: avconv.h:241
int nb_intra_matrices
Definition: avconv.h:165
char * forced_keyframes
Definition: avconv.h:321
int nb_frame_rates
Definition: avconv.h:95
const OptionDef options[]
Definition: avserver.c:4624
int resample_width
Definition: avconv.h:238
Main libavformat public API header.
int file
Definition: avconv.h:76
struct FilterGraph * graph
Definition: avconv.h:196
uint64_t limit_filesize
Definition: avconv.h:348
SpecifierOpt * presets
Definition: avconv.h:172
int nb_frame_sizes
Definition: avconv.h:97
rational numbers
OptionGroup * g
Definition: avconv.h:82
SpecifierOpt * inter_matrices
Definition: avconv.h:166
int do_pkt_dump
Definition: avconv_opt.c:73
const HWAccel hwaccels[]
Definition: avconv_opt.c:56
SpecifierOpt * forced_key_frames
Definition: avconv.h:156
const char ** attachments
Definition: avconv.h:124
char * vstats_filename
Definition: avconv_opt.c:63
void show_usage(void)
Definition: avconv_opt.c:2054
AVFormatContext * ctx
Definition: avconv.h:266
int stream_index
Definition: avconv.h:68
AVCodec * enc
Definition: avconv.h:306
enum AVPixelFormat pix_fmt
Definition: avconv.h:61
int eof_reached
Definition: avconv.h:267
int nb_metadata_map
Definition: avconv.h:171
int forced_kf_index
Definition: avconv.h:320
int nb_rc_overrides
Definition: avconv.h:163
InputStream ** input_streams
Definition: avconv.c:102
pixel format definitions
char * avfilter
Definition: avconv.h:327
uint8_t * name
Definition: avconv.h:190
int audio_volume
Definition: avconv_opt.c:68
void * hwaccel_ctx
Definition: avconv.h:257
int top_field_first
Definition: avconv.h:313
OutputFilter ** outputs
Definition: avconv.h:211
SpecifierOpt * max_frames
Definition: avconv.h:146
int nb_copy_initial_nonkeyframes
Definition: avconv.h:175
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
int disabled
Definition: avconv.h:66
int nb_input_streams
Definition: avconv.c:103
AVFormatContext * ctx
Definition: avconv.h:343
SpecifierOpt * codec_names
Definition: avconv.h:88
An instance of a filter.
Definition: avfilter.h:563
char * hwaccel_device
Definition: avconv.h:253
int do_hex_dump
Definition: avconv_opt.c:72
InputFilter ** inputs
Definition: avconv.h:209
float frame_aspect_ratio
Definition: avconv.h:315
enum AVPixelFormat hwaccel_retrieved_pix_fmt
Definition: avconv.h:262
int sync_stream_index
Definition: avconv.h:70
int discard
Definition: avconv.h:218
enum AVPixelFormat pix_fmts[2]
Definition: avconv.h:337
enum HWAccelID hwaccel_id
Definition: avconv.h:252
int64_t first_pts
Definition: avconv.h:302
int nb_inputs
Definition: avconv.h:210
int index
Definition: avconv.h:290
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63
uint64_t resample_channel_layout
Definition: avconv.h:244
int nb_output_streams
Definition: avconv.c:108
int nb_frame_aspect_ratios
Definition: avconv.h:161
int subtitle_disable
Definition: avconv.h:137