Skip to content

Commit

Permalink
UI: Set NV12 as preferred format for multitrack video encoders
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaedtler authored and RytoEX committed Oct 3, 2024
1 parent a4bda61 commit 37ab500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/multitrack-video-output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ static void adjust_video_encoder_scaling(
obs_encoder_set_gpu_scale_type(
video_encoder,
encoder_config.gpu_scale_type.value_or(OBS_SCALE_BICUBIC));
obs_encoder_set_preferred_video_format(video_encoder,
VIDEO_FORMAT_NV12);
}

static uint32_t closest_divisor(const obs_video_info &ovi,
Expand Down

0 comments on commit 37ab500

Please sign in to comment.