Commit b00f6696 authored by Swayamjeet Swain's avatar Swayamjeet Swain Committed by Thibault Saunier

added check_seek_on_nested_clips and check_seek_on_nested_timelines scenarios

parent 4d99ae9e
description, seek=true, handles-states=true, needs_preroll=true
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"
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_uri)"
remove-clip, name=clip
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, inpoint=0.0, duration=2.0
add-clip, name=nested-clip2, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, inpoint=0.0, duration=2.0, start=2.0
commit;
pause;
# seek to 2.2 sec and check frame
seek, flags=accurate+flush, start=2.2
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(timed_frames_video_only_1fps_mkv_0_00_00_000000000)"
# brings the element to layer 1
edit-container, container-name=nested-clip2, position=0, new-layer-priority=1;
#adds effect
container-add-child, container-name=nested-clip2, asset-id=videoflip, child-type=GESEffect
set-child-property, element-name=effect0, property=method, value=2;
# trim nested-clip2 to 1 sec
edit-container, container-name=nested-clip2, edit-mode=edit_trim, position=1, new-layer-priority=(int)-1, edge=(string)edge_end;
# seek to 1.2 sec and check frame
seek, flags=accurate+flush, start=1.2
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(timed_frames_video_only_1fps_mkv_0_00_01_000000000)"
# remove nested-clip2 and remove layer 0
remove-clip, name=nested-clip2;
stop;
\ No newline at end of file
description, seek=true, handles-states=true, needs_preroll=true
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"
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_uri)"
remove-clip, name=clip
add-clip, name=nested-clip1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip
serialize-project, uri="$(nested_timeline_depth2_uri)"
remove-clip, name=nested-clip1
add-clip, name=nested-timeline1, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0
add-clip, name=nested-timeline2, asset-id="$(nested_timeline_depth2_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0, start=2.0
commit;
pause;
# seek to 2.2 sec and check frame
seek, flags=accurate+flush, start=2.2
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(timed_frames_video_only_1fps_mkv_0_00_00_000000000)"
# brings the element to layer 1
edit-container, container-name=nested-timeline2, position=0, new-layer-priority=1;
#adds effect
container-add-child, container-name=nested-timeline2, asset-id=videoflip, child-type=GESEffect
set-child-property, element-name=effect0, property=method, value=2;
# trim nested-timeline2 to 1 sec
edit-container, container-name=nested-timeline2, edit-mode=edit_trim, position=1, new-layer-priority=(int)-1, edge=(string)edge_end;
# seek to 1.2 sec and check frame
seek, flags=accurate+flush, start=1.2
check-last-sample, sinkpad-caps="video/x-raw", checksum="$(timed_frames_video_only_1fps_mkv_0_00_01_000000000)"
# remove nested-timeline2 and remove layer 0
remove-clip, name=nested-timeline2;
stop;
\ No newline at end of file
description, seek=true, handles-states=true, needs_preroll=true
set-vars,\
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/check_set_inpoint_on_nested_timeline.xges"
nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_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
serialize-project, uri="$(nested_timeline_uri)"
......
......@@ -749,6 +749,8 @@ ges.render.vorbis_and_vp8_in_webm.test_transition.audio_video.raw_h264_mp4
ges.render.vorbis_and_vp8_in_webm.test_transition.audio_video.vorbis_theora_ogg
ges.render.vorbis_and_vp8_in_webm.test_transition.audio_video.vorbis_vp8_webm
ges.scenario.add_effect_and_split
ges.scenario.check_seek_on_nested_clips
ges.scenario.check_seek_on_nested_timelines
ges.scenario.check_set_inpoint
ges.scenario.check_set_inpoint_on_nested_timeline
ges.scenario.check_simple_seek
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