TS streaming media file fast positioning method and system

The invention discloses a TS streaming media file fast positioning method and system. The method includes the following steps that target time needed in skipping and input by a user is received, a timestamp corresponding to the target time and an estimation position corresponding to the target time are calculated according to parameter information in a TS streaming file; a timestamp closest to the estimation position is obtained, whether the difference between the closest timestamp and the timestamp corresponding to the target time is larger than a preset value or not is judged, when the difference is larger than the preset value, the parameter information is adjusted and sent back, the estimation position calculation operation is performed, and when the difference is smaller than or equal to the preset value, the target position corresponding to the target time is the estimation position. According to the method, the problems of accuracy and the time performance are solved through estimation processing and a gradually decomposition principle, it is proved by test that the accuracy is guaranteed, at the same time, the time performance is greatly improved, and time needed in positioning is shortened. In addition, the problem of inaccuracy of skipping is solved.