[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1035902: obs-studio: NVENC codec fails unless I use ffmpeg to encode a video first



Package: obs-studio
Version: 29.0.2+dfsg-1+b1
Severity: normal
X-Debbugs-Cc: rishincutchin@gmail.com

Dear Maintainer,


   Run obs-studio, and attempted to record a video with NVENC selected as
   the encoder.

   Fails with this error:
   rishi@tripodhost:~$ [h264_nvenc @ 0x56294719dfc0] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_U_SNKNOWN: unknown error
warning: [NVENC encoder] nvenc_create_internal failed, trying again without Psycho Visual Tuning
info: ---------------------------------
info: [FFmpeg NVENC encoder: 'advanced_video_recording'] settings:
        encoder:      NVIDIA NVENC H.264 (FFmpeg)
        rate_control: CBR
        bitrate:      2500
        cqp:          0
        keyint:       250
        preset:       p5
        tuning:       hq
        multipass:    qres
        profile:      high
        width:        1920
        height:       1080
        b-frames:     2
        psycho-aq:    0
        GPU:          0

[h264_nvenc @ 0x5629471a2c80] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error

But after encoding a video with ffmpeg on the command line with nvenc:
 $ffmpeg -i output.mp4 -c:v h264_nvenc -b:v 1M outputtwo.mp4
Subsequent attempts to use NVENC on obs succeed.

-- System Information:
Debian Release: 12.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-security'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-8-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages obs-studio depends on:
ii  libavcodec59       7:5.1.3-1
ii  libavdevice59      7:5.1.3-1
ii  libavformat59      7:5.1.3-1
ii  libavutil57        7:5.1.3-1
ii  libc6              2.36-9
ii  libcurl3-gnutls    7.88.1-9
ii  libfontconfig1     2.14.1-4
ii  libfreetype6       2.12.1+dfsg-5
ii  libgcc-s1          12.2.0-14
ii  libjansson4        2.14-2
ii  libluajit-5.1-2    2.1.0~beta3+git20220320+dfsg-4.1
ii  libmbedcrypto7     2.28.3-1
ii  libmbedtls14       2.28.3-1
ii  libmbedx509-1      2.28.3-1
ii  libobs0            29.0.2+dfsg-1+b1
ii  libpci3            1:3.9.0-4
ii  libpulse0          16.1+dfsg1-2+b1
ii  libpython3.11      3.11.2-6
ii  libqt5core5a       5.15.8+dfsg-7
ii  libqt5gui5         5.15.8+dfsg-7
ii  libqt5network5     5.15.8+dfsg-7
ii  libqt5svg5         5.15.8-2
ii  libqt5widgets5     5.15.8+dfsg-7
ii  libqt5xml5         5.15.8+dfsg-7
ii  librist4           0.2.7+dfsg-1
ii  libspeexdsp1       1.2.1-1
ii  libsrt1.5-openssl  1.5.1-1
ii  libstdc++6         12.2.0-14
ii  libswscale6        7:5.1.3-1
ii  libudev1           252.6-1
ii  libv4l-0           1.22.1-5+b2
ii  libva-drm2         2.17.0-1
ii  libva2             2.17.0-1
ii  libx11-6           2:1.8.4-2
ii  libx264-164        2:0.164.3095+gitbaee400-3
ii  libxcb-composite0  1.15-1
ii  libxcb-randr0      1.15-1
ii  libxcb-shm0        1.15-1
ii  libxcb-xfixes0     1.15-1
ii  libxcb-xinerama0   1.15-1
ii  libxcb1            1.15-1
ii  python3            3.11.2-1+b1
ii  python3.11         3.11.2-6

Versions of packages obs-studio recommends:
ii  obs-plugins  29.0.2+dfsg-1+b1

Versions of packages obs-studio suggests:
ii  pkexec             122-3
ii  policykit-1        122-3
pn  v4l2loopback-dkms  <none>

-- no debconf information


Reply to: