diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c index 0c5d4609a..ac10c5bf5 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg.c @@ -4,8 +4,11 @@ #include #include #include + +#ifndef __APPLE__ #include "dynlink_cuda.h" #include "nvEncodeAPI.h" +#endif #define NVENC_CAP 0x30 @@ -120,6 +123,8 @@ cleanup: destroy_log_context(log_context); } +#ifndef __APPLE__ + static const char *nvenc_check_name = "nvenc_check"; static inline bool push_context_(tcuCtxPushCurrent_v2 *cuCtxPushCurrent, @@ -299,6 +304,8 @@ cleanup: return success; } +#endif + bool obs_module_load(void) { da_init(active_log_contexts); @@ -312,10 +319,12 @@ bool obs_module_load(void) obs_register_output(&replay_buffer); obs_register_encoder(&aac_encoder_info); obs_register_encoder(&opus_encoder_info); +#ifndef __APPLE__ if (nvenc_supported()) { blog(LOG_INFO, "NVENC supported"); obs_register_encoder(&nvenc_encoder_info); } +#endif return true; }