Debian Codegraph @

tests/check/scenarios/check_edit_in_frames.scenario

raw
1 description, handles-states=true,
2 ges-options={\
3 --track-types, video\
4 }
5
6 add-clip, name=clip, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=f0, inpoint=f30, duration=f60
7
8 check-ges-properties, element-name=clip, start=0, in-point=1.0, duration=2.0
9 edit, element-name=clip, position=f30
10
11 check-ges-properties, element-name=clip, start=1.0, in-point=1.0, duration=2.0
12
13 # Getting the 60th frame in the input media file, means inpoint=f30 + f30 = f60
14 edit, element-name=clip, position=f60, edit-mode=edit_trim, edge=edge_end
15 check-ges-properties, element-name=clip, start=1.0, in-point=1.0, duration=1.0
16
17 set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1280,height=720,framerate=60/1"
18
19 # 60 frames in media time, meaning 90 - inpoint (30) / 30 = 2 seconds
20 edit, element-name=clip, source-frame=90, edit-mode=edit_trim, edge=edge_end
21 check-ges-properties, element-name=clip, start=1.0, in-point=1.0, duration=2.0
22
23 # 60 frames in timeline time, meaning 60/60 = 1 second
24 edit, element-name=clip, position=f60
25 check-ges-properties, element-name=clip, start=1.0, in-point=1.0, duration=2.0
26
27 # 60 frames in timeline time, meaning 60/60 = 1 second
28 edit, element-name=clip, source-frame=75, edit-mode=trim, edge=start
29 check-ges-properties, element-name=clip, start=2.5, in-point=2.5, duration=0.5
30
31 stop