Skip to content

Commit

Permalink
decrease gop size (keyint)
Browse files Browse the repository at this point in the history
this makes seeking a lot smoother (especially at high resolutions), while only adding less than 1% of filesize with this codec.
  • Loading branch information
feos committed Mar 11, 2019
1 parent 005e60f commit 7fd9404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/AVIDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ bool AVIDump::CreateVideoFile()
s_codec_context->height = s_height;
s_codec_context->time_base.num = 1;
s_codec_context->time_base.den = VideoInterface::GetTargetRefreshRate();
s_codec_context->gop_size = 12;
s_codec_context->gop_size = 1;
s_codec_context->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGR0 : AV_PIX_FMT_YUV420P;

if (output_format->flags & AVFMT_GLOBALHEADER)
Expand Down

0 comments on commit 7fd9404

Please sign in to comment.