Debian Codegraph @

tests/check/scenarios/check_keyframes_in_compositor_two_sources.validatetest

raw
1 meta,
2 tool = "ges-launch-$(gst_api_version)",
3 args = {
4 -t, video,
5 --videosink, "$(videosink) name=videosink sync=true",
6 --video-caps, "video/x-raw,width=500,height=500,framerate=10/1,format=I420,colorimetry=(string)bt601,chroma-site=(string)jpeg",
7 },
8 handles-states=true,
9 ignore-eos=true,
10 configs = {
11 "$(validateflow), pad=videosink:sink, buffers-checksum=as-id, ignored-fields=\"stream-start={stream-id,group-id, stream}\"",
12 },
13 expected-issues = {
14 # Blending is not 100% reproducible when seeking/changing values for
15 # some reason. It has been manually checked and the contents are very
16 # slightly off and ssim would detect no difference at all between the
17 # images
18 "expected-issue, issue-id=validateflow::mismatch, details=\".*content-id=10.*\\\\n.*\\\\n.*content-id=12.*\", sometimes=true",
19 "expected-issue, issue-id=validateflow::mismatch, details=\".*content-id=12.*\\\\n.*\\\\n.*content-id=10.*\", sometimes=true",
20 "expected-issue, issue-id=validateflow::mismatch, details=\".*content-id=0.*\\\\n.*\\\\n.*content-id=12.*\", sometimes=true",
21 "expected-issue, issue-id=validateflow::mismatch, details=\".*content-id=0.*\\\\n.*\\\\n.*content-id=13.*\", sometimes=true",
22 }
23
24 remove-feature, name=queue
25
26 add-clip, name=c0, asset-id="pattern=blue", layer-priority=0, type=GESTestClip, start=0, duration=2.0, inpoint=2.0
27 add-clip, name=c1, asset-id="pattern=green", layer-priority=1, type=GESTestClip, start=0, duration=2.0
28 set-child-properties, element-name=c0, width=250, height=250, pattern=blue
29 set-child-properties, element-name=c1, width=250, height=250, pattern=green
30
31 set-control-source, element-name=c0, property-name=posx, binding-type=direct-absolute
32 set-control-source, element-name=c0, property-name=posy, binding-type=direct-absolute
33 set-control-source, element-name=c1, property-name=posx, binding-type=direct-absolute
34 set-control-source, element-name=c1, property-name=posy, binding-type=direct-absolute
35
36 # c0 starts in the top left corner going to the bottom right at 1sec and going back to the top right at 2s
37 # Keyframes are in 'source stream time' so we take the inpoint into account for the timestamp
38 add-keyframe, element-name=c0, timestamp=2.0, property-name=posx, value=0
39 add-keyframe, element-name=c0, timestamp=2.0, property-name=posy, value=0
40 add-keyframe, element-name=c1, timestamp=0.0, property-name=posx, value=250
41 add-keyframe, element-name=c1, timestamp=0.0, property-name=posy, value=250
42
43 add-keyframe, element-name=c0, timestamp=3.0, property-name=posx, value=250
44 add-keyframe, element-name=c0, timestamp=3.0, property-name=posy, value=250
45 add-keyframe, element-name=c1, timestamp=1.0, property-name=posx, value=0
46 add-keyframe, element-name=c1, timestamp=1.0, property-name=posy, value=0
47
48 add-keyframe, element-name=c0, timestamp=4.0, property-name=posx, value=0
49 add-keyframe, element-name=c0, timestamp=4.0, property-name=posy, value=0
50 add-keyframe, element-name=c1, timestamp=2.0, property-name=posx, value=250
51 add-keyframe, element-name=c1, timestamp=2.0, property-name=posy, value=250
52
53 play
54
55 check-properties,
56 gessmartmixer0-compositor.sink_0::xpos=0, gessmartmixer0-compositor.sink_0::ypos=0,
57 gessmartmixer0-compositor.sink_1::xpos=250, gessmartmixer0-compositor.sink_1::ypos=250
58
59 crank-clock
60 wait, on-clock=true
61
62 check-properties,
63 gessmartmixer0-compositor.sink_0::xpos=25, gessmartmixer0-compositor.sink_0::ypos=25,
64 gessmartmixer0-compositor.sink_1::xpos=225, gessmartmixer0-compositor.sink_1::ypos=225
65
66 # Check the 5th buffer
67 crank-clock, repeat=4
68 wait, on-clock=true
69 check-properties,
70 gessmartmixer0-compositor.sink_0::xpos=125, gessmartmixer0-compositor.sink_0::ypos=125,
71 gessmartmixer0-compositor.sink_1::xpos=125, gessmartmixer0-compositor.sink_1::ypos=125
72
73 crank-clock
74 check-position, expected-position=0.5
75
76 # Check the 10th buffer
77 crank-clock, repeat=4
78 wait, on-clock=true
79 check-properties,
80 gessmartmixer0-compositor.sink_0::xpos=250, gessmartmixer0-compositor.sink_0::ypos=250,
81 gessmartmixer0-compositor.sink_1::xpos=0, gessmartmixer0-compositor.sink_1::ypos=0
82
83 crank-clock
84 check-position, expected-position=1.0
85
86 crank-clock, repeat=11
87 check-position, on-message=eos, expected-position=2000000001
88
89 seek, start=1.0, flags=accurate+flush
90 wait, on-clock=true
91
92 # 10th buffer
93 check-properties,
94 gessmartmixer0-compositor.sink_3::xpos=250, gessmartmixer0-compositor.sink_3::ypos=250,
95 gessmartmixer0-compositor.sink_4::xpos=0, gessmartmixer0-compositor.sink_4::ypos=0
96
97 set-ges-properties, element-name=c0, start=1000000000
98 set-ges-properties, element-name=c1, start=1000000000
99 commit;
100 wait, on-clock=true
101
102 check-position, expected-position=1.0
103
104 # First buffer
105 check-properties,
106 gessmartmixer0-compositor.sink_3::xpos=0,
107 gessmartmixer0-compositor.sink_3::ypos=0,
108 gessmartmixer0-compositor.sink_4::xpos=250,
109 gessmartmixer0-compositor.sink_4::ypos=250
110
111 stop