25 votes
Accepted

ffmpeg: how to add several subtitle streams

Whenever's there's multiple inputs fed to ffmpeg, and you need one more than video/audio/subtitle stream sent to the output, -map statements are needed. ffmpeg -i $movie.mov -i $sub_en.srt -i $sub_de....
Gyan's user avatar
  • 31.6k
9 votes
Accepted

How to DISABLE--NOT REMOVE subtitle tracks from an MKV file from the command line?

I gave up and contacted the author of mkvpropedit to ask if it was possible to do what I wanted to do. The first answer I got was 'No'. But I persevered and asked if there was any setting that will ...
hmj6jmh's user avatar
  • 319
7 votes

How to DISABLE--NOT REMOVE subtitle tracks from an MKV file from the command line?

What player are you using? Unless you have the "forced" flag set, it's a player option whether subtitles are displayed automatically or not and in which language if you have several subtitle tracks. ...
mivk's user avatar
  • 557
6 votes

How to DISABLE--NOT REMOVE subtitle tracks from an MKV file from the command line?

While your self-selected answer will work, it requires modifying the file again when you do want the subtitles. Why not just create an empty but syntactically valid SRT file and mux that as the first ...
Gyan's user avatar
  • 31.6k
5 votes
Accepted

Loss of quality while adding subtitle via FFmpeg

As you are hardcoding subtitles, the video (with the subtitles added) will be re-encoded. You can use the CRF rate control method to modulate the quality of the output. So, start with ffmpeg -i ...
Gyan's user avatar
  • 31.6k
5 votes
Accepted

DaVinci Resolve: Blur and fade title on top of video

DaVinci doesn't really have a strong toolset when it comes to working with titles and motion graphics, although given BlackMagic's current trajectory, that may change in the near future. For now, you'...
Jason Conrad's user avatar
  • 4,394
5 votes

ffmpeg hardcoded subtitles from the top, bigger, with thicker stroke, on a dark background

Aegisub Use ASS subtitles. Style them in Aegisub. You can style each letter or word individually, or apply the desired styling to all subtitles. See the documentation for detailed instructions. ...
llogan's user avatar
  • 9,684
4 votes
Accepted

Positioning subtitles in Premiere Pro CC

Do the math If you want to align your text using percentage offsets or any other 'round' number in pixels, you just need to perform some simple calculations. For example, 10% from the bottom of a ...
MoritzLost's user avatar
  • 5,392
3 votes

MKVToolNix equivalent for .MP4's

I just went through a very similar use-case working with TS files. MoritzLost has the key point but as ffmpeg options can be quite difficult to sort out when you are first getting started, here is a ...
mattpr's user avatar
  • 131
3 votes
Accepted

Split PGS subtitles (.sup file)

Here is the structure of a .sup subtitle file and a link to the splitter I created. Information is either from linked reference or my own research. The .sup subtitle splitter I created. http://forum....
pball's user avatar
  • 41
3 votes

.SRT File Import Problem on Premiere Pro CC 2017 1.2

It's a Premiere bug. Try Subtitle Edit 3.5.5, which is free, insert the .srt, export as EBU STL file (25 fps works fine, it's time coded not frame coded). Import to Premiere, interpret as open ...
Visar's user avatar
  • 31
3 votes
Accepted

Burn .ass subtitle onto .webm with no loss of quality

Use ffmpeg -i input.webm -vf ass=subtitles.ass -b:v 0 -crf 20 output.webm The libvpx encoders for WebM, by default, perform Constrained Quality encoding, and use the bitrate as a ceiling. Default ...
Gyan's user avatar
  • 31.6k
3 votes
Accepted

ffplay won't play internal(embedded) subtitle?

You can use subtitles filter like your example in your question but point to the same input file: ffplay -vf subtitles=input.mkv input.mkv If you want to choose a different subtitle stream then use ...
llogan's user avatar
  • 9,684
3 votes
Accepted

Convert TTML Subtitles to STL or SRT in Linux

The ttconv Python package will do it. It can be installed with pip.
Casey Jones's user avatar
2 votes

Mac Hardcode Subtitles from SRT to MP4 & adjust size and screen position

