惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
Recorded Future
Recorded Future
云风的 BLOG
云风的 BLOG
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Troy Hunt's Blog
Security Latest
Security Latest
Scott Helme
Scott Helme
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
Google DeepMind News
Google DeepMind News
NISL@THU
NISL@THU
Latest news
Latest news
L
Lohrmann on Cybersecurity
P
Palo Alto Networks Blog
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
AWS News Blog
AWS News Blog
S
Schneier on Security
TaoSecurity Blog
TaoSecurity Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cyberwarzone
Cyberwarzone
T
Threat Research - Cisco Blogs
The Register - Security
The Register - Security
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
B
Blog
D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
P
Privacy & Cybersecurity Law Blog
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
Webroot Blog
Webroot Blog
Martin Fowler
Martin Fowler
The Cloudflare Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
SegmentFault 最新的问题
Vercel News
Vercel News
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments on Linux arch 7.0.10-arch1-1 connection drops / Networking, Server, and Protection GDM does not open login screen after update / Newbie Corner Cinnamon (X11) fails to load after update (Page 2) / Applications & Desktop Environments fontconfig-2:2.18.x - broken fonts? (Page 2) / Applications & Desktop Environments Bluetooth headphones connect but don't auto-switch (alsa 1.2.16) / Multimedia and Games Audio breaks after every suspend/change of VT (Page 2) / Newbie Corner EFI stub: Warning: unable to unprotect memory range (Page 3) / Kernel & Hardware Keyboard problem with the french disposition / Newbie Corner Working with two network interfaces / Networking, Server, and Protection [SOLVED] Power spikes on laptop / Laptop Issues Problems with Qt? (Page 2) / Applications & Desktop Environments plasmashell 6.6.5 crashing on loop / Applications & Desktop Environments I'm worried / Newbie Corner Help! RTL8723BS "coalesce failed with error -22" after upgrade / Laptop Issues System notifications not working on any browser / Applications & Desktop Environments installing kernels with kernel-install / Community Contributions [SOLVED] Intel AX210 issue on linux=7.0.10 / Kernel & Hardware No longer booting after Windows 11 update / Installation *SOLVED* Two PC's but different boot times - Kernel 7.0? / Kernel & Hardware gnome-shell continuous clutter_input_focus_set_cursor_location msg / Pacman & Package Upgrade Issues google-chrome, vscode and spotify are ignore my fontconfig / Applications & Desktop Environments KDE6 Akonadi default database backend / Creating & Modifying Packages Support / Routing quirks for new Creative Sound Blaster AE-X (USB ID 0 / Kernel & Hardware Kernel Panic and system freezes with 4x16 DDR5 (Page 2) / Kernel & Hardware dm-crypt and SSDs / Newbie Corner Problems with Worms WMD / Newbie Corner Freeze after login whenever upgrading nvidia/kernel / Laptop Issues Blender crashes on startup when using Vulkan backend / Applications & Desktop Environments Top 5 MDM Solutions for Linux Devices in 2026 Elden Ring crash in sound initialisation / Multimedia and Games AUR connection issues (EOF/TLS errors) (Page 5) / AUR Issues, Discussion & PKGBUILD Requests GNOME freeze after login / Applications & Desktop Environments Bash is weird now / Newbie Corner Gif as KDE avatar / Applications & Desktop Environments Export in musescore / Applications & Desktop Environments Nvidia And Amd Drivers / Applications & Desktop Environments [SOLVED] How to get pavucontrol in dark mode? / Newbie Corner Startx does not work / Applications & Desktop Environments Coturn server installtaion / Applications & Desktop Environments Could not resolve Matrix-synapse dependency error / Applications & Desktop Environments Possible solution for mesa-amber build failure with glibc-2.43 / Multimedia and Games [SOLVED] Plymouth forces English (US) layout on boot / Newbie Corner [Solved]What should I use as license if the upstream repo has none? / AUR Issues, Discussion & PKGBUILD Requests The Official Hello Everyone Thread (Page 334) / Newbie Corner [SOLVED] EPSON ET-2710 printer only printing blank pages / Newbie Corner [SOLVED]Session crashes after login, booted back to sddm / Laptop Issues [SOLVED] Asus monitor suspend results in on/off cycling / Newbie Corner Ultrahuman Discount Code [SAVEULTRA] 10% Off For Existing Customers / Creating & Modifying Packages Ultrahuman Discount Code [SAVEULTRA] 10% Off – Verified Coupon for Exi / Arch Discussion New Ultrahuman Discount Code [SAVEULTRA] 2026 – Get 20% Extra OffToday / Programming & Scripting Ultrahuman Discount Code 2026 - "SAVEULTRA" - Get 20% Extra Off / Newbie Corner Sway keybinding stops working after sleep / Applications & Desktop Environments QEMU SPICE how to achieve bidirectional clipboard with Sway? / Applications & Desktop Environments Apollo Neuro Promo Code [APOLLOZEN] $99 Off Legit Or Just Marketing Apollo Neuro Discount Code $99 Off [APOLLOZEN] Secret Savings Trick HTTP session disconnect on WI-FI disconnect / Networking, Server, and Protection [SOLVED] Cannot chain-load into Windows with GRUB. / Newbie Corner [SOLVED] Font hinting appears to be disabled on Qt6 applications? / Applications & Desktop Environments Black screen after waking up from sleep/hybernate/suspend. / Newbie Corner Diskless booting failing, ipconfig no devices to configure / Kernel & Hardware Strange Font Issue Across System / Newbie Corner [SOLVED] Laptop doesn't wake from sleep on NVIDIA 595.71.05 drivers / Newbie Corner Touchpad randomly stops moving (clicks still work) on Hyprland / Laptop Issues Random hangs on Ryzen Mobile after 6.18.13 ? / Kernel & Hardware [SOLVED] Can't get IP address for USB Ethernet device (KORG Wavestate) / Networking, Server, and Protection Laptop display does not turn on after being off for around 50 min / Multimedia and Games Text Corruption in GPU Screen Recorder GUI / Applications & Desktop Environments Mouse not correctly recognized during boot (Page 2) / Kernel & Hardware PKGBUILD review / AUR Issues, Discussion & PKGBUILD Requests Touchpad not working / Newbie Corner
Hardware acceleration for R7 340 / Kernel & Hardware
V1del · 2026-06-26 · via Arch Linux Forums

