Opened 10 months ago

#10355 new defect

AV1 (libsvtav1) HDR metadata missing after encoding

Reported by: Frank Owned by:
Priority: normal Component: ffmpeg
Version: 6.0 Keywords: metadata libsvtav1
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

# Source: https://storage.googleapis.com/media.webmproject.org/devsite/vp9/hdr-encoding/strobe_scientist.mkv
# SVT-AV1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Parameters.md
# ffmpeg source: https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg6

# ffmpeg 6.0
# libsvtav1 1.4.1

ffmpeg command

ffmpeg \
-i strobe_scientist.mkv \
-bsf:v "av1_metadata=tick_rate=24000/1001:num_ticks_per_picture=24000:td=insert:\
color_range=tv:color_primaries=9:matrix_coefficients=9:transfer_characteristics=16:\
chroma_sample_position=colocated:delete_padding=0" \
-b:v 18000000 -minrate 8040000 -maxrate 26800000 \
-pix_fmt yuv420p10le -color_range 1 -colorspace 9 -color_primaries 9 -color_trc 16 \
-chroma_sample_location topleft -field_order progressive \
-codec:v libsvtav1 -profile:v main \
-svtav1-params "enable-hdr=1:color-format=1:color-range=0:color-primaries=9:matrix-coefficients=9:transfer-characteristics=16:chroma-sample-position=2:\
mastering-display=G(0.2650,0.6900)B(0.1500,0.0600)R(0.6800,0.3200)WP(0.3127,0.3290)L(1000.0,0.01):content-light=1000,300" \
-f matroska -an -y \
strobe_scientist_18Mbps_AV1.mkv

Tested with mkvinfo - hdr metadata is not included.
Only chroma position (topleft) is included.

mkvmerge \
-o strobe_scientist_18Mbps_AV1_HDR.mkv \
--colour-matrix 0:9 \
--colour-range 0:1 \
--colour-transfer-characteristics 0:16 \
--colour-primaries 0:9 \
--max-content-light 0:1000 \
--max-frame-light 0:300 \
--max-luminance 0:1000 \
--min-luminance 0:0.01 \
--chromaticity-coordinates 0:0.68,0.32,0.265,0.690,0.15,0.06 \
--white-colour-coordinates 0:0.3127,0.3290 \
strobe_scientist_18Mbps_AV1.mkv

Tested with mkvmerge - hdr metadata is included.

Change History (0)

Note: See TracTickets for help on using tickets.