Method, device and computer program product for storing and providing video

By converting videos into multiple data blocks and generating streaming media index files, the problem of high and low efficiency of video storage space is solved, efficient storage and partial content reading are achieved, and the uniqueness of video content is determined.

CN113742518BActive Publication Date: 2024-10-15EMC IP HLDG CO LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010470802.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2024-10-15
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

Existing video storage systems have high requirements for video storage space and low efficiency. They cannot effectively read part of the video content and cannot determine whether the video content being watched is unique.

Method used

By obtaining the frame storage information of the video, converting the video into multiple data blocks, and converting the frame storage information into streaming media index files to characterize the video in association with multiple data blocks, efficient storage and provision of the video is achieved.

Benefits of technology

It saves the storage space of the video, improves storage efficiency, and allows partial content of the video to be read without restoring the entire video, while being able to determine whether the provided video content is unique.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742518B_ABST
    Figure CN113742518B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to methods, devices, and computer program products for storing and providing videos. A method for storing videos is provided, comprising: obtaining frame storage information in a video to be stored, the frame storage information including information related to the storage of multiple frames in the video; based on the frame storage information, converting the video into multiple data blocks; and converting the frame storage information into a streaming media index file to characterize the video in association with the multiple data blocks. Embodiments of the present disclosure also provide a method for providing videos. Through the embodiments of the present disclosure, the storage space of the video can be saved, the storage efficiency of the video can be improved, and the efficiency of video provision can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to the field of information processing, and more particularly to methods, devices, and computer program products for storing and providing videos. Background Art

[0002] With the development of network technology and video technology, people are increasingly watching, downloading, creating, editing and sharing video content online. At the same time, people's demand for video storage is also growing. Current storage systems or backup systems usually convert the files to be stored into several data blocks, and then store them locally or transfer them to other storage devices for remote storage to save storage space and improve storage efficiency.

[0003] However, this method does not bring the expected benefits for video storage. This is because videos have a unique data organization structure, and traditional storage methods will destroy its structure. Therefore, at present, video storage requires a high storage space and has low storage efficiency. In addition, if a user wants to watch a part of a video, he can only restore the entire video from the device that stores the video, and the user cannot know whether the video content he is watching is unique. Summary of the invention

[0004] Embodiments of the present disclosure provide methods, devices, and computer program products for storing and providing videos.

[0005] In a first aspect of the present disclosure, a method for storing a video is provided. The method includes: obtaining frame storage information in a video to be stored, the frame storage information including information related to the storage of multiple frames in the video; based on the frame storage information, converting the video into multiple data blocks; and converting the frame storage information into a streaming media index file to represent the video in association with the multiple data blocks.

[0006] In a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the at least one processing unit executes the instructions, the electronic device performs an action, the action including: obtaining frame storage information in a video to be stored, the frame storage information including information related to the storage of multiple frames in the video; based on the frame storage information, converting the video into multiple data blocks; and converting the frame storage information into a streaming media index file to characterize the video in association with the multiple data blocks.

[0007] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored in a non-transient computer storage medium and includes machine executable instructions. The machine executable instructions, when executed by a device, cause the device to perform any step of the method described in the first aspect of the present disclosure.

[0008] In a fourth aspect of the present disclosure, a method for providing a video is provided. The method includes: obtaining a streaming media index file of the video according to determining that a request for obtaining at least a portion of the video is received, the video being represented at least in association with the streaming media index file and a plurality of data blocks; determining a group of data blocks corresponding to the at least a portion of the video from the plurality of data blocks based on the streaming media index file; and providing the group of data blocks in the form of streaming media service data.

[0009] In a fifth aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device performs an action, the action including: according to determining that a request for obtaining at least a portion of a video is received, obtaining a streaming media index file of the video, the video is at least associated with the streaming media index file and a plurality of data blocks; based on the streaming media index file, determining a group of data blocks corresponding to the at least a portion of the video from the plurality of data blocks; and providing the group of data blocks in the form of streaming media service data.

[0010] In a sixth aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored in a non-transient computer storage medium and includes machine executable instructions. The machine executable instructions, when executed by a device, cause the device to perform any step of the method described in the fourth aspect of the present disclosure.

[0011] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the disclosure, nor is it intended to limit the scope of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.

