On Windows, if I just drag a srt file on to a playing video, the subtitles are displayed. On Linux, the dragging doesn't work. Now, mpv is my default player, so I just double click on the video file to play it. But I can't add subtitles. And I don't want to open my terminal everytime I play a video.
4 Answers
According to the MPV help page's subtitle section:
You need to put sub-auto
, and likely sub-paths
in your mpv.conf file (see link for examples). I'm not aware of any support for "drag and drop" subtitles addition in MPV.
-
5In mpv version 0.23.0 (Debian) drag and dropping a
.srt
file seems to work.– cYrusSep 24, 2017 at 18:31
In Linux, create a file mpv.conf in ~/.config/mpv and add the following lines:
--sub-auto=all
--sub-file-paths=sub:subtitles:<any_other_folder_with_subtitle_files>
you can add names of folder where subtitles are (could be a subdirectory within the folder of the movie).
-
2Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.– Community BotMar 27, 2022 at 10:37
I made a GUI so you can use it to make a MPV configuration file and play movies with subtitle using it (for GNU/Linux) :
I made a folder containing just the video file and the subtitle file and modified their names so that they are the same. I then played the video file on MPV and pressed v to show the subtitles. It worked!
BTW, I'm using MPV on Linux Mint 18.