How to add subtitle files after starting a video in mpv using only console

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I'm talking about this video player. Subtitles can be added when starting the video, but if I want to add subtitle files after starting to play the video, I'd have to use a gui file manager and drag and drop the subtitle file. But I'm using ranger CLI file manager. So, it's annoying for me that I have to fire up a huge gui application and wait for 3 seconds every time I want to add subtitles to a video I'm playing. And please don't tell me to always keep the gui file manager opened up.



So, I want a method to add subtitles from terminal to the already running mpv instance. How do I do that?







share|improve this question



















  • cp filmX.srt /dir/with/filmX.mkv & press j.
    – jasonwryan
    yesterday










  • Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
    – Enan Ajmain
    yesterday







  • 1




    If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
    – jasonwryan
    yesterday










  • but that requires the sub and video files to be of same name. What if that is not the case?
    – Enan Ajmain
    yesterday






  • 1




    Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
    – jasonwryan
    yesterday
















up vote
0
down vote

favorite












I'm talking about this video player. Subtitles can be added when starting the video, but if I want to add subtitle files after starting to play the video, I'd have to use a gui file manager and drag and drop the subtitle file. But I'm using ranger CLI file manager. So, it's annoying for me that I have to fire up a huge gui application and wait for 3 seconds every time I want to add subtitles to a video I'm playing. And please don't tell me to always keep the gui file manager opened up.



So, I want a method to add subtitles from terminal to the already running mpv instance. How do I do that?







share|improve this question



















  • cp filmX.srt /dir/with/filmX.mkv & press j.
    – jasonwryan
    yesterday










  • Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
    – Enan Ajmain
    yesterday







  • 1




    If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
    – jasonwryan
    yesterday










  • but that requires the sub and video files to be of same name. What if that is not the case?
    – Enan Ajmain
    yesterday






  • 1




    Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
    – jasonwryan
    yesterday












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm talking about this video player. Subtitles can be added when starting the video, but if I want to add subtitle files after starting to play the video, I'd have to use a gui file manager and drag and drop the subtitle file. But I'm using ranger CLI file manager. So, it's annoying for me that I have to fire up a huge gui application and wait for 3 seconds every time I want to add subtitles to a video I'm playing. And please don't tell me to always keep the gui file manager opened up.



So, I want a method to add subtitles from terminal to the already running mpv instance. How do I do that?







share|improve this question











I'm talking about this video player. Subtitles can be added when starting the video, but if I want to add subtitle files after starting to play the video, I'd have to use a gui file manager and drag and drop the subtitle file. But I'm using ranger CLI file manager. So, it's annoying for me that I have to fire up a huge gui application and wait for 3 seconds every time I want to add subtitles to a video I'm playing. And please don't tell me to always keep the gui file manager opened up.



So, I want a method to add subtitles from terminal to the already running mpv instance. How do I do that?









share|improve this question










share|improve this question




share|improve this question









asked yesterday









Enan Ajmain

1599




1599











  • cp filmX.srt /dir/with/filmX.mkv & press j.
    – jasonwryan
    yesterday










  • Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
    – Enan Ajmain
    yesterday







  • 1




    If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
    – jasonwryan
    yesterday










  • but that requires the sub and video files to be of same name. What if that is not the case?
    – Enan Ajmain
    yesterday






  • 1




    Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
    – jasonwryan
    yesterday
















  • cp filmX.srt /dir/with/filmX.mkv & press j.
    – jasonwryan
    yesterday










  • Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
    – Enan Ajmain
    yesterday







  • 1




    If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
    – jasonwryan
    yesterday










  • but that requires the sub and video files to be of same name. What if that is not the case?
    – Enan Ajmain
    yesterday






  • 1




    Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
    – jasonwryan
    yesterday















cp filmX.srt /dir/with/filmX.mkv & press j.
– jasonwryan
yesterday




cp filmX.srt /dir/with/filmX.mkv & press j.
– jasonwryan
yesterday












Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
– Enan Ajmain
yesterday





Would you mind using ~/Videos/file.mkv and ~/Videos/file.srt as example?
– Enan Ajmain
yesterday





1




1




If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
– jasonwryan
yesterday




If the video and sub file are already in the same directory, then just press j to toggle subs while you are watching...
– jasonwryan
yesterday












but that requires the sub and video files to be of same name. What if that is not the case?
– Enan Ajmain
yesterday




but that requires the sub and video files to be of same name. What if that is not the case?
– Enan Ajmain
yesterday




1




1




Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
– jasonwryan
yesterday




Then you need to mv filmY.srt flimX.srt... They must be the same name. Either that, or start mpv with mpv filmX.mkv --sub-file filmY.srt
– jasonwryan
yesterday















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460583%2fhow-to-add-subtitle-files-after-starting-a-video-in-mpv-using-only-console%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460583%2fhow-to-add-subtitle-files-after-starting-a-video-in-mpv-using-only-console%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?