I just found out that this problem occur only when I play video on full resolution 1080p (1920 x 1080).
I tried to convert/compress the video to 720, and all the codes are working (video is running, object detection is running).
However, this is not really solving my problem.
As the original video (1080p) consisting metadata (GPS location). And if I convert/compress my video, all of the metadata are lost.
So, I am hoping if someone could tell me any solution on how to run the code for 1080p?
or alternatively, if there is any way to compress data from 1080p to 720p without losing the metadata?
I am using GoPro hero 8 for the video.
Thanks so much in advance