<p><a href="https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo" rel="nofollow noreferrer">ffmpeg</a> has an amazing article on burning the subs into the videos.</p>
<p>I trust ffmpeg to be very careful with (the lack of) quality loss.</p>
<p>Given you are dealing with ASS, here are the important bits,</p>
<blockquote>
<p>You can burn text subtitles (hardsubs) with one of two filters: subtitles or ass.</p>
<p>ass filter</p>
<p>Same as the subtitles filter, except that it doesn’t require libavcodec and libavformat to work. This filter requires ffmpeg to be compiled with --enable-libass. On the other hand, it is limited to ​ASS (Advanced Substation Alpha) subtitles files. See the ​ass video filter documentation for more details.</p>
<pre><code>ffmpeg -i video.avi -vf &quot;ass=subtitle.ass&quot; out.avi
</code></pre>
<p>If your subtitle is in SubRip, MicroDVD or any other supported text subtitles, you have to convert it to ASS before using this filter:</p>
<pre><code>ffmpeg -i subtitle.srt subtitle.ass
</code></pre>
<p>Windows users will have to ​setup font paths to get libass to work</p>
</blockquote>

CC BY-SA 4.0
2022-01-07T20:24:41.520Z
~10 years later! - Ah but that looks right (obviously I don't have the files anymore to test, but your syntax seems likely to work)
A T
CC BY-SA 4.0
2022-01-04T12:43:09.390Z
2022-01-04T16:53:19.033Z
2022-01-04T16:53:19.033Z
TAbdiukov
<p>I'm pretty sure it's impossible to hardcode subs without quality loss. </p>

<p>Unless there's a new technique developed in the last 4 years, the file needs to be converted to a lossless type then the subs need to be coded frame by frame and then compress again. </p>

<p>So: There is no technique that may be used to hardsub onto a compressed video without losing [more] quality. </p>

CC BY-SA 3.0
2012-02-04T06:43:23.660Z
Well which technique has the least amount of quality loss?
A T
CC BY-SA 3.0
2012-02-07T13:07:55.893Z
I can point the way, but I can't explain the technique - I used to do this a looooooooooooooong time ago. 
Try checking [this](http://forum.videohelp.com/threads/325288-How-to-embed-subtitles-into-mkv-STEP-BY-STEP-using-MKVMERGE-and-MKVEXTRACT) out. The concept is taking the video OUT from the MKV conteiner and then hardcode it.
Johnny Bigoode
CC BY-SA 4.0
2022-01-04T12:29:29.707Z
I cannot downvote yet, but this is a bad suggestion. ffmpeg has native support for hardcoding subs, and given ffmpeg is very careful with the losses, it's very much possible to burn in subs without overall quality loss
TAbdiukov
CC BY-SA 3.0
2012-02-03T18:01:43.793Z
2012-02-03T18:01:43.793Z
Johnny Bigoode
<p>I have an ASS as the subtitle stream (with these fonts: - Orotund, jagb_<strong><em>.tff, jagw</em>_</strong>.ttf, JUST.ttf, Gabrielle.ttf) in an MKV.</p>

<p>What technique should I use to hardsub this subtitle stream onto the MPEG4 (ISO/AVC) without losing quality?</p>

<p>Thanks for all suggestions</p>

<video><video-quality><mpeg><matroska>
Hardsubbing ASS onto MPEG4
A T
# Hardsubbing ASS onto MPEG4

(Asked by: username_0 on 2012-02-03)

I have an ASS as the subtitle stream (with these fonts: - Orotund, jagb\_***.tff, jagw*\_**.ttf, JUST.ttf, Gabrielle.ttf) in an MKV.

What technique should I use to hardsub this subtitle stream onto the MPEG4 (ISO/AVC) without losing quality?

Thanks for all suggestions

**Tags:** video, video-quality, mpeg, matroska


---

## 2 answers

### Answer by username_1 on 2022-01-04. Score: 1 | Accepted answer

ffmpeg has an amazing article on burning the subs into the videos.
I trust ffmpeg to be very careful with (the lack of) quality loss.
Given you are dealing with ASS, here are the important bits,

You can burn text subtitles (hardsubs) with one of two filters: subtitles or ass.
ass filter
Same as the subtitles filter, except that it doesn’t require libavcodec and libavformat to work. This filter requires ffmpeg to be compiled with --enable-libass. On the other hand, it is limited to ​ASS (Advanced Substation Alpha) subtitles files. See the ​ass video filter documentation for more details.
ffmpeg -i video.avi -vf "ass=subtitle.ass" out.avi

If your subtitle is in SubRip, MicroDVD or any other supported text subtitles, you have to convert it to ASS before using this filter:
ffmpeg -i subtitle.srt subtitle.ass

Windows users will have to ​setup font paths to get libass to work

> **Comments:**
> **username_0**: ~10 years later! - Ah but that looks right (obviously I don't have the files anymore to test, but your syntax seems likely to work)  

---

### Answer by username_2 on 2012-02-03. Score: 0

I'm pretty sure it's impossible to hardcode subs without quality loss.

Unless there's a new technique developed in the last 4 years, the file needs to be converted to a lossless type then the subs need to be coded frame by frame and then compress again.

So: There is no technique that may be used to hardsub onto a compressed video without losing [more] quality.

> **Comments:**
> **username_0**: Well which technique has the least amount of quality loss?  
> **username_2**: I can point the way, but I can't explain the technique - I used to do this a looooooooooooooong time ago.  Try checking [this](http://forum.videohelp.com/threads/325288-How-to-embed-subtitles-into-mkv-STEP-BY-STEP-using-MKVMERGE-and-MKVEXTRACT) out. The concept is taking the video OUT from the MKV conteiner and then hardcode it.  
> **username_1**: I cannot downvote yet, but this is a bad suggestion. ffmpeg has native support for hardcoding subs, and given ffmpeg is very careful with the losses, it's very much possible to burn in subs without overall quality loss  

---

