tests: enforce I420 format
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Fri, 5 Jun 2020 13:56:00 +0000 (15:56 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 8 Jun 2020 11:10:54 +0000 (13:10 +0200)
Tests are assuming video is I420 with a specific chroma and colorimetry
but were not actually enforcing it.
Fixes needed as I420 will no longer be the first video format, see
gst-plugins-base!689

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/184>

tests/check/scenarios/edit_while_seeked_with_stop.validatetest
tests/check/scenarios/edit_while_seeked_with_stop/flow-expectations/log-videosink-sink-expected
tests/check/scenarios/seek_with_stop.check_clock_sync.validatetest
tests/check/scenarios/seek_with_stop.validatetest

index a401aba..0a96bee 100644 (file)
@@ -3,7 +3,7 @@ meta,
     args = {
         --track-types, video,
         --videosink, "$(videosink) name=videosink",
-        --video-caps, "video/x-raw,width=1280,height=720,framerate=10/1",
+        --video-caps, "video/x-raw,format=I420,width=1280,height=720,framerate=10/1,chroma-site=mpeg2,colorimetry=bt709",
     },
     handles-states=true,
     ignore-eos=true,
index e6bdceb..4004ae5 100644 (file)
@@ -17,7 +17,6 @@ buffer: pts=0:00:00.400000000, dur=0:00:00.100000000
 event eos: (no structure)
 event flush-start: (no structure)
 event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
-event caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)10/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
 event segment: format=TIME, start=0:00:00.500000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.500000000, base=0:00:00.000000000, position=none
 buffer: pts=0:00:00.500000000, dur=0:00:00.100000000
 event flush-start: (no structure)
@@ -31,7 +30,6 @@ buffer: pts=0:00:00.900000000, dur=0:00:00.100000000
 event eos: (no structure)
 event flush-start: (no structure)
 event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
-event caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)10/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709;
 event segment: format=TIME, start=0:00:01.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:01.000000000, base=0:00:00.000000000, position=none
 event eos: (no structure)
 event flush-start: (no structure)
@@ -46,7 +44,6 @@ buffer: pts=0:00:01.100000000, dur=0:00:00.100000000
 buffer: pts=0:00:01.200000000, dur=0:00:00.100000000
 buffer: pts=0:00:01.300000000, dur=0:00:00.100000000
 buffer: pts=0:00:01.400000000, dur=0:00:00.100000000
-event caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)10/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
 event segment: format=TIME, start=0:00:01.500000000, offset=0:00:00.000000000, stop=0:00:01.500000001, flags=0x01, time=0:00:01.500000000, base=0:00:00.500000000, position=none
 buffer: pts=0:00:01.500000000, dur=0:00:00.000000001
 event eos: (no structure)
index a082a58..0c67936 100644 (file)
@@ -3,7 +3,7 @@ meta,
     args = {
         --track-types, video,
         --videosink, "$(videosink) name=videosink",
-        --video-caps, "video/x-raw,width=1280,height=720,framerate=10/1",
+        --video-caps, "video/x-raw,format=I420,width=1280,height=720,framerate=10/1,chroma-site=mpeg2,colorimetry=bt709;",
     },
     handles-states=true,
     ignore-eos=true,
index 6f4098b..582d0a4 100644 (file)
@@ -3,6 +3,7 @@ meta,
     args = {
         --videosink, "$(videosink) sync=false name=videosink",
         --audiosink, "$(audiosink) sync=false name=audiosink",
+        --video-caps, "video/x-raw,format=I420,width=1280,height=720,framerate=30/1,chroma-site=mpeg2,colorimetry=bt709",
     },
     handles-states=true,
     ignore-eos=true,