If you convert the .srt files to .ass, then you can have a lot more control over how the subtitles appear. To convert use ffmpeg: ffmpeg -i input.srt output.ass This will give you an .ass subtitle ...
stib's user avatar
  • 13.6k
2 votes

Is it possible to store subtitle srt files in an m3u playlist file?

yes, VLC supports that with the EXTVLCOPT custom tag. example: #EXTINF:-1,Abenobashi ED - Anata No Kokoro Ni (In Your Heart) #EXTVLCOPT:sub-file=/p/Documents/mus/lyrics/Abenobashi ED - Anata No ...
eadmaster's user avatar
  • 121
2 votes

Unable to hardcode subtitles in FFmpeg on Mac to mov

It appears that the subtitles file did not have --> but a –> with the – corresponding to the en dash that was placed in the file, which was edited by hand externally. It seems like the en dash ...
Konrad's user avatar
  • 163
2 votes
Accepted

How to display subtitles as default in an MKV file

There are two aspects to your query - 1)setting one of the subtitle streams as the default and 2)automatically displaying it during playback.I'm not aware of a method to force a player to display ...
Gyan's user avatar
  • 31.6k
2 votes
Accepted

ffmpeg - burning in subtitles with non-square pixels

You can try adding the original_size filter option, such as: -vf "ass=test_subs.ass:original_size=768x576" Specify the size of the original video, the video for which the ASS file was composed. ...
llogan's user avatar
  • 9,684
2 votes

How to overlay SRT or ASS on a video and output the pre-render captioned video?

Adobe Premiere Pro allows you to create caption files (including SRT) and export them individually (as SRT files) or embedded with the actual video. This link gives a pretty good overview of how it's ...
John Barton's user avatar
2 votes

Subtitle format guide

SBS - Australia's Special Broadcasting Service has an extensive and international reputation for quality subtitles. from http://www.sbs.com.au/aboutus/faqs/index/id/120/h/Subtitles SBS subtitles ...
paulzag's user avatar
  • 308
2 votes
Accepted

Add border to video, maintaing aspect ratio, and insert subtitles in the border

You can use FFmpeg, a free command line tool to do this: ffmpeg -i input.mkv -vf pad=1920:1080:0:140,subtitles=filename.srt -crf 20 -c:a copy out.mkv The subtitles filter accepts ASS styling ...
Gyan's user avatar
  • 31.6k
2 votes

MKVToolNix equivalent for .MP4's

dmMediaConverter is very similar to MKVToolnix. It is just a ffmpeg gui, so it can save in any format. To replicate the described MKVToolnix use, select "Convert", then "Add files", selecting both ...
cipricus's user avatar
  • 131
2 votes
Accepted

How can I import subtitles/captions into a letterboxed video like this?

You can use ffmpeg. Make your subtitles with Aegisub or manually with a text editor. ASS subtitles are fancier, but SRT are simpler if you want to manually make them. Alignment & Margin The ...
llogan's user avatar
  • 9,684
2 votes

Is there a Youtube-supported subtitle format that does positioning + Unicode?

Google Subtitle Workshop... it's an outdated program, but allows for full flexibility in terms of subtitles, size, language, position, lines, size, color, position, etc. It's an old program, but it ...
McFlySoHigh's user avatar
  • 2,467
2 votes
Accepted

How to make ffmpeg flush the subtitles in real time while transcoding?

When ffmpeg will flush to output depends on the protocol. For file protocol, atleast 256 kiB data must be waiting, unless it's end of output. So, for text formats, there will be only one payload write....
Gyan's user avatar
  • 31.6k
2 votes
Accepted

Subtitles do not match spoken dialogue. Why?

This is an educated guess as I'm not sure anyone can give a concrete answer as to this particular show's specific reason, but since it was dubbed, there's a solid possibility that the subtitles are a ...
AJ Henderson's user avatar
  • 19.3k
2 votes
Accepted

ffmpeg cut same video to multiple pieces

Use ss/to as input options. This seeks at the demuxer stage, which is much faster. ffmpeg -ss 00:22:23.345 -to 00:22:25.846 -i input.mp4 ... You'll need a very recent build of ffmpeg (> Nov 19 2017)
Gyan's user avatar
  • 31.6k

Only top scored, non community-wiki answers of a minimum length are eligible