| 1 |
description, handles-states=true, |
| 2 |
ges-options={\ |
| 3 |
--track-types, video, |
| 4 |
--video-caps, "video/x-raw,width=1200,height=1000" \ |
| 5 |
} |
| 6 |
|
| 7 |
add-clip, name=clip, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, duration=1.0 |
| 8 |
|
| 9 |
# VideoTestSource natural size is 1280x720, so keeping aspect ratio, mean |
| 10 |
# that it will be scaled to 1200x675 (placed at x=0, y=163) |
| 11 |
check-child-properties, element-name=clip, width=1200, height=675, posx=0, posy=163 |
| 12 |
|
| 13 |
set-child-properties, element-name=clip, width=1024, height=768 |
| 14 |
check-child-properties, element-name=clip, width=1024, height=768 |
| 15 |
|
| 16 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1400,height=1200" |
| 17 |
check-child-properties, element-name=clip, width=1024, height=768 |
| 18 |
|
| 19 |
set-child-properties, element-name=clip, width=0 |
| 20 |
check-child-properties, element-name=clip, width=0, height=768 |
| 21 |
|
| 22 |
set-child-properties, element-name=clip, height=0 |
| 23 |
check-child-properties, element-name=clip, width=0, height=0 |
| 24 |
|
| 25 |
set-child-properties, element-name=clip, width=1400, height=1200 |
| 26 |
check-child-properties, element-name=clip, width=1400, height=1200 |
| 27 |
|
| 28 |
# Changing track size, keeping aspect ratio should scale the video source |
| 29 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=700,height=600" |
| 30 |
check-child-properties, element-name=clip, width=700, height=600 |
| 31 |
|
| 32 |
# The video source has the same size as the track restriction caps but we |
| 33 |
# are changing the aspect ratio, the video should thus not be rescaled. */ |
| 34 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1920,height=1080" |
| 35 |
check-child-properties, element-name=clip, width=700, height=600 |
| 36 |
|
| 37 |
set-child-properties, element-name=clip, width=1280, height=720, posx=320, posy=240 |
| 38 |
check-child-properties, element-name=clip, width=1280, height=720, posx=320, posy=240 |
| 39 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=960,height=540" |
| 40 |
check-child-properties, element-name=clip, width=640, height=360, posx=160, posy=120 |
| 41 |
|
| 42 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1280,height=720" |
| 43 |
set-child-properties, element-name=clip, width=128, height=72, posx=-100, posy=-100 |
| 44 |
check-child-properties, element-name=clip, width=128, height=72, posx=-100, posy=-100 |
| 45 |
|
| 46 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1920,height=1080" |
| 47 |
check-child-properties, element-name=clip, width=192, height=108, posx=-150, posy=-150 |
| 48 |
|
| 49 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=192,height=108" |
| 50 |
check-child-properties, element-name=clip, width=19, height=11, posx=-15, posy=-15 |
| 51 |
|
| 52 |
set-child-properties, element-name=clip, posx=10, posy=-10 |
| 53 |
|
| 54 |
# Make sure we do not lose precision when going back to previous size |
| 55 |
set-track-restriction-caps, track-type=video, caps="video/x-raw,width=1920,height=1080" |
| 56 |
check-child-properties, element-name=clip, width=192, height=108, posx=100, posy=-100 |
| 57 |
|
| 58 |
stop |