[FFmpeg-devel] [PATCH] fate/ffmpeg: Add test for autorotating video
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat Jan 22 00:40:02 EET 2022
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
tests/fate/ffmpeg.mak | 6 ++++
tests/ref/fate/autorotate | 61 +++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
create mode 100644 tests/ref/fate/autorotate
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index b80467d02e..b48dd25a3b 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -48,6 +48,12 @@ fate-force_key_frames: CMD = enc_dec \
avi "-c mpeg4 -g 240 -qscale 10 -force_key_frames 0.5,0:00:01.5" \
framecrc "" "" "-skip_frame nokey"
+# Tests that the video is properly autorotated using the contained
+# display matrix and that the generated file does not contain
+# a display matrix any more.
+FATE_SAMPLES_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL MOV_DEMUXER H264_DECODER AAC_FIXED_DECODER MPEG2VIDEO_ENCODER AC3_FIXED_ENCODER MOV_MUXER MPEG2VIDEO_DECODER EXTRACT_EXTRADATA_BSF PIPE_PROTOCOL FRAMECRC_MUXER) += fate-autorotate
+fate-autorotate: CMD = transcode "mov -c:a aac_fixed" $(TARGET_SAMPLES)/filter/sample-in-issue-505.mov mov "-c:v mpeg2video -c:a ac3_fixed" "-c copy -t 0.5" "" "-show_entries stream_side_data_list"
+
FATE_SAMPLES_FFMPEG-$(call ALLYES, VOBSUB_DEMUXER DVDSUB_DECODER AVFILTER OVERLAY_FILTER DVDSUB_ENCODER) += fate-sub2video
fate-sub2video: tests/data/vsynth_lena.yuv
fate-sub2video: CMD = framecrc -auto_conversion_filters \
diff --git a/tests/ref/fate/autorotate b/tests/ref/fate/autorotate
new file mode 100644
index 0000000000..df8eaf26f9
--- /dev/null
+++ b/tests/ref/fate/autorotate
@@ -0,0 +1,61 @@
+eaeb2b429cadcfd3d0984e2270126564 *tests/data/fate/autorotate.mov
+197358 tests/data/fate/autorotate.mov
+#extradata 0: 34, 0x9d7d073f
+#tb 0: 1/15360
+#media_type 0: video
+#codec_id 0: mpeg2video
+#dimensions 0: 272x480
+#sar 0: 1/1
+#tb 1: 1/44100
+#media_type 1: audio
+#codec_id 1: ac3
+#sample_rate 1: 44100
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0, -512, 0, 512, 6997, 0x55c700f6, S=1, 40
+1, -256, -256, 1536, 416, 0x92ddc529, S=2, 10, 4
+0, 0, 512, 512, 4847, 0xe74f522e, F=0x0
+1, 1280, 1280, 1536, 418, 0xc96bce7b
+0, 512, 1024, 512, 5281, 0xbd4a5dac, F=0x0
+1, 2816, 2816, 1536, 418, 0xaeffcf21
+0, 1024, 1536, 512, 3521, 0x0c07249d, F=0x0
+1, 4352, 4352, 1536, 418, 0xcd37cd04
+0, 1536, 2048, 512, 5128, 0xce8bfa02, F=0x0
+0, 2048, 2560, 512, 2759, 0x2369d21d, F=0x0
+1, 5888, 5888, 1536, 418, 0x2f80bc7d
+0, 2560, 3072, 512, 2057, 0x5d7ea97b, F=0x0
+1, 7424, 7424, 1536, 418, 0xb290c6ea
+0, 3072, 3584, 512, 2114, 0x91d1f369, F=0x0
+1, 8960, 8960, 1536, 418, 0xa862cc5b
+0, 3584, 4096, 512, 1883, 0x3dd68028, F=0x0
+1, 10496, 10496, 1536, 418, 0xb148cc5e
+0, 4096, 4608, 512, 2025, 0xcf3dc34f, F=0x0
+1, 12032, 12032, 1536, 418, 0xcf34cb00
+0, 4608, 5120, 512, 1586, 0x3977edf0, F=0x0
+1, 13568, 13568, 1536, 418, 0x4665c882
+0, 5120, 5632, 512, 1633, 0x64c5e315, F=0x0
+1, 15104, 15104, 1536, 418, 0x8e4fc865
+0, 5632, 6144, 512, 3894, 0x32306d8d
+1, 16640, 16640, 1536, 418, 0x80bccbc8
+0, 6144, 6656, 512, 1490, 0xa541a35a, F=0x0
+1, 18176, 18176, 1536, 418, 0x84eaca12
+0, 6656, 7168, 512, 1253, 0x7e93302b, F=0x0
+1, 19712, 19712, 1536, 418, 0xc3b6cbd8
+0, 7168, 7680, 512, 1573, 0x58fcd6b2, F=0x0
+1, 21248, 21248, 1536, 418, 0xa345cb53
+[STREAM]
+[SIDE_DATA]
+side_data_type=CPB properties
+max_bitrate=0
+min_bitrate=0
+avg_bitrate=0
+buffer_size=49152
+vbv_delay=-1
+[/SIDE_DATA]
+[/STREAM]
+[STREAM]
+[SIDE_DATA]
+side_data_type=Audio Service Type
+service_type=0
+[/SIDE_DATA]
+[/STREAM]
--
2.32.0
More information about the ffmpeg-devel
mailing list