Fix "mythcommflag --rebuild" for non-HDPVR recordings.

By default, only identify IDR keyframes for h.264 recordings.
However, since DVB-S recordings may lack IDR frames, we check after
500 frames whether any keyframes have been found, and if not, back up
and restart using the more lenient setting.