Skip to content

Instantly share code, notes, and snippets.

@fstanis
Created July 8, 2025 10:05
Show Gist options
  • Save fstanis/ed1ae0b150d115dd0975059eaa42e164 to your computer and use it in GitHub Desktop.
Save fstanis/ed1ae0b150d115dd0975059eaa42e164 to your computer and use it in GitHub Desktop.
mpv on ChromeOS with hardware decoding

Initial setup

  1. Enable the Linux development environment
  2. Set up FlatHub
  3. Install mpv from FlatHub
    flatpak install flathub io.mpv.Mpv
  4. Edit mpv.conf located in $HOME/.local/share/flatpak/app/io.mpv.Mpv/current/active/files/etc/mpv/mpv.conf
    vo=gpu
    gpu-api=opengl
    opengl-es=auto
    vd-lavc-dr=yes
    gpu-context=wayland
    

Everyday use

  1. Right-click on the Linux terminal in your apps and click on Shut down Linux
  2. Start crosh by pressing Ctrl+Alt+T
  3. Type in vmc start --enable-gpu --enable-big-gl termina
  4. Wait for termina to start, the prompt will change from crosh> to (termina) chronos@localhost.
  5. With crosh still open, start another regular linux terminal by clicking on the Terminal app
  6. Type glxinfo -B (install meta-utils if it's not available) and verify that it says Accelerated: yes in the output
  7. Use mpv with flatpak run io.mpv.Mpv <filename>

Note that you'll have to follow these steps every time you restart your computer or when Linux shuts down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment