From 9b72a62cdba0ddce7cc3f817ab63ccd0dc640e97 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sun, 7 Dec 2025 23:42:20 +0900 Subject: [PATCH] tavenc: shelving the tiling mode due to poor performance --- video_encoder/lib/libtavenc/tav_encoder_lib.c | 3 ++- video_encoder/src/encoder_tav.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/video_encoder/lib/libtavenc/tav_encoder_lib.c b/video_encoder/lib/libtavenc/tav_encoder_lib.c index 1320d8c..eacf583 100644 --- a/video_encoder/lib/libtavenc/tav_encoder_lib.c +++ b/video_encoder/lib/libtavenc/tav_encoder_lib.c @@ -308,7 +308,8 @@ void tav_encoder_params_init(tav_encoder_params_t *params, int width, int height // Advanced params->verbose = 0; - params->monoblock = -1; // -1=auto (based on dimensions), 0=force tiled, 1=force monoblock + params->monoblock = 1; // -1=auto (based on dimensions), 0=force tiled, 1=force monoblock + // monoblock: default to forced monoblock mode because tiling is not working very well... } // ============================================================================= diff --git a/video_encoder/src/encoder_tav.c b/video_encoder/src/encoder_tav.c index 4ea9bd5..9b1c5c6 100644 --- a/video_encoder/src/encoder_tav.c +++ b/video_encoder/src/encoder_tav.c @@ -166,10 +166,10 @@ static void print_usage(const char *program) { printf(" --intra-only Disable temporal compression (I-frames only)\n"); printf(" --gop-size N GOP size 8/16/24 (default: 24)\n"); printf(" --single-pass Disable scene change detection\n"); - printf("\nTiling:\n"); - printf(" --monoblock Force single-tile mode (auto-disabled for > %dx%d)\n", - TAV_MONOBLOCK_MAX_WIDTH, TAV_MONOBLOCK_MAX_HEIGHT); - printf(" --tiled Force multi-tile mode (Padded Tiling)\n"); +// printf("\nTiling:\n"); +// printf(" --monoblock Force single-tile mode (auto-disabled for > %dx%d)\n", +// TAV_MONOBLOCK_MAX_WIDTH, TAV_MONOBLOCK_MAX_HEIGHT); +// printf(" --tiled Force multi-tile mode (Padded Tiling)\n"); printf("\nCompression:\n"); printf(" --zstd-level N Zstd level 3-22 (default: 7)\n"); printf(" --no-perceptual-tuning Disable HVS perceptual quantization\n");