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 43A0D4533D for ; Tue, 18 Jun 2024 19:42:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3F8F368D737; Tue, 18 Jun 2024 22:42:30 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9535068D42E for ; Tue, 18 Jun 2024 22:42:23 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1718739743; bh=79R1CfNEytHSlBzuT1gI/hTUN9UgMg19V3zT88AcAZI=; h=From:To:Subject:Date:From; b=XEgNCn4/Dy1oM44EI+2um0w1TlpBGB3x6TiuUbDH+6vJexRvkUEDq2K1VQS8vJ/Th EQUWF9vYmv6Osv+KWniZQbxrnAjsS61url/yD41K4yw4Q1m9lP7bG6AkqQN+6QT/08 TAmnO5lpH7/GFEIO2P6TFzx1ad+icr+UtP4Y0Ml4= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 4819C403F0 for ; Tue, 18 Jun 2024 21:42:23 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Jun 2024 21:35:30 +0200 Message-ID: <20240618194221.26073-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 0/8] DoVi metadata compression 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: Moves metadata compression out of the codecs and into a bitstream filter. This is required by design, because keyframes must have compression disabled (for obvious reasons). Therefore, we _must_ generate the dolby vision RPUs after encoding. The downside of this approach is that it requires "redundantly" encoding + decoding RPUs in between the codec and the bsf. However, the tradeoff is that it allows us to also strip/modify DV metadata when not transcoding (-c:v copy). Such a feature has a legitimate use case, as it allows enabling/disabling Dolby Vision compression on existing streams (to e.g. minimize size, or to maximize compatibility). If we wanted to avoid this overhead, we could hypothetically introduce a new packet side data type for dolby vision metadata, and have the codec merely copy the frame side data to the packet. But I am somewhat unwilling to add yet more packet side data types that are aliases of frame side data types, and I don't think the overhead is significant. _______________________________________________ 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".