mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +00:00
5e448921d8
This was complexifying the implementation for very little gain. Each source type should ideally have its own API. In that patch we make it so we do not have to subclass anything but instead use GESAsset to pass information about how the pipeline should look like. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/175>
27 lines
No EOL
1.2 KiB
Text
27 lines
No EOL
1.2 KiB
Text
meta,
|
|
tool = "ges-launch-$(gst_api_version)",
|
|
args = {
|
|
--videosink, "$(videosink) name=videosink",
|
|
--audiosink, "$(audiosink) name=audiosink",
|
|
},
|
|
handles-states=true,
|
|
ignore-eos=true,
|
|
configs = {
|
|
"$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\"",
|
|
"$(validateflow), pad=audiosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\"",
|
|
}
|
|
|
|
add-clip, name=c0, asset-id=time-overlay, layer-priority=0, type=GESSourceClip, start=0, duration=1.0
|
|
set-child-properties, element-name=c0, pattern=blue, valignment=center, halignment=center, time-mode=time-code
|
|
|
|
add-clip, name=c1, asset-id=time-overlay, layer-priority=0, type=GESSourceClip, start=1.0, duration=1.0
|
|
set-child-properties, element-name=c1, pattern=red, valignment=center, halignment=center, time-mode=time-code
|
|
pause
|
|
|
|
seek, start=0.0, stop=0.5, flags=accurate+flush
|
|
play
|
|
|
|
seek, on-message=eos, start=0.0, stop=0.5, flags=accurate+flush
|
|
seek, on-message=eos, start=0.0, stop=1.0, flags=accurate+flush
|
|
seek, on-message=eos, start=1.0, stop=1.5, flags=accurate+flush
|
|
stop, on-message=eos |