1 | initial version |
properties like CAP_PROP_FRAME_COUNT or CAP_PROP_POS_MSEC only make sense for video files , not for ip cams, where those are not supported at all (or report bogus values).
remove those lines from your code. you can't "seek" in an ip cam webstream.