| 1 |
meta, |
| 2 |
tool = "ges-launch-$(gst_api_version)", |
| 3 |
args = { |
| 4 |
--track-types, video, |
| 5 |
--videosink, "$(videosink) name=videosink", |
| 6 |
--video-caps, "video/x-raw,format=I420,width=1280,height=720,framerate=10/1,chroma-site=mpeg2,colorimetry=bt709", |
| 7 |
}, |
| 8 |
handles-states=true, |
| 9 |
ignore-eos=true, |
| 10 |
configs = { |
| 11 |
# Ideally we should be able to record checksums... but they are not reproducible |
| 12 |
"$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"", |
| 13 |
} |
| 14 |
|
| 15 |
add-clip, name=c0, asset-id=time-overlay, layer-priority=0, type=GESSourceClip, start=0, duration=1.0 |
| 16 |
set-child-properties, element-name=c0, pattern=blue, valignment=center, halignment=center, time-mode=time-code |
| 17 |
|
| 18 |
add-clip, name=c1, asset-id=time-overlay, layer-priority=0, type=GESSourceClip, start=1.0, duration=1.0 |
| 19 |
set-child-properties, element-name=c1, pattern=red, valignment=center, halignment=center, time-mode=time-code |
| 20 |
commit; |
| 21 |
play |
| 22 |
|
| 23 |
seek, start=0.0, stop=0.5, flags=accurate+flush |
| 24 |
|
| 25 |
edit, element-name=c0, position=0.5, edge=end, edit-mode=trim |
| 26 |
commit; |
| 27 |
|
| 28 |
crank-clock, expected-elapsed-time=0.0 |
| 29 |
crank-clock, repeat=5, expected-elapsed-time=0.1 |
| 30 |
check-position, on-message=eos, expected-position=0.5 |
| 31 |
|
| 32 |
seek, start=0.5, stop=1.0, flags=accurate+flush |
| 33 |
|
| 34 |
edit, element-name=c1, position=5.0, edge=end, edit-mode=trim |
| 35 |
commit; |
| 36 |
|
| 37 |
crank-clock, expected-elapsed-time=0.0 |
| 38 |
crank-clock, repeat=5, expected-elapsed-time=0.1 |
| 39 |
check-position, on-message=eos, expected-position=1.0 |
| 40 |
|
| 41 |
edit, element-name=c1, position=3.0, edge=end, edit-mode=trim |
| 42 |
commit; |
| 43 |
check-position, on-message=eos, expected-position=1.0 |
| 44 |
|
| 45 |
seek, start=1.0, stop=2.0, flags=accurate+flush |
| 46 |
check-position, expected-position=1.0 |
| 47 |
|
| 48 |
edit, element-name=c1, position=1.5, edge=end, edit-mode=trim |
| 49 |
commit; |
| 50 |
|
| 51 |
crank-clock, expected-elapsed-time=0.0 |
| 52 |
crank-clock, repeat=5, expected-elapsed-time=0.1 |
| 53 |
|
| 54 |
# Last 1ns clip added by GES |
| 55 |
crank-clock, repeat=1, expected-elapsed-time=(guint64)1 |
| 56 |
check-position, on-message=eos, expected-position=1500000001 |
| 57 |
|
| 58 |
stop; |