VideoCapture timeout set/get#20541
Conversation
asmorkalov
left a comment
There was a problem hiding this comment.
Thanks a lot for the patch! Looks good in general.
You are welcome 🙏 |
|
hmm not sure why the checks fail |
|
AFAIK,
|
ah ok |
|
If you don't need this feature for OpenCV 3.x release series, then it makes sense to retarget this PR to "master" (4.x) branch. There is no such problem. |
ah no worries, I need it for both, will do another pull after fixing the small issue |
|
Ok this should fix it, was working on master, 3.4 had FFMPEG enums in different place |
|
Checks passed |
| CV_FFMPEG_CAP_PROP_ORIENTATION_AUTO=49 | ||
| CV_FFMPEG_CAP_PROP_ORIENTATION_AUTO=49, | ||
| CV_FFMPEG_CAP_PROP_OPEN_TIMEOUT_MSEC=50, | ||
| CV_FFMPEG_CAP_PROP_READ_TIMEOUT_MSEC=51 |
There was a problem hiding this comment.
Need to restore defined enum values in videoio.hpp. It is a public API header, from which users know how to use this feature.
Also please use 53, 54 as values to align with master (for both "enums").
alalek
left a comment
There was a problem hiding this comment.
Well done! Thank you for contribution 👍
|
Btw I should make another PR for master right? |
|
It would be nice, because there are several differences. |
I see, will do a PR asap |
The original PR is amazing, a fixed timeout is not that convenient however, so this small patch adds get and set option for timeout
#6053