How to Set Up an MP4 Video Player on Ubuntu

If you need an MP4 video player on Ubuntu, VLC is the easiest place to start. It has a full graphical interface, handles the MP4 container and common codecs such as H.264 and AAC, and is available through Ubuntu's software tools. If you prefer a smaller, keyboard- and command-line-friendly player, mpv is an excellent alternative.

Option 1: Install VLC on Ubuntu

For most people, VLC is the simplest choice because you can install it from Ubuntu's App Center and open videos without hunting for separate codec packs. VideoLAN lists MP4/MOV/3GP among VLC's supported input formats and also documents support for widely used video codecs including H.264. See the official VLC features page for format details.

Install VLC from App Center

  1. Open App Center from the Ubuntu dock, or search for it from Activities.
  2. Search for VLC.
  3. Select VLC media player and choose Install.
  4. Enter your password if Ubuntu asks for authorization, then wait for the installation to finish.

Canonical's current App Center documentation notes that applications can be offered as Snap or Debian packages and that App Center may list the Snap first when both are available.

Ubuntu App Center showing VLC media player in search results with the Install button
Search for VLC in App Center, select the media player, and choose Install.

Install VLC from Terminal instead

If you prefer APT, open Terminal and run:

sudo apt update
sudo apt install vlc

The VLC package is available in Ubuntu's official archive; you can verify the current package on the Ubuntu Packages page for VLC. VideoLAN also provides an official Snap installation route with sudo snap install vlc. You only need one installation method.

Ubuntu Terminal window showing the sudo apt install vlc command
APT is a straightforward alternative when you want to install VLC from Terminal.

Play an MP4 file in VLC

  1. Launch VLC media player from the applications menu.
  2. Select Media > Open File.
  3. Browse to your MP4 file, select it, and click Open. Playback should start immediately.

You can also right-click an MP4 file in Files and choose VLC from the Open With choices. Once the video is playing, use VLC's normal pause, seek, volume, subtitle, and fullscreen controls.

VLC media player on Ubuntu with Media Open File selected and an MP4 file chosen in the file picker
Use Media > Open File in VLC, then select the MP4 you want to watch.

Option 2: Use mpv for a lighter MP4 player

mpv is a strong alternative if you like a minimal interface or want to launch videos directly from Terminal. Ubuntu packages mpv in its repositories, and the Ubuntu mpv package page lists the current package for Ubuntu 26.04 LTS.

Install it with:

sudo apt update
sudo apt install mpv

Then play a video by passing the file path to mpv:

mpv "/path/to/video.mp4"

You can also launch mpv graphically and drag a media file onto its window on supported desktops. The official mpv manual documents file-path playback, interactive controls, and drag-and-drop behavior.

mpv media player on Ubuntu playing an MP4 video with the playback control bar visible
mpv keeps the interface minimal while still providing basic playback controls.

VLC or mpv: which should you choose?

PlayerBest forWhy choose it
VLCMost Ubuntu usersFull GUI, broad format support, easy file opening, subtitles, playlists, and streaming features.
mpvMinimalist or advanced usersLight interface, excellent command-line workflow, configurable controls, and scripting support.

If an MP4 file still will not play

An MP4 file is a container, so two files with the same .mp4 extension can contain different video and audio codecs. If one MP4 fails but others play normally, the problem may be the file itself or an unusual codec rather than Ubuntu.

  • Try a second, known-good MP4 file to confirm the player is working.
  • Update your package lists and install available VLC or mpv updates through Ubuntu's normal software updater.
  • Try the same file in both VLC and mpv. If both fail, the file may be damaged or encoded in a way your installed build cannot decode.
  • If the video opens but is choppy, test playback without other heavy applications running and make sure your graphics drivers and system updates are current.

For a straightforward Ubuntu setup, start with VLC. Keep mpv in mind when you want a leaner player or a command-line workflow.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.