Commit 56227424 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

ges: Port to .validatetest

parent a40aee41
validateflow, \
expectations-dir="$(TESTSUITE_ROOT)/ges/flow-expectations/$(CONFIG_NAME)", \
actual-results-dir="$(LOGSDIR)/ges/flow-expecations/$(CONFIG_NAME)", pad=videosink:sink, buffers-checksum=true, \
ignored-fields="stream-start={stream-id,group-id,stream}"
\ No newline at end of file
description, seek=true, handles-states=true, needs_preroll=true,
ges-options={\
meta, seek=true, handles-states=true, needs_preroll=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
},
configs = {
"$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"",
}
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
set-vars,\
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",\
nested_timeline_depth2_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges", \
project_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/project.xges"
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline.xges",\
nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline_depth2.xges", \
project_uri="file://$(logsdir)/ges/scenarios/$(test_name)/project.xges"
# Make sure the asset ID is the project_uri and serialize the empty timeline for each nested projects uris
serialize-project, uri="$(project_uri)"
serialize-project, uri="$(nested_timeline_uri)"
serialize-project, uri="$(nested_timeline_depth2_uri)"
add-clip, name=clip, asset-id=file:///timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, duration=4.0, project-uri="$(nested_timeline_uri)"
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth2_uri)"
add-clip, name=nested-timeline1, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0
add-clip, name=clip, project-uri="$(nested_timeline_uri)",
asset-id="file://$(test_dir)/../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv",
layer-priority=0, type=GESUriClip, duration=4.0
add-clip, name=nested-clip1, project-uri="$(nested_timeline_depth2_uri)",
asset-id="$(nested_timeline_uri)",
layer-priority=0, type=GESUriClip
add-clip, name=nested-timeline1,
asset-id="$(nested_timeline_depth2_uri)",
layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0
add-asset, id="$(nested_timeline_depth2_uri)", type="GESTimeline"
serialize-project, uri="$(project_uri)"
......
event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE;
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:02.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none
buffer: checksum=68cc0c0b6d6863a135f40297a54aec9f1593f34c, pts=0:00:00.000000000, dur=0:00:01.000000000
CHECKPOINT: Paused pipeline, now editing nested timeline and committing.
event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:02.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none
buffer: checksum=9b42849e45e15981115cff9da00ecbf7afafd462, pts=0:00:00.000000000, dur=0:00:01.000000000
description,
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta,
tool = "ges-launch-$(gst_api_version)",
seek=true,
handles-states=true,
needs_preroll=true,
ges-options={\
ges-options={
"--track-type=video",
"--video-caps=video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
"--video-caps=video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
}
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
set-vars,\
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges"
set-vars,
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline.xges"
add-clip,
name=clip,
asset-id=file://nothing/timed_frames_video_only_1fps.mkv,
asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv",
layer-priority=0,
type=GESUriClip
......
description, seek=true, handles-states=true,
ges-options={\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta,
seek=true,
handles-states=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
}
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
......@@ -13,7 +19,8 @@ set-vars,
serialize-project, uri="$(nested_timeline_uri)"
serialize-project, uri="$(nested_timeline_depth2_uri)"
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_uri)"
add-clip, name=clip, project-uri="$(nested_timeline_uri)",
asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth2_uri)"
add-clip, name=nested-timeline1, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0
......
description, seek=true, handles-states=true,
ges-options={\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta, seek=true, handles-states=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
}
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
set-vars,\
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",\
nested_timeline_depth2_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges",\
nested_timeline_depth3_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth3.xges",\
nested_timeline_depth4_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth4.xges",\
nested_timeline_depth5_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth5.xges",\
nested_timeline_depth6_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth6.xges",\
nested_timeline_depth7_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth7.xges"
set-vars,
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",
nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges",
nested_timeline_depth3_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth3.xges",
nested_timeline_depth4_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth4.xges",
nested_timeline_depth5_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth5.xges",
nested_timeline_depth6_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth6.xges",
nested_timeline_depth7_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth7.xges"
serialize-project, uri="$(nested_timeline_uri)"
......@@ -24,7 +27,7 @@ serialize-project, uri="$(nested_timeline_depth5_uri)"
serialize-project, uri="$(nested_timeline_depth6_uri)"
serialize-project, uri="$(nested_timeline_depth7_uri)"
add-clip, name=clip, asset-id=file:///timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, duration=8.0, project-uri="$(nested_timeline_uri)", inpoint=2.0
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip, duration=8.0, project-uri="$(nested_timeline_uri)", inpoint=2.0
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth2_uri)"
add-clip, name=nested-clip2, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth3_uri)"
add-clip, name=nested-clip3, asset-id="$(nested_timeline_depth3_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth4_uri)", inpoint=2.0
......
description, handles-states=true,
ges-options={\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta, handles-states=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
}
set-vars,
......@@ -9,7 +12,7 @@ set-vars,
frame1=9b42849e45e15981115cff9da00ecbf7afafd462
pause
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
commit
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(frame0)"
......
validateflow, \
expectations-dir="$(TESTSUITE_ROOT)/ges/flow-expectations/$(CONFIG_NAME)", \
actual-results-dir="$(LOGSDIR)/ges/flow-expectations/$(CONFIG_NAME)", pad=videosink:sink, buffers-checksum=true, \
ignored-fields="stream-start={stream-id,group-id}"
description, seek=true, handles-states=true, needs_preroll=true, \
ges-options={\
--track-types, video,\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta, seek=true, handles-states=true, needs_preroll=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
},
configs = {
"$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id}\"",
}
set-vars,\
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/check_set_inpoint_on_nested_timeline.xges"
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/check_set_inpoint_on_nested_timeline.xges"
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_uri)"
remove-clip, name=clip
......
description, handles-states=true,
ges-options={\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta, handles-states=true,
tool = "ges-launch-$(gst_api_version)",
ges-options={
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
}
include, location="../../medias/defaults/matroska/red_timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
pause
add-clip, name=red, asset-id=file://nothing/red_timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
add-clip, name=blue, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
add-clip, name=red, asset-id="file://$(media_dir)/matroska/red_timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
add-clip, name=blue, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
commit
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(red_timed_frames_video_only_1fps_mkv_0_00_00_000000000)"
seek, flags=accurate+flush, start=30.0
......
validateflow, \
expectations-dir="$(TESTSUITE_ROOT)/ges/flow-expectations/$(CONFIG_NAME)", \
actual-results-dir="$(LOGSDIR)/ges/flow-expecations/$(CONFIG_NAME)", pad=videosink:sink, record-buffers=true, \
ignored-fields="stream-start={stream-id,group-id,stream}"
\ No newline at end of file
description, seek=true, handles-states=true, needs_preroll=true, ges-track-types=video
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta,
seek=true,
handles-states=true,
needs_preroll=true,
tool = "ges-launch-$(gst_api_version)",
args = {
"--track-type=video",
--videosink, "$(videosink) name=videosink",
},
configs = {
"$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"",
}
set-vars,
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",
nested_timeline_depth2_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges",
project_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/project.xges"
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline.xges",
nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline_depth2.xges",
project_uri="file://$(logsdir)/ges/scenarios/$(test_name)/project.xges"
set-track-restriction-caps, track-type="video", caps="video/x-raw,width=1080,height=720"
# Make sure the asset ID is the project_uri and serialize the empty timeline for each nested projects uris
......@@ -11,7 +23,7 @@ serialize-project, uri="$(project_uri)"
serialize-project, uri="$(nested_timeline_uri)"
serialize-project, uri="$(nested_timeline_depth2_uri)"
add-clip, name=clip, asset-id=file:///timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, duration=4.0, project-uri="$(nested_timeline_uri)"
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip, duration=4.0, project-uri="$(nested_timeline_uri)"
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, project-uri="$(nested_timeline_depth2_uri)"
add-clip, name=nested-timeline1, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=4.0
add-asset, id="$(nested_timeline_depth2_uri)", type="GESTimeline"
......
validateflow, \
expectations-dir="$(TESTSUITE_ROOT)/ges/flow-expectations/$(CONFIG_NAME)", \
actual-results-dir="$(LOGSDIR)/ges/flow-expecations/$(CONFIG_NAME)", pad=videosink:sink, buffers-checksum=true, \
ignored-fields="stream-start={stream-id,group-id,stream}"
description, handles-states=true,
ges-options={\
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta,
handles-states=true,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"\
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
},
configs = {
"$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"",
}
include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
set-vars,
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",
nested_timeline_depth2_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges",
project_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/project.xges"
nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",
nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline_depth2.xges",
project_uri="file://$(logsdir)/ges/scenarios/$(SCENARIO_NAME)/project.xges"
# Make sure the asset ID is the project_uri
serialize-project, uri="$(project_uri)"
add-clip, name=clip, asset-id=file:///timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_uri)"
remove-clip, name=clip
......
validateflow, \
expectations-dir="$(TESTSUITE_ROOT)/ges/flow-expectations/$(CONFIG_NAME)", \
actual-results-dir="$(LOGSDIR)/ges/flow-expecations/$(CONFIG_NAME)", pad=videosink:sink, buffers-checksum=true, \
ignored-fields="stream-start={stream-id,group-id}"
description, seek=true, handles-states=true, needs_preroll=true, \
ges-options={--track-types, video, --video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1"}
set-globals, media_dir="$(test_dir)/../../medias/defaults"
meta,
tool = "ges-launch-$(gst_api_version)",
seek=true,
handles-states=true,
needs_preroll=true,
ges-options= {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--videosink, "$(videosink) name=videosink",
},
configs = {
"$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id}\"",
}
set-vars, nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges"
set-vars, nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline.xges"
add-clip, name=clip, asset-id="file://nothing/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_uri)"
remove-clip, name=clip
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment