How to Start mpv in Fullscreen Mode by Default?
This article provides a quick overview and guide on how to launch the mpv media player directly into fullscreen mode using command-line arguments. You will learn the exact flags to use, how to make the setting permanent via configuration files, and troubleshooting tips for different operating systems.
The Fullscreen Command-Line Argument
To launch mpv in fullscreen mode from your terminal or command
prompt, you simply need to pass the --fs or
--fullscreen flag when opening a file.
mpv --fs video.mp4Both arguments function identically and force the video window to occupy the entire screen immediately upon launching.
Making Fullscreen the Default Behavior
If you prefer mpv to always open in fullscreen mode without typing
the flag every time, you can add it to your configuration file
(mpv.conf).
Finding Your Configuration File
Depending on your operating system, the mpv.conf file is
typically located in one of the following directories:
- Linux/macOS:
~/.config/mpv/mpv.conf - Windows:
C:\Users\Username\AppData\Roaming\mpv\mpv.conf
Updating the File
Open or create the file in a text editor and add the following line:
fs=yes
Once saved, mpv will automatically apply the fullscreen setting every time a video is launched, regardless of whether you open it from the command line or by double-clicking a file.