How to solve frame too large problem?

asked 2018-08-14 00:11:20 -0600

whdt gravatar image

Hi great openCV team, is there any way to solve the frame come in 180000 per seconds from rtsp (live stream)? for now the way i solve it is by setting default fps = 30.0 for the video writer , if directly leading the live stream frame into the video writer open it will show error below:

imebase 1/180000 not supported by mpeg 4 standard, the maximum admitted value for the timebase denominator is 65535

edit retag flag offensive close merge delete

Comments

it is not the frame, but your timestamp denominator, which is too large (to calculate a proper fps value)

how do you acquire that ? (it's probably a bogus value for an ipcam)

berak gravatar imageberak ( 2018-08-14 02:41:16 -0600 )edit

@berek opps i loaded the wrong part of frames which for testing, thanks for reply.

whdt gravatar imagewhdt ( 2018-08-14 10:39:27 -0600 )edit