Open nedo99 opened 1 year ago
I believe OpenCV does not support memory:DMABuf
. Try to remove explicit filter before appsink
, OpenCV should add its own.
Also videoconvert
node might be needed as OpenCV only accepts BGR frames by default.
I see. Is there a timeline for when this will be supported?
Currently there are no such plans AFAIK.
I'm looking on the hardware acceleration topic right now and found several items to try:
video/x-raw
and many color space options.vaapidecodebin
, e.g. filesrc location=<filename> ! avidemux ! vaapidecodebin ! appsink
. There was some benchmark and it worked before for OpenCV: https://github.com/opencv/opencv/wiki/Video-capture-and-write-benchmark
System Information
OpenCV version: 4.7.0 Operating System / Platform: Ubuntu 22.04 Compiler & compiler version: GCC 11.3.0
Detailed description
I want to run video capture using Gstreamer backend. As I see OpenCV is accepting only appsink (which makes things complicated), but found the workaround for that one, but facing the issue where gstremeamer pipeline works when running from the command line, but once used with
VideoCapture
then it fails.Video config for OpenCV cmake:
Steps to reproduce
If I run in command line:
it works.
If I run the same pipeline with
VideoCapture
, for instance:I get:
Issue submission checklist