Difference between revisions of "AMD: Installing Linux Mint 20"

From fit-PC wiki
Jump to: navigation, search
(Created page with "== Supported devices == * This guide is valid for fit-PC3/3i, fit-PC4, fitlet1, fitlet1-H/T == Prepare installation media == * A USB Flash drive of at least 2GB should be use...")   (change visibility)
 
(Video acceleration drivers)   (change visibility)
 
(8 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
* Login using previously selected username and password.
 
* Login using previously selected username and password.
  
== Radeon open-source graphics drivers ==
+
== Video acceleration drivers ==
 
<pre>
 
<pre>
 
$ sudo apt update
 
$ sudo apt update
$ sudo apt install vdpau-va-driver vdpauinfo mesa-vdpau-drivers libvdpau-va-gl1 xserver-xorg-video-amdgpu libdrm-amdgpu1
+
$ sudo apt install va-driver-all mint-meta-codecs vainfo
$ sudo cd /usr/lib/x86_64-linux-gnu/dri/
+
$ sudo ln -s vdpau_drv_video.so radeonsi_drv_video.so
+
$ sudo ln -s vdpau_drv_video.so r600_drv_video.so
+
 
</pre>
 
</pre>
Then run vdpauinfo command, you should see list of supported profiles, for example on fitlet1:
+
Then run vainfo command, you should see list of supported profiles, for example on fitlet1:
 
<pre>
 
<pre>
$ vdpauinfo
+
$ vainfo
display: :0  screen: 0
+
libva info: VA-API version 1.7.0
API version: 1
+
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
Information string: G3DVL VDPAU Driver Shared Library version 1.0
+
libva info: Found init function __vaDriverInit_1_7
 
+
libva info: va_openDriver() returns 0
Video surface:
+
vainfo: VA-API version: 1.7 (libva 2.6.0)
 
+
vainfo: Driver version: Mesa Gallium driver 20.0.8 for AMD KABINI (DRM 2.50.0, 5.4.0-40-generic, LLVM 10.0.0)
name  width height types
+
vainfo: Supported profile and entrypoints
-------------------------------------------
+
      VAProfileMPEG2Simple            : VAEntrypointVLD
420    16384 16384  NV12 YV12
+
      VAProfileMPEG2Main              : VAEntrypointVLD
422    16384 16384  UYVY YUYV
+
      VAProfileVC1Simple              : VAEntrypointVLD
444    16384 16384  Y8U8V8A8 V8U8Y8A8
+
      VAProfileVC1Main                : VAEntrypointVLD
 
+
      VAProfileVC1Advanced            : VAEntrypointVLD
Decoder capabilities:
+
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
 
+
       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
name                        level macbs width height
+
      VAProfileH264Main              : VAEntrypointVLD
----------------------------------------------------
+
      VAProfileH264Main              : VAEntrypointEncSlice
MPEG1                          --- not supported ---
+
      VAProfileH264High              : VAEntrypointVLD
MPEG2_SIMPLE                    3  9216  2048  1152
+
       VAProfileH264High              : VAEntrypointEncSlice
MPEG2_MAIN                      3  9216  2048  1152
+
      VAProfileNone                   : VAEntrypointVideoProc
H264_BASELINE                  41  9216  2048  1152
+
H264_MAIN                      41  9216  2048  1152
+
H264_HIGH                      41  9216  2048  1152
+
VC1_SIMPLE                      1 9216  2048  1152
+
VC1_MAIN                        2 9216  2048  1152
+
VC1_ADVANCED                    4 9216  2048  1152
+
MPEG4_PART2_SP                  3  9216  2048  1152
+
MPEG4_PART2_ASP                5  9216  2048  1152
+
DIVX4_QMOBILE                  --- not supported ---
+
DIVX4_MOBILE                  --- not supported ---
+
DIVX4_HOME_THEATER            --- not supported ---
+
DIVX4_HD_1080P                --- not supported ---
+
DIVX5_QMOBILE                  --- not supported ---
+
DIVX5_MOBILE                  --- not supported ---
+
DIVX5_HOME_THEATER            --- not supported ---
+
DIVX5_HD_1080P                --- not supported ---
+
H264_CONSTRAINED_BASELINE       0  9216  2048  1152
+
H264_EXTENDED                  --- not supported ---
+
H264_PROGRESSIVE_HIGH          --- not supported ---
+
H264_CONSTRAINED_HIGH          --- not supported ---
+
H264_HIGH_444_PREDICTIVE       --- not supported ---
+
HEVC_MAIN                      --- not supported ---
+
HEVC_MAIN_10                   --- not supported ---
+
HEVC_MAIN_STILL                --- not supported ---
+
HEVC_MAIN_12                  --- not supported ---
+
HEVC_MAIN_444                  --- not supported ---
+
...
+
 
</pre>
 
</pre>
 
  
 
== MPV media player ==
 
== MPV media player ==
Line 77: Line 46:
 
* Compatible with the most popular video formats
 
* Compatible with the most popular video formats
  
  $ sudo apt install mpv youtube-dl
+
  $ sudo apt install mpv youtube-dl mint-meta-codecs
  
 
For example, fitlet1 is capable to play full HD video from the local file:
 
For example, fitlet1 is capable to play full HD video from the local file:
 
<pre>
 
<pre>
$ mpv -fs --hwdec=vdpau ~/Videos/big_buck_bunny/big_buck_bunny_1080p_h264.mov
+
$ mpv -fs ~/Videos/big_buck_bunny/big_buck_bunny_1080p_h264.mov  
Playing: ~/Videos/big_buck_bunny/big_buck_bunny_1080p_h264.mov
+
 
  (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
 
  (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
 
  (+) Audio --aid=1 --alang=eng (*) (aac 6ch 48000Hz)
 
  (+) Audio --aid=1 --alang=eng (*) (aac 6ch 48000Hz)
 
AO: [pulse] 48000Hz 5.1 6ch float
 
AO: [pulse] 48000Hz 5.1 6ch float
Using hardware decoding (vdpau).
+
Using hardware decoding (vaapi).
VO: [opengl] 1920x1080 vdpau[yuv420p]
+
VO: [gpu] 1920x1080 vaapi[nv12]
 
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s+0KB
 
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s+0KB
 
</pre>
 
</pre>
 
Or the same content directly from the youtube:
 
Or the same content directly from the youtube:
 
<pre>
 
<pre>
# NOTE: need to install fixed youtube-dl package
+
$ mpv -fs https://www.youtube.com/watch?v=uPvKTCo4YD0
$ wget http://mirrors.kernel.org/ubuntu/pool/universe/y/youtube-dl/youtube-dl_2019.09.12.1-0ubuntu1_all.deb
+
$ sudo dpkg -i youtube-dl_2019.09.12.1-0ubuntu1_all.deb
+
</pre>
+
<pre>
+
$ mpv -fs --hwdec=vdpau https://www.youtube.com/watch?v=uPvKTCo4YD0
+
Playing: https://www.youtube.com/watch?v=uPvKTCo4YD0
+
 
  (+) Video --vid=1 (*) (h264 1920x1080)
 
  (+) Video --vid=1 (*) (h264 1920x1080)
  (+) Audio --aid=1 --alang=und (*) 'DASH audio' (aac 2ch 44100Hz) (external)
+
  (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
AO: [pulse] 44100Hz stereo 2ch float
+
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vdpau).
+
Using hardware decoding (vaapi).
VO: [opengl] 1920x1080 vdpau[yuv420p]
+
VO: [gpu] 1920x1080 vaapi[nv12]
 
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s
 
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s
 
</pre>
 
</pre>

Latest revision as of 08:28, 21 July 2020

Supported devices

  • This guide is valid for fit-PC3/3i, fit-PC4, fitlet1, fitlet1-H/T

Prepare installation media

Base installation of Linux Mint

  • Follow the standard Linux Mint installation procedure - choose timezone, partitions, username, password etc.
  • Disconnect the installation media and reboot.
  • Login using previously selected username and password.

Video acceleration drivers

$ sudo apt update
$ sudo apt install va-driver-all mint-meta-codecs vainfo

Then run vainfo command, you should see list of supported profiles, for example on fitlet1:

$ vainfo 
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Mesa Gallium driver 20.0.8 for AMD KABINI (DRM 2.50.0, 5.4.0-40-generic, LLVM 10.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileNone                   :	VAEntrypointVideoProc

MPV media player

  • Well known free and open-source multimedia player
  • Supports GPU accelerated video decoding and gives excellent playback quality
  • Compatible with the most popular video formats
$ sudo apt install mpv youtube-dl mint-meta-codecs

For example, fitlet1 is capable to play full HD video from the local file:

$ mpv -fs ~/Videos/big_buck_bunny/big_buck_bunny_1080p_h264.mov 
 (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 6ch 48000Hz)
AO: [pulse] 48000Hz 5.1 6ch float
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s+0KB

Or the same content directly from the youtube:

$ mpv -fs https://www.youtube.com/watch?v=uPvKTCo4YD0
 (+) Video --vid=1 (*) (h264 1920x1080)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s

See also