mbox

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

Message ID 20200527003209.8626-1-bradh@frogmouth.net
Headers show

Message

Brad Hards May 27, 2020, 12:32 a.m. UTC
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(+)