Mapping KLV Packets into Synchronous MPEG-2 Program Streams

Winnie H. Liang

This paper proposes a method for synchronously mapping digital metadata encoded in the SMPTE Key-Length-Value (KLV) protocol (SMPTE 336M-2001) into an MPEG-2 Program Stream. In this study, our goal is to archive low- level, detailed, frame-by-frame syntactic metadata together with the associated video stream. We developed an algorithm specifically for MPEG-2 program streams that packetize MPEG-2 video elementary stream and KLV encoded metadata into packetized elementary stream (PES) packets. The group of pictures (GOP) time codes and the picture temporal reference are used to create time-stamps to place into the PES header's presentation time-stamps (PTSs) for synchronization. When a KLV inserted MPEG-2 program stream is played, an MPEG-2 splitter filter “splits” the video PES packets and KLV PES packets, retrieves the PTSs from those PES packets, and delivers the video and KLV PES packets to the appropriate decoders. The PTSs for each PES packet are kept with the decoded data. The video and metadata displayer synchronize with each other using the PTSs, so that decoded data with the same PTS time-stamp are displayed at the same time.

Published
2002-02
Content type
Original Research
DOI
10.5594/M00226
ISBN
978-1-61482-936-2