I have a drone video in .MP4 format, and an accompanying log file containing various timecoded data, e.g. GPS location, altitude.
I need to embed the data into the video in the SMPTE 336M (KLV Data Encoding Protocol Using Key-Length-Value) standard format.
I've successfully extracted KLV data from a MPEG2-TS file using FFMPEG and a parser in Node.
Now I need to go the other way: to generate KLV data from my log file and insert it into the relevant video. How this is done?