[0013] Figure 1A block diagram illustrating an example video system in which embodiments of the present disclosure can be implemented;

[0014] Figure 2 A schematic diagram showing the result after using a traditional video storage method;

[0015] Figure 3 A flowchart illustrating an example method for storing a video according to an embodiment of the present disclosure is shown;

[0016] Figure 4A A schematic diagram showing a data structure of a type of video according to an embodiment of the present disclosure;

[0017] Figure 4B A schematic diagram showing a data structure of another type of video according to an embodiment of the present disclosure;

[0018] Figure 5 A flowchart illustrating an example method for providing video according to an embodiment of the present disclosure; and

[0019] Figure 6 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown.

[0020] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0022] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0023] As mentioned above, with the development of network technology and video technology, people are increasingly watching, downloading and sharing video content online. The following are the video data generated worldwide in 2019: more than 4 million hours of video content were uploaded to the video website YouTube; YouTube users watched 5.97 billion hours of YouTube videos every day; users of Netflix, an online film provider, streamed 694,444 hours of video; users of TikTok, a short video provider, watched more than 1 billion videos, and so on. Not only that, people also create and edit video content. 53% of Tiktok users not only watch content, but also create videos and upload them to the Internet. Accordingly, people's demand for storing or backing up videos is also growing.

[0024] Current video storage systems or backup systems usually convert the files to be stored into several data blocks, and then store the metadata or data blocks of the files locally or transfer them to other storage devices such as backup servers for remote storage. The hash values ​​of the metadata and data blocks can be calculated to serve as indexes of the metadata or data blocks.

[0025] This storage method is beneficial: First, it can save storage space. After the file is divided into data blocks, the data blocks can be deduplicated. The same data block is stored in only one copy, and other files with the data block can reference the data block through an index instead of storing the data block repeatedly. Second, it can improve storage efficiency. When new file data is to be stored, it only needs to check the existence of its hash on the storage device without transferring the actual data block to the storage device.

[0026] However, this method does not bring the expected benefits to video storage. This is because video has a unique data organization structure, and the traditional data block division method will destroy its structure. Therefore, even for video frames with the same encoding, the divided blocks will be different for different container formats. This will result in a very low deduplication rate for the video. Videos are often large, so video storage requires a high storage space and has low storage efficiency.

[0027] In addition, if a portion of a video that has been stored in a storage device is to be read, the entire video must first be restored from the stored data block and then read. This makes video provision inefficient and wastes resources. Moreover, the user cannot know whether the video content being watched is unique, in other words, whether it is referenced by other videos in the storage device.

[0028] The embodiments of the present disclosure propose a solution for storing and providing videos to solve one or more of the above problems and other potential problems. The solution converts the video into multiple data blocks according to the frame storage information, and converts the frame storage information into a streaming media index file to represent the video in association with the multiple data blocks, thereby not only saving the storage space of the video and improving the storage efficiency of the video, but also enabling the user to read at least a part of the video without restoring the entire video.

[0029] Figure 1 1 shows a block diagram of an example video system 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, the video system 100 includes a video storage device 110 and a video providing device 120 .

[0030] The video storage device 110 is a device capable of processing and storing the video 130. The video 130 can be various types of videos, for example, MP4 type videos, AVI type videos, etc. As described in detail below, the video storage device 110 can convert the video into a plurality of data blocks 160-1 to 160-3 (collectively referred to as data blocks 160) while retaining the original data structure of the video 130. The data structure of the video 130 will be described in detail below with respect to FIG. 4. The video storage device 110 can also generate a streaming media index file 150 to characterize the video 130 together with the data blocks 160. The video storage device 110 can be, for example, a computer, a virtual machine, a server, etc., and the present disclosure is not limited in this respect.

[0031] The video providing device 120 is a device that can receive a request for obtaining a video and provide video content according to the request. The video providing device 120 stores file metadata 141, streaming media index file 151, and data blocks 161-1 to 161-3 of the video transmitted from the video storage device 110. The video providing device 120 can be, for example, a computer, a virtual machine, a server, etc., and the present disclosure is not limited in this respect. The video storage device 110 and the video providing device 120 can communicate with each other through a network, and the network can be, for example, the Internet, an intranet, etc.

