I need to edit a specific frame in a video, but I only have the time in milliseconds in which I should make the edit. How to use this information to get the frame? A python example would be very appreciated!
based on this link, the time related to a given frame can be found in the property CV_CAP_PROP_POS_MSEC where the doc is saying:
CV_CAP_PROP_POS_MSEC Current position of the video file in milliseconds or video capture timestamp.
Update:
As mentioned by @Mouldri in the comments below, the value has been changed to CAP_PROP_POS_MSEC
in openCV 3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With