tbr is guessed from the video stream and is the value users want to see
when they look for the video frame rate, except sometimes it is twice
what one would expect because of field rate versus frame rate.
Can you change the code, to lookup both tbr and fps and when tbr is the double as fps, return the fps?
This also causes _iterframes to actually loop through the last frame for as long as the video (50% of the frames will be the end frame)
I looked up on the source code, found the fps_source parameter and reached ffmpeg_reader.
Also executed ffmpeg: Stream #0:1[0x21]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
and searched a bit online:
http://www.ffmpeg-archive.org/What-does-the-output-of-ffmpeg-mean-tbr-tbn-tbc-etc-td941538.html
where I found this extract:
Can you change the code, to lookup both tbr and fps and when tbr is the double as fps, return the fps?