Help me get nvdec working

Okay, so it happened that I was reinstalling Garuda. Nvdec worked before in mpv, but now it doesn't, and I can't for the life of me remember, what I did before to make it work.
vo=gpu and hwdec=nvdec is added to mpv.conf, but not working.

I have found gstreamer-nvidia in the aur, providing nvdec/nvenc, but that fails to build. I think I need help. :frowning:

garuda-inxi

System:
  Kernel: 5.16.8-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=66e5d40a-2370-44f3-b3b6-ddff5b2046cf rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=e5f09ca4-2e13-4405-b97d-9a69816c4515 loglevel=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: bspwm 0.9.10
    vt: 7 dm: LightDM 1.30.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: B550 AORUS PRO V2
    serial: <superuser required> UEFI: American Megatrends LLC. v: F14e
    date: 10/14/2021
CPU:
  Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3
    family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3025 high: 3623 min/max: 2200/4850 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2805 2: 3623
    3: 2874 4: 2874 5: 2870 6: 2873 7: 2869 8: 2868 9: 3585 10: 3586 11: 3219
    12: 2873 13: 2874 14: 2871 15: 2874 16: 2871 bogomips: 121372
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
    IBRS_FW, STIBP: always-on, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ZOTAC
    driver: nvidia v: 510.47.03 alternate: nouveau,nvidia_drm bus-ID: 07:00.0
    chip-ID: 10de:2504 class-ID: 0300
  Display: x11 server: X.Org 1.21.1.3 compositor: picom v: git-c4107
    driver: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 139 s-size: 702x392mm (27.6x15.4")
    s-diag: 804mm (31.7")
  Monitor-1: HDMI-0 res: 3840x2160 hz: 60 dpi: 140
    size: 697x392mm (27.4x15.4") diag: 800mm (31.5")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: NVIDIA vendor: ZOTAC driver: snd_hda_intel v: kernel
    bus-ID: 07:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 09:00.4 chip-ID: 1022:1487
    class-ID: 0403
  Device-3: RODE Microphones RØDE NT-USB Mini type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-6.3:6 chip-ID: 19f7:0015
    class-ID: 0300 serial: <filter>
  Sound Server-1: ALSA v: k5.16.8-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.45 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
    port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
RAID:
  Device-1: sink type: zfs status: ONLINE level: raidz1 raw: size: 49.1 TiB
    free: 37.4 TiB allocated: 11.7 TiB zfs-fs: size: 32.58 TiB free: 24.77 TiB
  Components: Online:
  1: sda maj-min: 8:0 size: 16.37 TiB
  2: sdb maj-min: 8:16 size: 16.37 TiB
  3: sdc maj-min: 8:32 size: 16.37 TiB
Drives:
  Local Storage: total: raw: 50.93 TiB usable: 34.4 TiB
    used: 7.83 TiB (22.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair
    model: Corsair MP600 PRO XT size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EIFM31.2 temp: 30.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Toshiba model: MG09ACA18TE
    size: 16.37 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0104 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Toshiba model: MG09ACA18TE
    size: 16.37 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0104 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Toshiba model: MG09ACA18TE
    size: 16.37 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0104 scheme: GPT
Partition:
  ID-1: / raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 23.79 GiB (1.3%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
    used: 23.79 GiB (1.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
    used: 23.79 GiB (1.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
    used: 23.79 GiB (1.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 62.77 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 69.05 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 47 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 463 Uptime: 1h 53m wakeups: 0 Memory: 62.77 GiB
  used: 14.06 GiB (22.4%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: pacman: 1198 lib: 292 Shell: fish v: 3.3.1
  default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.12
Garuda (2.5.4-2):
  System install date:     2022-02-13
  Last full system update: 2022-02-13
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            bluetooth-autoconnect.service

Please expose the error/problem that you're having providing logs or images.

2 Likes

gstreamer-nvidia failed to build, but still it's suddenly working? I really don't know what's going on here..
Which logs are you talking about? I didn't have this gstreamer-nvidia package installed before but still it was working.

What @edu4rdshl was referring to was that if you claim a package will not build, then you should include the output so that we can see what errors occurred.

Please post all logs/outputs as text, (not pictures) on the forum. Obviously there is no need to post this now if your issue is resolved.

Thank you for your replies. The issue might be resolved, in that nvdec is now working, the point is that I don't know why. Or if this gstreamer plugin is even the correct way to get nvdec working. I want to make sense of this.

Here's the build log

Build started at 2022-02-13T19:31:29.834141
Main binary: /usr/bin/python
Build Options: -Db_lto=true -Db_pie=true -Daom=disabled -Dassrender=disabled -Dbs2b=disabled -Dbz2=disabled -Dchromaprint=disabled -Dclosedcaption=disabled -Dcolormanagement=disabled -Dcurl=disabled -Ddashdemux=disabled -Ddc1394=disabled -Dde265=disabled -Ddtls=disabled -Ddtsdec=disabled -Dfaac=disabled -Dfaad=disabled -Dfdkaac=disabled -Dfluidsynthmidi=disabled -Dgme=disabled -Dhls=disabled -Dkate=disabled -Dladspa=disabled -Dlv2=disabled -Dmms=disabled -Dmodplug=disabled -Dmpeg2enc=disabled -Dmplex=disabled -Dmusepack=disabled -Dneonhttpsrc=disabled -Dofa=disabled -Dopenal=disabled -Dopenexr=disabled -Dopenjpeg=disabled -Dopusparse=disabled -Dresindvd=disabled -Drsvg=disabled -Drtmp=disabled -Dsbc=disabled -Dsmoothstreaming=disabled -Dsndfile=disabled -Dsoundtouch=disabled -Dspandsp=disabled -Dsrt=disabled -Dsrtp=disabled -Dteletext=disabled -Dttmlsubs=disabled -Dvulkan=disabled -Dwaylandsink=disabled -Dwebp=disabled -Dwebrtc=disabled -Dwebrtcdsp=disabled -Dwildmidi=disabled -Dx265=disabled -Dzbar=disabled -Ddirectfb=disabled -Dflite=disabled -Dgsm=disabled -Diqa=disabled -Dmsdk=disabled -Dnvdec=enabled -Dnvenc=enabled -Dopencv=disabled -Dopenh264=disabled -Dopenmpt=disabled -Dopenni2=disabled -Dopensles=disabled -Dsctp=disabled -Dtinyalsa=disabled -Dvoaacenc=disabled -Dvoamrwbenc=disabled -Dwasapi=disabled -Dwpe=disabled -Dgobject-cast-checks=disabled -Dglib-asserts=disabled -Dglib-checks=disabled '-Dpackage-name=GStreamer NVENC and NVDEC Plugins (Arch Linux)' -Dpackage-origin=https://www.archlinux.org/ -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuildtype=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 0.61.1
Source dir: /var/tmp/pamac-build-p2501/gstreamer-nvidia/src/gst-plugins-bad
Build dir: /var/tmp/pamac-build-p2501/gstreamer-nvidia/src/build
Build type: native build

gst-plugins-bad/meson.build:1:0: ERROR: Unknown options: "dashdemux, de265, dtsdec, fluidsynthmidi, mms, neonhttpsrc, opusparse, ttmlsubs, waylandsink"

I am unsure what may have caused those errors, but it might be worth testing an alternate AUR helper. Yay, Trizen, Paru, Pacaur, are all good AUR helpers.

1 Like

Thank you, I will try and report back.

Edit:
Okay this is a mess. I edited out the offending options, only to have it fail to build later at a dependency for cuda10.1, which I can't build because this depends on gcc8, which also fails in turn.

Does anyone have an idea how to get nvdec working in a dependable manner, repeatedly?

Please report that to the AUR maintainer, the package hasn't been updated since 2020-04-15, there are already comments on why the package is broken but the dev seems to be away or simply ignoring them.

https://aur.archlinux.org/packages/gstreamer-nvidia

3 Likes

Play a video using verbose option in mpv and paste the log.
For example,

mpv -v video.mp4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.