Commit d3aca1b4 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐
Browse files

tests: enforce I420 format

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: <gstreamer/gst-integration-testsuites!81>
parent 80f1e182
......@@ -7,6 +7,7 @@ meta,
args = {
"--track-type=video",
--videosink, "$(videosink) name=videosink",
--video-caps, "video/x-raw,format=I420,chroma-site=mpeg2,colorimetry=bt709",
},
configs = {
"$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"",
......@@ -17,7 +18,7 @@ set-vars,
nested_timeline_depth2_uri="file://$(logsdir)/ges/scenarios/$(test_name)/nested_timeline_depth2.xges",
project_uri="file://$(logsdir)/ges/scenarios/$(test_name)/project.xges"
set-track-restriction-caps, track-type="video", caps="video/x-raw,width=1080,height=720"
set-track-restriction-caps, track-type="video", caps="video/x-raw,width=1080,height=720,format=I420"
# Make sure the asset ID is the project_uri and serialize the empty timeline for each nested projects uris
serialize-project, uri="$(project_uri)"
serialize-project, uri="$(nested_timeline_uri)"
......
......@@ -43,7 +43,6 @@ buffer: pts=0:00:03.866666667, dur=0:00:00.033333333
buffer: pts=0:00:03.900000000, dur=0:00:00.033333333
buffer: pts=0:00:03.933333333, dur=0:00:00.033333334
buffer: pts=0:00:03.966666667, dur=0:00:00.033333333
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)30/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
event segment: format=TIME, start=0:00:04.000000000, offset=0:00:00.000000000, stop=0:00:04.000000001, flags=0x01, time=0:00:04.000000000, base=0:00:01.000000000, position=none
buffer: pts=0:00:04.000000000, dur=0:00:00.000000001
event eos: (no structure)
......@@ -4,7 +4,7 @@ meta,
tool = "ges-launch-$(gst_api_version)",
args = {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--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",
--videosink, "$(videosink) name=videosink",
},
configs = {
......
event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE;
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0;
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:02.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none
buffer: checksum=68cc0c0b6d6863a135f40297a54aec9f1593f34c, pts=0:00:00.000000000, dur=0:00:01.000000000
buffer: checksum=9b42849e45e15981115cff9da00ecbf7afafd462, pts=0:00:01.000000000, dur=0:00:01.000000000
event segment: format=TIME, start=0:00:02.000000000, offset=0:00:00.000000000, stop=0:00:04.000000000, flags=0x01, time=0:00:02.000000000, base=0:00:02.000000000, position=none
buffer: checksum=68cc0c0b6d6863a135f40297a54aec9f1593f34c, pts=0:00:02.000000000, dur=0:00:01.000000000
buffer: checksum=9b42849e45e15981115cff9da00ecbf7afafd462, pts=0:00:03.000000000, dur=0:00:01.000000000
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
event segment: format=TIME, start=0:00:04.000000000, offset=0:00:00.000000000, stop=0:00:04.000000001, flags=0x01, time=0:00:04.000000000, base=0:00:04.000000000, position=none
buffer: checksum=b13fcbc51ceae3d11232a95b192760d61baf4748, pts=0:00:04.000000000, dur=0:00:00.000000001
event eos: (no structure)
......@@ -6,7 +6,7 @@ meta,
needs_preroll=true,
ges-options= {
--track-types, video,
--video-caps, "video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1",
--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",
--videosink, "$(videosink) name=videosink",
},
configs = {
......
event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE, stream=(GstStream)"\(GstStream\)\ stream0";
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0;
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:02.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none
buffer: checksum=68cc0c0b6d6863a135f40297a54aec9f1593f34c, pts=0:00:00.000000000, dur=0:00:01.000000000
buffer: checksum=9b42849e45e15981115cff9da00ecbf7afafd462, pts=0:00:01.000000000, dur=0:00:01.000000000
......@@ -7,7 +7,6 @@ event segment: format=TIME, start=0:00:02.000000000, offset=0:00:00.000000000, s
buffer: checksum=13efd225948060c424b8cdb4c4d017dbea65f61f, pts=0:00:02.000000000, dur=0:00:01.000000000
buffer: checksum=919526ebc3b44b93c05806d4b6b19c82557ba2f7, pts=0:00:03.000000000, dur=0:00:01.000000000
buffer: checksum=6e031a9b81fb4de38bb58ab935d709661087caa4, pts=0:00:04.000000000, dur=0:00:01.000000000
event caps: video/x-raw, format=(string)I420, width=(int)1080, height=(int)720, framerate=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601;
event segment: format=TIME, start=0:00:05.000000000, offset=0:00:00.000000000, stop=0:00:05.000000001, flags=0x01, time=0:00:05.000000000, base=0:00:05.000000000, position=none
buffer: checksum=b13fcbc51ceae3d11232a95b192760d61baf4748, pts=0:00:05.000000000, dur=0:00:00.000000001
event eos: (no structure)
meta,
args = {
"videotestsrc num-buffers=10 ! interlace ! video/x-raw,interlace-mode=mixed ! deinterlace ! video/x-raw,interlace-mode=progressive ! fakevideosink name=fakevideosink",
"videotestsrc num-buffers=10 ! interlace ! video/x-raw,format=I420,interlace-mode=mixed ! deinterlace ! video/x-raw,interlace-mode=progressive ! fakevideosink name=fakevideosink",
},
configs = {
"$(validateflow), pad=fakevideosink:sink, record-buffers=true, buffers-checksum=true",
......
meta,
args = {
"videotestsrc num-buffers=10 ! interlace ! video/x-raw\(format:Interlaced\) ! deinterlace ! video/x-raw ! fakevideosink name=fakevideosink",
"videotestsrc num-buffers=10 ! interlace ! video/x-raw\(format:Interlaced\),format=I420 ! deinterlace ! video/x-raw ! fakevideosink name=fakevideosink",
},
configs = {
"$(validateflow), pad=fakevideosink:sink, record-buffers=true, buffers-checksum=true",
......
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