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 AE4244679D for ; Thu, 17 Aug 2023 21:50:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C60C068C7A7; Fri, 18 Aug 2023 00:49:15 +0300 (EEST) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E356E68C71F for ; Fri, 18 Aug 2023 00:49:03 +0300 (EEST) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4fe3b86cec1so297605e87.2 for ; Thu, 17 Aug 2023 14:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692308943; x=1692913743; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rDqVntTqSiJ+AQ6R9LgsUN1ThfBiMWKIhC+9MM2Yvgw=; b=ZT3fRvqyw87ZT7M+qg0rvlOfq5Bi7DZR19Y+YKmkAfC703R+isLe6BPdU/IqsFDlx/ DJYygs6enGmURRs6rxH9iFSuHWhz9abMDCZwoxr9GankBCowhZ6tql7QU0h3fnNAr1QJ p9PqC3Zl0JcGqKIK9vj5yiNdzIqPKCpINOHJWUe732lEtDo8tCp+xxKnEQCHvUMI71yl Cp1Gy6Jqn/xlnA0pAT0w7TFzvQ1KLqez5bttFJBIOI67QPTtLEfefAhXy4p2FTlAyJGA faQLJztEfZFw3T+3nA1HFFegrmAnbIP5j1YlyVGkkaeMX7+gcR5x+BKHOS0xbtw5N4DL +iNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692308943; x=1692913743; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rDqVntTqSiJ+AQ6R9LgsUN1ThfBiMWKIhC+9MM2Yvgw=; b=NyXJ6faOovesp7F3pMTPDbS94QnMSzS2KL15LCtLLugFoVYg4N0iYOEVEboL6R8xd8 WhEL11ytFC1kKywmvwiz0dnnwl+f3aQ6ke0Dc6LaRVy2Oa1AQ3DXQx9L9r8MitNTcWiX Pokq+iL3f3ovFqB+jR4cOljJrMTHlG8BAzkQNTbCExEHkwRyzVQDvnek+L1c6zMWDlf6 AIuPzZTXWDDNsOJcFkmI0AtgJ8gv8hOvyRQO6iXY7txV3i0TANp7mv+XwV/J8nuHaWnE bHpoYREeDN1KafRTFilOm1t09fXvXIuLvDRmgWoZH8yw2m23zB4wdT4ptvx7+Fahovr6 VW9A== X-Gm-Message-State: AOJu0YzJZ/FtX3ZH4azuXP81/n/oogoLnSnZua78rmkoHvPBakRKNTUU 57OS4GoxRvnvC1wAsLr+Z0RAOexteSI= X-Google-Smtp-Source: AGHT+IFF/SXwB83vExVdM6vx0/p+NR77D/tJGd3+YGl1DdkW3AwdDjDUrVNGzaBl0UyVVpANenMLkQ== X-Received: by 2002:a05:6512:401a:b0:4fe:d0f:1f1e with SMTP id br26-20020a056512401a00b004fe0d0f1f1emr412420lfb.25.1692308943025; Thu, 17 Aug 2023 14:49:03 -0700 (PDT) Received: from hifumi.mshome.net (91-153-198-187.elisa-laajakaista.fi. [91.153.198.187]) by smtp.gmail.com with ESMTPSA id w2-20020ac25982000000b004fe20d1b288sm62813lfn.159.2023.08.17.14.49.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 14:49:02 -0700 (PDT) From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Fri, 18 Aug 2023 00:48:47 +0300 Message-ID: <20230817214858.184010-10-jeebjp@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230817214858.184010-1-jeebjp@gmail.com> References: <20230817214858.184010-1-jeebjp@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 09/12] ffmpeg: pass first video AVFrame's side data to encoder 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: This enables further configuration of output based on the results of input decoding and filtering in a similar manner as the color information. --- fftools/ffmpeg_enc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 96424272bf..de60a14868 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -314,6 +314,17 @@ int enc_open(OutputStream *ost, AVFrame *frame) enc_ctx->colorspace = frame->colorspace; enc_ctx->chroma_sample_location = frame->chroma_location; + ret = av_side_data_set_extend(&enc_ctx->side_data_set, + (const AVFrameSideDataSet){ + .sd = frame->side_data, + .nb_sd = frame->nb_side_data + }, 0); + if (ret < 0) { + av_log(NULL, AV_LOG_ERROR, "failed to configure video encoder: %s!\n", + av_err2str(ret)); + return ret; + } + enc_ctx->framerate = fr; ost->st->avg_frame_rate = fr; -- 2.41.0 _______________________________________________ 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".