obs GTX1660 with ubuntu 22.04 recording performance lag

jwgrenning

New Member
obs with GTX 1660 graphis after udgrade to ubuntu 22.04 has a lot of lag for recording and virtual camera output.

thanks for your help!

James

Here's some more information

~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.1/0000:06:00.0 ==
modalias : pci:v000010DEd00002184sv00003842sd00001160bc03sc00i00
vendor : NVIDIA Corporation
model : TU116 [GeForce GTX 1660]
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-515 - distro non-free recommended
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-510 - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-510-server - distro non-free
driver : nvidia-driver-515-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin

---- Starting obs from the command line

obs
debug: Found portal inhibitor
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Yami.qss
Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 7 3700X 8-Core Processor
info: CPU Speed: 3600.000MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 15925MB Total, 10248MB Free
info: Kernel Version: Linux 5.15.0-47-generic
info: Distribution: "Ubuntu" "22.04"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: Portable mode: false
qt.svg: Cannot open file '/usr/share/obs/obs-studio/themes/Dark/Close.svg', because: No such file or directory
qt.svg: Cannot open file '/usr/share/obs/obs-studio/themes/Dark/Close.svg', because: No such file or directory
qt.svg: Cannot open file '/usr/share/obs/obs-studio/themes/Dark/Popout.svg', because: No such file or directory
qt.svg: Cannot open file '/usr/share/obs/obs-studio/themes/Dark/Popout.svg', because: No such file or directory
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
info: OBS 28.0.1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
max buffering: 960 milliseconds
buffering type: dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1660/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 515.65.01, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
downscale filter: Lanczos
fps: 60/1
format: NV12
YUV mode: Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
name: Default
id: default
info: ---------------------------------
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] Available captures:
info: [pipewire] - Desktop capture
info: [pipewire] - Window capture
info: [obs-browser]: Version 2.18.5
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures_143.2591+g4204d54+chromium-103.0.5060.134 (compiled)
info: NVENC supported
info: FFMPEG VAAPI supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.0.1 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.2.4 | Qt version (run-time): 6.2.4
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
info: ---------------------------------
info: Loaded Modules:
info: vlc-video.so
info: text-freetype2.so
info: rtmp-services.so
info: obs-x264.so
info: obs-websocket.so
info: obs-vst.so
info: obs-transitions.so
info: obs-outputs.so
info: obs-libfdk.so
info: obs-filters.so
info: obs-ffmpeg.so
info: obs-browser.so
info: linux-v4l2.so
info: linux-pulseaudio.so
info: linux-pipewire.so
info: linux-jack.so
info: linux-capture.so
info: linux-alsa.so
info: image-source.so
info: frontend-tools.so
info: decklink-output-ui.so
info: decklink-captions.so
info: ---------------------------------
QLayout: Attempting to add QLayout "" to OBSBasic "OBSBasic", which already has a layout
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: alsa-input: PCM 'front:CARD=Microphone,DEV=0' rate set to 44100
info: alsa-input: PCM 'front:CARD=Microphone,DEV=0' channels set to 2
info: [window-capture: 'sublime'] update settings:
title: unknown
class: unknown

info: [window-capture: 'terminal'] update settings:
title: unknown
class: unknown

info: xshm-input: Geometry 1920x1080 @ 0,1080
info: [window-capture: 'OBS'] update settings:
title: unknown
class: unknown

[swscaler @ 0x5603257cf140] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x560325f40f00] deprecated pixel format used, make sure you did set range correctly
info: [Media Source 'p-51 a']: settings:
input: /home/james/Dropbox/pictures-shared/video/MAH00313-P51.mp4
input_format: (null)
speed: 100
is_looping: yes
is_linear_alpha: no
is_hw_decoding: yes
is_clear_on_media_end: yes
restart_on_activate: yes
close_when_inactive: no
ffmpeg_options:
info: Set FFmpeg options:
[AVHWDeviceContext @ 0x7f594858b480] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[AVHWDeviceContext @ 0x7f594858b480] Failed to initialise VAAPI connection: -1 (unknown libva error).
[swscaler @ 0x560327a28740] deprecated pixel format used, make sure you did set range correctly
info: [window-capture: 'chromium'] update settings:
title: unknown
class: unknown

info: v4l2-input: Start capture from /dev/video0
info: v4l2-input: Input: 0
info: v4l2-input: Resolution: 1920x1080
info: v4l2-input: Pixelformat: YV12
info: v4l2-input: Linesize: 1920 Bytes
info: v4l2-input: Framerate: 30.00 fps
info: v4l2-input: /dev/video0: select timeout set to 166666 (5x frame periods)
[swscaler @ 0x560327a814c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x560327ac2cc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x560327939600] deprecated pixel format used, make sure you did set range correctly
info: [window-capture: 'Firefox'] update settings:
title: unknown
class: unknown

info: xshm-input: Geometry 1920x1080 @ 0,0
info: [window-capture: 'obs-preview'] update settings:
title: unknown
class: unknown

info: [window-capture: 'term'] update settings:
title: unknown
class: unknown

info: xshm-input: Geometry 1920x1080 @ 0,1080
[swscaler @ 0x560327a1fcc0] deprecated pixel format used, make sure you did set range correctly
info: [Media Source 'debugging']: settings:
input: /home/james/Dropbox/pictures-shared/video/debugging-fire-extinguishing-fire-brigade-inside-burning-premises-brave-firemen-inside-burning-building-house-destroyed-by-fire_b91f31pte_1080__D.mp4
input_format: (null)
speed: 100
is_looping: yes
is_linear_alpha: no
is_hw_decoding: no
is_clear_on_media_end: yes
restart_on_activate: yes
close_when_inactive: no
ffmpeg_options:
info: Set FFmpeg options:
info: [Media Source 'fireworks']: settings:
input: /home/james/Dropbox/pictures-shared/fireworks.gif
input_format: (null)
speed: 41
is_looping: yes
is_linear_alpha: no
is_hw_decoding: no
is_clear_on_media_end: yes
restart_on_activate: yes
close_when_inactive: no
ffmpeg_options:
info: Set FFmpeg options:
info: v4l2-input: Start capture from /dev/video2
error: v4l2-input: Unable to set input 0
error: v4l2-input: Initialization failed, errno: Inappropriate ioctl for device
info: pulse-input: Server name: 'pulseaudio 15.99.1'
error: pulse-input: An error occurred while getting the source info!
info: pulse-input: Server name: 'pulseaudio 15.99.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo'
info: Switched to scene 'Talking'
info: ------------------------------------------------


-- snip out loaded scenes ---

Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
 
Top