diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2021-02-01 18:19:18 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-02-05 22:54:18 +0530 |
commit | d99cc1782563672bcdb46fb5ec51135847db8c99 (patch) | |
tree | ef4abee116e19db63157615b85f1b7b508a0a3ea /fftools/ffmpeg.h | |
parent | 6b8ef5119cab9e772c6afd23e474bbd543c47039 (diff) | |
download | ffmpeg-d99cc1782563672bcdb46fb5ec51135847db8c99.tar.gz |
ffmpeg: add -fpsmax to clamp output framerate
Useful when encoding in batch or with aberrant inputs.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 5aeceae6b7..423da071dc 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -108,6 +108,8 @@ typedef struct OptionsContext { int nb_audio_sample_rate; SpecifierOpt *frame_rates; int nb_frame_rates; + SpecifierOpt *max_frame_rates; + int nb_max_frame_rates; SpecifierOpt *frame_sizes; int nb_frame_sizes; SpecifierOpt *frame_pix_fmts; @@ -479,6 +481,7 @@ typedef struct OutputStream { /* video only */ AVRational frame_rate; + AVRational max_frame_rate; int is_cfr; int force_fps; int top_field_first; |