Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After further testing, the issue with length appears only with MJPEG encoded avi files and seems to be related to this bug

Will see if some coding fairy finds time to work on that I guess...

For the interested, right now we're converting our videos to x264 with GOP size 1 (and about 20'000kb/s bitrate) which is slower than MJPEG speed but at least it's correctly sized in all situations...

After further testing, the issue with length appears only with MJPEG encoded avi AVI files and seems to be related to this bug with the internal mjpeg decoder.

Will see If we change container to mp4 (via ffmpeg -i input.avi -vcodec copy output.mp4) the ffmpeg mjpeg decoder kicks in instead and there are no problems with frame count anymore. However the reading speed is about 60% slower...

Would be great if if some coding opencv code fairy finds time to work on that I guess...

For the interested, right now we're converting our videos to x264 with GOP size 1 (and about 20'000kb/s bitrate) which is slower than MJPEG speed but at least it's correctly sized in all situations...

After further testing, the issue with length appears only with MJPEG encoded AVI files and seems to be related to this bug with the internal mjpeg decoder.

If we change container to mp4 (via ffmpeg -i input.avi -vcodec copy output.mp4) the ffmpeg mjpeg decoder kicks in instead and there are no problems with frame count anymore. However the reading scrubbing speed (reading video randomly jumping around) is about 60% slower...

Would be great if if some opencv code fairy finds time to work on that I guess...