aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-03 01:55:39 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-03 01:55:39 +0200
commit9ff0bb199be163d6c11266c64134e4e38ab6115d (patch)
treed1768122f32c253931e6956c078d2ef4e64a9352 /src
parent0ec31db6c6e0f0bb87d403cf66e89ecda463b966 (diff)
Revert gop size
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index df47f52..9e8e685 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -624,7 +624,7 @@ 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 * 20;
+ codec_context->gop_size = fps * 2;
//codec_context->keyint_min = fps * 20;
codec_context->max_b_frames = 0;
codec_context->pix_fmt = AV_PIX_FMT_CUDA;