Compling MPV & FFMPEG on Ubuntu 20.04 LTS

  • sudo apt-get install git cmake gcc yasm build-essential autoconf libtool libfreetype-dev libfribidi-dev libfontconfig1-dev python libsdl2-2.0-0 libsdl2-dev libgnutls28-dev libva2 libva-dev vainfo libbluray-dev liblua5.3 liblua5.3-dev libdrm-dev libsdl2-dev libsdl2-mixer-dev libarchive-dev wayland-protocols libvdpau-dev libplacebo-dev libgdm-dev libluajit-5.1-dev libharfbuzz-dev -y
  • git clone https://github.com/mpv-player/mpv-build.git && cd mpv-build
  • ./use-mpv-release
  • ./use-ffmpeg-release
  • ./rebuild -j8
  • sudo ./install
  • echo "hwdec=vaapi" > .config/mpv/mpv.conf
  • mpv http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_60fps_normal.mp4