Loading

Paste #pnslnizdr

  1. description, seek=true, handles-states=true, needs_preroll=true, ges-track-types=video
  2.  
  3. include, location="../../medias/defaults/matroska/timed_frames_video_only_1fps.mkv.frames_checksums.scenario"
  4.  
  5. set-vars,\
  6.     nested_timeline_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/nested_timeline.xges",\
  7.     project_uri="file://$(LOGSDIR)/ges/scenarios/$(SCENARIO_NAME)/project.xges"
  8.  
  9. # Make sure the asset ID is the project_uri and serialize the empty timeline for each nested projects uris
  10. serialize-project, uri="$(project_uri)"
  11. serialize-project, uri="$(nested_timeline_uri)"
  12.  
  13. add-clip, name=clip, asset-id=file:///timed_frames_video_only_1fps.mkv, layer-priority=0, type=GESUriClip, duration=2.0, project-uri="$(nested_timeline_uri)"
  14. add-clip, name=nested-timeline1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, inpoint=0, duration=2.0, start=0.0
  15. serialize-project, uri="$(project_uri)"
  16.  
  17. # Edit nested-clip to duration=1 and set position=0
  18. edit-container, project-uri="$(nested_timeline_uri)", container-name="clip", position=1.0, edit-mode="edit_trim", edge="edge_start"
  19. edit-container, project-uri="$(nested_timeline_uri)", container-name="clip", position=0.0, edit-mode="edit_normal", edge="edge_none"
  20. commit
  21.  
  22. add-clip, name=nested-timeline1, asset-id="$(nested_timeline_uri)", layer-priority=0, type=GESUriClip, start=2.0
  23. serialize-project, uri="$(project_uri)"
  24.  
  25. # We reload the project from nested projects
  26. load-project, uri="$(project_uri)"
  27. commit
  28.  
  29. # seek to 0.2 sec and check frame
  30. seek, flags=accurate+flush, start=0.2
  31. check-last-sample, sinkpad-caps="video/x-raw", checksum="$(timed_frames_video_only_1fps_mkv_0_00_01_000000000)"
  32.  
  33. stop;