[0032] It should be understood that the structure of the video system 100 is described only for exemplary purposes, and does not imply any limitation on the scope of the present disclosure. For example, the embodiments of the present disclosure can also be applied to systems different from the video system 100. It should be understood that the specific numbers of the above-mentioned devices are given only for illustrative purposes, and do not imply any limitation on the scope of the present disclosure. For example, the embodiments of the present disclosure can also be applied to more video providing devices 120. Alternatively, the embodiments of the present disclosure can also integrate the video storage device 110 and the video providing device 120 in the same device.

[0033] Figure 2 FIG. 2 is a schematic diagram showing the result 200 after using a conventional video storage method. Figure 2 As shown, the example video has video information packets 210 and 220 and a video data packet 230. The video data packet 230 has a plurality of frames. After using a conventional video storage method, data blocks 240-1 to 240-4 (collectively referred to as data blocks 240) are obtained. Figure 2 As shown, the data block 240 no longer retains the original packet structure of the video. Therefore, even for video frames with the same encoding, due to different container formats, the data blocks corresponding to these video frames are also different, resulting in a reduced deduplication rate of the video.

[0034] Figure 3 FIG. 3 is a flowchart of an exemplary method 300 for storing a video according to an embodiment of the present disclosure. For example, the method 300 may be performed as follows: Figure 1 The method 300 is performed by the video storage device 110 shown in the figure. It should be understood that the method 300 can also be performed by other devices, and the scope of the present disclosure is not limited in this respect. It should also be understood that the method 300 can also include additional actions not shown and / or can omit the actions shown, and the scope of the present disclosure is not limited in this respect.

[0035] At 310 , the video storage device 110 may obtain frame storage information in a video to be stored, the frame storage information including information related to storage of a plurality of frames in the video.

[0036] In some embodiments, the video can be various types of videos, for example, MP4 type videos, AVI type videos, etc. The frame storage information may include information related to the storage of multiple frames in the video. For example, in some embodiments, the frame storage information may include the offsets of multiple frames in the video, and the offset of each frame indicates the distance between the starting storage position of the frame and the starting storage position of the video. Additionally, in other embodiments, the frame storage information may include the container type of the video. Through the container type of the video, the video storage device 110 can determine the encoding mode of the frame for subsequent conversion of the frame of the video into a data block. Additionally, in some other embodiments, the frame storage information may include the number of multiple frames in the video and the types of multiple frames, such as video frames, audio frames, etc.

[0037] For ease of explanation, the following reference Figure 4A and Figure 4B To describe Figure 3 . Figure 4A A schematic diagram 410 showing a data structure of a type of video according to an embodiment of the present disclosure is shown. Figure 4AAs shown, a type of video, such as an MP4 type video, may include file metadata 411, ftyp package 412, moov package 413, video data packet 414, and audio data packet 415. File metadata 411 may store information such as the storage type of the video in the operating system, the size of the video file, and the creation time of the video. The ftyp package 412 may store information such as the container type, version, and compatible protocol of the video. The moov package 413 may store information such as the offset of multiple frames in the video, the number of multiple frames, and the type of multiple frames. Video data packet 414 and audio data packet 415 include multiple frames 416-1, 416-2, 416-3, and 416-4 (collectively referred to as frames 416).

[0038] In such an embodiment, the frame storage information may include an ftyp package 412 and a moov package 413. The video storage device 110 may obtain the offsets of multiple frames 416 in the video by reading the moov package 413, and the offset of each frame indicates the distance between the starting storage position of the frame and the starting storage position of the video. The video storage device 110 may also obtain the container type of the video by reading the ftyp package 412, and in this embodiment, the container type is MP4.

[0039] Figure 4B Schematic diagram 420 showing a data structure of another type of video according to an embodiment of the present disclosure. Figure 4B As shown, another type of video, such as AVI type video, may include file metadata 421, container type information 422, header file list 423, information list 424, video list 425, audio list 426, and index block 427. Similarly, file metadata 421 may store information such as the storage type of the video in the operating system, the size of the video file, and the creation time of the video. Frame storage information may include container type information 422, header file list 423, information list 424, and index block 427. Video list 425 and audio list 426 include multiple frames 428-1, 428-2, 428-3, and 428-4 (collectively referred to as frames 428).

[0040] In such an embodiment, similar to Figure 4A The video storage device 110 can obtain the offsets of the plurality of frames 428 in the video and the container type of the video by reading the frame storage information. In this embodiment, the container type is AVI.

[0041] Figure 4A and Figure 4BThe data structures of two different types of videos are shown. It should be understood that the data structures of some videos are shown only for exemplary purposes and do not imply any limitation on the scope of the present disclosure. For example, the embodiments of the present disclosure are also applicable to other types of videos.

[0042] Return now Figure 3 At 320 , the video storage device 110 may convert the video into a plurality of data blocks according to the frame storage information.

[0043] In some embodiments, the video storage device 110 may determine the starting storage position and the ending storage position of each of the multiple frames in the video according to the frame storage information, and then store one or more of the multiple frames into a data block according to the starting storage position and the ending storage position.

[0044] For example, in some embodiments, the video storage device 110 may determine the starting storage position and the ending storage position of each frame according to the offset of each frame and the size of each frame obtained by reading the frame storage information, and then store each frame into a data block. Alternatively, in other embodiments, the video storage device 110 may store multiple frames into a data block. Additionally, in some embodiments, the video storage device 110 may store the frame storage information into a data block. For example, in Figure 4A In the embodiment shown, the video storage device 110 can store the ftyp package 412 and the moov package 413 into one data block. Figure 4B In the illustrated embodiment, the video storage device 110 may store the container type information 422 , the header file list 423 , the information list 424 , and the index block 427 into one data block.

[0045] In this way, when converting the video into multiple data blocks, the original data structure of the video is preserved, rather than Figure 2 As shown in the figure, the structure is destroyed. Since each frame is completely stored in the data block, when performing deduplication operations on multiple data blocks, the same frame can be effectively deduplicated, thereby improving the deduplication rate of the video. This is conducive to saving video storage space and improving video storage efficiency.

[0046] At 330 , the video storage device 110 may convert the frame storage information into a streaming media index file to represent the video in association with the plurality of data chunks.

[0047] In some embodiments, the video storage device 110 can convert the frame storage information into an m3u8 index file. The m3u8 index file complies with the streaming media protocol HTTP Live Streaming (HLS). Alternatively, in other embodiments, the video storage device 110 can convert the frame storage information into a streaming media index file that complies with the streaming media protocols such as HTTP Dynamic Streaming (HDS), Real-Time Messaging Protocol (RTMP) and Microsoft Smooth Streaming (MSS). Additionally, in some embodiments, the video storage device 110 can store the streaming media index file and the file metadata together.

[0048] In some embodiments, the video storage device 110 can transfer the streaming media index file and the multiple data blocks to a device outside the video storage device 110 for storage. For example, it can be transferred to the video providing device 120. Alternatively or additionally, the video storage device 110 can also store the streaming media index file and the multiple data blocks locally. Due to the existence of the streaming media index file, the user can send a request for at least a portion of the video to the video storage device 110 or the video providing device 120 where the video is located through the streaming media protocol, and then the at least a portion of the video can be determined and provided to the user in the form of streaming media service data, making it possible to read at least a portion of the video without restoring the entire video. Regarding this aspect, reference will be made below. Figure 5 Describe in detail.

[0049] In the above exemplary embodiment, by converting the video into multiple data blocks according to the frame storage information, and converting the frame storage information into a streaming media index file to represent the video in association with the multiple data blocks, not only the storage space of the video can be saved and the storage efficiency of the video can be improved, but also it can be possible to read at least a part of the video without restoring the entire video.

[0050] Figure 5 1 shows a flow chart of an example method 500 for providing a video according to an embodiment of the present disclosure. For example, the method 500 may be performed as follows: Figure 1 The method 500 is performed by the video providing device 120 shown in the figure. It should be understood that the method 500 can also be performed by other devices, and the scope of the present disclosure is not limited in this respect. It should also be understood that the method 500 can also include additional actions not shown and / or can omit the actions shown, and the scope of the present disclosure is not limited in this respect.

[0051] At 510 , the video providing device 120 may obtain a streaming media index file of the video based on determining that a request for obtaining at least a portion of the video is received, where the video is represented at least by the streaming media index file and a plurality of data blocks in association.

[0052] In some embodiments, a user who wants to obtain a video may send a request for obtaining at least a portion of the video to the video providing device 120, and the request may include the ID of the video to be obtained. After receiving the request with the video ID, the video providing device 120 obtains the streaming media file of the video according to the video ID.

