Import gst-integration-testsuites
[platform/upstream/gstreamer.git] / subprojects / gst-integration-testsuites / ges / scenarios / play_deeply_nested_back_to_back.validatetest
1 set-globals, media_dir="$(test_dir)/../../medias/defaults"
2 meta,
3     handles-states=true,
4     tool = "ges-launch-$(gst_api_version)",
5     args = {
6         --track-types, video,
7         --video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601",
8         --videosink, "$(videosink) name=videosink",
9     },
10     configs = {
11         "$(validateflow), pad=videosink:sink, buffers-checksum=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"",
12     }
13
14 include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
15
16 set-vars,
17     nested_timeline_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline.xges",
18     nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline_depth2.xges",
19     project_uri="file://$(logsdir)/ges/scenarios/$(test_name)/project.xges"
20
21 # Make sure the asset ID is the project_uri
22 serialize-project, uri="$(project_uri)"
23
24 add-clip, name=clip, asset-id="file://$(media_dir)/matroska/timed_frames_video_only_1fps.mkv", layer-priority=0, type=GESUriClip
25 serialize-project, uri="$(nested_timeline_uri)"
26 remove-clip, name=clip
27
28 add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip
29 serialize-project, uri="$(nested_timeline_depth2_uri)"
30 remove-clip, name=nested-clip1
31 remove-asset, id="$(nested_timeline_uri)", type="GESTimelineElement"
32
33 add-clip, name=nested-timeline1, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0
34 add-clip, name=nested-timeline2, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0, start=2.0
35
36 add-asset, id="$(nested_timeline_depth2_uri)", type="GESTimeline"
37 serialize-project, uri="$(project_uri)"
38
39 # We reload the project from nested projects
40 load-project, uri="$(project_uri)"
41 commit;
42 play;