* [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add HDR10+ metadata support
@ 2025-05-30 10:52 Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 10:52 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for " Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 20:01 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add " James Zern via ffmpeg-devel
0 siblings, 2 replies; 7+ messages in thread
From: Maryla Ustarroz-Calonge via ffmpeg-devel @ 2025-05-30 10:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Maryla Ustarroz-Calonge
Signed-off-by: Maryla Ustarroz-Calonge <maryla@google.com>
---
libavcodec/libaomdec.c | 62 ++++++++++++++++++++++++++++++++++++++++++
libavcodec/libaomenc.c | 60 ++++++++++++++++++++++++++++++++++++++++
libavcodec/version.h | 2 +-
3 files changed, 123 insertions(+), 1 deletion(-)
diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c
index 69eec8b089..5995f0ab9b 100644
--- a/libavcodec/libaomdec.c
+++ b/libavcodec/libaomdec.c
@@ -28,11 +28,15 @@
#include "libavutil/common.h"
#include "libavutil/cpu.h"
+#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/imgutils.h"
+#include "libavcodec/bytestream.h"
+
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
+#include "itut35.h"
#include "libaom.h"
#include "profiles.h"
@@ -137,6 +141,59 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
}
}
+static int decode_metadata_itu_t_t35(AVFrame *frame,
+ const uint8_t *buffer, size_t buffer_size)
+{
+ if (buffer_size < 6)
+ return AVERROR(EINVAL);
+
+ GetByteContext bc;
+ bytestream2_init(&bc, buffer, buffer_size);
+
+ const int country_code = bytestream2_get_byteu(&bc);
+ const int provider_code = bytestream2_get_be16u(&bc);
+ const int provider_oriented_code = bytestream2_get_be16u(&bc);
+ const int application_identifier = bytestream2_get_byteu(&bc);
+
+ if (country_code == ITU_T_T35_COUNTRY_CODE_US
+ && provider_code == ITU_T_T35_PROVIDER_CODE_SMTPE
+ && provider_oriented_code == 1
+ && application_identifier == 4) {
+ // HDR10+
+ AVDynamicHDRPlus *hdr_plus = av_dynamic_hdr_plus_create_side_data(frame);
+ if (!hdr_plus)
+ return AVERROR(ENOMEM);
+
+ int res = av_dynamic_hdr_plus_from_t35(hdr_plus, bc.buffer,
+ bytestream2_get_bytes_left(&bc));
+ if (res < 0)
+ return res;
+ }
+
+ return 0;
+}
+
+static int decode_metadata(AVFrame *frame, const struct aom_image *img) {
+ const size_t num_metadata = aom_img_num_metadata(img);
+ for (size_t i = 0; i < num_metadata; ++i) {
+ const aom_metadata_t *metadata = aom_img_get_metadata(img, i);
+ if (!metadata)
+ continue;
+
+ switch (metadata->type) {
+ case OBU_METADATA_TYPE_ITUT_T35: {
+ int res = decode_metadata_itu_t_t35(frame, metadata->payload, metadata->sz);
+ if (res < 0)
+ return res;
+ break;
+ }
+ default:
+ break;
+ }
+ }
+ return 0;
+}
+
static int aom_decode(AVCodecContext *avctx, AVFrame *picture,
int *got_frame, AVPacket *avpkt)
{
@@ -215,6 +272,11 @@ static int aom_decode(AVCodecContext *avctx, AVFrame *picture,
av_image_copy(picture->data, picture->linesize, planes,
stride, avctx->pix_fmt, img->d_w, img->d_h);
}
+ ret = decode_metadata(picture, img);
+ if (ret < 0) {
+ av_log(avctx, AV_LOG_ERROR, "Failed to decode metadata\n");
+ return ret;
+ }
*got_frame = 1;
}
return avpkt->size;
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 9a384fcc39..4d899559d0 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -33,12 +33,15 @@
#include "libavutil/base64.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
+#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
+#include "libavcodec/bytestream.h"
+
#include "av1.h"
#include "avcodec.h"
#include "bsf.h"
@@ -46,6 +49,7 @@
#include "dovi_rpu.h"
#include "encode.h"
#include "internal.h"
+#include "itut35.h"
#include "libaom.h"
#include "packet_internal.h"
#include "profiles.h"
@@ -326,6 +330,57 @@ static av_cold int codecctl_int(AVCodecContext *avctx,
return 0;
}
+static int add_hdr_plus(AVCodecContext *avctx, struct aom_image *img, const AVFrame *frame)
+{
+ // Check for HDR10+
+ AVFrameSideData *side_data =
+ av_frame_get_side_data(frame, AV_FRAME_DATA_DYNAMIC_HDR_PLUS);
+ if (!side_data)
+ return 0;
+
+ size_t payload_size;
+ AVDynamicHDRPlus *hdr_plus = (AVDynamicHDRPlus *)side_data->buf->data;
+ int res = av_dynamic_hdr_plus_to_t35(hdr_plus, NULL, &payload_size);
+ if (res < 0) {
+ log_encoder_error(avctx, "Error finding the size of HDR10+");
+ return res;
+ }
+
+ uint8_t *hdr_plus_buf;
+ // Extra bytes for the country code, provider code, provider oriented code and app id.
+ const size_t hdr_plus_buf_size = payload_size + 6;
+ hdr_plus_buf = av_malloc(hdr_plus_buf_size);
+ if (!hdr_plus_buf)
+ return AVERROR(ENOMEM);
+
+ uint8_t *payload = hdr_plus_buf;
+ bytestream_put_byte(&payload, ITU_T_T35_COUNTRY_CODE_US);
+ bytestream_put_be16(&payload, ITU_T_T35_PROVIDER_CODE_SMTPE);
+ bytestream_put_be16(&payload, 0x01); // provider_oriented_code
+ bytestream_put_byte(&payload, 0x04); // application_identifier
+
+ res = av_dynamic_hdr_plus_to_t35(hdr_plus, &payload, &payload_size);
+ if (res < 0) {
+ av_free(hdr_plus_buf);
+ log_encoder_error(avctx, "Error encoding HDR10+ from side data");
+ return res;
+ }
+
+#if AOM_IMAGE_ABI_VERSION < 8
+ res = aom_img_add_metadata(img, OBU_METADATA_TYPE_ITUT_T35,
+ hdr_plus_buf, hdr_plus_buf_size);
+#else
+ res = aom_img_add_metadata(img, OBU_METADATA_TYPE_ITUT_T35,
+ hdr_plus_buf, hdr_plus_buf_size, AOM_MIF_ANY_FRAME);
+#endif
+ av_free(hdr_plus_buf);
+ if (res < 0) {
+ log_encoder_error(avctx, "Error adding HDR10+ to aom_img");
+ return res;
+ }
+ return 0;
+}
+
#if defined(AOM_CTRL_AV1E_GET_NUM_OPERATING_POINTS) && \
defined(AOM_CTRL_AV1E_GET_SEQ_LEVEL_IDX) && \
defined(AOM_CTRL_AV1E_GET_TARGET_SEQ_LEVEL_IDX)
@@ -1254,6 +1309,7 @@ static int aom_encode(AVCodecContext *avctx, AVPacket *pkt,
if (frame) {
rawimg = &ctx->rawimg;
+ aom_img_remove_metadata(rawimg);
rawimg->planes[AOM_PLANE_Y] = frame->data[0];
rawimg->planes[AOM_PLANE_U] = frame->data[1];
rawimg->planes[AOM_PLANE_V] = frame->data[2];
@@ -1304,6 +1360,10 @@ static int aom_encode(AVCodecContext *avctx, AVPacket *pkt,
if (frame->pict_type == AV_PICTURE_TYPE_I)
flags |= AOM_EFLAG_FORCE_KF;
+
+ res = add_hdr_plus(avctx, rawimg, frame);
+ if (res < 0)
+ return res;
}
res = aom_codec_encode(&ctx->encoder, rawimg, timestamp, duration, flags);
diff --git a/libavcodec/version.h b/libavcodec/version.h
index eedf4c5a92..cde7d40bc0 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -30,7 +30,7 @@
#include "version_major.h"
#define LIBAVCODEC_VERSION_MINOR 3
-#define LIBAVCODEC_VERSION_MICRO 101
+#define LIBAVCODEC_VERSION_MICRO 102
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
--
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
2025-05-30 10:52 [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add HDR10+ metadata support Maryla Ustarroz-Calonge via ffmpeg-devel
@ 2025-05-30 10:52 ` Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 12:52 ` Andreas Rheinhardt
2025-05-30 20:01 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add " James Zern via ffmpeg-devel
1 sibling, 1 reply; 7+ messages in thread
From: Maryla Ustarroz-Calonge via ffmpeg-devel @ 2025-05-30 10:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Maryla Ustarroz-Calonge
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 <maryla@google.com>
---
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
2025-05-30 10:52 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for " Maryla Ustarroz-Calonge via ffmpeg-devel
@ 2025-05-30 12:52 ` Andreas Rheinhardt
2025-06-02 9:34 ` Maryla Ustarroz via ffmpeg-devel
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Rheinhardt @ 2025-05-30 12:52 UTC (permalink / raw)
To: ffmpeg-devel
Maryla Ustarroz-Calonge via ffmpeg-devel:
> 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 <maryla@google.com>
> ---
> 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.
There is no such thing as MPEG4 WebM.
> +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"
This test includes a checksum of the generated file. The test will
therefore fail as soon as libaom-av1's output changes. Use enc_external
instead.
> +
> +# 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"
This test has the same issue as the above; if ffprobe were changed so
that one can force a specific decoder, this whole test could be made
redundant by using the libaom-av1 decoder with ffprobe in the test above.
> +
> +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
_______________________________________________
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add HDR10+ metadata support
2025-05-30 10:52 [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add HDR10+ metadata support Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 10:52 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for " Maryla Ustarroz-Calonge via ffmpeg-devel
@ 2025-05-30 20:01 ` James Zern via ffmpeg-devel
1 sibling, 0 replies; 7+ messages in thread
From: James Zern via ffmpeg-devel @ 2025-05-30 20:01 UTC (permalink / raw)
To: FFmpeg development discussions and patches
Cc: James Zern, Maryla Ustarroz-Calonge
On Fri, May 30, 2025 at 3:52 AM Maryla Ustarroz-Calonge via
ffmpeg-devel <ffmpeg-devel@ffmpeg.org> wrote:
>
> Signed-off-by: Maryla Ustarroz-Calonge <maryla@google.com>
> ---
> libavcodec/libaomdec.c | 62 ++++++++++++++++++++++++++++++++++++++++++
> libavcodec/libaomenc.c | 60 ++++++++++++++++++++++++++++++++++++++++
> libavcodec/version.h | 2 +-
> 3 files changed, 123 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c
> index 69eec8b089..5995f0ab9b 100644
> --- a/libavcodec/libaomdec.c
> +++ b/libavcodec/libaomdec.c
> @@ -28,11 +28,15 @@
>
> #include "libavutil/common.h"
> #include "libavutil/cpu.h"
> +#include "libavutil/hdr_dynamic_metadata.h"
> #include "libavutil/imgutils.h"
>
> +#include "libavcodec/bytestream.h"
This can be "bytestream.h" and added to the group below.
> +
> #include "avcodec.h"
> #include "codec_internal.h"
> #include "decode.h"
> +#include "itut35.h"
> #include "libaom.h"
> #include "profiles.h"
>
> @@ -137,6 +141,59 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
> }
> }
>
> +static int decode_metadata_itu_t_t35(AVFrame *frame,
> + const uint8_t *buffer, size_t buffer_size)
> +{
> + if (buffer_size < 6)
> + return AVERROR(EINVAL);
> +
> + GetByteContext bc;
> + bytestream2_init(&bc, buffer, buffer_size);
> +
> + const int country_code = bytestream2_get_byteu(&bc);
> + const int provider_code = bytestream2_get_be16u(&bc);
> + const int provider_oriented_code = bytestream2_get_be16u(&bc);
> + const int application_identifier = bytestream2_get_byteu(&bc);
> +
> + if (country_code == ITU_T_T35_COUNTRY_CODE_US
> + && provider_code == ITU_T_T35_PROVIDER_CODE_SMTPE
> + && provider_oriented_code == 1
> + && application_identifier == 4) {
Is there a spec or other source that can be referenced for these
values? The same goes for the setting of the values in libaomenc.c
> [...]
> diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
> index 9a384fcc39..4d899559d0 100644
> --- a/libavcodec/libaomenc.c
> +++ b/libavcodec/libaomenc.c
> @@ -33,12 +33,15 @@
> #include "libavutil/base64.h"
> #include "libavutil/common.h"
> #include "libavutil/cpu.h"
> +#include "libavutil/hdr_dynamic_metadata.h"
> #include "libavutil/imgutils.h"
> #include "libavutil/mathematics.h"
> #include "libavutil/mem.h"
> #include "libavutil/opt.h"
> #include "libavutil/pixdesc.h"
>
> +#include "libavcodec/bytestream.h"
This can be "bytestream.h" and added to the group below.
> +
> #include "av1.h"
> #include "avcodec.h"
> #include "bsf.h"
> @@ -46,6 +49,7 @@
> #include "dovi_rpu.h"
> #include "encode.h"
> #include "internal.h"
> +#include "itut35.h"
> #include "libaom.h"
> #include "packet_internal.h"
> #include "profiles.h"
> @@ -326,6 +330,57 @@ static av_cold int codecctl_int(AVCodecContext *avctx,
> return 0;
> }
>
> +static int add_hdr_plus(AVCodecContext *avctx, struct aom_image *img, const AVFrame *frame)
> +{
> + // Check for HDR10+
> + AVFrameSideData *side_data =
> + av_frame_get_side_data(frame, AV_FRAME_DATA_DYNAMIC_HDR_PLUS);
> + if (!side_data)
> + return 0;
> +
> + size_t payload_size;
> + AVDynamicHDRPlus *hdr_plus = (AVDynamicHDRPlus *)side_data->buf->data;
> + int res = av_dynamic_hdr_plus_to_t35(hdr_plus, NULL, &payload_size);
> + if (res < 0) {
> + log_encoder_error(avctx, "Error finding the size of HDR10+");
> + return res;
> + }
> +
> + uint8_t *hdr_plus_buf;
> + // Extra bytes for the country code, provider code, provider oriented code and app id.
> + const size_t hdr_plus_buf_size = payload_size + 6;
> + hdr_plus_buf = av_malloc(hdr_plus_buf_size);
> + if (!hdr_plus_buf)
> + return AVERROR(ENOMEM);
> +
> + uint8_t *payload = hdr_plus_buf;
> + bytestream_put_byte(&payload, ITU_T_T35_COUNTRY_CODE_US);
> + bytestream_put_be16(&payload, ITU_T_T35_PROVIDER_CODE_SMTPE);
> + bytestream_put_be16(&payload, 0x01); // provider_oriented_code
> + bytestream_put_byte(&payload, 0x04); // application_identifier
> +
> + res = av_dynamic_hdr_plus_to_t35(hdr_plus, &payload, &payload_size);
> + if (res < 0) {
> + av_free(hdr_plus_buf);
> + log_encoder_error(avctx, "Error encoding HDR10+ from side data");
> + return res;
> + }
> +
> +#if AOM_IMAGE_ABI_VERSION < 8
This can be removed. configure requires libaom >= 2.0.0; in that
version AOM_IMAGE_ABI_VERSION is 9.
_______________________________________________
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
2025-05-30 12:52 ` Andreas Rheinhardt
@ 2025-06-02 9:34 ` Maryla Ustarroz via ffmpeg-devel
2025-06-05 7:27 ` Andreas Rheinhardt
0 siblings, 1 reply; 7+ messages in thread
From: Maryla Ustarroz via ffmpeg-devel @ 2025-06-02 9:34 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Maryla Ustarroz
On Fri, May 30, 2025 at 2:52 PM Andreas Rheinhardt
<andreas.rheinhardt@outlook.com> wrote:
>
> Maryla Ustarroz-Calonge via ffmpeg-devel:
> > 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 <maryla@google.com>
> > ---
> > 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.
>
> There is no such thing as MPEG4 WebM.
Apologies, after more careful consideration I think this would be correct?
# Tests that transcoding VP9 WEBM to AV1 (libaom-av1) keeps HDR10+ metadata.
FATE_AV1_FFMPEG_FFPROBE-$(call ENCDEC, LIBAOM_AV1 VP9, IVF MATROSKA)
+= fate-libaom-write-hdr10-plus
fate-libaom-write-hdr10-plus: CMD = enc_external
$(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"
> > +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"
>
> This test includes a checksum of the generated file. The test will
> therefore fail as soon as libaom-av1's output changes. Use enc_external
> instead.
Thanks, I had not noticed enc_external.
> > +
> > +# 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"
>
> This test has the same issue as the above; if ffprobe were changed so
> that one can force a specific decoder, this whole test could be made
> redundant by using the libaom-av1 decoder with ffprobe in the test above.
I agree this would be a good feature for ffprobe to have in general.
Currently, it's the first test that is actually redundant. It tests
writing, while the
second one tests reading+writing. I used it to generate the new test
file for the second test.
Assuming the new test file gets added to fate (which I will request
when this patch gets approved),
should I just remove the first test?
> > +
> > +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
_______________________________________________
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
2025-06-02 9:34 ` Maryla Ustarroz via ffmpeg-devel
@ 2025-06-05 7:27 ` Andreas Rheinhardt
2025-06-13 7:16 ` Maryla Ustarroz via ffmpeg-devel
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Rheinhardt @ 2025-06-05 7:27 UTC (permalink / raw)
To: ffmpeg-devel
Maryla Ustarroz via ffmpeg-devel:
> On Fri, May 30, 2025 at 2:52 PM Andreas Rheinhardt
> <andreas.rheinhardt@outlook.com> wrote:
>>
>> Maryla Ustarroz-Calonge via ffmpeg-devel:
>>> 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 <maryla@google.com>
>>> ---
>>> 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.
>>
>> There is no such thing as MPEG4 WebM.
>
> Apologies, after more careful consideration I think this would be correct?
>
> # Tests that transcoding VP9 WEBM to AV1 (libaom-av1) keeps HDR10+ metadata.
> FATE_AV1_FFMPEG_FFPROBE-$(call ENCDEC, LIBAOM_AV1 VP9, IVF MATROSKA)
> += fate-libaom-write-hdr10-plus
> fate-libaom-write-hdr10-plus: CMD = enc_external
> $(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"
>
>
>>> +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"
>>
>> This test includes a checksum of the generated file. The test will
>> therefore fail as soon as libaom-av1's output changes. Use enc_external
>> instead.
>
> Thanks, I had not noticed enc_external.
>
>>> +
>>> +# 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"
>>
>> This test has the same issue as the above; if ffprobe were changed so
>> that one can force a specific decoder, this whole test could be made
>> redundant by using the libaom-av1 decoder with ffprobe in the test above.
>
> I agree this would be a good feature for ffprobe to have in general.
> Currently, it's the first test that is actually redundant. It tests
> writing, while the
> second one tests reading+writing. I used it to generate the new test
> file for the second test.
> Assuming the new test file gets added to fate (which I will request
> when this patch gets approved),
> should I just remove the first test?
>
No, improving ffprobe is preferable. Then the second test and the new
file can be avoided.
>
>>> +
>>> +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
> _______________________________________________
> 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".
_______________________________________________
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
2025-06-05 7:27 ` Andreas Rheinhardt
@ 2025-06-13 7:16 ` Maryla Ustarroz via ffmpeg-devel
0 siblings, 0 replies; 7+ messages in thread
From: Maryla Ustarroz via ffmpeg-devel @ 2025-06-13 7:16 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Maryla Ustarroz
[-- Attachment #1: Type: message/rfc822, Size: 13292 bytes --]
From: Maryla Ustarroz <maryla@google.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for HDR10+ metadata support
Date: Fri, 13 Jun 2025 09:16:42 +0200
Message-ID: <CA+yX6GF8uz-xFd-L82kqrQVW6fFOhHHrbCJ-M+a30w68PbsuLQ@mail.gmail.com>
On Thu, Jun 5, 2025 at 9:27 AM Andreas Rheinhardt
<andreas.rheinhardt@outlook.com> wrote:
>
> Maryla Ustarroz via ffmpeg-devel:
> > On Fri, May 30, 2025 at 2:52 PM Andreas Rheinhardt
> > <andreas.rheinhardt@outlook.com> wrote:
> >>
> >> Maryla Ustarroz-Calonge via ffmpeg-devel:
> >>> 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 <maryla@google.com>
> >>> ---
> >>> 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.
> >>
> >> There is no such thing as MPEG4 WebM.
> >
> > Apologies, after more careful consideration I think this would be correct?
> >
> > # Tests that transcoding VP9 WEBM to AV1 (libaom-av1) keeps HDR10+ metadata.
> > FATE_AV1_FFMPEG_FFPROBE-$(call ENCDEC, LIBAOM_AV1 VP9, IVF MATROSKA)
> > += fate-libaom-write-hdr10-plus
> > fate-libaom-write-hdr10-plus: CMD = enc_external
> > $(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"
> >
> >
> >>> +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"
> >>
> >> This test includes a checksum of the generated file. The test will
> >> therefore fail as soon as libaom-av1's output changes. Use enc_external
> >> instead.
> >
> > Thanks, I had not noticed enc_external.
> >
> >>> +
> >>> +# 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"
> >>
> >> This test has the same issue as the above; if ffprobe were changed so
> >> that one can force a specific decoder, this whole test could be made
> >> redundant by using the libaom-av1 decoder with ffprobe in the test above.
> >
> > I agree this would be a good feature for ffprobe to have in general.
> > Currently, it's the first test that is actually redundant. It tests
> > writing, while the
> > second one tests reading+writing. I used it to generate the new test
> > file for the second test.
> > Assuming the new test file gets added to fate (which I will request
> > when this patch gets approved),
> > should I just remove the first test?
> >
>
> No, improving ffprobe is preferable. Then the second test and the new
> file can be avoided.
FYI I sent a patch for ffprobe a couple of days ago (titled "ffprobe:
add -codec:<media_spec> option")
Let me know what you think.
> >
> >>> +
> >>> +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
> > _______________________________________________
> > 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".
>
> _______________________________________________
> 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".
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
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".
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-13 7:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-30 10:52 [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add HDR10+ metadata support Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 10:52 ` [FFmpeg-devel] [PATCH 2/2] avcodec/libaom: Add tests for " Maryla Ustarroz-Calonge via ffmpeg-devel
2025-05-30 12:52 ` Andreas Rheinhardt
2025-06-02 9:34 ` Maryla Ustarroz via ffmpeg-devel
2025-06-05 7:27 ` Andreas Rheinhardt
2025-06-13 7:16 ` Maryla Ustarroz via ffmpeg-devel
2025-05-30 20:01 ` [FFmpeg-devel] [PATCH 1/2] avcodec/libaom: Add " James Zern via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git