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
100 "-c copy" \100 "-c copy" \
101 "-show_entries stream_side_data_list"101 "-show_entries stream_side_data_list"
102 102
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.
107FATE_MATROSKA_FFMPEG_FFPROBE-$(call TRANSCODE, UTVIDEO, MATROSKA, MOV_DEMUXER HEVC_DECODER) \
108 += fate-matroska-crop
109fate-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
103# This tests DOVI (reading from MP4 and Matroska and writing to Matroska)115# This tests DOVI (reading from MP4 and Matroska and writing to Matroska)
104# as well as writing the Cues at the front (by shifting data) if116# as well as writing the Cues at the front (by shifting data) if
105# the initially reserved amount of space turns out to be insufficient.117# the initially reserved amount of space turns out to be insufficient.
tests/ref/fate/matroska-crop+70−0
@@ -0,0 +1,70 @@
1fc4932f90dfc955b55cfbdbb210fdd16 *tests/data/fate/matroska-crop.matroska
2355698 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
180, 0, 0, 1, 1382400, 0xc8267e89
191, 0, 0, 1, 345600, 0x84b4bdaa
202, 0, 0, 1, 345600, 0x84b4bdaa
21[STREAM]
22index=0
23codec_name=hevc
24width=1280
25height=720
26[SIDE_DATA]
27side_data_type=Frame Cropping
28crop_top=180
29crop_bottom=180
30crop_left=320
31crop_right=320
32[/SIDE_DATA]
33[SIDE_DATA]
34side_data_type=Display Matrix
35displaymatrix=
3600000000: 0 65536 0
3700000001: 65536 0 0
3800000002: 0 0 1073741824
39
40rotation=-90
41[/SIDE_DATA]
42[/STREAM]
43[STREAM]
44index=1
45codec_name=hevc
46width=1280
47height=720
48[SIDE_DATA]
49side_data_type=Frame Cropping
50crop_top=180
51crop_bottom=180
52crop_left=320
53crop_right=320
54[/SIDE_DATA]
55[SIDE_DATA]
56side_data_type=Display Matrix
57displaymatrix=
5800000000: 0 65536 0
5900000001: 65536 0 0
6000000002: 0 0 1073741824
61
62rotation=-90
63[/SIDE_DATA]
64[/STREAM]
65[STREAM]
66index=2
67codec_name=utvideo
68width=360
69height=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