Skip to content

mpv now has its own support for filtering by filetype #162

@user-1-2-3-4-5

Description

@user-1-2-3-4-5

https://mpv.io/manual/stable/#options-directory-filter-types

--directory-filter-types=<video,audio,image,archive,playlist>

Media file types to filter when opening directory. If the list is empty, all files are added to the playlist. (Default: video,audio,image,archive,playlist)

https://mpv.io/manual/stable/#options-image-exts
https://mpv.io/manual/stable/#options-video-exts
https://mpv.io/manual/stable/#options-archive-exts
https://mpv.io/manual/stable/#options-playlist-exts

To avoid overlapping functionality, please see if the script's "file format whitelist" is still needed.


I used to use an mpv LUA script to filter out dozens of non-video/-audio formats (I have another profile for image viewing) — I removed the said script after having used --directory-filter-types=video,audio for a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions