aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-02 23:08:07 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-02 23:08:07 +0200
commit0ec31db6c6e0f0bb87d403cf66e89ecda463b966 (patch)
tree46bfa77b23aaf374f5e1fe6bbbbf33946e2b5f94 /src
parent6885d1a30e41cbb86355820ecc4005706937cb23 (diff)
Do not set keyint min
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 61cd07c..df47f52 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -624,8 +624,8 @@ static AVCodecContext *create_video_codec_context(AVFormatContext *av_format_con
codec_context->sample_aspect_ratio.num = 0;
codec_context->sample_aspect_ratio.den = 0;
// High values reeduce file size but increases time it takes to seek
- codec_context->gop_size = fps * 10;
- codec_context->keyint_min = fps * 10;
+ codec_context->gop_size = fps * 20;
+ //codec_context->keyint_min = fps * 20;
codec_context->max_b_frames = 0;
codec_context->pix_fmt = AV_PIX_FMT_CUDA;
codec_context->color_range = AVCOL_RANGE_JPEG;