We don't help with remote investigation of problems which we are not able to reproduce on our side (because it is very time consuming), but we can take a look on the clear reason of the problem and suggest some fix/workaround.
Duration: 00:00:06.93, start: 0.000000, bitrate: 26676 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2020-04-27T07:51:47.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 26491 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2020-04-27T07:51:47.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
OpenCV stops decoding after 168 frame.
Problem is that frames are not flushed from the decoder properly after the stream EOF (passed stream index 0 instead of 1).
PR with fix will be added soon.