You are not logged in.
As of a few weeks ago I noticed some videos on discord won't play. The audio works, but video stays stuck on the first frame.
A friend of mine is having the same issue, but strangely I can't find this issue being listed anywhere as I thought I would've by now.
Both of us are running latest arch, both of us have 7900xtx GPU.
GPU driver is vulkan-radeon 1:24.3.4-1
I downloaded a couple of videos from discord, they were all in MP4 format. Using ffprobe I can see that the working videos are in AV1 or H264. The broken videos are in H.265 aka HEVC.
The broken videos in question:
- Work fine in VLC
- Work fine with MPV
- Does not work in discord (as stated)
- Does not work in firefox, either downloaded or in discord client
- Does not work in brave, either downloaded or in discord client
Starting a broken video via MPV on terminal and it runs fine. Here is the output:
[aaron@aaron-arch ~]$ mpv --hwdec=auto Downloads/VID_20250301_094519_344.mp4
● Video --vid=1 (hevc 720x1280 25.7511 fps) [default]
● Audio --aid=1 (aac 1ch 44100 Hz 42 kbps) [default]
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 720x1280 vaapi[nv12]
AV: 00:00:01 / 00:00:09 (19%) A-V: -0.000
Exiting... (Quit)
I tried setting an environment variable in my .bashrc:
LIBVA_DRIVER_NAME=radeonsi
then reboot, but this had no effect.
I'm running wayland usually. Jumped into X11 for the first time ever but the problem remains.
Multimedia is not my forte. Appreciate any help!
Last edited by Terminally ill (2025-03-09 00:26:15)
Offline
https://developer.mozilla.org/en-US/doc … hevc_h.265
Firefox enables HEVC on:
Linux from Firefox 137 using either hardware or software (via the system ffmpeg).
Current version of Firefox in stable is 136, no HEVC support yet
It should work in chromium-based browsers though.
Provide output of
vainfo
vulkaninfo --summary
and Version Information table from chrome://gpu page
Last edited by Xephon (2025-03-08 15:51:26)
Offline
Thanks for clarifying. I was under the impression that browsers/clients would fall back to the system decoder no matter what, but I guess that also needs to be implemented (MIME types, is it?).
I forgot to mention - confirmed that the x265 package was installed. I presume this is required by mpv and is the primary decoder for HEVC.
Disabling hardware acceleration in discord doesn't help either.
chrome://gpu: https://0x0.st/8uUP.txt
vainfo
[aaron@aaron-arch ~]$ vainfo
Trying display: wayland
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.13.5-arch1-1)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointEncSlice
VAProfileNone : VAEntrypointVideoProc
vulkaninfo --summary
[aaron@aaron-arch ~]$ vulkaninfo --summary
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
WARNING: [Loader Message] Code 0 : Layer VK_LAYER_MANGOHUD_overlay_x86_64 uses API version 1.3 which is older than the application specified API version of 1.4. May cause issues.
[2025-03-09 07:46:25.367] [MANGOHUD] [error] [overlay_params.cpp:146] Unrecognized key: 'none'
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.304
Instance Extensions: count = 24
-------------------------------
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_headless_surface : extension revision 1
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 5
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1
Instance Layers: count = 6
--------------------------
VK_LAYER_MANGOHUD_overlay_x86 Vulkan Hud Overlay 1.3.0 version 1
VK_LAYER_MANGOHUD_overlay_x86_64 Vulkan Hud Overlay 1.3.0 version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_overlay_32 Steam Overlay Layer 1.3.207 version 1
VK_LAYER_VALVE_steam_overlay_64 Steam Overlay Layer 1.3.207 version 1
Devices:
========
GPU0:
apiVersion = 1.3.296
driverVersion = 24.3.4
vendorID = 0x1002
deviceID = 0x744c
deviceType = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
deviceName = AMD Radeon RX 7900 XTX (RADV NAVI31)
driverID = DRIVER_ID_MESA_RADV
driverName = radv
driverInfo = Mesa 24.3.4-arch1.1
conformanceVersion = 1.2.7.1
deviceUUID = 00000000-0300-0000-0000-000000000000
driverUUID = 414d442d-4d45-5341-2d44-525600000000
Offline
Close Brave. If you have any persistent extensions, close them too. Add the following flags
--enable-features=AcceleratedVideoDecodeLinuxGL,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,Vulkan,VulkanFromANGLE
--use-angle=vulkan
--use-gl=angle
and relaunch. Check if video plays. If it is add the same flags to discord.
Package x265 is not needed, it's an encoder, not a decoder.
Last edited by Xephon (2025-03-08 22:42:46)
Offline
That's done it.
I experimented a bit and only needed the first line
--enable-features=DefaultANGLEVulkan,VaapiIgnoreDriverChecks,Vulkan,VulkanFromANGLE
I could also remove "AcceleratedVideoDecodeLinuxGL", but remove any of the other flags and it stops working. It seems handy though so I'll leave it on.
One more thing - would you happen to know a permanent way to add flags for the desktop shortcuts? I'm running KDE.
I've tried editing the discord.desktop file in the past, and it reverted with an update.
Perhaps a way to tell certain apps to load with the flags?
Thanks for your help.
Last edited by Terminally ill (2025-03-09 00:07:31)
Offline
For anyone else with this problem:
I've followed the instructions on the wiki under Modify_environment_variables, and added the flags to discord using the KDE Menu Editor, in the "Command-line arguments" field.
Since I didn't edit the .desktop file directly, hopefully this will hold up through updates.
Offline
https://wiki.archlinux.org/title/Deskto … ktop_files
For system-wide .desktop files (e.g. those installed from a package), first copy the relevant .desktop file (e.g. from /usr/share/applications/) to $XDG_DATA_HOME/applications/ (e.g. ~/.local/share/applications/). This prevents your changes from being overwritten when the package gets updated during system upgrades.
KDE Menu Editor does that automatically.
If case of Brave you can also create ~/.config/brave-flags.conf and put the new flags there. Remove brave desktop entry from ~/.local/share/applications/ to avoid duplicating flags.
Offline
Hey, I have the same issue on a RX 6750 XT running vulkan-radeon 1:25.1.1-1.
Could you post your modified .desktop file ?
Does anybody know where can I add these options to Flatpak Discord .desktop file ?
I have tried a bit but can't make it work yet.
Offline