videoio: turn off synchronized sink in GStreamer#19072
Merged
opencv-pushbot merged 1 commit intoopencv:3.4from Dec 10, 2020
Merged
videoio: turn off synchronized sink in GStreamer#19072opencv-pushbot merged 1 commit intoopencv:3.4from
opencv-pushbot merged 1 commit intoopencv:3.4from
Conversation
alalek
approved these changes
Dec 10, 2020
|
|
||
| if (!manualpipeline) | ||
| { | ||
| gst_base_sink_set_sync(GST_BASE_SINK(sink.get()), FALSE); |
Member
There was a problem hiding this comment.
v4l2src
GStreamerCapture::open(int id) provides "manual" pipeline, so its behavior is not changed
Contributor
Author
There was a problem hiding this comment.
Yes, but it is also possible to pass URI, e.g. v4l2:///dev/video1 which will create automatic pipeline with urisourcebin.
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disabled synchronization with video stream rate for file/URI input in GStreamer VideoCapture backend. By default video decoding is performed with same rate as file FPS and manual pipeline configuration was required to avoid it.
related(?): #5766
Note: did not test it with cameras (v4l2://) and network streams (rstp://, http://, etc.).
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.