Set ffmpeg capture properties with cv::VideoCapture

asked 2014-11-04 14:11:24 -0500

With the last versions of OpenCV compiled with ffmpeg.

How do I set ffmpeg capture properties with cv::VideoCapture?

I know there is the method bool VideoCapture::set(int propId, double value); But there are no "propId" for ffmpeg.

I am particularly interested in forcing ffmpeg to use TCP/IP instead of UDP when using RTSP.

I know ffmpeg allow it. For example : av_dict_set(&opts, "rtsp_transport", "tcp", 0);

Thank you

edit retag flag offensive close merge delete


Afaik it is not wrapped in OpenCV for the moment!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-11-05 07:04:57 -0500 )edit