[FFmpeg-devel] [PATCH 1/6] tests: Add enhanced-flv-hevc-hdr10 for demux and mux HDR color info
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Mar 10 18:14:13 EET 2025
Zhao Zhili:
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> ---
> tests/fate/flvenc.mak | 4 +
> tests/ref/fate/enhanced-flv-hevc-hdr10 | 100 +++++++++++++++++++++++++
> 2 files changed, 104 insertions(+)
> create mode 100644 tests/ref/fate/enhanced-flv-hevc-hdr10
>
> diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak
> index 8ef6027a4d..eac3eec028 100644
> --- a/tests/fate/flvenc.mak
> +++ b/tests/fate/flvenc.mak
> @@ -13,6 +13,10 @@ FATE_ENHANCED_FLVENC_FFMPEG-$(call REMUX, FLV IVF, FLV_DEMUXER AV1_DECODER AV1_P
> fate-enhanced-flv-av1: CMD = stream_remux ivf $(TARGET_SAMPLES)/av1/seq_hdr_op_param_info.ivf "-c:v av1" \
> flv "-c copy" "-c:v av1" "-c copy"
>
> +FATE_ENHANCED_FLVENC_FFMPEG-$(call REMUX, FLV HEVC, FLV_DEMUXER HEVC_DECODER HEVC_PARSER) += fate-enhanced-flv-hevc-hdr10
This test uses ffprobe and should therefore use
FATE_ENHANCED_FLVENC_FFMPEG_FFPROBE to get an FFPROBE dependency.
> +fate-enhanced-flv-hevc-hdr10: CMD = stream_remux hevc $(TARGET_SAMPLES)/hevc/hdr10_plus_h265_sample.hevc "-c:v hevc" \
> + flv "-c copy" "-c:v hevc" "-c copy" "-show_frames"
> +
> FATE_ENHANCED_FLVENC_FFMPEG_FFPROBE-$(call REMUX, FLV, FLV_DEMUXER AAC_PARSER AC3_PARSER OPUS_PARSER FLAC_PARSER VP9_PARSER AV1_PARSER HEVC_PARSER H264_PARSER) += fate-enhanced-flv-multitrack
> fate-enhanced-flv-multitrack: CMD = stream_remux flv $(TARGET_SAMPLES)/flv/multitrack.flv "" flv "-map 0" "" "-c copy -map 0" \
> "-show_entries stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index"
> diff --git a/tests/ref/fate/enhanced-flv-hevc-hdr10 b/tests/ref/fate/enhanced-flv-hevc-hdr10
> new file mode 100644
> index 0000000000..cb7acea328
> --- /dev/null
> +++ b/tests/ref/fate/enhanced-flv-hevc-hdr10
> @@ -0,0 +1,100 @@
> +#extradata 0: 111, 0x091d1885
> +#tb 0: 1/1000
> +#media_type 0: video
> +#codec_id 0: hevc
> +#dimensions 0: 1280x720
> +#sar 0: 0/1
> +0, 0, 0, 40, 77718, 0xb59c83a5
> +[FRAME]
> +media_type=video
> +stream_index=0
> +key_frame=1
> +pts=0
> +pts_time=0.000000
> +pkt_dts=0
> +pkt_dts_time=0.000000
> +best_effort_timestamp=0
> +best_effort_timestamp_time=0.000000
> +duration=N/A
> +duration_time=N/A
> +pkt_pos=459
> +pkt_size=77718
> +width=1280
> +height=720
> +crop_top=0
> +crop_bottom=0
> +crop_left=0
> +crop_right=0
> +pix_fmt=yuv420p10le
> +sample_aspect_ratio=N/A
> +pict_type=I
> +interlaced_frame=0
> +top_field_first=0
> +lossless=0
> +repeat_pict=0
> +color_range=tv
> +color_space=bt2020nc
> +color_primaries=bt2020
> +color_transfer=smpte2084
> +chroma_location=left
> +[SIDE_DATA]
> +side_data_type=Mastering display metadata
> +red_x=13250/50000
> +red_y=34500/50000
> +green_x=7500/50000
> +green_y=3000/50000
> +blue_x=34000/50000
> +blue_y=16000/50000
> +white_point_x=15635/50000
> +white_point_y=16450/50000
> +min_luminance=50/10000
> +max_luminance=10000000/10000
> +[/SIDE_DATA]
> +[SIDE_DATA]
> +side_data_type=Content light level metadata
> +max_content=1000
> +max_average=200
> +[/SIDE_DATA]
> +[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]
More information about the ffmpeg-devel
mailing list