Search

EP-4075814-B1 - MP4 FILE VIRTUAL MSS FRAGMENTATION METHOD, MSS ADAPTER, MEDIA SERVER, AND STORAGE MEDIUM

EP4075814B1EP 4075814 B1EP4075814 B1EP 4075814B1EP-4075814-B1

Inventors

  • XU, JING
  • BAI, Yaxian

Dates

Publication Date
20260506
Application Date
20201217

Claims (8)

  1. A virtual Microsoft Smooth Streaming, MSS, chunking method for an MP4 file, comprising: receiving an MSS download request sent by an MSS player, the MSS download request being configured to request download of at least one MSS chunk of a first MP4 file (S2010); determining, according to MSS chunk indexes and virtual chunk indexes of the first MP4 file, data segments in the first MP4 file corresponding to data of the at least one MSS chunk, each MSS chunk index containing a playing address of a respective MSS chunk of the first MP4 file, and each virtual chunk index containing a correspondence between the data of a respective MSS chunk and a respective one of data segments of the first MP4 file (S2020); sending a data segment download request to a media server and receiving data segments of the first MP4 file sent by the media server, the data segment download request being configured to request download of the data segments of the first MP4 file corresponding to the at least one MSS chunk (S2030); and assembling contents of the data segments to generate the at least one MSS chunk and sending the at least one MSS chunk to the MSS player (S2040); characterized in that , before receiving an MSS download request sent by an MSS player, further comprising: receiving a first MSS playlist request sent by the MSS player, the MSS playlist request being configured to request the MSS chunk indexes of the first MP4 file; sending a second MSS playlist request to the media server, and receiving the MSS chunk indexes and the virtual chunk indexes of the first MP4 file sent by the media server, the second MSS playlist request being configured to request the MSS chunk indexes and the virtual chunk indexes of the first MP4 file; and sending the MSS chunk indexes of the first MP4 file to the MSS player.
  2. The method of claim 1, wherein determining, according to MSS chunk indexes and virtual chunk indexes of the first MP4 file, data segments in the first MP4 file corresponding to data of the at least one MSS chunk comprises: calculating, according to a virtual chunk index corresponding to an index of the at least one MSS chunk, an actual data position range of the data of the at least one MSS chunk in the first MP4 file.
  3. A virtual Microsoft Smooth Streaming, MSS, chunking method for an MP4 file, comprising: receiving a data segment download request sent by an MSS adapter, the data segment download request being configured to request download of data segments of a first MP4 file corresponding to at least one MSS chunk (S6010); and sending data segments of the first MP4 file to the MSS adapter (S6020); characterized in that , receiving an MSS playlist request sent by the MSS adapter, the MSS playlist request being configured to request MSS chunk indexes and virtual chunk indexes of the first MP4 file, each MSS chunk index containing a playing address of a respective MSS chunk of the first MP4 file, and each virtual chunk index containing a correspondence between the data of a respective MSS chunk and a respective one of data segments of the first MP4 file; and sending the MSS chunk indexes and the virtual chunk indexes of the first MP4 file to the MSS adapter.
  4. The method of claim 3, before receiving an MSS playlist request sent by the MSS adapter, further comprising: parsing index data of the first MP4 file, and determining video key frames in the first MP4 file; segmenting the first MP4 file into a plurality of data segments with the video key frames in the first MP4 file as boundaries, each data segment containing at least one video key frame; establishing a correspondence between each data segment of the first MP4 file and data of a respective MSS chunk, and generating the virtual chunk indexes; and generating the MSS chunk indexes according to data segmentation of the first MP4 file.
  5. The method of claim 4, wherein the virtual chunk index contains an actual data position range of the data of the at least one MSS chunk in the first MP4 file.
  6. A Microsoft Smooth Streaming, MSS, adapter, comprising a processor (111) and a memory (112), wherein the processor (111) is configured to execute program instructions stored in the memory (112) to implement the virtual MSS chunking method for a MP4 file of any one of claims 1 to 2.
  7. A media server, comprising a processor (121) and a memory (122), wherein the processor (121) is configured to execute program instructions stored in the memory (122) to implement the virtual MSS chunking method for the MP4 file of any one of claims 3 to 5.
  8. A computer-readable storage medium storing a computer program which, when executed by a processor, cause the processor to implement the virtual MSS chunking method for a MP4 file of any one of claims 1 to 5.

