From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 387284D031 for ; Fri, 30 May 2025 10:53:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 5DC6168DB22; Fri, 30 May 2025 13:52:58 +0300 (EEST) Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 81DB268DAD9 for ; Fri, 30 May 2025 13:52:55 +0300 (EEST) Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-450dada0f83so2585085e9.0 for ; Fri, 30 May 2025 03:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748602375; x=1749207175; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PLAglcG9eZxpi+n2lRGFrKRLq7H93t1GMagQPr74Hik=; b=IISKn52DTZW54w9MuHH6wxifL6qhYF54HTtd3FtmU3lgyzXwd6e0qfqcjHX+Icv+qu 8gr1OIZfKzNEOSekculpPcg/ZiaqkHR85XSos1FPkGa4ck+kzmbWb0irsbye7go4M1wp h07bp+scrs0xyNTDI4s1va+hQYAXzGXNEX3N/aJib4fAV30vch8ubKqvwUs4tIygQLiY kegTqTkyAAa10x9UO26Mg6Ls6C4f7WZIxtBmarWxCi/nzapFoUPp7akrivqAjTZXLxsJ QldPWZ1zJ5m+Y8hhANhEyaZR1jqA9p0/LQ52KKFU07T5a01mFBJu05F1dYgBIctY+ZP0 APwg== X-Gm-Message-State: AOJu0YyQKsl7xL02Kho/NAWZ4Iakav1O35kHfnrGo7xoFpuCrQh0uCz5 cQcgNQO/SsBZBYO7SdARC7unz/OhgBFqBZMw7NlykY3J+eEeTmiBHB4fCn5No1+9YjI9+M/Nhj5 fOZazmY8PvKFQbZKT/aCn9K4sUYWmeKqOzCCF2Cp9LY+GfH7FN+rN02YoQ22tJqymli6fBmPp1/ HA4Uub97XibVjhZxnMOlD7jxl40SxvNc6k8YAyEw== X-Google-Smtp-Source: AGHT+IG0YJDLWQ1tV3rUQNIqSifqdVcXi1o/tdU9c1nQlMxJYh+JazqdtodZIzagfCIcr4W9sS3909VqZaQ= X-Received: from wmqa12.prod.google.com ([2002:a05:600c:348c:b0:43c:faa1:bb58]) (user=maryla job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:6692:b0:450:cf28:c1ce with SMTP id 5b1f17b1804b1-450d659b9f0mr24237955e9.32.1748602374696; Fri, 30 May 2025 03:52:54 -0700 (PDT) Date: Fri, 30 May 2025 12:52:50 +0200 In-Reply-To: <20250530105250.1968118-1-maryla@google.com> Mime-Version: 1.0 References: <20250530105250.1968118-1-maryla@google.com> X-Mailer: git-send-email 2.49.0.1204.g71687c7c1d-goog Message-ID: <20250530105250.1968118-2-maryla@google.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support 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: , From: Maryla Ustarroz-Calonge via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Maryla Ustarroz-Calonge 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: The new fate sample av1/metadata_hdr10_plus.ivf used in the second test is the output of the first test. Signed-off-by: Maryla Ustarroz-Calonge --- tests/Makefile | 1 + tests/fate/av1.mak | 11 ++++++ tests/ref/fate/libaom-hdr10-plus | 52 ++++++++++++++++++++++++++ tests/ref/fate/libaom-write-hdr10-plus | 52 ++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 tests/fate/av1.mak create mode 100644 tests/ref/fate/libaom-hdr10-plus create mode 100644 tests/ref/fate/libaom-write-hdr10-plus diff --git a/tests/Makefile b/tests/Makefile index 505d7f9c6d..7e3812f1bd 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -159,6 +159,7 @@ include $(SRC_PATH)/tests/fate/apng.mak include $(SRC_PATH)/tests/fate/apv.mak include $(SRC_PATH)/tests/fate/atrac.mak include $(SRC_PATH)/tests/fate/audio.mak +include $(SRC_PATH)/tests/fate/av1.mak include $(SRC_PATH)/tests/fate/bmp.mak include $(SRC_PATH)/tests/fate/build.mak include $(SRC_PATH)/tests/fate/caf.mak diff --git a/tests/fate/av1.mak b/tests/fate/av1.mak new file mode 100644 index 0000000000..a1883dbbfb --- /dev/null +++ b/tests/fate/av1.mak @@ -0,0 +1,11 @@ +# Tests that transcoding MPEG4 WEBM to AV1 (libaom-av1) keeps HDR10+ metadata. +FATE_AV1_FFMPEG_FFPROBE-$(call TRANSCODE, LIBAOM_AV1 MPEG4, WEBM IVF) += fate-libaom-write-hdr10-plus +fate-libaom-write-hdr10-plus: CMD = transcode webm $(TARGET_SAMPLES)/mkv/hdr10_plus_vp9_sample.webm ivf "-map 0 -c:v libaom-av1 -cpu-used 8" "" "-show_frames -show_entries frame=side_data_list" + +# Tests that transcoding AV1 (libaom-av1) to AV1 (libaom-av1) keeps HDR10+ metadata. +FATE_AV1_FFMPEG_FFPROBE-$(call ENCDEC, LIBAOM_AV1 LIBAOM_AV1, IVF IVF) += fate-libaom-hdr10-plus +fate-libaom-hdr10-plus: CMD = transcode ivf $(TARGET_SAMPLES)/av1/metadata_hdr10_plus.ivf ivf "-map 0 -c:v libaom-av1 -cpu-used 8" "" "-show_frames -show_entries frame=side_data_list" "" "" "-c:v libaom-av1" + +FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_AV1_FFMPEG_FFPROBE-yes) + +fate-av1: $(FATE_AV1_FFMPEG_FFPROBE-yes) diff --git a/tests/ref/fate/libaom-hdr10-plus b/tests/ref/fate/libaom-hdr10-plus new file mode 100644 index 0000000000..d95e57f224 --- /dev/null +++ b/tests/ref/fate/libaom-hdr10-plus @@ -0,0 +1,52 @@ +58769dc4beb2490d2c6896d1f3d6d021 *tests/data/fate/libaom-hdr10-plus.ivf +15925 tests/data/fate/libaom-hdr10-plus.ivf +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 1280x720 +#sar 0: 1/1 +0, 0, 0, 1, 2764800, 0x6fc3f991 +[FRAME] +[SIDE_DATA] +side_data_type=HDR Dynamic Metadata SMPTE2094-40 (HDR10+) +application version=1 +num_windows=1 +targeted_system_display_maximum_luminance=400/1 +maxscl=3340/100000 +maxscl=2870/100000 +maxscl=2720/100000 +average_maxrgb=510/100000 +num_distribution_maxrgb_percentiles=9 +distribution_maxrgb_percentage=1 +distribution_maxrgb_percentile=30/100000 +distribution_maxrgb_percentage=5 +distribution_maxrgb_percentile=2940/100000 +distribution_maxrgb_percentage=10 +distribution_maxrgb_percentile=255/100000 +distribution_maxrgb_percentage=25 +distribution_maxrgb_percentile=70/100000 +distribution_maxrgb_percentage=50 +distribution_maxrgb_percentile=1340/100000 +distribution_maxrgb_percentage=75 +distribution_maxrgb_percentile=1600/100000 +distribution_maxrgb_percentage=90 +distribution_maxrgb_percentile=1850/100000 +distribution_maxrgb_percentage=95 +distribution_maxrgb_percentile=1950/100000 +distribution_maxrgb_percentage=99 +distribution_maxrgb_percentile=2940/100000 +fraction_bright_pixels=1/1000 +knee_point_x=0/4095 +knee_point_y=0/4095 +num_bezier_curve_anchors=9 +bezier_curve_anchors=102/1023 +bezier_curve_anchors=205/1023 +bezier_curve_anchors=307/1023 +bezier_curve_anchors=410/1023 +bezier_curve_anchors=512/1023 +bezier_curve_anchors=614/1023 +bezier_curve_anchors=717/1023 +bezier_curve_anchors=819/1023 +bezier_curve_anchors=922/1023 +[/SIDE_DATA] +[/FRAME] \ No newline at end of file diff --git a/tests/ref/fate/libaom-write-hdr10-plus b/tests/ref/fate/libaom-write-hdr10-plus new file mode 100644 index 0000000000..8f9639a522 --- /dev/null +++ b/tests/ref/fate/libaom-write-hdr10-plus @@ -0,0 +1,52 @@ +de9a40ffb4ba574767d3e82e5f977321 *tests/data/fate/libaom-write-hdr10-plus.ivf +16029 tests/data/fate/libaom-write-hdr10-plus.ivf +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 1280x720 +#sar 0: 1/1 +0, 0, 0, 1, 2764800, 0x8cc0fc91 +[FRAME] +[SIDE_DATA] +side_data_type=HDR Dynamic Metadata SMPTE2094-40 (HDR10+) +application version=1 +num_windows=1 +targeted_system_display_maximum_luminance=400/1 +maxscl=3340/100000 +maxscl=2870/100000 +maxscl=2720/100000 +average_maxrgb=510/100000 +num_distribution_maxrgb_percentiles=9 +distribution_maxrgb_percentage=1 +distribution_maxrgb_percentile=30/100000 +distribution_maxrgb_percentage=5 +distribution_maxrgb_percentile=2940/100000 +distribution_maxrgb_percentage=10 +distribution_maxrgb_percentile=255/100000 +distribution_maxrgb_percentage=25 +distribution_maxrgb_percentile=70/100000 +distribution_maxrgb_percentage=50 +distribution_maxrgb_percentile=1340/100000 +distribution_maxrgb_percentage=75 +distribution_maxrgb_percentile=1600/100000 +distribution_maxrgb_percentage=90 +distribution_maxrgb_percentile=1850/100000 +distribution_maxrgb_percentage=95 +distribution_maxrgb_percentile=1950/100000 +distribution_maxrgb_percentage=99 +distribution_maxrgb_percentile=2940/100000 +fraction_bright_pixels=1/1000 +knee_point_x=0/4095 +knee_point_y=0/4095 +num_bezier_curve_anchors=9 +bezier_curve_anchors=102/1023 +bezier_curve_anchors=205/1023 +bezier_curve_anchors=307/1023 +bezier_curve_anchors=410/1023 +bezier_curve_anchors=512/1023 +bezier_curve_anchors=614/1023 +bezier_curve_anchors=717/1023 +bezier_curve_anchors=819/1023 +bezier_curve_anchors=922/1023 +[/SIDE_DATA] +[/FRAME] \ No newline at end of file -- 2.49.0.1204.g71687c7c1d-goog _______________________________________________ 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".