[0053] At 520 , the video providing device 120 may determine a group of data blocks corresponding to the at least one portion of the video from the plurality of data blocks according to the streaming media index file.

[0054] In some embodiments, the video providing device 120 may parse the frame index corresponding to the requested at least part into an offset of a data block according to the acquired streaming media index file, and then determine a group of data blocks according to the offset.

[0055] At 530 , the video providing device 120 may provide the set of data blocks in the form of streaming media service data.

[0056] In some embodiments, the video providing device 120 may convert the set of data blocks into a streaming data format, for example, into an MPEG-2 segment, and then convert the streaming data format into streaming media service data to provide to the user or user device.

[0057] Additionally, in some embodiments, in order to provide smoother video content, the video providing device 120 may buffer multiple groups of data blocks corresponding to the multiple requests after receiving multiple requests, and then provide the multiple groups of data blocks together to the user or user device. For example, the video providing device 120 may buffer 5 minutes of video content and then provide it together to the user or user device.

[0058] Additionally, in some embodiments, the video providing device 120 may add statistical information related to the video to the streaming media service data, the statistical information at least indicating whether the group of data blocks is referenced by other videos in the storage device where the video is located. In the embodiment shown herein, the storage device where the video is located may be the video storage device 110 or the video providing device 120.

[0059] For example, in some embodiments, the video providing device 120 can generate statistical information of the video while the video is transmitted to the video providing device 120, and the statistical information can indicate the frame deduplication rate of the video, the reference situation of the data blocks corresponding to the multiple frames by other videos on the video providing device 120, etc. In addition, in some embodiments, the video providing device 120 can use the EXT-X-DATERANGE tag to add the statistical information based on the SCTE-35 specification to the media playlist file. There can be a series of media segment URIs between the two EXT-X-DATERANGE tags containing the SCTE35-OUT and SCTE35-IN attributes respectively. These media segments generally represent advertising programs that can be replaced by local or customized advertisements. The video providing device 120 can generate these statistical information as small videos, and then add them to the server tmp file. When the provided video part is playing, the playlist will jump to the generated small video to play the statistical information.

[0060] As an example, if in a 5-minute video content, the content from time 1:00 to time 2:00 is a unique frame not referenced by other videos in the video providing device 120, the video providing device 120 can generate a 5-second small video containing statistical information to notify the user: "The following content from time 1:00 to 2:00 is a unique part in the storage device". When the user watches the video until 00:55 seconds, the generated 5-second small video will be played to notify the user that the next part from 1:00 to 2:00 is unique. The user may restore the video based on the statistical information. Additionally or alternatively, if the provided content is not unique, the video providing device 120 can list the video names that reference the data blocks corresponding to the provided content. It should be understood that the above example embodiments are shown only for exemplary purposes, and do not imply any limitation on the scope of the present disclosure. For example, the statistical information can also indicate other information, and the statistical information can also be added in other ways.

[0061] In the above exemplary embodiment, by using the streaming media index file to provide the data chunks of the video, it is possible to read at least a portion of the video without restoring the entire video. In addition, by adding statistical information related to the video, it is possible to indicate whether the provided video content is unique on the storage device where the video is located.

[0062] Figure 6 Schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The video storage device 110 and / or the video providing device shown may be implemented by the electronic device 600. Figure 6As shown, the electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or computer program instructions loaded from a storage unit 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0063] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0064] The various processes and processing described above, such as methods 300 and 500, may be performed by the processing device 601. For example, in some embodiments, the methods 300 and 500 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the CPU 601, one or more actions of the methods 300 and 500 described above may be performed.

