How to add subtitle files after starting a video in mpv using only console
Clash 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?
command-line mpv
 |Â
show 2 more comments
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?
command-line mpv
cp filmX.srt /dir/with/filmX.mkv
& pressj
.
â 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 pressj
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 tomv filmY.srt flimX.srt
... They must be the same name. Either that, or start mpv withmpv filmX.mkv --sub-file filmY.srt
â jasonwryan
yesterday
 |Â
show 2 more comments
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?
command-line mpv
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?
command-line mpv
asked yesterday
Enan Ajmain
1599
1599
cp filmX.srt /dir/with/filmX.mkv
& pressj
.
â 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 pressj
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 tomv filmY.srt flimX.srt
... They must be the same name. Either that, or start mpv withmpv filmX.mkv --sub-file filmY.srt
â jasonwryan
yesterday
 |Â
show 2 more comments
cp filmX.srt /dir/with/filmX.mkv
& pressj
.
â 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 pressj
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 tomv filmY.srt flimX.srt
... They must be the same name. Either that, or start mpv withmpv 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
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
cp filmX.srt /dir/with/filmX.mkv
& pressj
.â 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 withmpv filmX.mkv --sub-file filmY.srt
â jasonwryan
yesterday