Method for positioning progress based on TS file on-demand
The invention discloses a method for positioning progress based on TS file on-demand in the field of streaming media information, and aims to solve the technical problem that the jump of the on-demand progress of a TS file consumes too long time. The method comprises the following steps: reading TS...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method for positioning progress based on TS file on-demand in the field of streaming media information, and aims to solve the technical problem that the jump of the on-demand progress of a TS file consumes too long time. The method comprises the following steps: reading TS data packets in a TS file in sequence, and extracting PES data packets from the TS data packets; if the frame type of the PES data packet is a video key frame, acquiring a starting position P of a binary byte of the corresponding TS data packet and time T of the starting position, and converting T into a combination form of integer minutes and milliseconds; converting the P and the converted T into a comparison table, and writing the P and the converted T into a pre-constructed video frame index table S; when a TS file is on demand, according to a combination form of converting progress time required to jump into integer minutes and milliseconds, searching a video frame index table S to obtain T closest to the prog |
---|