"Using bitrate" will assume that the the average bitrate is written in the first frames. Most of the time this field contains 9800 – max bitrate possible. Seeking by Presentation Time Stamp should give better results. If using a proper decoder you still cannot get proper length estimation, the only solution is to fix your MPEG files by remuxing them with correct timestamps. Care must be taken so that sync between audio and video streams is not lost.
|