kkroening/ffmpeg-python

How to retrieve FFMPEG (called from OpenCV) Python decoding error?

changchiyou opened this issue · 0 comments

I want to record and count the numbers of the decoding error message, but I don’t know how to do that. 🥲

I have already refer to Stackoverflow: How to retrieve FFMPEG (called from OpenCV) Python decoding error, but the solution is not perfect enought.

It can retrieve the error message generated by cv2.VideoCapture first time connection failure, but can’t do the same thing with the decoding error message from ffmpeg.

note. I have already asked the same topic on OpenCV Forum because I am not sure where this problem belongs to.