[FFmpeg-devel] [PATCH v2 1/6] fate: Add dpx-probe test

Harry Mallon harry.mallon at codex.online
Thu Dec 10 14:27:13 EET 2020


Signed-off-by: Harry Mallon <harry.mallon at codex.online>
---
 tests/fate/image.mak     |  4 ++
 tests/ref/fate/dpx-probe | 85 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)
 create mode 100644 tests/ref/fate/dpx-probe

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 22072a62f1..a24c054c25 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -97,6 +97,10 @@ fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
 FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX) += fate-dpxparser
 fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/lena_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
 
+FATE_IMAGE-$(call DEMDEC, IMAGE2, DPX) += fate-dpx-probe
+fate-dpx-probe: SRC = $(TARGET_SAMPLES)/dpx/cyan.dpx
+fate-dpx-probe: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_streams -show_frames -print_format default -bitexact -v 0 -i "$(SRC)" | sed -e "s/gbrp10le/gbrp10/"
+
 FATE_EXR += fate-exr-slice-raw
 fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt gbrapf32le
 
diff --git a/tests/ref/fate/dpx-probe b/tests/ref/fate/dpx-probe
new file mode 100644
index 0000000000..0f9ac9e633
--- /dev/null
+++ b/tests/ref/fate/dpx-probe
@@ -0,0 +1,85 @@
+[FRAME]
+media_type=video
+stream_index=0
+key_frame=1
+pkt_pts=0
+pkt_pts_time=0.000000
+pkt_dts=0
+pkt_dts_time=0.000000
+best_effort_timestamp=0
+best_effort_timestamp_time=0.000000
+pkt_duration=1
+pkt_duration_time=0.040000
+pkt_pos=0
+pkt_size=8768
+width=16
+height=9
+pix_fmt=gbrp10
+sample_aspect_ratio=1:1
+pict_type=?
+coded_picture_number=0
+display_picture_number=0
+interlaced_frame=0
+top_field_first=0
+repeat_pict=0
+color_range=unknown
+color_space=unknown
+color_primaries=unknown
+color_transfer=unknown
+chroma_location=unspecified
+TAG:Creator=Apple Compressor
+TAG:Input Device=
+[/FRAME]
+[STREAM]
+index=0
+codec_name=dpx
+profile=unknown
+codec_type=video
+codec_time_base=1/24
+codec_tag_string=[0][0][0][0]
+codec_tag=0x0000
+width=16
+height=9
+coded_width=16
+coded_height=9
+closed_captions=0
+has_b_frames=0
+sample_aspect_ratio=1:1
+display_aspect_ratio=16:9
+pix_fmt=gbrp10
+level=-99
+color_range=unknown
+color_space=unknown
+color_transfer=unknown
+color_primaries=unknown
+chroma_location=unspecified
+field_order=unknown
+timecode=N/A
+refs=1
+id=N/A
+r_frame_rate=24/1
+avg_frame_rate=0/0
+time_base=1/25
+start_pts=N/A
+start_time=N/A
+duration_ts=N/A
+duration=N/A
+bit_rate=N/A
+max_bit_rate=N/A
+bits_per_raw_sample=10
+nb_frames=N/A
+nb_read_frames=1
+nb_read_packets=N/A
+DISPOSITION:default=0
+DISPOSITION:dub=0
+DISPOSITION:original=0
+DISPOSITION:comment=0
+DISPOSITION:lyrics=0
+DISPOSITION:karaoke=0
+DISPOSITION:forced=0
+DISPOSITION:hearing_impaired=0
+DISPOSITION:visual_impaired=0
+DISPOSITION:clean_effects=0
+DISPOSITION:attached_pic=0
+DISPOSITION:timed_thumbnails=0
+[/STREAM]
-- 
2.29.2



More information about the ffmpeg-devel mailing list