How to make VLC your default player¶
This page will describe how VLC Media Player can be made the default audio/video player in Windows (10, Vista/7/8, XP), macOS, and Fedora.
Windows¶
Windows 10¶
For making VLC the default player for all kinds of audio/video files:
Go to settings. (Press Windows key, type “settings”, and click on Settings).
Click on Apps.
Click on Default Apps.
For audio files, make VLC the default player for
.For video files, make VLC the default player for
.
For making VLC the default player for a specific kind of media file:
Right click on a file with the extension that should open in VLC by default.
Go to
.Select VLC Media Player from the options.
Check the box Always use this app to open <file extension> files.
Where <file extension>
is replaced by the extension of the kind of file selected.
Windows Vista, 7, 8¶
To make VLC the default player, follow these steps:
Open VLC and go to
. (Keyboard shortcut is Ctrl+P.)In the Interface tab, scroll down to .
Click on the Set up associations… button.
A dialog box will appear with the list of various audio/video file formats.
If you want some particular media files to open through VLC, check the boxes associated to those file types.
If you want to set VLC the default media player for all kind of files, check the Select All box.
Click of the Save button.
Windows XP¶
The simplest way to set VLC as the default player in Windows XP is during installation. During the setup, VLC asks if the you want certain media files to be opened in VLC by default. All the file types are checked by default.
In case VLC is installed but is not the default player, the best way to set it is by uninstalling and reinstalling VLC.
To keep your customisations, make sure to uncheck the Delete preferences and cache while uninstalling.
While reinstalling VLC, keep the boxes of those media files checked which you wish would open in VLC by default.
macOS¶
To set VLC as the default player for a specific kind of media file:
Right-click on a file with the extension that you want to open with VLC.
Click on Get Info.
In the Open with section, select VLC from the drop-down menu.
To make this change for all files of this type, click the Change All button.
For optical media like CDs/DVDs,
Go to
.Choose “CDs/DVDs” in the Hardware section.
Choose Other Application from the respective popup menu.
Choose VLC from the list.
Linux¶
Fedora¶
To make VLC the default player for all audio/video media files:
Go to Activity. (Keyboard shortcut is pressing the Super Key.)
Type
Default Applications
in the search bar.Select
.For audio files, select
VLC media player
under .For video files, select
VLC media player
under .
To make VLC the default player for a specific kind of media file, we need to associate VLC with that type of media file. There are three ways to do this.
Method 1 (GUI based)¶
Right click on a file with the extension that you want to open with VLC.
Click on Properties.
Select the Open with tab.
Select
VLC Media Player
from the list of options.Click on the button Set as default.
Method 2 (CLI based)¶
Fedora stores system defaults in /usr/share/applications/gnome-mimeapps.list
and /usr/share/applications/mimeapps.list
. To override these defaults, we need to make an entry in ~/.config/mimeapps.list
, which stores the user preference for default apps while opening files.
To make VLC the default player for a kind of media file (“.mp3” files for example), we need to associate the desktop entry of VLC (vlc.desktop
) with the MIME type of “.mp3” (audio/mpeg
).
To do this using the “xdg-mime” command:
Open terminal.
Run the following code:
xdg-mime default vlc.desktop audio/mpeg
This will add the desktop entry audio/mpeg=vlc.desktop
in both, the [Default Applications]
and [Added Associations]
groups in the ~/.config/mimeapps.list
file.
To check if “audio/mpeg” is associated with “vlc.desktop”, run the following code in the terminal:
XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default audio/mpeg
The first part of this above code tells which file(s) were queried, while the second part tells which app will be invoked when opening a “.mp3” file. The output should be:
Checking /home/<username>/.config/mimeapps.list
vlc.desktop
Where <username>
is replaced by your user name.
Method 3 (Manual)¶
Instead of using the “xdg-mime” command, the entry can be manually made in the ~/.config/mimeapps.list
file. To do this, follow these steps:
Go to home directory.
Click on the hamburger menu and check the Show hidden files box.
Open the
.config
folder.If
mimeapps.list
exists,Open the file in any editor.
Add
audio/mpeg=vlc.desktop
in the[Default Applications]
group.Add
audio/mpeg=vlc.desktop;
in the[Added Associations]
group.
Otherwise, create a file named
mimeapps.list
and paste the following code:
[Default Applications]
audio/mpeg=vlc.desktop
[Added Associations]
audio/mpeg=vlc.desktop;
Save the file.
Note: In case there are two entries under [Default Applications]
group for the same kind of media file, the one on the top is considered.
Note 2: Certain media files can have more than one MIME types (for example the MIME type of “.mp3” is both audio/mpeg
and audio/mp3
). Using anyone will do the job.