Hi. I’ve recently installed fedora 41 on a new Asus laptop which comes with an integrated arc gpu. when trying to play an x265 or x264 encoded video using hardware acceleration on mpv it resorts back to software decoding. After checking vainfo
commands output I realized that these codecs are not supported and after some googling I think I have to install the intel-media-driver
package (from rpmfusion) to enable them. I can confirm that after installing the package and checking vainfo
again those formats are now listed as supported but now whenever I try to open any video in mpv with hardware acceleration (by adding --hwdec=auto
it crashes with a segfault. Other apps like firefox seem to be properly using hardware decoding which I can check by seeing the gpu usage going up in intel_gpu_top
. So this must be a mpv specific problem. How can I find what causes this crash? which log files should I look into? And how can I fix this?
please let me know if I should attach any other files or information.
thanks in advance
I’m a new User myself but I have almost the same Chip (Intel Ultra 9 185H). I’ll try my best here H.265 and H.264 Playback works on my System with MPV or Gnome Video without a Problem. However, they don’t work on Firefox.
Here’s what I did, maybe after doing the same, it will work for you as well?
- Open Gnome Software and make sure all Updates are installed.
- Install both RPMFusion Repos (Free and NonFree) from Configuration - RPM Fusion
- Enable AppStream MetaData with
sudo dnf update @core
- Switch to Full FFMPEG and Install Additional Codecs from Howto/Multimedia - RPM Fusion
- Install the Intel-Media-Driver (you said you’ve already done this, I’m just listing everything for others)
- Reboot
What Version of MPV are you using (Flatpak or RPM)? I’ve tested it with Fedoras RPM Package and Downloaded Testsamples from MP4 ( H.265 ) | Test Videos and Sample HEVC Video Files
I only found out that X.265 is the Open Source Variant from the H.265 Codec, maybe my Answer just got useless because I didn’t realize it sooner. I still leave this here for People who don’t care about Open Source Codecs.
I also found that installing both the x264 and x265 packages from rpmfusion helps.
@gloopyglopp @computersavvy
Thanks for all the steps. but unfortunately I have already done most of them so It didn’t really make any difference. Also I think dnf update
has been deprecated and should be replaced with the normal dnf upgrade
. I should clarify that I just meant the usual H.264 and H.265 codecs and putting X behind them was just a force of habit. I installed mpv from the fedora rpm repositories and already have the x264 and x265 packages installed from rpmfusion.
Since then I have done some digging and found out that mpv suggests using --no-config
for troubleshooting. after using this flag mpv no longer segfaults which is good but It means the problem was caused by some of my old plugins (which are not that many but still) and configuration that I forgot I had moved to this installation. So I’ll just have to remove them to find the problematic one.
Anyway thanks for all the help.