Question / Help nvenc option not found

tsochicken

New Member
I'm trying to use obs but its missing the nvenc encoder. any help would be apperciated I don't want to use the snap version of obs as it doesn't support the linux browser plugin

Ubuntu 19.04
GPU nv1070
obs v23.2.1

Code:
04:02:28 AM.776: CPU Name: AMD FX(tm)-8120 Eight-Core Processor
04:02:28 AM.776: CPU Speed: 1633.947MHz
04:02:28 AM.777: Physical Cores: 4, Logical Cores: 8
04:02:28 AM.777: Physical Memory: 16019MB Total, 12574MB Free
04:02:28 AM.777: Kernel Version: Linux 5.0.0-21-generic
04:02:28 AM.777: Distribution: "Ubuntu" "19.04"
04:02:28 AM.777: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.4
04:02:28 AM.779: Portable mode: false
04:02:28 AM.855: OBS 23.2.1 (linux)
04:02:28 AM.855: ---------------------------------
04:02:28 AM.855: ---------------------------------
04:02:28 AM.855: audio settings reset:
04:02:28 AM.855:     samples per sec: 44100
04:02:28 AM.855:     speakers:        2
04:02:28 AM.869: ---------------------------------
04:02:28 AM.869: Initializing OpenGL...
04:02:28 AM.957: Loading up OpenGL on adapter NVIDIA Corporation GeForce GTX 1070/PCIe/SSE2
04:02:28 AM.957: OpenGL loaded successfully, version 3.2.0 NVIDIA 430.40, shading language 1.50 NVIDIA via Cg compiler
04:02:28 AM.969: ---------------------------------
04:02:28 AM.969: video settings reset:
04:02:28 AM.969:     base resolution:   1920x1080
04:02:28 AM.969:     output resolution: 1920x1080
04:02:28 AM.969:     downscale filter:  Bicubic
04:02:28 AM.969:     fps:               30/1
04:02:28 AM.969:     format:            NV12
04:02:28 AM.969:     YUV mode:          601/Partial
04:02:28 AM.969: NV12 texture support not available
04:02:28 AM.970: Audio monitoring device:
04:02:28 AM.970:     name: Default
04:02:28 AM.970:     id: default
04:02:28 AM.970: ---------------------------------
04:02:28 AM.972: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
04:02:29 AM.106: No blackmagic support
04:02:29 AM.142: FFMPEG VAAPI supported
04:02:29 AM.161: VLC found, VLC video source enabled
04:02:29 AM.161: ---------------------------------
04:02:29 AM.161:   Loaded Modules:
04:02:29 AM.161:     vlc-video.so
04:02:29 AM.161:     text-freetype2.so
04:02:29 AM.161:     rtmp-services.so
04:02:29 AM.161:     obs-x264.so
04:02:29 AM.161:     obs-transitions.so
04:02:29 AM.161:     obs-outputs.so
04:02:29 AM.161:     obs-libfdk.so
04:02:29 AM.161:     obs-filters.so
04:02:29 AM.161:     obs-ffmpeg.so
04:02:29 AM.161:     linux-v4l2.so
04:02:29 AM.161:     linux-pulseaudio.so
04:02:29 AM.162:     linux-jack.so
04:02:29 AM.162:     linux-decklink.so
04:02:29 AM.162:     linux-capture.so
04:02:29 AM.162:     linux-alsa.so
04:02:29 AM.162:     image-source.so
04:02:29 AM.162:     frontend-tools.so
04:02:29 AM.162:     decklink-ouput-ui.so
04:02:29 AM.162: ---------------------------------
04:02:29 AM.162: ==== Startup complete ===============================================
04:02:29 AM.192: Switched to Preview/Program mode
04:02:29 AM.192: ------------------------------------------------
04:02:29 AM.193: All scene data cleared
04:02:29 AM.193: ------------------------------------------------
04:02:29 AM.197: pulse-input: Server name: 'pulseaudio 12.2'
04:02:29 AM.197: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
04:02:29 AM.197: pulse-input: Started recording from 'alsa_output.pci-0000_00_14.2.analog-stereo.monitor'
04:02:29 AM.198: pulse-input: Server name: 'pulseaudio 12.2'
04:02:29 AM.198: pulse-input: Audio format: s16le, 44100 Hz, 1 channels
04:02:29 AM.198: pulse-input: Started recording from 'alsa_input.usb-AKM_AK5370-00.analog-mono'
04:02:29 AM.199: source 'Mic/Aux' enabled push-to-talk
04:02:29 AM.294: xshm-input: Geometry 1920x1080 @ 0,0
04:02:29 AM.297: [Media Source 'background']: settings:
04:02:29 AM.297:     input:                   /home/wozniak/Videos/Konosuba-Megumin-60Fps-Live-Wallpaper.mp4
04:02:29 AM.297:     input_format:            (null)
04:02:29 AM.297:     speed:                   100
04:02:29 AM.297:     is_looping:              yes
04:02:29 AM.297:     is_hw_decoding:          no
04:02:29 AM.297:     is_clear_on_media_end:   yes
04:02:29 AM.297:     restart_on_activate:     yes
04:02:29 AM.297:     close_when_inactive:     no
04:02:29 AM.322: Switched to scene 'Intro'
04:02:29 AM.323: ------------------------------------------------
04:02:29 AM.323: Loaded scenes:
04:02:29 AM.323: - scene 'Intro':
04:02:29 AM.323:     - source: 'background' (ffmpeg_source)
04:02:29 AM.323:     - source: 'Starting' (text_ft2_source)
04:02:29 AM.323: - scene 'Scene':
04:02:29 AM.323:     - source: 'Screen Capture (XSHM)' (xshm_input)
04:02:29 AM.323:     - source: 'Window Capture (Xcomposite)' (xcomposite_input)
04:02:29 AM.323: ------------------------------------------------
04:02:29 AM.703: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds (source: Desktop Audio)
04:02:29 AM.703:
04:02:30 AM.158: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mic/Aux)
04:02:30 AM.158:
04:02:55 AM.984: ==== Shutting down ==================================================
04:02:55 AM.986: Switched to scene '(null)'
04:02:56 AM.016: pulse-input: Stopped recording from 'alsa_output.pci-0000_00_14.2.analog-stereo.monitor'
04:02:56 AM.017: pulse-input: Got 5444 packets with 1199019 frames
04:02:56 AM.017: pulse-input: Stopped recording from 'alsa_input.usb-AKM_AK5370-00.analog-mono'
04:02:56 AM.017: pulse-input: Got 2687 packets with 1195264 frames
04:02:56 AM.018: All scene data cleared
04:02:56 AM.018: ------------------------------------------------
04:02:56 AM.096: Freeing OBS context data
04:02:56 AM.107: [Scripting] Total detached callbacks: 0
04:02:56 AM.125: == Profiler Results =============================
04:02:56 AM.125: run_program_init: 951.592 ms
04:02:56 AM.125:  ┣OBSApp::AppInit: 2.553 ms
04:02:56 AM.125:  ┃ ┗OBSApp::InitLocale: 1.19 ms
04:02:56 AM.125:  ┗OBSApp::OBSInit: 787.029 ms
04:02:56 AM.125:    ┣obs_startup: 22.551 ms
04:02:56 AM.126:    ┗OBSBasic::OBSInit: 688.38 ms
04:02:56 AM.126:      ┣OBSBasic::InitBasicConfig: 0.105 ms
04:02:56 AM.126:      ┣OBSBasic::ResetAudio: 0.202 ms
04:02:56 AM.126:      ┣OBSBasic::ResetVideo: 114.731 ms
04:02:56 AM.126:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
04:02:56 AM.126:      ┣OBSBasic::InitHotkeys: 0.044 ms
04:02:56 AM.126:      ┣obs_load_all_modules: 191.388 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(decklink-ouput-ui.so): 0.898 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(frontend-tools.so): 120.089 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(image-source.so): 0.005 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-alsa.so): 0.001 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-capture.so): 0.546 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-decklink.so): 0.147 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-jack.so): 0.004 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.003 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(linux-v4l2.so): 0.002 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-ffmpeg.so): 0.194 ms
04:02:56 AM.126:      ┃ ┃ ┗nvenc_check: 0.122 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-filters.so): 0.014 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-libfdk.so): 0.001 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-outputs.so): 0.003 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-transitions.so): 0.009 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(obs-x264.so): 0.002 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(rtmp-services.so): 0.586 ms
04:02:56 AM.126:      ┃ ┣obs_init_module(text-freetype2.so): 0.01 ms
04:02:56 AM.126:      ┃ ┗obs_init_module(vlc-video.so): 2.177 ms
04:02:56 AM.126:      ┣OBSBasic::ResetOutputs: 0.134 ms
04:02:56 AM.126:      ┣OBSBasic::CreateHotkeys: 0.032 ms
04:02:56 AM.126:      ┣OBSBasic::InitService: 0.038 ms
04:02:56 AM.126:      ┣OBSBasic::InitPrimitives: 0.242 ms
04:02:56 AM.126:      ┗OBSBasic::Load: 135.227 ms
04:02:56 AM.126: obs_hotkey_thread(25 ms): min=0.099 ms, median=0.228 ms, max=76.085 ms, 99th percentile=0.891 ms, 99.9068% below 25 ms
04:02:56 AM.126: audio_thread(Audio): min=0 ms, median=0.172 ms, max=14.912 ms, 99th percentile=8.707 ms
04:02:56 AM.126: obs_graphics_thread(33.3333 ms): min=0.684 ms, median=9.839 ms, max=119.242 ms, 99th percentile=12.421 ms, 99.8767% below 33.333 ms
04:02:56 AM.126:  ┣tick_sources: min=0.001 ms, median=0.023 ms, max=118.699 ms, 99th percentile=0.037 ms
04:02:56 AM.127:  ┣output_frame: min=0.428 ms, median=7.406 ms, max=20.911 ms, 99th percentile=10.153 ms
04:02:56 AM.127:  ┃ ┗gs_context(video->graphics): min=0.427 ms, median=7.405 ms, max=20.91 ms, 99th percentile=10.152 ms
04:02:56 AM.127:  ┃   ┣render_video: min=0.121 ms, median=6.988 ms, max=17.285 ms, 99th percentile=9.597 ms
04:02:56 AM.127:  ┃   ┃ ┗render_main_texture: min=0.1 ms, median=6.965 ms, max=17.264 ms, 99th percentile=9.568 ms
04:02:56 AM.127:  ┃   ┗gs_flush: min=0.006 ms, median=0.012 ms, max=2.256 ms, 99th percentile=0.031 ms
04:02:56 AM.127:  ┗render_displays: min=0.103 ms, median=2.415 ms, max=16.641 ms, 99th percentile=2.79 ms
04:02:56 AM.127: =================================================
04:02:56 AM.127: == Profiler Time Between Calls ==================
04:02:56 AM.127: obs_hotkey_thread(25 ms): min=25.174 ms, median=25.343 ms, max=101.16 ms, 92.1642% within ±2% of 25 ms (0% lower, 7.83582% higher)
04:02:56 AM.127: obs_graphics_thread(33.3333 ms): min=14.094 ms, median=33.334 ms, max=119.247 ms, 99.7531% within ±2% of 33.333 ms (0.123457% lower, 0.123457% higher)
04:02:56 AM.127: =================================================
04:02:56 AM.145: Number of memory leaks: 0

