| 1 |
# Check that we can have effect with sources integrated where GES will request a pad on some elements |
| 2 |
# In that example, we are blending a green rectangle on top of a blue GESVideoTestSource using an effect |
| 3 |
meta, |
| 4 |
tool = "ges-launch-$(gst_api_version)", |
| 5 |
handles-states=true, |
| 6 |
args = { |
| 7 |
"--track-types", "video", |
| 8 |
"--videosink", "$(videosink) name=videosink", |
| 9 |
"--video-caps", "video/x-raw, format=I420, width=1280, height=720, framerate=30/1, chroma-site=jpeg, colorimetry=bt601", |
| 10 |
}, |
| 11 |
configs = { |
| 12 |
"$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\", ignored-event-types={gap}", |
| 13 |
} |
| 14 |
|
| 15 |
|
| 16 |
add-clip, name=c0, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=0, duration=0.1 |
| 17 |
set-child-properties, element-name=c0, pattern=blue |
| 18 |
|
| 19 |
container-add-child, |
| 20 |
container-name=c0, |
| 21 |
asset-id="videotestsrc pattern=green ! video/x-raw,width=640,height=360 ! compositor sink_0::xpos=320 sink_0::ypos=180 sink_0::zorder=500", |
| 22 |
child-type=GESEffect, |
| 23 |
child-name=effect |
| 24 |
play |