Count frame in raw MPEG-4 ASP/AVC, VC-1, MPEG-2 files