# Hard encoding multiple subtitle telemetry/video files in VLC

**URL:** https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279
**Category:** General Discussion
**Created:** [April 28, 2020, 2:47am UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279 "2020-04-28T02:47:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![spotxuv](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/spotxuv/32/1112_2.png) [@spotxuv](https://discuss.bluerobotics.com/u/spotxuv)
#### Post date: [April 28, 2020, 2:47am UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/1 "2020-04-28T02:47:17Z")

</div>

Hi all,  
The newest software releases seem to have the subtitle/telemetry overlay system working really well, thanks to all involved!

I’ve been playing around with it for a few days, and seem to have a decent workflow for hard-encoding the overlay to an mp4 file. It’s not that intuitive in VLC, but maybe I’m missing something, and happy for other users to add suggestions. If you’re interested, I put together on how the overlay works/looks, and also how to go about hard-encoding.

[![](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/5/5fcd58fb6e1b23634dcae0c1672d32dfe84fc785.jpeg "Hard code telemetry subtitle data using VLC (including batch conversions)") ](https://www.youtube.com/watch?v=sbym_vfFNk0)

Cheers!

---

<div class="post-metadata">

### Author: ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)
#### Post date: [April 28, 2020, 1:18pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/2 "2020-04-28T13:18:14Z")

</div>

Nice job! We needed something like this!

I also managed to do it with ffmpeg:  
`ffmpeg -i input.mkv -vcodec libx264 -crf 18 -vf subtitles=subtitles.ass out.avi`  
(crf controls the output video quality)

And with a suspiciously looking software called “Format Factory”, which has weird default fonts but did work.

I also couldn’t find what caused the “Dropped frames”, but in my early tests the ffmpeg generated files were better.

---

<div class="post-metadata">

### Author: ![spotxuv](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/spotxuv/32/1112_2.png) [@spotxuv](https://discuss.bluerobotics.com/u/spotxuv)
#### Post date: [April 28, 2020, 11:59pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/3 "2020-04-28T23:59:07Z")

</div>

Thanks @williangalvani, will look at those other methods as well. Do you have any references to how/where the .ass file is generated from the telemetry, and the formatting? I would like to try a few different overlay options.

Cheers

---

<div class="post-metadata">

### Author: ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)
#### Post date: [April 29, 2020, 2:11pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/4 "2020-04-29T14:11:10Z")

</div>

Hi @spotxuv,

[This](https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoManager/SubtitleWriter.cc) is the file responsible for generating the subtitle files. It uses the values currently displayed in the values widget to the right of the screen and tiles them at the bottom of the video.

There is a better explanation at the [QGC docs section on Video Overlay](https://docs.qgroundcontrol.com/en/FlyView/VideoOverlay.html).

---

<div class="post-metadata">

### Author: ![spotxuv](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/spotxuv/32/1112_2.png) [@spotxuv](https://discuss.bluerobotics.com/u/spotxuv)
#### Post date: [May 20, 2020, 12:10am UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/5 "2020-05-20T00:10:35Z")

</div>

Do you know if the recording feature/video overlay is restricted to the stock camera 1080P? For example, if a 4K camera is connected and integrated to QGC using RTSP, will the recording and .ass files still work as intended? Am hoping to try this out soon, but would be good to know upfront if not possible

---

<div class="post-metadata">

### Author: ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)
#### Post date: [May 20, 2020, 12:50pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/6 "2020-05-20T12:50:11Z")

</div>

Hi @spotxuv,

It should work fine with any video at all.  
You could even record video with a gopro and load the subtitle/overlay alongside that (you would probably have to take some time to sync it, though).

---

<div class="post-metadata">

### Author: ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/13297_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)
#### Post date: [June 18, 2021, 3:25pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/7 "2021-06-18T15:25:02Z")

</div>

An update for everyone -

VLC proves tricky to transcode and get the subtitles in, at least on newer versions on Mac. I’ve had good success by using handrbrake - useful to convert .mkv to .mp4 anyways, but if you go to subtitles tab, right click and add external track, and then check burned in, you’ll be set to go!

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/c/c11ef7546a68fd62c1d014f4304c6366486a211e.jpeg)

---

<div class="post-metadata">

### Author: ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)
#### Post date: [June 18, 2021, 7:37pm UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/8 "2021-06-18T19:37:52Z")

</div>

Hi @tony-white !

I actually updated the [QGC docs with instructions to burn the subtitles using Handbrake](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/fly_view/video_overlay.html#permanent-video-subtitles-using-handbrake) some time ago!  
In my tests Handbrake was the best choice, too.

---

<div class="post-metadata">

### Author: ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/13297_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)
#### Post date: [June 19, 2021, 2:34am UTC](https://discuss.bluerobotics.com/t/hard-encoding-multiple-subtitle-telemetry-video-files-in-vlc/7279/9 "2021-06-19T02:34:51Z")

</div>

whoops! Darn google SEO still has this post come up over those instructions, my bad!
