Skip to content

Cannot open cv2.VideoCapture() with rtsp if there is a # in the password #848

@pkinnane

Description

@pkinnane

As per the title. If there is a '#' in the RTSP password, calling VideoCapture returns an error "[tcp @ 0x227f500] Port missing in uri" even when port 554 is specified. This is on a HIK camera. Setting the password to something without a '#' fixes the issue.

opencv-python Version: 4.7.0.72

Thanks

Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions