Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Subject: [FFmpeg-devel] [PATCH] fate/ffmpeg: Add test for autorotating video
Date: Fri, 21 Jan 2022 23:40:02 +0100
Message-ID: <AM7PR03MB66600A7CBD20DACDA2CFBE0A8F5B9@AM7PR03MB6660.eurprd03.prod.outlook.com> (raw)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@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

_______________________________________________
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".

                 reply	other threads:[~2022-01-21 22:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM7PR03MB66600A7CBD20DACDA2CFBE0A8F5B9@AM7PR03MB6660.eurprd03.prod.outlook.com \
    --to=andreas.rheinhardt@outlook.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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