gstreamer/tests/check/scenarios/seek_with_stop.validatetest
Guillaume Desmottes 96d1df3cb7 tests: enforce I420 format
Tests are assuming video is I420 with a specific chroma and colorimetry
but were not actually enforcing it.
Fixes needed as I420 will no longer be the first video format, see
gst-plugins-base!689

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/184>
2020-06-08 13:10:54 +02:00

28 lines
No EOL
1.4 KiB
Text

meta,
tool = "ges-launch-$(gst_api_version)",
args = {
--videosink, "$(videosink) sync=false name=videosink",
--audiosink, "$(audiosink) sync=false name=audiosink",
--video-caps, "video/x-raw,format=I420,width=1280,height=720,framerate=30/1,chroma-site=mpeg2,colorimetry=bt709",
},
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,}\", ignored-event-types={gap}",
"$(validateflow), pad=audiosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\", ignored-event-types={gap}",
}
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