Questions tagged [video-subtitles]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

Unable to view a subtitle in mpv

I have a subtitle that is in .vtt format. I can see the subtitle in l3afpad or any text editor but am unable to play that specific subtitle in MPV. I looked through all of https://mpv.io/manual/stable/...
user avatar
  • 10.9k
0 votes
1 answer
31 views

A video player with subtitles transparency settings and the ability to combine subtitles files

QUESTION Is there a video/movie player for Linux that   (a) has a setting for the transparency/opacity of the subtitles and   (b) can append/combine subtitles from two subtitles (e.g. SRT) files? ...
user avatar
  • 103
0 votes
0 answers
78 views

Are there any command-line tools to merge two srt files?

I have two srt files, cd1.srt and cd2.srt. Unfortunately, srtool is no longer available anywhere which was the answer to the same question when it was asked a few years ago. How do I merge two *.srt ...
user avatar
  • 10.9k
0 votes
0 answers
40 views

ffmpeg to cut subtitle file in sync with the cut video

I managed to cut the video and keep subtitle in sync by embedding the subtitles in the video: $ ffmpeg -i sample-mp4-file.mp4 -hide_banner \ -vf subtitles=subtitles.srt -ss 0:30:00 -t 1:33:31 \ ...
user avatar
  • 561
0 votes
1 answer
261 views

mpv - subsitles not rendered per mpv.conf even with --sub-ass-override=strip --embeddedfonts=no

I got a mkv file recently where I noted mpv renders subtitles not as I put in mpv.conf. The file has two subtitles streams and one is displayed as describes in mpv.conf, but other is just same no ...
user avatar
0 votes
1 answer
109 views

Extract embedded subtitles

I have a couple of video files which are subtitled in English. Unfortunately the subtitling is encoded into the video bitstream. I would like to extract the titles (as UTF8 …). Is there a tool to do ...
user avatar
1 vote
2 answers
131 views

How to change \n to space and \n\n to \n by sed?

