OBS can only record at 6FPS and while running slows everything to a crawl

jest

New Member
This is not a hardware issue, my specs are Ryzen 5, 1600 with rx 480 gpu, I used to be able to record just fine, now it can only record at < 6 fps and lags the entire system down. htop doesn't show anything interesting. I tried with the current latest version(28.0.3) and 27.0 but no luck. Is there any logs or something I can look into?
 

jest

New Member
Code:
08:08:52.783: Using EGL/X11
08:08:52.783: CPU Name: AMD Ryzen 5 1600 Six-Core Processor
08:08:52.783: CPU Speed: 2795.962MHz
08:08:52.783: Physical Cores: 6, Logical Cores: 12
08:08:52.783: Physical Memory: 15930MB Total, 12221MB Free
08:08:52.783: Kernel Version: Linux 6.0.2-arch1-1
08:08:52.783: Distribution: "Arch Linux" Unknown
08:08:52.783: Session Type: tty
08:08:52.783: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
08:08:52.784: Qt Version: 6.4.0 (runtime), 6.4.0 (compiled)
08:08:52.784: Portable mode: false
08:08:52.887: OBS 28.0.3-2 (linux)
08:08:52.887: ---------------------------------
08:08:52.887: ---------------------------------
08:08:52.887: audio settings reset:
08:08:52.887:     samples per sec: 48000
08:08:52.887:     speakers:        2
08:08:52.887:     max buffering:   960 milliseconds
08:08:52.887:     buffering type:  dynamically increasing
08:08:52.889: ---------------------------------
08:08:52.889: Initializing OpenGL...
08:08:52.947: Loading up OpenGL on adapter AMD AMD Radeon RX 580 Series (polaris10, LLVM 14.0.6, DRM 3.48, 6.0.2-arch1-1)
08:08:52.947: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 22.2.1, shading language 4.60
08:08:52.977: ---------------------------------
08:08:52.977: video settings reset:
08:08:52.977:     base resolution:   1920x1080
08:08:52.977:     output resolution: 1920x1080
08:08:52.977:     downscale filter:  Bicubic
08:08:52.977:     fps:               30/1
08:08:52.977:     format:            NV12
08:08:52.977:     YUV mode:          Rec. 709/Partial
08:08:52.977: NV12 texture support not available
08:08:52.977: P010 texture support not available
08:08:52.978: Audio monitoring device:
08:08:52.978:     name: Default
08:08:52.978:     id: default
08:08:52.978: ---------------------------------
08:08:52.989: Failed to load 'en-US' text for module: 'decklink-captions.so'
08:08:52.999: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
08:08:53.007: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
08:08:53.007: Failed to initialize module 'decklink.so'
08:08:53.152: [pipewire] No captures available
08:08:53.175: v4l2loopback not installed, virtual camera disabled
08:08:53.191: FFMPEG VAAPI supported
08:08:53.253: ---------------------------------
08:08:53.253:   Loaded Modules:
08:08:53.253:     text-freetype2.so
08:08:53.253:     rtmp-services.so
08:08:53.253:     obs-x264.so
08:08:53.253:     obs-vst.so
08:08:53.253:     obs-transitions.so
08:08:53.253:     obs-outputs.so
08:08:53.253:     obs-filters.so
08:08:53.253:     obs-ffmpeg.so
08:08:53.253:     linux-v4l2.so
08:08:53.253:     linux-pulseaudio.so
08:08:53.253:     linux-pipewire.so
08:08:53.253:     linux-jack.so
08:08:53.253:     linux-capture.so
08:08:53.253:     linux-alsa.so
08:08:53.253:     image-source.so
08:08:53.253:     frontend-tools.so
08:08:53.253:     decklink-output-ui.so
08:08:53.253:     decklink-captions.so
08:08:53.253: ---------------------------------
08:08:53.253: ==== Startup complete ===============================================
08:08:53.293: All scene data cleared
08:08:53.293: ------------------------------------------------
08:08:53.296: pulse-input: Server name: 'pulseaudio 16.1'
08:08:53.296: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
08:08:53.296: pulse-input: Started recording from 'alsa_output.pci-0000_0a_00.3.analog-stereo.monitor'
08:08:53.296: [Loaded global audio device]: 'Desktop Audio'
08:08:53.533: pulse-input: Server name: 'pulseaudio 16.1'
08:08:53.533: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
08:08:53.533: pulse-input: Started recording from 'alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo'
08:08:53.533: [Loaded global audio device]: 'Mic/Aux'
08:08:53.543: xshm-input: Geometry 1920x1080 @ 5760,0
08:08:53.548: Switched to scene 'Scene'
08:08:53.549: ------------------------------------------------
08:08:53.549: Loaded scenes:
08:08:53.549: - scene 'Scene':
08:08:53.550:     - source: 'dell1080' (xshm_input)
08:08:53.550: ------------------------------------------------
08:08:55.818: ---------------------------------
08:08:55.818: [x264 encoder: 'advanced_video_recording'] preset: veryfast
08:08:55.818: [x264 encoder: 'advanced_video_recording'] settings:
08:08:55.818:     rate_control: CBR
08:08:55.818:     bitrate:      2500
08:08:55.818:     buffer size:  2500
08:08:55.818:     crf:          23
08:08:55.818:     fps_num:      30
08:08:55.818:     fps_den:      1
08:08:55.818:     width:        1920
08:08:55.818:     height:       1080
08:08:55.818:     keyint:       250
08:08:55.818:
08:08:55.835: ---------------------------------
08:08:55.835: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: stereo
08:08:55.835:
08:08:55.847: ==== Recording Start ===============================================
08:08:55.847: [ffmpeg muxer: 'adv_file_output'] Writing file '/mnt/shared/tmp/2022-10-17 08-08-55.mp4'...
08:08:56.066: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Desktop Audio)
08:08:56.066:
08:09:06.139: [ffmpeg muxer: 'adv_file_output'] Output of file '/mnt/shared/tmp/2022-10-17 08-08-55.mp4' stopped
08:09:06.139: Output 'adv_file_output': stopping
08:09:06.139: Output 'adv_file_output': Total frames output: 258
08:09:06.139: Output 'adv_file_output': Total drawn frames: 71 (305 attempted)
08:09:06.139: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 234 (76.7%)
08:09:06.143: ==== Recording Stop ================================================
08:09:25.194: ==== Shutting down ==================================================
08:09:25.457: pulse-input: Stopped recording from 'alsa_output.pci-0000_0a_00.3.analog-stereo.monitor'
08:09:25.457: pulse-input: Got 5996 packets with 1319777 frames
08:09:25.457: pulse-input: Stopped recording from 'alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo'
08:09:25.457: pulse-input: Got 3199 packets with 1406850 frames
08:09:25.485: All scene data cleared
08:09:25.485: ------------------------------------------------
08:09:26.083: [Scripting] Total detached callbacks: 0
08:09:26.083: Freeing OBS context data
08:09:26.083: 1 views remain at shutdown
08:09:26.129: == Profiler Results =============================
08:09:26.129: run_program_init: 1127.61 ms
08:09:26.129:  ┣OBSApp::AppInit: 5.341 ms
08:09:26.129:  ┃ ┗OBSApp::InitLocale: 0.945 ms
08:09:26.129:  ┗OBSApp::OBSInit: 1038.45 ms
08:09:26.129:    ┣obs_startup: 1.137 ms
08:09:26.129:    ┗OBSBasic::OBSInit: 934.186 ms
08:09:26.129:      ┣OBSBasic::InitBasicConfig: 0.077 ms
08:09:26.129:      ┣OBSBasic::ResetAudio: 0.36 ms
08:09:26.129:      ┣OBSBasic::ResetVideo: 90.787 ms
08:09:26.129:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
08:09:26.129:      ┣OBSBasic::InitHotkeys: 0.039 ms
08:09:26.129:      ┣obs_load_all_modules2: 274.747 ms
08:09:26.129:      ┃ ┣obs_init_module(decklink-captions.so): 0 ms
08:09:26.129:      ┃ ┣obs_init_module(decklink-output-ui.so): 0 ms
08:09:26.129:      ┃ ┣obs_init_module(decklink.so): 0.186 ms
08:09:26.129:      ┃ ┣obs_init_module(frontend-tools.so): 79.527 ms
08:09:26.129:      ┃ ┣obs_init_module(image-source.so): 0.009 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-alsa.so): 0.003 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-capture.so): 0.67 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-jack.so): 0.002 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-pipewire.so): 4.276 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.003 ms
08:09:26.129:      ┃ ┣obs_init_module(linux-v4l2.so): 8.553 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-ffmpeg.so): 0.974 ms
08:09:26.129:      ┃ ┃ ┗nvenc_check: 0.874 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-filters.so): 0.028 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-outputs.so): 0.002 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-transitions.so): 0.008 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-vst.so): 0.003 ms
08:09:26.129:      ┃ ┣obs_init_module(obs-x264.so): 0.001 ms
08:09:26.129:      ┃ ┣obs_init_module(rtmp-services.so): 0.646 ms
08:09:26.129:      ┃ ┗obs_init_module(text-freetype2.so): 0.009 ms
08:09:26.129:      ┣OBSBasic::ResetOutputs: 0.129 ms
08:09:26.129:      ┣OBSBasic::CreateHotkeys: 0.189 ms
08:09:26.129:      ┣OBSBasic::InitService: 1.181 ms
08:09:26.129:      ┣OBSBasic::InitPrimitives: 0.138 ms
08:09:26.129:      ┗OBSBasic::Load: 298.55 ms
08:09:26.129: obs_hotkey_thread(25 ms): min=0.084 ms, median=91.611 ms, max=1233.66 ms, 99th percentile=809.243 ms, 16.8582% below 25 ms
08:09:26.129: audio_thread(Audio): min=0.006 ms, median=0.056 ms, max=5.184 ms, 99th percentile=0.502 ms
08:09:26.129:  ┗receive_audio: min=0.001 ms, median=0.183 ms, max=5.08 ms, 99th percentile=0.384 ms, 0.312135 calls per parent call
08:09:26.129:    ┣buffer_audio: min=0.001 ms, median=0.001 ms, max=0.175 ms, 99th percentile=0.019 ms
08:09:26.129:    ┗do_encode: min=0.073 ms, median=0.182 ms, max=3.584 ms, 99th percentile=0.372 ms
08:09:26.129:      ┣encode(Track1): min=0.071 ms, median=0.179 ms, max=0.362 ms, 99th percentile=0.348 ms
08:09:26.129:      ┗send_packet: min=0 ms, median=0.004 ms, max=3.481 ms, 99th percentile=0.033 ms
08:09:26.129: obs_graphics_thread(33.3333 ms): min=0.076 ms, median=116.587 ms, max=1238.34 ms, 99th percentile=800.966 ms, 13.4831% below 33.333 ms
08:09:26.129:  ┣tick_sources: min=0 ms, median=66.418 ms, max=1237.88 ms, 99th percentile=766.664 ms
08:09:26.129:  ┣output_frame: min=0.049 ms, median=0.218 ms, max=16.285 ms, 99th percentile=5.077 ms
08:09:26.129:  ┃ ┣gs_context(video->graphics): min=0.049 ms, median=0.215 ms, max=16.283 ms, 99th percentile=3.979 ms
08:09:26.129:  ┃ ┃ ┣render_video: min=0.006 ms, median=0.112 ms, max=2.901 ms, 99th percentile=1.346 ms
08:09:26.129:  ┃ ┃ ┃ ┣render_main_texture: min=0.005 ms, median=0.094 ms, max=2.878 ms, 99th percentile=1.134 ms
08:09:26.129:  ┃ ┃ ┃ ┣render_convert_texture: min=0.026 ms, median=0.04 ms, max=1.482 ms, 99th percentile=1.482 ms, 0.269663 calls per parent call
08:09:26.129:  ┃ ┃ ┃ ┗stage_output_texture: min=0.011 ms, median=0.017 ms, max=0.109 ms, 99th percentile=0.109 ms, 0.269663 calls per parent call
08:09:26.129:  ┃ ┃ ┣gs_flush: min=0.002 ms, median=0.005 ms, max=0.036 ms, 99th percentile=0.02 ms
08:09:26.129:  ┃ ┃ ┗download_frame: min=0 ms, median=0.053 ms, max=0.099 ms, 99th percentile=0.099 ms, 0.269663 calls per parent call
08:09:26.129:  ┃ ┗output_video_data: min=0.518 ms, median=0.606 ms, max=4.736 ms, 99th percentile=4.736 ms, 0.265918 calls per parent call
08:09:26.129:  ┗render_displays: min=0.002 ms, median=49.49 ms, max=316.253 ms, 99th percentile=132.098 ms
08:09:26.130: video_thread(video): min=2.356 ms, median=6.381 ms, max=116.682 ms, 99th percentile=116.682 ms
08:09:26.130:  ┗receive_video: min=1.126 ms, median=2.042 ms, max=21.66 ms, 99th percentile=9.081 ms, 4.29577 calls per parent call
08:09:26.130:    ┗do_encode: min=1.125 ms, median=2.04 ms, max=21.659 ms, 99th percentile=9.08 ms
08:09:26.130:      ┣encode(advanced_video_recording): min=1.108 ms, median=2.022 ms, max=21.657 ms, 99th percentile=9.066 ms
08:09:26.130:      ┗send_packet: min=0.002 ms, median=0.009 ms, max=1.318 ms, 99th percentile=0.149 ms, 0.898361 calls per parent call
08:09:26.130: =================================================
08:09:26.130: == Profiler Time Between Calls ==================
08:09:26.130: obs_hotkey_thread(25 ms): min=25.147 ms, median=116.672 ms, max=1258.73 ms, 10.7692% within ±2% of 25 ms (0% lower, 89.2308% higher)
08:09:26.130: obs_graphics_thread(33.3333 ms): min=12.968 ms, median=116.599 ms, max=1238.35 ms, 10.5263% within ±2% of 33.333 ms (2.63158% lower, 86.8421% higher)
08:09:26.130: =================================================
08:09:26.136: Number of memory leaks: 0
 

jest

New Member
Found the issue, when I downgrade from latest : `Linux 6.0.2` kernel to like `5.18.0` everything runs so smoothly
 
Top