diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-23 14:09:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-25 12:04:32 +0200 |
commit | 50722b4f0cbc5940e9e6e21d113888436cc89ff5 (patch) | |
tree | 6e056d850cdfd6c3c91d75e97f4c6af2cbade392 /avconv.h | |
parent | ba7397baef796ca3991fe1c921bc91054407c48b (diff) | |
download | ffmpeg-streaming-50722b4f0cbc5940e9e6e21d113888436cc89ff5.zip ffmpeg-streaming-50722b4f0cbc5940e9e6e21d113888436cc89ff5.tar.gz |
avconv: decouple configuring filtergraphs and setting output parameters
Currently, a filtergraph will pull in the output constraints from its
corresponding decoder context, which breaks proper layering. Instead,
explicitly send the constaints on the output parameters to the
filtergraph.
This is similar to what is done for filtergraph inputs in
30ab4c51a180610d9f1720c75518d763515c0d9f
Diffstat (limited to 'avconv.h')
-rw-r--r-- | avconv.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -221,6 +221,18 @@ typedef struct OutputFilter { /* temporary storage until stream maps are processed */ AVFilterInOut *out_tmp; enum AVMediaType type; + + /* desired output stream properties */ + int width, height; + AVRational frame_rate; + int format; + int sample_rate; + uint64_t channel_layout; + + // those are only set if no format is specified and the encoder gives us multiple options + int *formats; + uint64_t *channel_layouts; + int *sample_rates; } OutputFilter; typedef struct FilterGraph { |