I use sed to convert an srt file to a regular text file. Ansrt` file has a format of 1 00:20:41,150 --> 00:20:45,109 line 1 line 2 2 00:21:41,150 --> 00:21:45,109 line 3 line 4 So I use the ...
user avatar
  • 1,723
0 votes
1 answer
732 views

Cut dvbsub from MPEG-TS with ffmpeg

I have a bunch of MPEG-TS files, originally created by a hardware TV-recorder. ffprobe lists their content like so: Input #0, mpegts, from 'recording.ts': Duration: 02:14:57.67, start: 87544.254878,...
user avatar
  • 1,358
1 vote
1 answer
345 views

how to figure out font color given in subtitle (srt) in mpv

For e.g. I have this sort of subtitle 1 00:01:55,201 --> 00:01:58,401 <font face="sans-serif" size="47"><font size="20"><b>It's absurd going to school every day. The school's ...
user avatar
  • 10.9k
3 votes
1 answer
2k views

way to transform vtt, ttml, srv3, srv2 or srv1 insto srt?

When I use youtube-dl to list-subs I usualy get something like the following - en vtt, ttml, srv3, srv2, srv1 Is there a way to transform any of these subtitle formats to .srt format using ...
user avatar
  • 10.9k
0 votes
0 answers
124 views

is there a way to extract embedded or muxed subtitles in an mkv media file without harming the media file

I have a media file which has an embedded subtitle file with it. I want the subtitle to be extracted or to be more precise a copy of the subtitle which is embedded in the media file. There are some ...
user avatar
  • 10.9k
2 votes
1 answer
1k views

youtube-dl, how to write all subs of a youtube playlist to ONE single file?

I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos. I want all the ...
user avatar
2 votes
0 answers
474 views

Extract hardcoded subtitles

I wanted to know if there is a way to extract hardcoded subtitles via OCR, should I do some image processing after extracting the frames in order to use tesseract afterwards? I have tried to extract ...
user avatar
9 votes
1 answer
6k views

youtube-dl download autotranslate subs

I would like to download auto-generated subtitles with youtube-dl as follows $ youtube-dl --write-auto-sub \ --skip-download \ https://www.youtube.com/watch?v=vbLEf4HR74E It ...
user avatar
  • 14.6k
1 vote
2 answers
1k views

How to remove arbitrary subtitles formats from mkv with a shell loop

I made this script to remove ALL subs from all mkv files in a given path. It works ok. But now I want to only remove PGS subtitles and keep all SRT files, no matter the language. for file in "$@"*...
user avatar
  • 1,035
0 votes
0 answers
686 views

sub-scale=1 doesn't work in ~/.mpv/config

I am running mpv on Debian testing/buster hence running mpv 0.25.0 . I had asked a question about making subtitles bigger in Making subtitles (.srt) bigger or smaller with mpv and was told that if I ...
user avatar
  • 10.9k
4 votes
4 answers
246 views

How to append some line matched to previous line matched with sed?

For example, transfer below 00:00:10.730 this presentation is delivered by the 00:00:13.230 Stanford center for professional 00:00:14.610 development okay so let's get started 00:00:25.500 with ...
user avatar
2 votes
0 answers
49 views

Timed display of text in terminal, perhaps slight markup (bold, colors). A.K.A. "play .srt subtitles"

Independent of the media player, I want to display separate subtitles in a scrolling text terminal to make language learning easier, or when I want more/different subtitles than the other viewers, ...
user avatar
3 votes
0 answers
326 views

"Stretching" subtitles with command line tool

I got a video file with a duartion of e.g. 30 mins and a subtitle file that belongs to this video. But the subtitle file only lasts 25 minutes. Now I'm searching for a way to achieve the following: I ...
user avatar
  • 486
7 votes
1 answer
9k views

Is there a way to find out the frame-rate of a subtitle file?

While I can find the frame rate of movie via - $ mediainfo $somemovie.$format | grep Frame rate Is there anything which tells the frame-rate of a sub file, (.srt) ?
user avatar
  • 10.9k
3 votes
5 answers
4k views

Automatically downloading subtitles

There is a media player for Windows, BSPlayer, which can automatically download subtitles. The great thing about it is that it kind of magically always picks the right one, contrary to manual ...
user avatar
  • 2,294
7 votes
1 answer
5k views

Batch removing subtitles using MKVToolNix

I need to batch remove all subtitles from MKV files in a directory, using MKVToolNix, for one file I figured: mkvmerge -o output.mkv --no-subtitles input.mkv How do I achieve this for 100+ files?
user avatar
7 votes
2 answers
14k views

Convert image based subtitle to text based subtitle inside MKV file

How do I convert a hdmv_pgs_subtitle (which is image based) to a text based subtitle in a MKV file? I have tried ffmpeg -i in.mkv -c:v copy -c:a copy -c:s mov_text out.mkv but that results with the ...
user avatar
4 votes
1 answer
4k views

Open HDMV PGS subtitles in GNU/Linux

I wanted to know if there's any software in GNU/Linux which can read BluRay subtitles (HDMV PGS). I'm not talking about making an OCR to convert them to SRT like everyone asks, but just reading them ...
user avatar
6 votes
1 answer
7k views

How do I extract subtitles from Video files?

I want to use the command line to extract subtitles from video files. I want to extract subtitles from a lot of files. That is why I want a CLI tool. Ideally it should work with any video format ...
user avatar
  • 287
1 vote
2 answers
1k views

How to watch a DVD video with external subtitles in Linux?

There are video players in Windows that can use external subtitles when playing a DVD movie, but are there in Linux too? (MPC-HC and PotPlayer are the most obvious solutions for this in Windows. I ...
user avatar
10 votes
2 answers
27k views

Re-encoding video with ffmpeg including all subtitles but not all audio

I'm trying to re-encode video streams from a Matroska file to save space, while keeping all the subtitles as-is, using ffmpeg. I want to write a generic command that works without me having to specify ...
user avatar
  • 103
1 vote
0 answers
74 views

Miro player doesn't recognize subtitle from video encoded by ffmpeg

It was the first time I encoded a video on Ubuntu. I used ffmpeg to extract the video/audio, encode them and join with a subtitle to a new file. All these steps were fine. I used the following ...
user avatar
  • 11
2 votes
0 answers
356 views

ffmpeg hardcode subs on flv

Giving up on trying to use videosub.js, I am now trying to hard code subtitles to the video file using ffmpeg. Have run into trouble with configuration files not found, when trying to hard code the ...
user avatar
  • 1,463
5 votes
2 answers
11k views

How to convert a .txt subtitle file to .srt format?

I have a subtitle file, it looks like this: 00:00:44:" Myślę, więc jestem".|Kartezjusz, 1596-1650 00:01:01:Trzynaste Pietro 00:01:06:Podobno niewiedza uszczęśliwia. 00:01:10:Po raz pierwszy w życiu|...
user avatar
2 votes
0 answers
731 views

Player or plugin that can transcribe audio to real time subtitles

I'm searching for a Linux player (or a plugin for an existent player) with a similar functionality to Youtube: transcribe the audio to real time subtitles. I would like this to help me watch videos ...
user avatar
  • 941
11 votes
3 answers
39k views

How can I embed subtitles into videos with ffmpeg?

I'm told it's possible to embed subtitles (.srt) into video files (.avi) using ffmpeg, but I can't find any mention of it in the man page. Is this possible? What command do I use?
user avatar
  • 14.6k
11 votes
3 answers
9k views

How to 'burn' a subtitle track onto an mp4 video file

I would like to make a subtitle file to be a part of an mp4 video file, so that I don't have to deal with two separate files. I imagine two ways: Make the subtitle an intrinsic part of the video. ...
user avatar
  • 61.2k
13 votes
3 answers
10k views

How do I merge two *.srt files

Please see this question. I have just merged two avi files cd1.avi and cd1.avi into movie.avi using: avimerge -o movie.avi -i cd{1,2}.avi Problem is that I had to subtitle files linked to the first ...
user avatar
  • 23.6k