Hard encoding multiple subtitle telemetry/video files in VLC

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.

Cheers!

5 Likes

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.

1 Like

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

Hi @spotxuv,

This 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.

1 Like

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

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).

1 Like

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!

Hi @tony-white !

I actually updated the QGC docs with instructions to burn the subtitles using Handbrake some time ago!
In my tests Handbrake was the best choice, too.

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