Storage and playing method, device and system of streaming media file
A media file and file storage technology, applied in the multimedia field, can solve the problems affecting the reading efficiency of media files, etc., and achieve the effect of flexible streaming media broadcast control operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] This embodiment provides a streaming media file storage method, such as figure 1 shown, including:
[0047] 101. Divide the media file into at least one sub-media file, where each sub-media file includes a header data segment and a TS data segment.
[0048] Specifically, the header data segment includes: a self information segment, a media information segment, and a frame information segment, the self information segment stores a media file identification number ID, and the media information segment stores a time parameter of a sub-media file, The frame rate of the media file, the frame information section stores the key frame index table and the frame index table of the sub-media file; the TS data section stores the TS stream data corresponding to the header data section.
[0049] 102. Store all sub-media files of the media file.
[0050] The execution subject of this embodiment may be a streaming media file storage device, such as a storage server.
[0051] The med...
Embodiment 2
[0079] Embodiments of the present invention provide a streaming media file storage method, such as figure 1 shown, including:
[0080] 101. Divide the media file into at least one sub-media file, where each sub-media file includes a header data segment and a TS data segment.
[0081] When dividing the media file, when the frame number is greater than the frame index table of the sub-media file or the frame number of the key frame is greater than the length of the key frame index table of the sub-media file, the media file must be divided. When setting the length of key frame index table and frame index table, you can adjust the ratio of key frame index table and frame index table to achieve the most effective space utilization rate. After setting, the length of key frame index table and frame index table will be determined. For specific division examples, please refer to the following Figure 9 section description.
[0082] Of course, when the frame number is less than the ...
Embodiment 3
[0112] This embodiment provides a streaming media file playback method, please refer to Figure 10 ,include:
[0113] 11. Receive a connection establishment request sent by the client, where the connection establishment request carries a file ID to which the client wants to establish a connection.
[0114] 12. Search for a media file corresponding to the file ID, where the media file is divided into at least one sub-media file.
[0115] 13. After finding the media file corresponding to the file ID, send a reply message to the client, the reply message carrying the video type, audio type, and DRM mark of the media file.
[0116] 14. Receive the play instruction sent by the client, where the start time point is carried in the play instruction.
[0117] 15. Comparing the starting time point selected by the client with the time parameters of all sub-media files of the media file, and determining the target sub-media file, the target sub-media file contains the starting point sel...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 