Skip to content

Indefinite hang when connecting to a rtsp stream #5730

@peters

Description

@peters

Built latest version from HEAD with ffmpeg support enabled on Windows 10.

When you connect to a rtsp stream and the resource (read: the streaming server) is unavailable an indefinite hang on Windows is observed.

I've done some initial research and if you want to handle transient connection issues you need to specify a interrupt callback as per documentation before avformat_open_input is called.

Digging through their bug tracker i found a related issue submitted about two years ago.

Repo:

auto vc = new cv::VideoCapture();
auto success = vc->open("rstp://192.168.1.200/media/video1");
// -- indefinite hang

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