KR-102965254-B1 - Video partitioning method, transmission method, server, adapter, and storage media
Abstract
The present disclosure provides a video partitioning method, a transmission method, a server, an adapter, and a storage medium. The method comprises: generating a corresponding video track according to the bit stream of each sub-image block of an encoding file of an original video, and encapsulating the video track into a video file; parsing the video file to obtain video frame position information of each video track; generating a virtual slicing information file according to the sequence number of the sub-image block of the encoding file and the video frame position information, and also generating a video playback index file according to the sequence number of the sub-image block.
Inventors
- 슈, 징
- 왕, 용량
Assignees
- 지티이 코포레이션
Dates
- Publication Date
- 20260513
- Application Date
- 20210616
- Priority Date
- 20200618
Claims (13)
- Generate a corresponding video track according to the bitstream of each sub-image block of the original video encoding file, and encapsulate the video track into a video file; The above video file is parsed to obtain video frame position information of each of the above video tracks, wherein the video frame position information includes the starting byte and byte length of the video frame in the above video file; It includes generating a virtual slicing information file according to the sequence number of a sub-image block of the above-mentioned encoding file and the video frame position information, and also generating a video playback index file according to the sequence number of the sub-image block. A video partitioning method wherein the virtual slicing information file includes a sequence number of each sub-image block and video frame position information of a video track corresponding to the sequence number, and the video playback index file includes a sequence number of each sub-image block.
- In claim 1, Before generating a corresponding video track according to the bitstream of each sub-image block of the encoding file of the original video, the method also: Decode the original video to obtain a panoramic image; A video partitioning method comprising obtaining an encoded file by encoding the panoramic image in a motion-limited tile set (MCTS) manner according to a preset high-efficiency video coding (HEVC) encoder.
- In claim 2, Obtaining an encoded file by encoding the panorama image in the MCTS manner according to the above preset HEVC encoder is: Based on the segmentation strategy of the preset HEVC encoder, the above-mentioned panoramic image is segmented to obtain a plurality of sub-image blocks; The method includes encoding each of the sub-image blocks based on the bit rate parameter of the preset HEVC encoder to obtain an encoded file containing the bit stream of each sub-image block; A video partitioning method wherein the encoding file comprises a first bitrate encoding file and a second bitrate encoding file, and the first bitrate encoding file is larger than the second bitrate encoding file.
- In claim 1, The above encoding file includes a first bitrate encoding file and a second bitrate encoding file; generating a corresponding video track according to the bitstream of each sub-image block of the encoding file of the original video, and encapsulating the video track into a video file is: Acquiring a sub-video track corresponding to each sub-image block according to the bit stream of each sub-image block in the first bit rate encoding file and the second bit rate encoding file, and also recording a correspondence relationship between the sub-video track corresponding to the sequence number of each sub-image block in the first bit rate encoding file and the second bit rate encoding; Based on the sub-video track corresponding to each of the above-mentioned sub-image blocks, a first bitrate video track and a second bitrate video track corresponding to each are formed; A video partitioning method comprising encapsulating the first bitrate video track and the second bitrate video track to obtain a corresponding video file.
- In claim 4, Parsing the above video file to obtain video frame position information of each above video track is: Parsing the above video file to obtain the correspondence relationship between the sequence number of each of the above sub-image blocks and the sub-video tracks of the first bitrate video track and the second bitrate video track; A video partitioning method comprising obtaining video frame position information of a sub-video track corresponding to the sequence number of each sub-image block in the first bitrate video track and the second bitrate video track, based on the correspondence between the sequence number of each sub-image block and the corresponding sub-video track.
- In claim 5, Generating a virtual slicing information file based on the sequence number of the sub-image block of the above-mentioned encoding file and the video frame position information is: Based on the sequence number of the sub-image block and the video frame position information, a first bit rate information table and a second bit rate information table are obtained, respectively; A video partitioning method comprising generating a virtual slicing information file based on the first bit rate information table and the second bit rate information table.
- Based on a playback request service sent from a terminal, a first download request is sent to a server, a virtual slicing information file and a video playback index file corresponding to the first download request are obtained, and the video playback index file is also sent to the terminal; Based on the video playback index file, according to the second download request sent from the terminal and the virtual slicing information file, acquiring a sub-image video file corresponding to the second download request, and also sending the sub-image video file to the terminal; Herein, the video playback index file and virtual slicing information file are obtained through the video partitioning method according to any one of claims 1 to 6, a video transmission method.
- In claim 7, The second download request includes a sequence number of a first sub-image block or a sequence number of a second sub-image block associated with the sequence number of the first sub-image block; and acquiring a sub-image video file corresponding to the second download request according to the second download request sent from the terminal based on the video playback index file and the virtual slicing information file is: In the second download request above, according to the sequence number of the first sub-image block, obtain first video frame location information corresponding to the sequence number of the first sub-image block in the virtual slicing information file; according to the first video frame location information, obtain a first sub-image video file corresponding to the sequence number of the first sub-image block; and/or, A video transmission method comprising: obtaining second video frame location information corresponding to the sequence number of the second sub-image block in the virtual slicing information file according to the sequence number of the second sub-image block in the second download request; and obtaining a second sub-image video file corresponding to the sequence number of the second sub-image block according to the location information of the second video frame.
- In claim 8, The virtual slicing information file includes a first bitrate information table and a second bitrate information table; and obtaining first video frame position information corresponding to the sequence number of the first sub-image block in the virtual slicing information file is: The method includes querying the first bit rate information table using the sequence number of the first sub-image block and obtaining first video frame position information corresponding to the sequence number of the first sub-image block from the first bit rate information table; Obtaining second video frame position information corresponding to the sequence number of the second sub-image block in the virtual slicing information file is: Querying the first bit rate information table with the sequence number of the second sub-image block and obtaining second video frame position information corresponding to the sequence number of the second sub-image block from the first bit rate information table; or, A video transmission method comprising querying a second bit rate information table with the sequence number of the second sub-image block and obtaining second video frame position information corresponding to the sequence number of the second sub-image block from the second bit rate information table.
- In claim 8, The first video frame position information and the second video frame position information include a start byte and a byte length of the video frame; and according to the position information of the first video frame, obtaining a first sub-image video file corresponding to the sequence number of the first sub-image block is: Based on the start byte and byte length of the first video frame corresponding to the sequence number of the first sub-image block, first video data corresponding to the sequence number of the first sub-image block is obtained; The method includes encapsulating the first video data and obtaining a first sub-image video file corresponding to the sequence number of the first sub-image block; Acquiring a second sub-image video file corresponding to the sequence number of the second sub-image block according to the position information of the second video frame is: Based on the start byte and byte length of the second video frame corresponding to the sequence number of the second sub-image block, second video data corresponding to the sequence number of the second sub-image block is obtained; A video transmission method comprising encapsulating the second video data and obtaining a second sub-image video file corresponding to the sequence number of the second sub-image block.
- It includes memory and a processor, wherein the memory is configured to store a computer program; A server configured such that the processor executes the computer program and also implements the video partitioning method according to any one of claims 1 to 6 when the computer program is executed.
- It includes memory and a processor, wherein the memory is configured to store a computer program; An adapter configured such that the processor executes the computer program and also implements the video transmission method according to any one of claims 7 to 10 when the computer program is executed.
- A computer-readable storage medium that stores one or more programs, wherein when the one or more programs are executed by one or more processors, the video partitioning method according to any one of claims 1 to 6 is implemented, or the video transmission method according to any one of claims 7 to 10 is implemented.
Description
Video partitioning method, transmission method, server, adapter, and storage media The present disclosure relates to the technical field of data processing, but is not limited thereto. This application claims priority to patent application No. 202010561781.7 filed with the Chinese Intellectual Property Office on June 18, 2020, the full contents of which are incorporated herein by reference. VR video transmission is broadly classified into panoramic video transmission and window-dependent video transmission (FOV, Field of View). With the advent of the 8K era, 8K VR will occupy more than 100MB of bandwidth, so FOV transmission has become the primary choice for VR services. In VR FOV transmission, sub-image block-based transmission introduces the Motion-Constrained Tile Set (MCTS) into the High Efficiency Video Coding (HEVC) encoder. HEVC coding can divide video images into sub-images, and since the encoding and decoding of each sub-image of the video image do not depend on each other, multiple sub-image blocks can be obtained. FIG. 1 is a schematic flowchart of a video partitioning method provided in the present disclosure. FIG. 2 is a schematic flowchart of a video transmission method provided in the present disclosure. FIG. 3 is a schematic block diagram of a server structure provided in the present disclosure. FIG. 4 is a schematic block diagram of the structure of an adapter provided in the present disclosure. The technical methods of the present disclosure will be explained clearly and completely below with reference to the attached drawings. Clearly, the described embodiments are only a part, not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort fall within the scope of protection of the present disclosure. The flowchart shown in the drawing is for illustrative purposes only and does not necessarily include all contents, tasks, or steps, nor is it required to be performed in the described order. For example, some tasks or steps may be broken down, combined, or partially combined, so the actual execution order may change depending on the actual situation. The present disclosure provides a video partitioning method, a transmission method, a server, an adapter, and a storage medium. Hereinafter, some embodiments of the present disclosure will be described in detail with reference to the attached drawings. The following embodiments and features of the embodiments may be combined without conflict. Referring to FIG. 1, FIG. 1 is a video partitioning method provided in the present disclosure. As illustrated in FIG. 1, the present invention provides a video partitioning method, which may include the following steps S110 to S130. In step S110, a corresponding video track is generated according to the bitstream of each sub-image block of the original video encoding file, and the video track is encapsulated into a video file. In this method, an encoded file of the original video file is obtained, and the encoded file contains bitstreams of multiple sub-image blocks. For example, the original video file is decoded to obtain a corresponding panoramic image, and then the corresponding panoramic image is encoded to obtain a corresponding encoded file. A corresponding video track is formed through the bitstreams of each sub-image block. Among these, the format of the original video file includes mp4, flv, f4v, ts, and other formats, and the server also supports formats such as mp4, flv, f4v, and ts. Once the generated video track is obtained, the video track is encapsulated into a new video file. In one embodiment, the encoding file includes a first bitrate encoding file and a second bitrate encoding file; generating a corresponding video track according to the bitstream of each sub-image block of the encoding file of the original video and encapsulating the video track into a video file comprises: obtaining a sub-video track corresponding to each sub-image block according to the bitstream of each sub-image block in the first bitrate encoding file and the second bitrate encoding file, and also recording a correspondence relationship between the sequence number of each sub-image block and the corresponding sub-video track in the first bitrate encoding file and the second bitrate encoding; forming a corresponding first bitrate video track and a second bitrate video track respectively based on the sub-video track corresponding to each sub-image block; and encapsulating the first bitrate video track and the second bitrate video track to obtain a corresponding video file. For example, a bit stream of each sub-image block is extracted from a first bit rate encoding file and a second bit rate encoding file, and a corresponding sub-image track is formed based on the bit stream of each sub-image block. For example, the first bit rate encoding file and the second bit rate encoding file each have