Skip to content

ffmpeg capture forced to TCP, even if UDP is desired #9290

@adamrankin

Description

@adamrankin
System information (version)
  • OpenCV => latest(master)
  • Operating System / Platform => Windows 10 Creators 64 Bit
  • Compiler => Visual Studio 2015 64
Detailed description

I have an rtsp server which crashes after prolonged TCP connection. I have no way of avoiding this device, and I don't have control to fix the crash. UDP is needed. However, after bug "fix" http://code.opencv.org/issues/2235#note-18 ffmpeg capture is hardcoded to TCP.

Steps to reproduce

Normal opening of RTSP stream using cv::VideoCapture

this->Capture = std::make_shared<cv::VideoCapture>(this->VideoURL, this->RequestedCaptureAPI);
this->Capture->read(*this->Frame)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions