4

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?

Mateo
  • 1,271
  • 2
  • 12
  • 19
  • 1
    A quick search leads me to believe this task is supported by ffmpeg: https://github.com/rvs/ffmpeg/blob/master/libavformat/mxfenc.c – Jonathon Reinhart Dec 18 '17 at 11:12
  • This sounds just like a bad idea as you need not only to develop or "control" the encoder but also the decoder. Are you sure your usecase is valid and you are looking into the right technology? ..nobody can decode the data besides a player that you developed... – Harry Dec 18 '17 at 21:25
  • 1
    Harry - was your comment to me, or to the preceding comment? I want to take a video and a log file containing location data, and combine them into a single file in the standard SMPTE 336M standard. If done correctly, why should this mean that "nobody can decode the data besides the player you developed"? – Mateo Dec 19 '17 at 11:31
  • @Mateo I'm interested to know how you extracted the KLV data with ffmpeg. Can you post more details please? – AwayTeam May 09 '18 at 16:39
  • 1
    @AwayTeam sorry I missed your comment. I forget the exact details, but I believe I began with this: https://stackoverflow.com/a/29461404/671114 – Mateo Oct 22 '18 at 09:39
  • Which node parser did you use please? @Mateo – Roy Art Nov 09 '18 at 17:41
  • I'm working on that. I have how to generate the klv but I don't know how to insert it into the video and all the attempts have failed. Here you have the code https://github.com/All4Gis/QGISFMV/blob/master/code/manager/QgsMultiplexor.py – Fran Raga Jul 27 '19 at 19:01

0 Answers0