Questions tagged [video-subtitles]
37 questions
13
votes
3 answers
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 avi files:
cd1.srt
cd2.srt
At first I tried…
Stefan
- 24,830
- 40
- 98
- 126
12
votes
2 answers
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 exact stream numbers. Now I can't figure out how…
nilli
- 123
- 1
- 1
- 6
11
votes
3 answers
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. This will require video re-encoding.
Make the…
tshepang
- 64,472
- 86
- 223
- 290
11
votes
3 answers
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?
xralf
- 16,149
- 29
- 101
- 149
9
votes
1 answer
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 downloads file The habits of happiness _…
xralf
- 16,149
- 29
- 101
- 149
8
votes
1 answer
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?
Vlastimil Burián
- 27,586
- 56
- 179
- 309
8
votes
2 answers
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 following error:
Stream mapping:
Stream #0:0 ->…
Oskar Persson
- 245
- 1
- 2
- 14
7
votes
1 answer
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) ?
shirish
- 11,967
- 27
- 107
- 190
6
votes
1 answer
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 that supports embedded subtitles.
For…
Wally
- 297
- 2
- 11
5
votes
2 answers
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|zgadzam się z…
Mikhail Morfikov
- 10,309
- 19
- 69
- 104
4
votes
1 answer
Is it possible to tell mpv to act like subtitles don't exist
I am practicing Japanese, and as a practice tool, I sometimes want to watch anime without subtitles. I know I can turn off subtitles in mpv using hotkeys, and I am also aware of --sid=0; however, in both these situations, I am one hotkey away from…
TT-392
- 127
- 6
4
votes
4 answers
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 today's material so um welcome back
00:00:32.399
to…
brook hong
- 301
- 2
- 4
4
votes
0 answers
"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 want to "stretch" those subtitles so that they…
tr01
- 576
- 5
- 16
4
votes
1 answer
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 to see the timing of each line, and open the image…
Jeffrey Lebowski
- 397
- 3
- 15
3
votes
1 answer
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 tools on console or having a GUI ?
shirish
- 11,967
- 27
- 107
- 190