#1 Today 12:00:52

Skilowi
Member
Registered: 2025-08-03
Posts: 24
Website

Hardware acceleration for R7 340

Howdy. I wanted to utilize second GPU for encoding for OBS. Here is my setup:
Arch Linux, OBS 32.1.2
MSI Pro B650-P Wifi
Ryzen 7 7500F
2x 16GB Kingston DDR5
GPU1: Nvidia RTX4060
GPU2: AMD R7 340

https://obsproject.com/logs/IIYI4lu71VcFqNYX

Not a single mention of second GPU. Only obs-browser saying "blacklisted driver detected".
I installed AMF (Legacy Driver) (since 300 series is GCN 1.0 and Fuji), the amf-amdgpu-pro as recommended by https://wiki.archlinux.org/title/Hardwa … on#AMD/ATI but even reboots didnt change a thing.
amdgpu_top reports 0% utilization.
Could it be that this OEM GPU is so chopped off features it cannot support hardware encoding?


Moron from Poland necromancing old ThinkPads and Computers.
I also learn Mechatronics.

#2 Today 12:13:28

Skilowi
Member
Registered: 2025-08-03
Posts: 24
Website

Re: Hardware acceleration for R7 340

Here you can enjoy some more info which might be usable:

skilowi@Komputer ~ > lspci -vnnd ::03xx
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD107 [GeForce RTX 4060] [10de:2882] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: NVIDIA Corporation Device [10de:1801]
    Flags: bus master, fast devsel, latency 0, IRQ 91, IOMMU group 12
    Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
    Memory at f800000000 (64-bit, prefetchable) [size=8G]
    Memory at fa00000000 (64-bit, prefetchable) [size=32M]
    I/O ports at f000 [size=128]
    Expansion ROM at f6000000 [virtual] [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340/430 / Radeon 520 OEM] [1002:6611] (rev 87) (prog-if 00 [VGA controller])
    Subsystem: PC Partner Limited / Sapphire Technology Device [174b:1352]
    Flags: bus master, fast devsel, latency 0, IRQ 109, IOMMU group 15
    Memory at fb00000000 (64-bit, prefetchable) [size=4G]
    Memory at f6700000 (64-bit, non-prefetchable) [size=256K]
    I/O ports at e000 [size=256]
    Expansion ROM at f6740000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: amdgpu
    Kernel modules: radeon, amdgpu

After amf-amdgpu-pro installation:

