Ubuntu – make MPV player to pick up any subtitles available in the folder

subtitlevideo

GitHub Source Page

i'm using this really amazing video player in ubuntu, i just want to make little change in it's behaviour with subtitles (.srt files)

Default Behaviour

currently MPV shows subtitles which are hard coded in a video file or srt file which is exactly named as the video file, for eg it'll pick up the subtitle file if the name of video file is video.mkv and name of the subtitle file is video.srt , but it won't pick it up if it's different.

What I want to achieve

it should pick up any and all the subtitles which are available in the same folder as the video file, automatically

Best Answer

To provide an actual mpv only answer, you can specify the mechanism by which subtitle tracks are loaded in your mpv.conf file located at .config/mpv.conf as explained here in the mpv manual. In your case you would add sub-auto=all.