GNOME Bugzilla – Bug 781441
videotestsrc: add uri handler
Last modified: 2018-10-27 12:56:47 UTC
Created attachment 349988 [details] [review] videotestsrc: add uri handler Add uri-handler to allow using with playbin based decoders.
Hi, I would be very interested in having this (and bug 781442) land into upstream GStreamer. For all I care, we can leave out the `gst_object_set_properties_from_uri_query_parameters`. Can a maintainer see if it makes sense for them? The reason why is that it would allow separate testing of uridecodebin (or similar elements) since you can just use a videotestsrc instead of relying on a specific protocol. Another cool thing this would provide is that we can see the difference (if any) in performance/latency between using a uridecodebin or using a videotestsrc directly.
Thibault wrote something even better iirc, that could produce both audio and video automatically, le me find it.
It's called testsrcbin, in debugutilsbad :)
Thanks, so uri would be testbin://audio+video . Or just video if you don't want audio.
Marking as dup, as this implementation is a subset. Ping me if you think we need both for specific reason. *** This bug has been marked as a duplicate of bug 795366 ***
Don't know if it's enough of a reason for you to reopen this bug, but we might have some reasons for videotestsrc/audiotestsrc to keep being a URI handler: * internally we already have an element (a simple wrapper around uridecodebin) that, using `gst_object_set_properties_from_uri_query_parameters`, controls the videotestsrc and audiotestsrc elements for test cases. For example, we can use a URI "videotesrc://?num-buffers=100&pattern=7&is-live=1" to simulate a non-infinite live source. The testsrcbin would have to copy all these properties to be a drop-in replacement for us. * the internal wrapper element also has an "audio" and "video" gboolean property that prevents exposing ghost pads for any audio/video srcpad resp. from uridecodebin. As such, this will also clash for us a bit. It's not a major issue and one that we can solve with a workaround, but will be a minor headache nonetheless. That being said, testsrcbin seems to be also something very useful for us (we might be able to automate audio/video sync issues with this), but separately from videotestsrc/audiotestsrc.
Created attachment 374065 [details] [review] videotestsrc: add uri-handler