[FFmpeg-devel] [PATCH 0/2] Allow SYNC / ASYNC metadata streams (MISB ST1402)

Brad Hards bradh at frogmouth.net
Wed May 27 03:32:07 EEST 2020


MISB ST1402 (available at https://gwg.nga.mil/misb/docs/standards/ST1402.2.pdf) has
two kinds of KLV metadata - synchronous and asynchronous. These patches provide
initial support for that.
Synchronous is stream_type = 0x15 for "Metadata carried in PES packets" with
stream_id = 0xFC for "metadata stream."

Asynchronous is stream_type = 0x06 for "PES packets containing private data" with
stream_id = 0xBD for "private_stream_1."

We do have some support already (on writing), see
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/mpegtsenc.c#L1396
for the stream_id handling. We need to be able to set the stream_type as well though.

Brad

Brad Hards (2):
  Add constants for KLV pseudo-profile.
  Set stream_id correctly based on KLV profile selected.

 libavcodec/avcodec.h    | 3 +++
 libavformat/mpegtsenc.c | 6 ++++++
 2 files changed, 9 insertions(+)

-- 
2.17.1



More information about the ffmpeg-devel mailing list