skilowi@Komputer ~ > VK_DRIVER_FILES=/usr/share/vulkan/icd.d/amd_pro_icd64.json ffmpeg -hwaccel auto -vaapi_device /dev/dri/renderD128 -i WK.webm -c:v h264_amf -rc 1 -b:v 8M h264_amf_8M.mp4
ffmpeg version n8.1.2 Copyright (c) 2000-2026 the FFmpeg developers
  built with gcc 16.1.1 (GCC) 20260430
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-lcms2 --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan --disable-decoder=magicyuv
  libavutil      60. 26.102 / 60. 26.102
  libavcodec     62. 28.102 / 62. 28.102
  libavformat    62. 12.102 / 62. 12.102
  libavdevice    62.  3.102 / 62.  3.102
  libavfilter    11. 14.102 / 11. 14.102
  libswscale      9.  5.102 /  9.  5.102
  libswresample   6.  3.102 /  6.  3.102
Input #0, matroska,webm, from 'WK.webm':
  Metadata:
    COMPATIBLE_BRANDS: iso6av01mp41
    MAJOR_BRAND     : dash
    MINOR_VERSION   : 0
    ENCODER         : Lavf62.12.102
  Duration: 00:01:48.98, start: 0.000000, bitrate: 284 kb/s
  Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn (default)
    Metadata:
      HANDLER_NAME    : ISO Media file produced by Google Inc.
      DURATION        : 00:01:48.966000000
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 00:01:48.981000000
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (libdav1d) -> h264 (h264_amf))
  Stream #0:1 -> #0:1 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
0126-05-26 14:11:09 789C06C0 [AMFDeviceVulkanImpl]   Error: ../../../../../runtime/src/core/DeviceVulkanImpl.cpp(854):Assertion failed:Init() failed to vkCreateInstance, Error=-9
0126-05-26 14:11:09 789C06C0 [AMFDeviceVulkanImpl]   Error: ../../../../../runtime/src/core/DeviceVulkanImpl.cpp(672):AMF_ERROR 1 : AMF_FAIL: CreateInstance() failed
0126-05-26 14:11:09 789C06C0 [AMFContextImpl]   Error: ../../../../../runtime/src/core/ContextImpl.cpp(1072):AMF_ERROR 1 : AMF_FAIL: pDeviceVulkan->Init(pVulkanDevice)
[AMF @ 0x7fc364005340] AMF failed to initialise on the given Vulkan device: 1.
[h264_amf @ 0x55d97384abc0] Failed to create  hardware device context (AMF) : Function not implemented
[vost#0:0/h264_amf @ 0x55d9738c9240] [enc:h264_amf @ 0x55d9738ec780] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x55d9738d6440] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x55d9738d6440] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x55d9738d6440] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_amf @ 0x55d9738c9240] [enc:h264_amf @ 0x55d9738ec780] Could not open encoder before EOF
[vost#0:0/h264_amf @ 0x55d9738c9240] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_amf @ 0x55d9738c9240] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x55d97384d140] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A elapsed=0:00:00.04   
[aac @ 0x55d9738ca980] Qavg: 183.562
Conversion failed!

After I put new GPU in my BIOS cleared. Are there any settings which I should have set to make it work better?


Moron from Poland necromancing old ThinkPads and Computers.
I also learn Mechatronics.

#3 Today 12:43:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,137

Re: Hardware acceleration for R7 340

Hint: try higher listed options first.

VA-API on Radeon HD 2000 and newer GPUs via mesa.

The r7 340 is much newer then the HD 2000 .

remove the legacy amf-amdgpu-pro stuff and post the output of vainfo (comes with libva-utils) .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

#4 Today 13:12:39

Skilowi
Member
Registered: 2025-08-03
Posts: 24
Website

Re: Hardware acceleration for R7 340

I -Rns'ed the amf-amdgpu-pro.

skilowi@Komputer ~ > vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.23 (libva 2.23.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileAV1Profile0            :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileHEVCMain12             :    VAEntrypointVLD
      VAProfileVP9Profile2            :    VAEntrypointVLD
      VAProfileHEVCMain444            :    VAEntrypointVLD
      VAProfileHEVCMain444_10         :    VAEntrypointVLD
      VAProfileHEVCMain444_12         :    VAEntrypointVLD

I think it's showing for my RTX.
running vainfo -a returns ~40kB text file and I don't know what should I pass in --device flag to point it toward my R7.


Moron from Poland necromancing old ThinkPads and Computers.
I also learn Mechatronics.

#5 Today 14:17:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,253

Re: Hardware acceleration for R7 340

Please use [ code ] and not [ quote ] for outputs.

Did you export an environment variable forcing VAAPI to the nvidia driver?

https://wiki.archlinux.org/title/Hardwa … ing_VA-API