@@ -494,7 +494,7 @@ static bool rate_control_modified(obs_properties_t *ppts, obs_property_t *p,
494494 return true;
495495}
496496
497- obs_properties_t * nvenc_properties_internal (enum codec_type codec , bool ffmpeg )
497+ obs_properties_t * nvenc_properties_internal (enum codec_type codec )
498498{
499499 obs_properties_t * props = obs_properties_create ();
500500 obs_property_t * p ;
@@ -587,15 +587,6 @@ obs_properties_t *nvenc_properties_internal(enum codec_type codec, bool ffmpeg)
587587 }
588588#undef add_profile
589589
590- if (!ffmpeg ) {
591- p = obs_properties_add_bool (props , "lookahead" ,
592- obs_module_text ("NVENC.LookAhead" ));
593- obs_property_set_long_description (
594- p , obs_module_text ("NVENC.LookAhead.ToolTip" ));
595- p = obs_properties_add_bool (props , "repeat_headers" ,
596- "repeat_headers" );
597- obs_property_set_visible (p , false);
598- }
599590 p = obs_properties_add_bool (
600591 props , "psycho_aq" ,
601592 obs_module_text ("NVENC.PsychoVisualTuning" ));
@@ -610,37 +601,17 @@ obs_properties_t *nvenc_properties_internal(enum codec_type codec, bool ffmpeg)
610601 return props ;
611602}
612603
613- obs_properties_t * h264_nvenc_properties (void * unused )
614- {
615- UNUSED_PARAMETER (unused );
616- return nvenc_properties_internal (CODEC_H264 , false);
617- }
618-
619- #ifdef ENABLE_HEVC
620- obs_properties_t * hevc_nvenc_properties (void * unused )
621- {
622- UNUSED_PARAMETER (unused );
623- return nvenc_properties_internal (CODEC_HEVC , false);
624- }
625- #endif
626-
627- obs_properties_t * av1_nvenc_properties (void * unused )
628- {
629- UNUSED_PARAMETER (unused );
630- return nvenc_properties_internal (CODEC_AV1 , false);
631- }
632-
633604obs_properties_t * h264_nvenc_properties_ffmpeg (void * unused )
634605{
635606 UNUSED_PARAMETER (unused );
636- return nvenc_properties_internal (CODEC_H264 , true );
607+ return nvenc_properties_internal (CODEC_H264 );
637608}
638609
639610#ifdef ENABLE_HEVC
640611obs_properties_t * hevc_nvenc_properties_ffmpeg (void * unused )
641612{
642613 UNUSED_PARAMETER (unused );
643- return nvenc_properties_internal (CODEC_HEVC , true );
614+ return nvenc_properties_internal (CODEC_HEVC );
644615}
645616#endif
646617
@@ -676,11 +647,7 @@ struct obs_encoder_info h264_nvenc_encoder_info = {
676647 .get_extra_data = nvenc_extra_data ,
677648 .get_sei_data = nvenc_sei_data ,
678649 .get_video_info = nvenc_video_info ,
679- #if defined(_WIN32 ) || defined (NVCODEC_AVAILABLE )
680- .caps = OBS_ENCODER_CAP_DYN_BITRATE | OBS_ENCODER_CAP_INTERNAL ,
681- #else
682650 .caps = OBS_ENCODER_CAP_DYN_BITRATE ,
683- #endif
684651};
685652
686653#ifdef ENABLE_HEVC
@@ -698,10 +665,6 @@ struct obs_encoder_info hevc_nvenc_encoder_info = {
698665 .get_extra_data = nvenc_extra_data ,
699666 .get_sei_data = nvenc_sei_data ,
700667 .get_video_info = nvenc_video_info ,
701- #if defined(_WIN32 ) || defined (NVCODEC_AVAILABLE )
702- .caps = OBS_ENCODER_CAP_DYN_BITRATE | OBS_ENCODER_CAP_INTERNAL ,
703- #else
704668 .caps = OBS_ENCODER_CAP_DYN_BITRATE ,
705- #endif
706669};
707670#endif
0 commit comments