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 method for storing streaming media files, such as figure 1 shown, including:
[0047] 101. Divide the media file into at least one sub-media file, and 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, where the self information segment stores the media file identification number ID, and the media information segment stores the time parameters of the sub-media files, The frame rate of the media file, the frame information segment stores the key frame index table and the frame index table of the sub-media file; the TS data segment stores the TS stream data corresponding to the header data segment.
[0049] 102. Store all sub-media files of the media file.
[0050] The execution body of this embodiment may be a streaming media file storage device, such as a storage server.
...
Embodiment 2
[0079] Embodiments of the present invention provide a method for storing streaming media files, such as figure 1 shown, including:
[0080] 101. Divide the media file into at least one sub-media file, and each sub-media file includes a header data segment and a TS data segment.
[0081] When dividing a 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. After setting, the length of key frame index table and frame index table It is determined. For specific examples of division, please refer to the following Figure 9 part description.
[0082] Of course, when the number of frames is less than the fr...
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 that the client wants to establish a connection with.
[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, where the reply message carries the video type, audio type, and DRM flag of the media file.
[0116] 14. Receive a play instruction sent by the client, where the play instruction carries a start time point.
[0117] 15. Compare the time point selected by the client with the time parameters of all the sub-media files of the media file, and determine the target sub-media file, where the target sub-media file contains the selected start of the cli...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 