From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E922D45539 for ; Fri, 3 Mar 2023 21:53:49 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2913E68BA34; Fri, 3 Mar 2023 23:53:46 +0200 (EET) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B0EFA68B02D for ; Fri, 3 Mar 2023 23:53:39 +0200 (EET) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-53852143afcso67467937b3.3 for ; Fri, 03 Mar 2023 13:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ltnglobal-com.20210112.gappssmtp.com; s=20210112; t=1677880418; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=LQg9Sh/DTGDDvUBAbz47cZRNPxSI3bnL7k5rb3E2FCA=; b=QNqEIDv7fOa8fLvaGnHwrHOswGHC7UpLL0r5xGQsopYACB2v033NaEk6kcNkCOEPB3 xvQ7S4UFpiTY8iJGRdJum38LK5BQ8EFZoMAIsE3YY5I93S8Yh4JpJh0ymXLeRmYvpPLA Kwxkh1cN1DxNSTBmXioz4vLUSD/Ekoq0dRDs22VaK55i/m5ONhGTedjvgjRnVpTwSz7G RWnQe6a9VZjfWwIkGXcY8ti/A02aFX/vl/CxN+UNFDsP34P+SDLIF5bEstIbY3lAvX9g bS/vTJDTNyguHw4gp9GiMN3R2IUl0cWoh/SYlXXDEzkEHpAZNvAGELyR1LKf6LIXTTOW /+vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677880418; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LQg9Sh/DTGDDvUBAbz47cZRNPxSI3bnL7k5rb3E2FCA=; b=Z6a6P/SS57fMcshon8FSmeCNXTXsAy+QwKimQyVi4ue5uoATcAScBjfidf+wUJyPrr bPQHZ36hkrjtRuD+qX/gd3ssiN913PZBPl7mIUEKEGMLPT5dezRssLVmgstQzDibohS4 NMZxjcPFYi3LPQ4XdlSPY439jbWu0P4jfLiLTZ076eDoJ0B8dhROLGRGhd+Tp8dQVxpI ZwCyngZeMOOSgEdMYL82a6WE/co8Rlm9q/HwHJ3TG1z9wKUQawYVWH2455k7k0nrTU/6 LRNpnXW7K69x74DxqOQXNIOELRyX4ArRcnM7Nxai1iPIPb2JKgWUQwwlcNqI52wqTfZP TnPQ== X-Gm-Message-State: AO0yUKWE5+9cBmP1CiAPO0PoqMVeAEhUuqPtta/JvBValauBjsFnY0Px I8xfEtMsOiWHuhAHE3+IXyIvf1x6IyUK7YJ7sejWGVCiJMd7pOaMafc= X-Google-Smtp-Source: AK7set/z+STmgzMi8qU+rQ3lRGRzQC5LGEmRQOl390tcBtlK2In++liQmWBs87hezkphXnaiSiqQT5PqGg4IwxHcVLA= X-Received: by 2002:a81:b723:0:b0:536:38b4:f51 with SMTP id v35-20020a81b723000000b0053638b40f51mr1891437ywh.5.1677880418049; Fri, 03 Mar 2023 13:53:38 -0800 (PST) MIME-Version: 1.0 From: Devin Heitmueller Date: Fri, 3 Mar 2023 16:53:27 -0500 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] RFC: Preserving original demux timestamps in AVPackets X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Hello all, I am working on some SCTE-35 stuff, which embeds PTS timestamps deep within the section payload. In order to pass through packets to an MPEG-TS output, I need the original PTS value that was used when the packet was received to calculate the correct offsets. The way a typical ffmpeg-based application works is to read in the packets, and then recalculate the pts/dts fields prior to output using the existing fields. This results in loss of the original values. I need to stash the original PTS value somewhere within the AVPacket so I can use it for subsequent calculations on the output side. In my private tree I have done this through a new AVPacket side data type called "AV_PKT_DATA_ORIG_PTS", but it wasn't clear to me if such a patch would be accepted upstream. Alternatively, I can set a metadata field on the packet using av_packet_pack_dictionary() and use the existing AV_PKT_DATA_STRINGS_METADATA type. However that would require it to be converted to a string and back, and seems less than ideal. Does anyone have any other suggestions on a way the original received PTS value can be stashed within an AVPacket in a manner that would be accepted upstream? Thanks, Devin -- Devin Heitmueller, Senior Software Engineer LTN Global Communications o: +1 (301) 363-1001 w: https://ltnglobal.com e: devin.heitmueller@ltnglobal.com _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".