Skip to content

Commit

Permalink
lavc video: increase # of tiles for rav1e and aom
Browse files Browse the repository at this point in the history
Processors with 64 logical cores are quite common nowadays.

Not increased for libsvtav1 since it doesn't seem to improve performance
there.
  • Loading branch information
MartinPulec committed Sep 27, 2023
1 parent 5876326 commit 69a84d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_compress/libavcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ static void configure_aom_av1(AVCodecContext *codec_ctx, struct setparam_param *
{
auto && usage = get_map_val_or_default<string, string>(param->lavc_opts, "usage", "realtime");
check_av_opt_set<const char *>(codec_ctx->priv_data, "usage", usage.c_str());
check_av_opt_set<const char *>(codec_ctx->priv_data, "tiles", "4x4");
check_av_opt_set<const char *>(codec_ctx->priv_data, "tiles", "8x8");
}

static void configure_nvenc(AVCodecContext *codec_ctx, struct setparam_param *param)
Expand Down Expand Up @@ -1747,7 +1747,7 @@ static void configure_rav1e(AVCodecContext *codec_ctx, struct setparam_param * /
{
check_av_opt_set<const char *>(codec_ctx->priv_data, "rav1e-params", "low_latency=true");
check_av_opt_set<const char *>(codec_ctx->priv_data, "speed", "10");
check_av_opt_set<const char *>(codec_ctx->priv_data, "tiles", "16");
check_av_opt_set<const char *>(codec_ctx->priv_data, "tiles", "64");
}

static void configure_svt(AVCodecContext *codec_ctx, struct setparam_param *param)
Expand Down

0 comments on commit 69a84d0

Please sign in to comment.