Question / Help [Solved] [F24] NVENC not working (anymore?)

sc0repi0

New Member
Hi everyone,

I recently made a little pause recording and came back to a problem which seems to be new, since I never tried to use different capture options. If I now try to start recording, OBS will error out with the following.

Code:
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/locale/de-DE.ini
Attempted path: /usr/share/obs/obs-studio/locale/de-DE.ini
info: Using preferred locale 'de-DE'
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 8 logical cores
info: Processor: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz
info: Physical Memory: 7992MB Total
info: Kernel Version: Linux 4.7.2-201.fc24.x86_64
info: Distribution: Fedora 24
QObject::connect: invalid null parameter
info: OBS 0.15.4 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 44100
    speakers:        2
info: OpenGL version: 3.2.0 NVIDIA 370.28

info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    fps:               60/1
    format:            NV12
info: ---------------------------------
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
info: NVENC supported
info: VLC 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-transitions.so
info:     obs-outputs.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 8.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: pulse-input: Server name: 'pulseaudio 8.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_05_01.0.analog-stereo'
info: pulse-input: Server name: 'pulseaudio 8.0'
error: pulse-input: Sample spec is not valid
error: Failed to create source 'Mic/Aux'!
info: pulse-input: Server name: 'pulseaudio 8.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_05_01.0.analog-stereo.monitor'
info: xshm-input: Geometry 1920x1080 @ 0,0
info: Switched to scene 'Mit Mic'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Mit Mic':
info:     - source: 'Mic/Aux' (pulse_input_capture)
info:     - source: 'Audio Ausgabe Aufnahme (PulseAudio)' (pulse_output_capture)
info:     - source: 'Bildschirmaufnahme (XSHM)' (xshm_input)
info: - scene 'Ohne Mic':
info:     - source: 'Audio Ausgabe Aufnahme (PulseAudio)' (pulse_output_capture)
info:     - source: 'Bildschirmaufnahme (XSHM)' (xshm_input)
info: ------------------------------------------------
info: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
info: Update check: last known remote version is 0.4.0
info: ---------------------------------
info: [NVENC encoder: 'simple_h264_recording'] settings:
    rate_control: CQP
    bitrate:      0
    cqp:          23
    keyint:       250
    preset:       hq
    profile:      high
    level:        auto
    width:        1920
    height:       1080
    2-pass:       true
    GPU:          0

[nvenc_h264 @ 0x55c006572640] This encoder is deprecated, use 'h264_nvenc' instead
[nvenc_h264 @ 0x55c006572640] Cannot load libnvidia-encode.so
warning: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec: Unknown error occurred
info: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds

(This is taken directly from cli, after looking at the log files, this should be the same output)

I tried to rebuild it from git, which also errored out with:

Code:
cmake -DUNIX_STRUCTURE=1 ..
-- OBS_VERSION: 0.15.4-50-g001f3c7
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find FFmpeg (missing: FFMPEG_AVCODEC_LIBRARIES
  FFMPEG_AVCODEC_INCLUDE_DIRS avcodec avfilter avdevice avutil swscale
  avformat swresample)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindFFmpeg.cmake:147 (find_package_handle_standard_args)
  deps/libff/CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!

Any ideas? Thanks in advance!
 

Attachments

  • 2016-09-13 17-32-28.txt
    4 KB · Views: 24

sc0repi0

New Member
I solved my issue, at least the first one. The problem was not with OBS, it was ffmpeg not able to find libnvidia-encode.so

Code:
sudo ln -s /usr/lib64/libnvidia-encode.so.370.28 /usr/lib64/libnvidia-encode.so

That does the trick. If you have a similar problem, just check your lib64 dir if libnvidia-encode.so has been renamed. Symlink it to libnvidia-encode.so and you'll be fine.
 
Last edited:
Top