History

tests/fate/matroska: Add container cropping test

Andreas Rheinhardt committed 1 year ago

Commit bd2dcfa1 parent 95c43c62 files · +82 −0Browse files

Unified · Split

2 files
  1. tests/fate/matroska.mak +12 −0
  2. tests/ref/fate/matroska-crop +70 −0
tests/fate/matroska.mak+12−0
@@ -100,6 +100,18 @@ fate-matroska-non-rotation-displaymatrix: CMD = transcode mov $(TARGET_SAMPLES)/ · 99 unmodified lines
100100 "-c copy" \
101101 "-show_entries stream_side_data_list"
102102
103+# This test tests container cropping. The expected output is that
104+# only the copied streams have cropping (and displaymatrix) side data
105+# and that stream #1 (for which applying cropping was not disabled)
106+# and the reencoded stream #2 decode to the same.
107+FATE_MATROSKA_FFMPEG_FFPROBE-$(call TRANSCODE, UTVIDEO, MATROSKA, MOV_DEMUXER HEVC_DECODER) \
108+ += fate-matroska-crop
109+fate-matroska-crop: CMD = transcode mov $(TARGET_SAMPLES)/heif-conformance/MIAF007.heic matroska \
110+ "-map 0:0 -map 0:0 -map 0:0 -c:0 copy -c:1 copy -c:2 utvideo" \
111+ "-map 0" \
112+ "-show_entries stream=index,codec_name,width,height:stream_side_data_list" "" \
113+ "-apply_cropping:0 none"
114+
103115 # This tests DOVI (reading from MP4 and Matroska and writing to Matroska)
104116 # as well as writing the Cues at the front (by shifting data) if
105117 # the initially reserved amount of space turns out to be insufficient.
tests/ref/fate/matroska-crop+70−0
@@ -0,0 +1,70 @@
1+fc4932f90dfc955b55cfbdbb210fdd16 *tests/data/fate/matroska-crop.matroska
2+355698 tests/data/fate/matroska-crop.matroska
3+#tb 0: 1/1
4+#media_type 0: video
5+#codec_id 0: rawvideo
6+#dimensions 0: 720x1280
7+#sar 0: 0/1
8+#tb 1: 1/1
9+#media_type 1: video
10+#codec_id 1: rawvideo
11+#dimensions 1: 360x640
12+#sar 1: 0/1
13+#tb 2: 1/1
14+#media_type 2: video
15+#codec_id 2: rawvideo
16+#dimensions 2: 360x640
17+#sar 2: 0/1
18+0, 0, 0, 1, 1382400, 0xc8267e89
19+1, 0, 0, 1, 345600, 0x84b4bdaa
20+2, 0, 0, 1, 345600, 0x84b4bdaa
21+[STREAM]
22+index=0
23+codec_name=hevc
24+width=1280
25+height=720
26+[SIDE_DATA]
27+side_data_type=Frame Cropping
28+crop_top=180
29+crop_bottom=180
30+crop_left=320
31+crop_right=320
32+[/SIDE_DATA]
33+[SIDE_DATA]
34+side_data_type=Display Matrix
35+displaymatrix=
36+00000000: 0 65536 0
37+00000001: 65536 0 0
38+00000002: 0 0 1073741824
39+
40+rotation=-90
41+[/SIDE_DATA]
42+[/STREAM]
43+[STREAM]
44+index=1
45+codec_name=hevc
46+width=1280
47+height=720
48+[SIDE_DATA]
49+side_data_type=Frame Cropping
50+crop_top=180
51+crop_bottom=180
52+crop_left=320
53+crop_right=320
54+[/SIDE_DATA]
55+[SIDE_DATA]
56+side_data_type=Display Matrix
57+displaymatrix=
58+00000000: 0 65536 0
59+00000001: 65536 0 0
60+00000002: 0 0 1073741824
61+
62+rotation=-90
63+[/SIDE_DATA]
64+[/STREAM]
65+[STREAM]
66+index=2
67+codec_name=utvideo
68+width=360
69+height=640
70+[/STREAM]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t