diff options
author | erankor <eran.kornblau@kaltura.com> | 2017-05-03 11:50:15 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-10 14:00:20 +0200 |
commit | 2b06f2d2e24ccc4098f3ab40efd68e8f3f02b273 (patch) | |
tree | 2257e48c62074ecf19683c90221f03664f6c29be /ffmpeg.h | |
parent | 6ce57fb3c2ef139bbe164d1811422b91e2dedc26 (diff) | |
download | ffmpeg-2b06f2d2e24ccc4098f3ab40efd68e8f3f02b273.tar.gz |
ffmpeg: add enc_time_base option
add a per-stream option for setting the encoder timebase.
the following values are allowed:
0 - for video, use 1/frame_rate, for audio use 1/sample_rate (this is
the default)
-1 - match the input timebase (when possible)
>0 - set the timebase to provided number
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r-- | ffmpeg.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -226,6 +226,8 @@ typedef struct OptionsContext { int nb_program; SpecifierOpt *time_bases; int nb_time_bases; + SpecifierOpt *enc_time_bases; + int nb_enc_time_bases; } OptionsContext; typedef struct InputFilter { @@ -453,6 +455,7 @@ typedef struct OutputStream { int64_t last_mux_dts; // the timebase of the packets sent to the muxer AVRational mux_timebase; + AVRational enc_timebase; int nb_bitstream_filters; uint8_t *bsf_extradata_updated; |