[0065] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0066] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0067] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0068] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0069] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0070] These computer-readable program instructions can be provided to a processing device of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing device of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0071] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0072] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0073] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for storing a complete version of a video, comprising: Obtaining frame storage information of the complete version of the video, wherein the frame storage information includes information related to storage of a plurality of frames in the video, and the video includes an original data structure based on a container type of the video, and wherein the original data structure delimits data constituting the entirety of the complete version of the video; converting the entirety of the complete version of the video into only a single data structure based on the frame storage information without changing any portion of the original data structure of the complete version of the video, the single data structure comprising a plurality of data blocks, wherein the structure of the entirety of the single data structure is identical to the structure of the original data structure of the complete version of the video, and the entirety of the single data structure contains the entirety of the complete version of the video, wherein the frame storage information is converted into a first data block among the plurality of data blocks, wherein the plurality of frames in the video are converted into a second data block of the plurality of data blocks using the frame storage information in the first data block, and Wherein within the single data structure: The frame storage information is included only in the first data block, and The second data block includes only video or audio data of the video; and A streaming media index file that is different and separate from the single data structure is generated using the frame storage information to characterize the entirety of the video in association with the plurality of data blocks of the single data structure.

2. The method according to claim 1, wherein obtaining the frame storage information of the video comprises: The offsets of the multiple frames in the video are obtained, wherein the offset of each frame indicates the distance between a starting storage position of the frame and a starting storage position of the video. 3 . The method according to claim 2 , wherein obtaining the frame storage information of the video further comprises obtaining at least one of the following: the container type of the video, the number of the plurality of frames, and the type of the plurality of frames.

4. The method of claim 1 , wherein converting the video into the plurality of data blocks comprises: Determining a starting storage position and an ending storage position of each of the plurality of frames in the video based on the frame storage information; as well as The plurality of frames are divided into the second data block of the plurality of data blocks based on the start storage position and the end storage position.

5. The method according to claim 1, further comprising: Retrieve the streaming media index file of the video based on determining that a request for obtaining at least a portion of the video is received; Based on the streaming media index file, determining a set of data blocks corresponding to the at least a portion of the video from the plurality of data blocks; as well as The set of data blocks is provided as streaming media service data.

6. The method according to claim 5, further comprising: Adding statistical information related to the video to the streaming service data, the statistical information at least indicating whether the group of data blocks is referenced by other videos other than the video.

7. An electronic device comprising: at least one processing unit; at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform a method of storing a complete version of a video, the method comprising: Obtaining frame storage information of the complete version of the video, wherein the frame storage information includes information related to storage of a plurality of frames in the video, and the video includes an original data structure based on a container type of the video, and wherein the original data structure delimits data constituting the entirety of the complete version of the video; converting the entirety of the complete version of the video into only a single data structure based on the frame storage information without changing any portion of the original data structure of the complete version of the video, the single data structure comprising a plurality of data blocks, wherein the structure of the entirety of the single data structure is identical to the structure of the original data structure of the complete version of the video, and the entirety of the single data structure contains the entirety of the complete version of the video, wherein the frame storage information is converted into a first data block among the plurality of data blocks, wherein the plurality of frames in the video are converted into a second data block of the plurality of data blocks using the frame storage information in the first data block, and Wherein within the single data structure: The frame storage information is included only in the first data block, and The second data block includes only video or audio data of the video; and A streaming media index file that is different and separate from the single data structure is generated using the frame storage information to characterize the entirety of the video in association with the plurality of data blocks of the single data structure.

8. The electronic device according to claim 7, wherein acquiring the frame storage information of the video comprises: The offsets of the multiple frames in the video are obtained, wherein the offset of each frame indicates the distance between a starting storage position of the frame and a starting storage position of the video. 9 . The electronic device according to claim 8 , wherein acquiring the frame storage information of the video further comprises acquiring at least one of the following: the container type of the video, the number of the plurality of frames, and the type of the plurality of frames.

10. The electronic device of claim 7, wherein converting the video into the plurality of data blocks comprises: Determining a starting storage position and an ending storage position of each of the plurality of frames in the video based on the frame storage information; as well as The plurality of frames are divided into the second data block of the plurality of data blocks based on the start storage position and the end storage position.

11. The electronic device according to claim 7, the method further comprising: Retrieve the streaming media index file of the video based on determining that a request for obtaining at least a portion of the video is received; Based on the streaming media index file, determining a set of data blocks corresponding to the at least a portion of the video from the plurality of data blocks; as well as The set of data blocks is provided as streaming media service data.

12. The electronic device according to claim 11, the method further comprising: Adding statistical information related to the video to the streaming service data, the statistical information at least indicating whether the group of data blocks is referenced by other videos other than the video.

13. A computer program product tangibly stored in a non-transitory computer storage medium and comprising machine executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1-6.