ffmpeg has the nvenc encoder enabled

Code:
ffmpeg -encoders 2>/dev/null | grep nvenc
V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)
V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)
V..... hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)

update:
I've installed the snap version of obs-studio and have no issue with nvenc, I started over and followed this guide https://github.com/omen23/ffmpeg-ffnvcodec-explanation but still no luck :(

snap logs shows nvenc supported and it shows up in the encoding option.
Code:
07:22:55 PM.083: CPU Name: AMD FX(tm)-8120 Eight-Core Processor
07:22:55 PM.083: CPU Speed: 2862.138MHz
07:22:55 PM.084: Physical Cores: 4, Logical Cores: 8
07:22:55 PM.084: Physical Memory: 16019MB Total, 10034MB Free
07:22:55 PM.084: Kernel Version: Linux 5.0.0-21-generic
07:22:55 PM.084: Distribution: "Ubuntu Core" "18"
07:22:55 PM.085: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.4
07:22:55 PM.086: Portable mode: false
07:22:55 PM.798: OBS 23.2.1 (linux)
07:22:55 PM.798: ---------------------------------
07:22:55 PM.800: ---------------------------------
07:22:55 PM.801: audio settings reset:
07:22:55 PM.801:     samples per sec: 44100
07:22:55 PM.801:     speakers:        2
07:22:55 PM.833: ---------------------------------
07:22:55 PM.833: Initializing OpenGL...
07:22:55 PM.914: Loading up OpenGL on adapter NVIDIA Corporation GeForce GTX 1070/PCIe/SSE2
07:22:55 PM.914: OpenGL loaded successfully, version 3.2.0 NVIDIA 430.40, shading language 1.50 NVIDIA via Cg compiler
07:22:56 PM.016: ---------------------------------
07:22:56 PM.016: video settings reset:
07:22:56 PM.016:     base resolution:   1920x1080
07:22:56 PM.016:     output resolution: 1280x720
07:22:56 PM.016:     downscale filter:  Bicubic
07:22:56 PM.016:     fps:               30/1
07:22:56 PM.016:     format:            NV12
07:22:56 PM.016:     YUV mode:          601/Partial
07:22:56 PM.016: NV12 texture support not available
07:22:56 PM.017: Audio monitoring device:
07:22:56 PM.017:     name: Default
07:22:56 PM.017:     id: default
07:22:56 PM.017: ---------------------------------
07:22:56 PM.030: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
07:22:56 PM.503: No blackmagic support
07:22:56 PM.865: NVENC supported
07:22:56 PM.865: FFMPEG VAAPI supported
07:22:56 PM.953: VLC found, VLC video source enabled
07:22:56 PM.953: ---------------------------------
07:22:56 PM.953:   Loaded Modules:
07:22:56 PM.953:     vlc-video.so
07:22:56 PM.953:     text-freetype2.so
07:22:56 PM.953:     rtmp-services.so
07:22:56 PM.953:     obs-x264.so
07:22:56 PM.953:     obs-transitions.so
07:22:56 PM.954:     obs-outputs.so
07:22:56 PM.954:     obs-libfdk.so
07:22:56 PM.954:     obs-filters.so
07:22:56 PM.954:     obs-ffmpeg.so
07:22:56 PM.954:     linux-v4l2.so
07:22:56 PM.954:     linux-pulseaudio.so
07:22:56 PM.954:     linux-jack.so
07:22:56 PM.954:     linux-decklink.so
07:22:56 PM.954:     linux-capture.so
07:22:56 PM.954:     linux-alsa.so
07:22:56 PM.954:     image-source.so
07:22:56 PM.954:     frontend-tools.so
07:22:56 PM.954:     decklink-ouput-ui.so
07:22:56 PM.954: ---------------------------------
07:22:56 PM.960: ==== Startup complete ===============================================
07:22:56 PM.966: Service '' not found
07:22:56 PM.968: No scene file found, creating default scene
07:22:56 PM.968: All scene data cleared
07:22:56 PM.968: ------------------------------------------------
07:22:56 PM.993: pulse-input: Server name: 'pulseaudio 12.2'
07:22:56 PM.993: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
07:22:56 PM.994: pulse-input: Started recording from 'alsa_output.pci-0000_00_14.2.analog-stereo.monitor'
07:22:56 PM.994: pulse-input: Server name: 'pulseaudio 12.2'
07:22:56 PM.994: pulse-input: Audio format: s16le, 44100 Hz, 1 channels
07:22:56 PM.994: pulse-input: Started recording from 'alsa_input.usb-AKM_AK5370-00.analog-mono'
07:22:56 PM.994: Switched to scene 'Scene'
07:22:56 PM.995: Failed to glob scene collections
07:22:57 PM.240: [rtmp-services plugin] Successfully updated file 'services.json' (version 110)
07:22:57 PM.240: [rtmp-services plugin] Successfully updated package (version 110)
07:22:57 PM.795: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Desktop Audio)
07:22:57 PM.795:
 
Last edited:
Top