Input video capture ffmpeg flags (OpenCV-Python)
Hello, I'm trying to figure out how to pass FFMPEG flags to the VideoCapture function. From what I can see, there are no hooks for this in the python library.
I'm trying to pass a h264 stream to OpenCV's DNN module in Linux. My issue is the H264 streams will only be decoded via software, instead of using my nvidia card's nvdec/ncuvid. My CPU is a 3770k, CPU usage is quite high decoding a large h264 stream, and then resizing it for dnn.
hi, I have a problem with grabbing UDP raw streams. I think it is relevant with this issue, I need to pass FFMPEG flags to VÄ°deoCapture.open(source, FLAGS) method but I'm not sure.
In the python implementation, you don't call the open function yourself. I think it's done inside the initialize func so i cannot seem to pass these flags.
hi jonathanlvaldez, I use java OpenCV so I wonder about flags to display rawvideo format.