Ask Your Question

Revision history [back]

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.