Description

TECHNICAL FIELD The present disclosure relates to multimedia services, in particular to a virtual Microsoft Smooth Streaming (MSS) chunking method for an MP4 file, an MSS adapter, a media server and a computer-readable storage medium. BACKGROUND Moving Picture Experts Group 4 Part 14 (MPEG-4 Part 14 or MP4) is a common multimedia file format, which is widely used in various terminal devices. MP4 files can be used as storage containers for various video files, and stored in terminal devices or network servers. Various MP4 files can be played on demand by using MP4 players in terminal devices. Fig. 1 is a schematic diagram of a common MP4 file. As shown in Fig. 1, a head of the MP4 file includes two containers, FtypBox and MoovBox, where FtypBox is used for storing an encoding format, standard, etc. used by the MP4 file, and MoovBox (i.e., a movie box) records key data such as decoding information, timestamps and positions of all subsequent audio frames and video frames, which can also be referred to as index data of the MP4 file, especially related information of key frames among the video frames. Among the video frames, the key frames are the most important nodes, and a player refreshes the whole image at the key frames. However, at present, all the index information of the MP4 file is stored in the MoovBox. The larger the file size, the larger the MoovBox. The player needs to obtain and parse the index information in the MoovBox before playing the MP4 file. The larger the MoovBox, the longer the time for the player to load data in the MoovBox, and the longer the buffer time for file playing. In order to shorten the buffer time for MP4 file playing, the MSS protocol is becoming more and more popular. In the MSS protocol, a large MP4 file is converted into many small media file chunks which can be loaded fast, so that the problem of long buffer time for MP4 file playing can be solved. However, many small-size media file chunks are just like tiny file fragments, which are difficult to manage and affect the performance of the server where the files are stored. Therefore, it's important to improve the management of MP4 files for streaming media. US 2017/111665 A1 relates to delivery online of high definition (HD) video at broadcast audience scale to popular runtime environments and mobile devices. Alex Zambelli: "Smooth Streaming Architecture", Alex Zambelli's Streaming Media Blog, 10 February 2009 (2009-02-10), XP055659385, relates to how Smooth Streaming works: format, server, and client. "A HTTP Streaming Video Server with Dynamic Advertisement Splicing", 21 March 2010 (2010-03-21), XP055173803, relates to how to implement a streaming server that will fetch streaming contents and advertisements from their respective content servers and to cleverly stitch the advertisements into the media stream before feeding the stream to a client. SUMMARY The invention is set out in the appended set of claims. Embodiments of the present disclosure provide a virtual MSS chunking method for an MP4 file, an MSS adapter, a media server and a computer-readable storage medium. In accordance with an aspect of the present disclosure, an embodiment provides a virtual MSS chunking method for an MP4 file, including: receiving an MSS download request sent by an MSS player, the MSS download request being configured to request download of at least one MSS chunk of a first MP4 file; determining, according to MSS chunk indexes and virtual chunk indexes of the first MP4 file, data segments in the first MP4 file corresponding to data of the at least one MSS chunk, each MSS chunk index containing a playing address of a respective MSS chunk of the first MP4 file, and each virtual chunk index containing a correspondence between the data of a respective MSS chunk and a respective one of data segments of the first MP4 file; sending a data segment download request to a media server and receiving data segments of the first MP4 file sent by the media server, the data segment download request being configured to request download of the data segments of the first MP4 file corresponding to the at least one MSS chunk; and assembling the data segments to generate the at least one MSS chunk and sending the at least one MSS chunk to the MSS player. In accordance with an aspect of the present disclosure, an embodiment provides a virtual MSS chunking method for an MP4 file, including: receiving a data segment download request sent by an MSS adapter, the data segment download request being configured to request download of data segments of a first MP4 file corresponding to at least one MSS chunk; and sending data segments of the first MP4 file to the MSS adapter. In accordance with an aspect of the present disclosure, an embodiment provides an MSS adapter, including a processor and a memory, where the processor is configured to execute program instructions stored in the memory to implement the virtual MSS chunking method for a MP4 file as mentioned above. In