mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
validate: launcher: Add a way to specify the source to use for precise seeking tests
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5666>
This commit is contained in:
parent
ca584da58d
commit
89434a077c
1 changed files with 7 additions and 1 deletions
|
@ -554,8 +554,14 @@ class GstValidateCheckAccurateSeekingTestGenerator(GstValidatePipelineTestsGener
|
||||||
+ reference_frame_dir + '", framerate=%d/%d' % (framerate.numerator, framerate.denominator)
|
+ reference_frame_dir + '", framerate=%d/%d' % (framerate.numerator, framerate.denominator)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
source = extra_data.get("source")
|
||||||
|
if source is None:
|
||||||
|
source = "uridecodebin"
|
||||||
|
else:
|
||||||
|
test_name = f"{source}.{test_name}"
|
||||||
|
|
||||||
pipelines[test_name] = {
|
pipelines[test_name] = {
|
||||||
"pipeline": "uridecodebin uri=" + media_info.get_uri() + " ! deinterlace ! videoconvert ! video/x-raw,interlace-mode=progressive,format=I420 ! videoconvert name=videoconvert ! %(videosink)s",
|
"pipeline": f"{source} uri=" + media_info.get_uri() + " ! deinterlace ! videoconvert ! video/x-raw,interlace-mode=progressive,format=I420 ! videoconvert name=videoconvert ! %(videosink)s",
|
||||||
"media_info": media_info,
|
"media_info": media_info,
|
||||||
"config": config,
|
"config": config,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue