Skip to content

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

Closed

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)

Activity

  1. adamrankin commented on Aug 1, 2017

    @adamrankin
    ContributorAuthor

    Will improve solution and resubmit.

  2. adamrankin commented on Aug 2, 2017

    @adamrankin
    ContributorAuthor

    Is there any option to update the version of ffmpeg used?

    Edit: I see. No. To ensure building on Ubuntu 14.04, the apt managed package is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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