Failed to open video codec: Unknown error occurred

devguy

New Member
Hi I have a RTX3080 video card and I started using NVENC for both streaming and desktop recording which seems to work and then for no reason I will get the following error, when I try to start streaming or recording.

Shown when recording:

Failed to open video codec: Unknown error occurred
An unspecified error occurred while recording.

Show when streaming:

Failed to open NVENC codec: Unknown error occurred
Please check your video drivers are up to date.

I got the latest NVidia driver install (470.63.01)
NV-Control Version: 1.29

OBS version: 27.0.1

System Info

Operating System: openSUSE Tumbleweed 20210810
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.8-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2

Here is the OBS log file:

10:18:21 PM.665: CPU Name: AMD Ryzen 7 2700X Eight-Core Processor
10:18:21 PM.665: CPU Speed: 4199.739MHz
10:18:21 PM.665: Physical Cores: 8, Logical Cores: 16
10:18:21 PM.665: Physical Memory: 32010MB Total, 20982MB Free
10:18:21 PM.665: Kernel Version: Linux 5.13.8-1-default
10:18:21 PM.665: Distribution: "openSUSE Tumbleweed" "20210810"
10:18:21 PM.665: Session Type: x11
10:18:21 PM.665: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.13
10:18:21 PM.666: Portable mode: false
10:18:21 PM.718: OBS 27.0.1 (linux)
10:18:21 PM.718: ---------------------------------
10:18:21 PM.718: ---------------------------------
10:18:21 PM.718: audio settings reset:
10:18:21 PM.718: samples per sec: 48000
10:18:21 PM.718: speakers: 2
10:18:21 PM.725: ---------------------------------
10:18:21 PM.726: Initializing OpenGL...
10:18:21 PM.780: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce RTX 3080/PCIe/SSE2
10:18:21 PM.780: OpenGL loaded successfully, version 3.3.0 NVIDIA 470.63.01, shading language 3.30 NVIDIA via Cg compiler
10:18:21 PM.787: ---------------------------------
10:18:21 PM.787: video settings reset:
10:18:21 PM.787: base resolution: 4096x2160
10:18:21 PM.787: output resolution: 4096x2160
10:18:21 PM.787: downscale filter: Lanczos
10:18:21 PM.787: fps: 30/1
10:18:21 PM.787: format: NV12
10:18:21 PM.787: YUV mode: 709/Partial
10:18:21 PM.788: NV12 texture support not available
10:18:21 PM.788: Audio monitoring device:
10:18:21 PM.788: name: Default
10:18:21 PM.788: id: default
10:18:21 PM.788: ---------------------------------
10:18:21 PM.791: Failed to load 'en-US' text for module: 'decklink-captions.so'
10:18:21 PM.793: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
10:18:21 PM.873: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
10:18:21 PM.873: No blackmagic support
10:18:21 PM.883: v4l2loopback not installed, virtual camera disabled
10:18:21 PM.890: NVENC supported
10:18:21 PM.890: FFMPEG VAAPI supported
10:18:21 PM.914: VLC found, VLC video source enabled
10:18:21 PM.914: ---------------------------------
10:18:21 PM.914: Loaded Modules:
10:18:21 PM.914: vlc-video.so
10:18:21 PM.914: text-freetype2.so
10:18:21 PM.914: rtmp-services.so
10:18:21 PM.914: obs-x264.so
10:18:21 PM.914: obs-vst.so
10:18:21 PM.914: obs-transitions.so
10:18:21 PM.914: obs-outputs.so
10:18:21 PM.914: obs-libfdk.so
10:18:21 PM.914: obs-filters.so
10:18:21 PM.914: obs-ffmpeg.so
10:18:21 PM.914: linux-v4l2.so
10:18:21 PM.914: linux-pulseaudio.so
10:18:21 PM.914: linux-jack.so
10:18:21 PM.914: linux-decklink.so
10:18:21 PM.914: linux-capture.so
10:18:21 PM.914: image-source.so
10:18:21 PM.914: frontend-tools.so
10:18:21 PM.914: decklink-ouput-ui.so
10:18:21 PM.914: decklink-captions.so
10:18:21 PM.914: ---------------------------------
10:18:21 PM.914: ==== Startup complete ===============================================
10:18:21 PM.917: All scene data cleared
10:18:21 PM.917: ------------------------------------------------
10:18:21 PM.924: pulse-input: Server name: 'pulseaudio 14.2-rebootstrapped'
10:18:21 PM.924: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
10:18:21 PM.924: pulse-input: Started recording from 'alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone-00.iec958-stereo'
10:18:21 PM.925: xshm-input: Geometry 4096x2160 @ 0,0
10:18:21 PM.925: v4l2-input: Start capture from /dev/video0
10:18:21 PM.926: v4l2-input: Input: 0
10:18:21 PM.975: v4l2-input: Resolution: 640x480
10:18:21 PM.976: v4l2-input: Pixelformat: YUYV
10:18:21 PM.976: v4l2-input: Linesize: 1280 Bytes
10:18:21 PM.976: v4l2-input: Framerate: 30.00 fps
10:18:21 PM.976: v4l2-input: /dev/video0: select timeout set to 166666us (5x frame periods)
10:18:21 PM.977: Switched to scene 'Big'
10:18:21 PM.977: ------------------------------------------------
10:18:21 PM.977: Loaded scenes:
10:18:21 PM.977: - scene 'Big':
10:18:21 PM.978: - source: 'Main Screen' (xshm_input)
10:18:21 PM.978: - source: 'Webcam' (v4l2_input)
10:18:21 PM.978: - filter: 'Chroma Key' (chroma_key_filter_v2)
10:18:21 PM.978: - source: 'Yeti' (pulse_input_capture)
10:18:21 PM.978: - filter: 'Noise Suppression' (noise_suppress_filter_v2)
10:18:21 PM.978: - filter: 'Gain' (gain_filter)
10:18:21 PM.978: - filter: 'Compressor' (compressor_filter)
10:18:21 PM.978: - filter: 'Limiter' (limiter_filter)
10:18:21 PM.978: ------------------------------------------------
10:18:22 PM.152: v4l2-input: /dev/video0: select timed out
10:18:22 PM.152: v4l2-input: /dev/video0: failed to log status
10:18:22 PM.319: v4l2-input: /dev/video0: select timed out
10:18:22 PM.319: v4l2-input: /dev/video0: failed to log status
10:18:22 PM.476: adding 64 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: Yeti)
10:18:22 PM.476:
10:18:24 PM.402: Starting recording due to hotkey
10:18:24 PM.428: Failed to open video codec: Unknown error occurred
10:18:24 PM.428: ffmpeg_data_init failed
10:18:24 PM.429: ==== Recording Stop ================================================
10:22:11 PM.008: Failed to open video codec: Unknown error occurred
10:22:11 PM.008: ffmpeg_data_init failed
10:22:11 PM.008: ==== Recording Stop ================================================
10:24:15 PM.877: ---------------------------------
10:24:15 PM.877: [NVENC encoder: 'streaming_h264'] settings:
10:24:15 PM.877: rate_control: CBR
10:24:15 PM.877: bitrate: 20000
10:24:15 PM.877: cqp: 0
10:24:15 PM.877: keyint: 60
10:24:15 PM.877: preset: hq
10:24:15 PM.877: profile: high
10:24:15 PM.877: width: 4096
10:24:15 PM.877: height: 2160
10:24:15 PM.877: 2-pass: true
10:24:15 PM.877: b-frames: 2
10:24:15 PM.877: psycho-aq: 1
10:24:15 PM.877: GPU: 0
10:24:15 PM.877:
10:24:15 PM.900: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Unknown error occurred
10:24:15 PM.900: [NVENC encoder] nvenc_create_internal failed, trying again without Psycho Visual Tuning
10:24:15 PM.900: ---------------------------------
10:24:15 PM.900: [NVENC encoder: 'streaming_h264'] settings:
10:24:15 PM.900: rate_control: CBR
10:24:15 PM.900: bitrate: 20000
10:24:15 PM.900: cqp: 0
10:24:15 PM.900: keyint: 60
10:24:15 PM.900: preset: hq
10:24:15 PM.900: profile: high
10:24:15 PM.900: width: 4096
10:24:15 PM.900: height: 2160
10:24:15 PM.900: 2-pass: true
10:24:15 PM.900: b-frames: 2
10:24:15 PM.900: psycho-aq: 0
10:24:15 PM.900: GPU: 0
10:24:15 PM.900:
10:24:15 PM.920: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Unknown error occurred
10:24:15 PM.920: Stream output type 'rtmp_output' failed to start! Last Error: Failed to open NVENC codec: Unknown error occurred
10:24:15 PM.920:
10:24:15 PM.920: Please check your video drivers are up to date.
 

devguy

New Member
Happened again, each time I have to reboot to fix this problem. Handbreak doesn't have a problem with finding and using NVENC. In fact it uses H.265 while OBS only shows H.264.

Screenshot_20210816_190646.png

Logging in and out doesn't fix the problem.
Is anyone else seeing this problem? most of all how do I fix this?
 
Top