diff -up obs-studio-29.1.0/plugins/obs-x264/CMakeLists.txt.x264 obs-studio-29.1.0/plugins/obs-x264/CMakeLists.txt --- obs-studio-29.1.0/plugins/obs-x264/CMakeLists.txt.x264 2023-05-02 10:54:35.000000000 +0200 +++ obs-studio-29.1.0/plugins/obs-x264/CMakeLists.txt 2023-05-04 21:40:54.855741214 +0200 @@ -1,5 +1,11 @@ cmake_minimum_required(VERSION 3.16...3.25) +option(ENABLE_LIBX264 "Enable x264 support" OFF) +if(NOT ENABLE_LIBX264) + obs_status(DISABLED "obs-x264") + return() +endif() + legacy_check() find_package(Libx264 REQUIRED)