MPV File Organizer is a lightweight Lua script for MPV Player that brings order to your media library. It instantly moves the currently playing file into a specific folder structure based on its metadata tags.
Currently optimized for Album-based organization (like the classic iTunes logic), making it perfect for both music archives and video series.
It organizes your scattered media files with a single keystroke:
- Reads the "Album" metadata tag from the currently playing file.
- Creates a subfolder with that album name inside your defined root directory.
- Copies the file into that folder.
- Opens Windows Explorer and selects the copied file for you.
- ๐ต Universal: Works with both Music (MP3, FLAC) and Video (MKV, MP4).
- ๐ก๏ธ Error-Proof: Automatically sanitizes filenames by replacing forbidden Windows characters (e.g.,
AC/DC->AC-DC). - ๐ Auto-Folder: Creates the folder if it doesn't exist, or adds to it if it does.
- โก Instant Access: Opens the destination folder immediately after copying.
- Download
mpv-album-archiver.lua. - Place it into your MPV
scriptsfolder:- Standard:
%APPDATA%\mpv\scripts\ - Portable:
portable_config\scripts\
- Standard:
By default, the script archives to E:\Band. To change this, open the .lua file with any text editor and modify the following line:
-- The root folder where files will be archived.
-- Note: Use double backslashes (\\) for Windows paths.
local ARCHIVE_ROOT = "D:\\MyArchive\\Videos"