Benutzer-Werkzeuge

Webseiten-Werkzeuge


content:linux_fedora

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
content:linux_fedora [2026/04/10 12:36] – [For AMD] obel1xcontent:linux_fedora [2026/04/10 14:22] (aktuell) obel1x
Zeile 7: Zeile 7:
 ===== Graphics ===== ===== Graphics =====
  
-Out of the Box there are not all multimedia codecs installed.+==== Basic codecs ==== 
 + 
 +Out of the Box there are not all multimedia codecs installed which are needed to decode propietary formats.
  
 To use h264 and vlc, you need to: To use h264 and vlc, you need to:
Zeile 18: Zeile 20:
 </code> </code>
  
-==== For AMD ====+==== Interfaces ====
  
 +There are different Hardware/Software Interfaces that are important for Video acceleration in 2D and 3D.
 +
 +From [[https://wiki.archlinux.org/title/Hardware_video_acceleration|https://wiki.archlinux.org/title/Hardware_video_acceleration]] :
 +
 +[[https://en.wikipedia.org/wiki/Graphics_processing_unit#GPU_accelerated_video_decoding_and_encoding|Hardware video acceleration]] makes it possible for the video card to decode/encode video, thus offloading the CPU and saving power.
 +
 +There are several ways to achieve this on Linux:
 +
 +  * [[https://en.wikipedia.org/wiki/Video_Acceleration_API|Video Acceleration API]] (VA-API) is a specification and open source library to provide both hardware accelerated video encoding and decoding, developed by Intel.
 +  * [[https://en.wikipedia.org/wiki/VDPAU|Video Decode and Presentation API for Unix]] (VDPAU) is an open source library and API to offload portions of the video decoding process and video post-processing to the GPU video-hardware, developed by NVIDIA.
 +  * [[https://gpuopen.com/advanced-media-framework/|Advanced Media Framework SDK]] (AMF) is an open source framework which allows "Optimal" access to AMD GPUs for multimedia processing, developed by AMD.
 +  * [[https://en.wikipedia.org/wiki/Nvidia_NVDEC|NVDEC]]/[[https://en.wikipedia.org/wiki/Nvidia_NVENC|NVENC]] - NVIDIA's proprietary APIs for hardware video acceleration, used by NVIDIA GPUs from Fermi onwards.
 +  * [[https://www.khronos.org/blog/an-introduction-to-vulkan-video|Vulkan Video]] is an extension of the [[https://wiki.archlinux.org/title/Vulkan|Vulkan]] graphics API designed to support hardware-accelerated video encoding and decoding.
 +
 +For comprehensive overview of driver and application support see [[https://wiki.archlinux.org/title/Hardware_video_acceleration#Comparison_tables|#Comparison tables]].
 +
 +=== VA-API ===
 +
 +This is the most used Interface for video acceleration and decoding itself. The example here is a very old card still supported by AMDGPU:
 <code> <code>
 +
 +root@pc-000700080009:~# vainfo
 +Trying display: wayland
 +Trying display: x11
 +libva info: VA-API version 1.22.0
 +libva info: User environment variable requested driver 'radeonsi'
 +libva info: Trying to open /usr/lib64/dri-nonfree/radeonsi_drv_video.so
 +libva info: Trying to open /usr/lib64/dri-freeworld/radeonsi_drv_video.so
 +libva info: Found init function __vaDriverInit_1_22
 +libva info: va_openDriver() returns 0
 +vainfo: VA-API version: 1.22 (libva 2.22.0)
 +vainfo: Driver version: Mesa Gallium driver 25.3.6 for AMD CAICOS (DRM 2.51.0 / 6.19.11-200.fc43.x86_64, LLVM 21.1.8)
 +vainfo: Supported profile and entrypoints
 +      VAProfileMPEG2Simple            : VAEntrypointVLD
 +      VAProfileMPEG2Main              : VAEntrypointVLD
 +      VAProfileVC1Simple              : VAEntrypointVLD
 +      VAProfileVC1Main                : VAEntrypointVLD
 +      VAProfileVC1Advanced            : VAEntrypointVLD
 +      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
 +      VAProfileH264Main               : VAEntrypointVLD
 +      VAProfileH264High               : VAEntrypointVLD
 +      VAProfileH264High10             : VAEntrypointVLD
 +      VAProfileNone                   : VAEntrypointVideoProc
 +
 +</code>
 +
 +Please check to use the right driver (see beneath), and not maybe r600, which would be the first matching driver, if the environment LIBVA_DRIVER_NAME had not been set.
 +
 +=== VDPAU ===
 +
 +Basically a good way, to put load from the cpu to gpu. But:
 +
 +The Mesa-Project, which is the base-project for all desktops and many programs that did support the interface, now does not any more, which is why that interface from Mesa will die:
 +
 +<code>
 +https://forums.gentoo.org/viewtopic.php?t=1177112
 +
 +Post by grknight » Wed Mar 18, 2026 12:48 pm
 +Oh, so mesa removed VDPAU support with version 25.3.0
 +
 +Now anything that depended on it should be removed. Please disable all vdpau on your system.
 +
 +Edit: Try vaapi instead system-wide. Mesa should provide a vaapi driver for radeonsi
 +
 +</code>
 +
 +To still be able to unload rendering to GPU, you ma y use the LIBVDPAU-VA-GL ( [[https://github.com/i-rinat/libvdpau-va-gl|https://github.com/i-rinat/libvdpau-va-gl]] ). This Library will offer VDPAU by using VA-API and OpenGL.
 +
 +See beaneath for setup.
 +
 +=== Vulkan ===
 +
 +This is the actual framework for using 3d graphics in Linux. It will be the best supported Interface in the Future.
 +
 +To tes, use:
 +<code>
 +
 +vulkaninfo | grep VK_KHR_video_
 +
 +</code>
 +
 +==== For AMD ====
 +<code>
 +
 dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
 dnf install libavcodec-freeworld --allowerasing dnf install libavcodec-freeworld --allowerasing
 dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
 dnf install mesa-va-drivers-freeworld --allowerasing dnf install mesa-va-drivers-freeworld --allowerasing
 +dnf install libvdpau-va-gl
  
 </code> </code>
  
-Wichtig: Der default Radeon-Treiber sollte ersetzt werden durch den AMDGPU- treibersiehe hier: [[:content:user:obel1x:public:leap152_amd#amdgpu|AMDGPU]]+By default, most Linux deliver radeondriver, which is open source and stablebut lacks important features.
  
-oder so: +For AMD, one should switch to AMDGPU if possible (supported card by that driver).
-<code>+
  
 +To do so:
 +
 +<code>
 root@pc-000700080009:~# sudo nano /etc/default/grub root@pc-000700080009:~# sudo nano /etc/default/grub
  
 </code> </code>
  
-An die Kernelzeile (GRUB_CMDLINE_LINUX) in die Parameter anhängen:+Add to GRUB_CMDLINE_LINUX the following Parameters:
  
 <file> <file>
Zeile 44: Zeile 132:
 </file> </file>
  
-Dann Update von Grub:+and update Grub:
  
 <code> <code>
Zeile 51: Zeile 139:
 </code> </code>
  
-Konfiguration der Umgebungsvariabeln:+Blacklist radeon - this is needed for Vulkan ro work properly:
  
-Dieser Treiber unterstützt VA-API von Haus aus:\\ +<code> 
-Wichtig ist, dass keine (!) KompatibilitätsLayer zwischen VDPAU ind VA-API installiert werdenEs darf daher nur libvdpau installiert sein:+root@pc-000700080009:~# echo "blacklist radeon"> /etc/modprobe.d/blacklist-radeon.conf 
 + 
 +</code> 
 + 
 +Reboot. lsmod should than not show radeon any more. 
 + 
 +Environmentto make the Interfaces using the Driver
  
 <code> <code>
-root@pc-000700080009:/etc# dnf list --installed | grep vdpau +root@pc-000700080009:~# nano /etc/environment
-libvdpau.x86_64                                      1.5-10.fc43+
  
 </code> </code>
  
-Keine:+and put the lines in it:
  
-  *+<file> 
 +LIBVA_DRIVER_NAME=radeonsi 
 +# 10.04.2026 No support from mesa for VDPAU any more, use libvdpau-va-gl 
 +VDPAU_DRIVER=va_gl
  
-**libva-vdpau-driver** +</file>
-  *+
  
-**libvdpau-va-gl** +Hint: Also the driver is changed to **AMDGPU**, you need to set **radeonsi**  as value for LIBVA there! 
-==== Testen der Schnittstellen ====+ 
 +VDPAU will work via VA-API:
  
-=== VA-API === 
 <code> <code>
- +root@pc-000700080009:~export VDPAU_DRIVER=va_gl 
-root@pc-000700080009:/etcvainfo +root@pc-000700080009:~# vdpauinfo 
-Trying displaywayland +display: :0   screen: 0
-Trying display: x11+
 libva info: VA-API version 1.22.0 libva info: VA-API version 1.22.0
-libva info: Trying to open /usr/lib64/dri-nonfree/r600_drv_video.so +libva info: User environment variable requested driver 'radeonsi' 
-libva info: Trying to open /usr/lib64/dri-freeworld/r600_drv_video.so+libva info: Trying to open /usr/lib64/dri-nonfree/radeonsi_drv_video.so 
 +libva info: Trying to open /usr/lib64/dri-freeworld/radeonsi_drv_video.so
 libva info: Found init function __vaDriverInit_1_22 libva info: Found init function __vaDriverInit_1_22
 libva info: va_openDriver() returns 0 libva info: va_openDriver() returns 0
-vainfo: VA-API version: 1.22 (libva 2.22.0) +API version: 1 
-vainfoDriver version: Mesa Gallium driver 25.3.6 for AMD CAICOS (DRM 2.51.0 / 6.19.11-200.fc43.x86_64, LLVM 21.1.8)+Information stringOpenGL/VAAPI backend for VDPAU
  
 </code> </code>
  
 +Do not install / use
 +
 +  * **libva-vdpau-driver**
 +**This would be the other way round (use VA-API via VDPAU Driver!)**
  
 ==== Intel ==== ==== Intel ====
-<code> 
  
 +<code>
 dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
 dnf install libavcodec-freeworld --allowerasing dnf install libavcodec-freeworld --allowerasing
Zeile 98: Zeile 197:
  
 </code> </code>
 +
 +Environment: to make the Interfaces using the Driver
 +
 +<code>
 +root@pc-000700080009:~# nano /etc/environment
 +
 +</code>
 +
 +and put the lines in it:
 +
 +<file>
 +LIBVA_DRIVER_NAME=intel
 +VDPAU_DRIVER=intel
 +
 +</file>
  
 ==== NVIDIA ==== ==== NVIDIA ====
content/linux_fedora.1775817362.txt.gz · Zuletzt geändert: von obel1x

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki