From patchwork Wed May 27 00:32:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Hards X-Patchwork-Id: 19883 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id A914C44BEA5 for ; Wed, 27 May 2020 03:32:30 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 746786891E5; Wed, 27 May 2020 03:32:30 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from cp1.nerdvana.net.au (mail64.nerdvana.net.au [113.212.99.64]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5A61D6802C1 for ; Wed, 27 May 2020 03:32:23 +0300 (EEST) Received: from ppp115-205.static.internode.on.net ([150.101.115.205]:55760 helo=minutae.fritz.box) by cp1.nerdvana.net.au with esmtpa (Exim 4.93) (envelope-from ) id 1jdjzW-00077m-14; Wed, 27 May 2020 10:32:18 +1000 From: Brad Hards To: ffmpeg-devel@ffmpeg.org Date: Wed, 27 May 2020 10:32:07 +1000 Message-Id: <20200527003209.8626-1-bradh@frogmouth.net> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp1.nerdvana.net.au X-AntiAbuse: Original Domain - ffmpeg.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - frogmouth.net X-Get-Message-Sender-Via: cp1.nerdvana.net.au: authenticated_id: git@frogmouth.net X-Authenticated-Sender: cp1.nerdvana.net.au: git@frogmouth.net X-Source: X-Source-Args: X-Source-Dir: Subject: [FFmpeg-devel] [PATCH 0/2] Allow SYNC / ASYNC metadata streams (MISB ST1402) X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Brad Hards Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" 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(+)