summaryrefslogtreecommitdiff
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorerankor <eran.kornblau@kaltura.com>2017-05-03 11:50:15 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-10 14:00:20 +0200
commit2b06f2d2e24ccc4098f3ab40efd68e8f3f02b273 (patch)
tree2257e48c62074ecf19683c90221f03664f6c29be /ffmpeg.h
parent6ce57fb3c2ef139bbe164d1811422b91e2dedc26 (diff)
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index d34561275a..854ed1924a 100644
--- a/ffmpeg.h
+++ b/ffmpeg.h
@@ -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;