Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture does not have this feature: https://github.com/opencv/opencv/blob/64168fc20aa8a914cb5529f90ffac309854563b1/modules/videoio/src/cap_gstreamer.cpp#L427-L440

But VideoWriter has: https://github.com/opencv/opencv/blob/64168fc20aa8a914cb5529f90ffac309854563b1/modules/videoio/src/cap_gstreamer.cpp#L1167-L1217

You can port some part of the code from VideoWriter to VideoCapture and add a property to control it.