NTSC movies deliver incorrect frame counts via CV_CAP_PROP_FRAME_COUNT (Feature #850)


Added by Troy Sobotka about 14 years ago. Updated almost 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Alexander Reshetnikov % Done:

0%

Category:highgui-video
Target version:2.4.0
Difficulty: Pull request:

Description

Summary: The current method of obtaining total frame counts is incorrect for NTSC (non whole) framerates. The implications likely extend to other areas where video_st->duration is relied upon.

A successful implementation is attatched.


ffmpeg-framecount.patch - Patch to repair FFMPEG frame counts via CV_CAP_PROP_FRAME_COUNT (620 Bytes) Troy Sobotka, 2011-01-31 05:14 am


Associated revisions

Revision c549ec83
Added by Vadim Pisarevsky almost 12 years ago

Merge pull request #850 from SpecLad:convhull-orientation

History

Updated by Alexander Reshetnikov about 13 years ago

Thank you for the report! Applied in r7332.

  • Status changed from Open to Done
  • Priority changed from High to Normal
  • Assignee set to Alexander Reshetnikov

Updated by Alexander Reshetnikov about 13 years ago

  • Target version set to 2.4.0

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Updated by Don El Ron almost 12 years ago

Hi,
not sure if anybody even reads this, but can you please explain how to use the file "ffmpeg-framecount.patch" after downloading it?
I tried to google this, but could not find anything that was both helpful and comprehensible.
Another question would be if it is possible to use this patch with OpenCV version 2.3.1-7?!? Or would I have to upgrade to OpenCV 2.4.0 before I can use the patch?
Many thanks in advance!

Also available in: Atom PDF