<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3247&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Howto enable HW accel in vlc on ASCII with e.g. AMD radeonsi driver]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3247</link>
		<description><![CDATA[The most recent posts in Howto enable HW accel in vlc on ASCII with e.g. AMD radeonsi driver.]]></description>
		<lastBuildDate>Sat, 04 Jan 2020 22:06:56 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Howto enable HW accel in vlc on ASCII with e.g. AMD radeonsi driver]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=19291#p19291</link>
			<description><![CDATA[<p>When running vlc 3.0.8 from deb-multimedia.org on my ASCII Ryzen 5 2500U driven laptop i encountered:<br />&quot;Failed to open VDPAU backend libvdpau_nvidia.so:....&quot;<br />on the terminal after starting there vlc and opening a video.<br />On beowulf the same vlc version works as expected and does not require environment variable support.</p><p>The build in GPU &quot;AMD Radeon Vega 8&quot; has the ability to accelerate videos if you have the following packages installed</p><div class="codebox"><pre><code>vdpau-driver
vdpau-video
libvdpau-va-gl1
libvdpau1
mesa-vdpau-drivers
vdpau-driver-all
vdpau-va-all
for testing helpful packages are
vdpauinfo
vainfo</code></pre></div><p>Unfortunately vlc relies on environment variables to determine the hardware acceleration possibilities of the GPU and defaults to &quot;nvidia&quot;.</p><p>To &quot;convince&quot; vlc to use the build in video decoding acceleration of the AMD GPU you add the following lines to /etc/environment</p><div class="codebox"><pre><code>sudo echo -e &quot;export LIBVA_DRIVER_NAME=radeonsi\r\nexport VDPAU_DRIVER=radeonsi&quot; &gt;&gt; /etc/environment</code></pre></div><p>should give you the following contence of&#160; /etc/environment.</p><div class="codebox"><pre><code>$ cat /etc/environment
export LIBVA_DRIVER_NAME=radeonsi
export VDPAU_DRIVER=radeonsi</code></pre></div><p>After logout and logging in again, you can check in the terminal with</p><div class="codebox"><pre><code>$ set | grep radeon
LIBVA_DRIVER_NAME=radeonsi
VDPAU_DRIVER=radeonsi</code></pre></div><p>for success.<br />vlc will now run smooth for all local users.</p><p>A sample output on the terminal would look like this</p><div class="codebox"><pre><code>$ vlc
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns -1
libva info: User requested driver &#039;radeonsi&#039;
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0</code></pre></div><p> In this mini howto I only tested my laptop with 2016 HW&#160; &quot;AMD Radeon Vega 8&quot; running on a backported 4.19.0-0.bpo.1-amd64 kernel with mesa-va-drivers and mesa-vdpau-drivers (version 18.2.8 ...).<br />If you have Intel GPUs you might need &quot;LIBVA_DRIVER_NAME=iHD&quot; or &quot;LIBVA_DRIVER_NAME=i965&quot; or ...<br />Also &quot;VDPAU_DRIVER=va_gl&quot; might be a good choice - or not.<br />You have to find out the combinations yourself. </p><p>Testing with your hardware is easy. <br />1) Make sure you have hardware acceleration turned on.<br /> run</p><div class="codebox"><pre><code>glxinfo | grep Mesa </code></pre></div><p>in a terminal and if it outputs something like </p><div class="codebox"><pre><code>...
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.8
OpenGL version string: 4.4 (Compatibility Profile) Mesa 18.2.8
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.2.8</code></pre></div><p>your&#160; acceleration is turned on.</p><p>2) check for vdpau and va packages on your system.<br />e.g. by</p><div class="codebox"><pre><code>$ dpkg --get-selections | grep vdpau</code></pre></div><p>3) set your environment variables in a terminal</p><div class="codebox"><pre><code>$ export LIBVA_DRIVER_NAME=radeonsi
$ export VDPAU_DRIVER=radeonsi</code></pre></div><p>4) run vlc in terminal</p><div class="codebox"><pre><code>$ vlc</code></pre></div><p>and open a video file</p><p>5) check for error messages of vlc in the terminal</p><div class="codebox"><pre><code>.....
Failed to open VDPAU backend libvdpau_nvidia.so:...
.....</code></pre></div><p>6) goto 3) and change the variables...</p><p>Good luck!</p><p>Jan</p>]]></description>
			<author><![CDATA[dummy@example.com (devujan)]]></author>
			<pubDate>Sat, 04 Jan 2020 22:06:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=19291#p19291</guid>
		</item>
	</channel>
</rss>
