Synchronized closed captions for live tv

I've been experimenting with adding real-time synchronized closed captions to news broadcasts. Whisper can do it, but it creates a .srt file which the Fire TV client doesn't support. The generated captions can be muxed back into the video file with ffmpeg, but it's only supported in mp4 and mkv files (at least reliably), so the database would need to be updated to make the mp4/mkv file appear in the UI instead of the mpg.

Is it possible to update the database on the fly after the new video file is created? As I recall, there is an API that should support that.

Is there an easier way to accomplish this? How about adding support for .srt files in the Fire TV Channels client?

BTW, I'm using @Paul.C's "cuckoo" program to launch whisper after commercial detection. Are you guys planning to support custom post processing soon?