Commit 7ccf698d authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

ges: Add a scenario to checking splitting clips with effects

parent 7e383f2c
description, seek=true, handles-states=true, needs_preroll=true
define-consts,\
frame0=68cc0c0b6d6863a135f40297a54aec9f1593f34c,\
frame1=9b42849e45e15981115cff9da00ecbf7afafd462, \
frame1_rotated=8a2966951d269e9aa4dccf38fe93fce8093d3847
pause
# Add a clip and check that the first frame is displayed
add-clip, name=clip, asset-id=file://nothing/timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, name=(string)theclip
commit
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame0
# Seek to 1sec and make sure the right frame is displayed
seek, start=(double)1.0, flags=(string)accurate+flush;
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1
# Apply the videoflip effect and flip the clip 180 degrees
container-add-child, container-name=(string)theclip, asset-id=(string)videoflip, child-type=(string)GESEffect;
set-child-property, element-name=(string)effect0, property=(string)method, value=2;
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1
commit;
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1_rotated
# Split the clip and check that rotation is still applied
split-clip, clip-name=(string)theclip, position=(double)1.0;
commit
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1_rotated
# Make sure that the second clip is being used by stopping rotation of the first clip and checking outputed frame
set-child-property, element-name=(string)effect0, property=(string)method, value=0;
commit
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1_rotated
seek, start=(double)0.0, flags=(string)accurate+flush;
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame0
play;
pause,playback_time=1.0
check-last-sample, sinkpad-caps="video/x-raw", checksum=frame1_rotated
stop;
\ No newline at end of file
......@@ -648,4 +648,5 @@ ges.render.vorbis_and_vp8_in_webm.test_transition.audio_video.opus_jpeg_mkv
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_set_inpoint
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