MPG file that would not advance

In most cases, when playing an MPG video file on my hard drive, using Windows Media Player, it is possible to advance to play from mid-clip.

Some clips, however, would not allow that, but will play perfectly fine from start to finish.

Is that something to so with the file properties? is there something I can change in that clip to allow random play in such case?

It is probably related to the different codecs used. Some compression systems require information from the previous frames.

This sounds like a problem with the keyframing.

In most modern compression codecs the data for each frame is more or less a list of changes from the previous frame. This means that to leap into the middle of the file the video system needs to “play” all frames up to that point so that it can derive the correct picture to begin modifying.

To stop this being a problem there’s usually a facility to embed complete keyframes along the length of the file that allow you to jump around. This comes with the disadvantage of increasing the length of the file, so it’s a step often left out when space is more important than convenience.

Whether a file without keyframes allows jumping like this depends on the kind of compression, codec version etc. Some won’t allow it at all while others will do odd things like building up the frame a bit at a time as things change.