Video transcoding system, video transcoding method, electronic device and storage medium

By adopting the separate architecture of pre-processing cluster and transcoding cluster in the video transcoding system, using the GPU platform for pre-processing and the CPU platform for transcoding, the problem of low software video decoding efficiency and pre-processing affecting encoding parameter prediction is solved. Efficient video transcoding and low-cost use of hardware resources.

CN112702605BActive Publication Date: 2024-10-29BIGO TECH PTE LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011551023.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-10-29
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

Software video decoding efficiency is low, video pre-processing affects coding parameter prediction, and the cost is high.

Method used

Adopting a separate architecture of pre-processing cluster and transcoding cluster, the pre-processing cluster uses the GPU platform for pre-processing, and the transcoding cluster uses the CPU platform for transcoding, realizing the decoupling of pre-processing and transcoding, reducing the dependence on GPU resources. Reduces hardware cost and improves coding parameter prediction accuracy and speed.

Benefits of technology

It improves the efficiency of video transcoding and transmission, reduces system hardware costs, ensures the accuracy and speed of coding parameter prediction, and avoids the impact of pre-processing on the transcoding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112702605B_ABST
    Figure CN112702605B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a video transcoding system, a video transcoding method, an electronic device and a storage medium. In the video transcoding system, a pre-processing cluster is used to obtain original video data and pre-process the original video data to obtain pre-processed video data. A management server is used to control the pre-processing cluster to send the pre-processed video data to a transcoding cluster. The transcoding cluster is used to receive the pre-processed video data, transcode the pre-processed video data to obtain target video data, and send the target video data to a client through a content distribution network. Since pre-processing and transcoding are decoupled, the data stream is transmitted in the video memory during pre-processing, and the pre-processed video data is transmitted between the pre-processing cluster and the transcoding cluster. The transmission efficiency is high, bandwidth and transmission time are saved, transcoding efficiency is improved, and system hardware cost is reduced. Moreover, transcoding is not affected by pre-processing, and the accuracy and speed of coding parameter prediction are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of video processing technology, and in particular to a video transcoding system, a video transcoding method, an electronic device and a storage medium. Background Art

[0002] Digital video transcoding technology refers to the technology of converting video data from one video format to another video format, so that the transcoded video data can adapt to different network bandwidths, different terminal processing capabilities and different user needs.

[0003] like Figure 1 , video transcoding mainly includes decapsulation, decoding, image pre-processing, encoding and encapsulation. After transcoding, the video encapsulation format (such as mp4, mov), raw stream encoding format (such as h264, hevc, aac), video bit rate, resolution, frame rate, audio channels, sampling rate and other parameters will change. In order to adapt to different bandwidths and terminal models, video transcoding may be converted into multi-channel videos. In addition, according to different business needs, the transcoding process may also include a series of complex pre-processing operations such as understanding the video content, evaluating the video quality and beautifying the video picture.

[0004] Compared with hardware transcoding, software transcoding has higher encoding efficiency and smaller bitstream size at the same video quality, which can save bandwidth costs in the distribution link and improve user viewing experience. Therefore, software encoding is widely used. With the complexity of business needs, there are more and more video pre-processing algorithms. For example, most pre-processing algorithms are based on deep learning algorithms and are highly dependent on GPUs for parallel computing. Relying on GPUs has the following problems:

[0005] (1) Data streams are frequently transferred between the memory and the video memory, resulting in low efficiency of the entire transcoding system;

[0006] (2) Pre-processing is coupled in the transcoding process, which affects the adaptive coding parameter prediction algorithm;

[0007] (3) Pre-processing relies on GPU machine resources, which are costly and limited in number. The transcoding business is large-scale, and the entire transcoding process needs to be deployed on machines with high GPU machine resource costs. Summary of the invention

[0008] The embodiments of the present invention provide a video transcoding system, a video transcoding method, an electronic device and a storage medium to solve the problems of low software video decoding efficiency, video pre-processing affecting coding parameter prediction and high cost.

[0009] In a first aspect, an embodiment of the present invention provides a video transcoding system, including a pre-processing cluster, a management server, and a transcoding cluster;

[0010] The pre-processing cluster is used to obtain original video data and pre-process the original video data to obtain pre-processed video data;

[0011] The management server is used to control the pre-processing cluster to send the pre-processed video data to the transcoding cluster;

[0012] The transcoding cluster is used to receive the pre-processed video data, transcode the pre-processed video data to obtain target video data, and send the target video data to the client through a content distribution network.

[0013] In a second aspect, an embodiment of the present invention provides a video transcoding method, which is applied to a video transcoding system including a pre-processing cluster, a management server and a transcoding cluster, and the video transcoding method includes:

[0014] The pre-processing cluster acquires original video data and pre-processes the original video data to obtain pre-processed video data;

[0015] The management server controls the pre-processing cluster to send the pre-processed video data to the transcoding cluster;

[0016] The transcoding cluster transcodes the pre-processed video data to obtain target video data, and sends the target video data to a client via a content distribution network.

[0017] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0018] one or more processors;

[0019] a storage device for storing one or more programs,

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the video transcoding method of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video transcoding method described in the present invention.

[0022] The video transcoding system of the embodiment of the present invention comprises a pre-processing cluster, a management server and a transcoding cluster, wherein the pre-processing cluster is used to obtain original video data and pre-process the original video data to obtain pre-processed video data, the management server is used to control the pre-processing cluster to send the pre-processed video data to the transcoding cluster, and the transcoding cluster is used to transcode the pre-processed video data to obtain target video data, and send the target video data to the client through a content distribution network. The embodiment of the present invention processes the original video data through the pre-processing cluster, and transcodes the pre-processed video data through the transcoding cluster, thereby realizing the decoupling of pre-processing and transcoding. On the one hand, the pre-processing cluster can adopt a GPU platform, and the data stream is transmitted in the video memory during pre-processing. The pre-processing cluster and the transcoding cluster transmit the pre-processed video data, which has high transmission efficiency and high transcoding efficiency. On the other hand, the pre-processing can be implemented on the GPU platform, and the transcoding can be implemented on the CPU platform, without the need for the entire transcoding process to rely on a platform with a GPU deployed, and the system hardware cost is low. On the other hand, the problem that the pre-processing requires a large amount of resources to affect the prediction of encoding parameters is solved, and the transcoding process runs in the transcoding cluster and is not affected by the pre-processing, thereby ensuring the accuracy and speed of the prediction of encoding parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flow chart of video transcoding in the prior art;

[0024] Figure 2 is a structural block diagram of a video transcoding system provided by Embodiment 1 of the present invention;

[0025] Figure 3 is a structural block diagram of a video transcoding system provided by Embodiment 2 of the present invention;

[0026] Figure 4 is a flow chart of a pre-processing cluster processing video data in an embodiment of the present invention;

[0027] Figure 5 is a flow chart of transcoding of a transcoding cluster in an embodiment of the present invention;

[0028] Figure 6 is a flowchart of the steps of a video transcoding system provided by Embodiment 3 of the present invention;

[0029] Figure 7 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings. In the absence of conflict, the embodiments in this application and the features in the embodiments may be combined with each other.

[0031] Embodiment 1

[0032] Figure 2 A structural block diagram of a video transcoding system provided in Embodiment 1 of the present invention is shown in FIG. Figure 2 As shown, the video transcoding system according to the embodiment of the present invention includes a pre-processing cluster 10 , a transcoding cluster 20 , and a management server 30 . The management server 30 is communicatively connected to the pre-processing cluster 10 and the transcoding cluster 20 , respectively.

[0033] Among them, the pre-processing cluster 10 is used to obtain original video data and pre-process the original video data to obtain pre-processed video data, the management server 30 is used to control the pre-processing cluster 10 to send the pre-processed video data to the transcoding cluster 20, the transcoding cluster 20 is used to receive the pre-processed video data and transcode the pre-processed video data to obtain target video data, and send the target video data to the client through the content distribution network.

[0034] Among them, the pre-processing cluster 10 can be a plurality of computing devices deployed with a GPU platform, and the transcoding cluster 20 can be a plurality of computing devices deployed with a CPU platform. The pre-processing cluster 10 can obtain the original video data uploaded by the user and to be transcoded from the storage server, and pre-process the original video data. For example, the pre-processing can be image beautification processing such as denoising, adjusting resolution, adding watermarks, removing watermarks, etc. on the original video data. The pre-processing can also be operations such as video content understanding and video quality assessment. The management server 30 can comprehensively manage the tasks, resources, load balancing, etc. of the entire video transcoding system. After the pre-processing cluster 10 completes the pre-processing of the original video data, the management server 30 controls the pre-processing cluster 10 to send the pre-processed video data to the transcoding cluster 20, for example, controls the pre-processing cluster 10 to send the pre-processed video data to the computing device specified in the transcoding cluster 20. After receiving the pre-processed video data, the transcoding cluster 20 transcodes the pre-processed video data into multiple target video data suitable for different network bandwidths, different terminals, and different formats, and distributes the target video data to the client through the content distribution network.

[0035] The embodiment of the present invention processes the original video data through a pre-processing cluster, and transcodes the pre-processed video data through a transcoding cluster, thereby realizing decoupling of pre-processing and transcoding. On the one hand, the pre-processing cluster can adopt a GPU platform, and the data stream is transmitted in the video memory during pre-processing. The pre-processing cluster and the transcoding cluster only transmit the pre-processed video data, with high transmission efficiency and high transcoding efficiency. On the other hand, the pre-processing can be implemented on the GPU platform, and the transcoding can be implemented on the CPU platform. There is no need for the entire transcoding process to rely on a platform with a GPU deployed, and the system hardware cost is low. On the other hand, the problem that the pre-processing requires a large amount of resources to affect the coding parameter prediction is solved. The transcoding process runs in the transcoding cluster and is not affected by the pre-processing, thereby ensuring the accuracy and speed of the coding parameter prediction.

[0036] Embodiment 2

[0037] Figure 3 FIG. 1 is a structural block diagram of a video transcoding system according to Embodiment 2 of the present invention. Figure 3 As shown, based on the first embodiment, the pre-processing cluster 10 includes an original video data acquisition module 101 , a decoding module 102 , a pre-processing module 103 , an encoding module 104 and a sending module 105 .

[0038] Among them, the original video data acquisition module 101 is used to obtain the original video data uploaded by the client from the storage server. The original video data can be video data in the format of mp3, mp4, rm, rmvb, avi, wmv, etc. In one example, the client responds to the user's transcoding operation on the video data, and sends the original video data and transcoding requirements to the storage server. The original video data acquisition module 101 can obtain the original video data and the user's transcoding requirements from the storage server. The transcoding requirements can be resolution, bit rate, transcoding format, etc.

[0039] The decoding module 102 is used to decode the original video data to obtain the decoded first video data. The original video data obtained by the original video data acquisition module 101 is encapsulated video data in various formats. The decoding module 102 can decode the original video data to obtain the decoded first video data of the YUV / RGB data stream, so that the pre-processing module 103 can pre-process the decoded first video data of the YUV / RGB data stream.

[0040] The pre-processing module 103 is used to perform pre-processing on the decoded first video data to obtain pre-processed video data, wherein the pre-processing may include image processing such as denoising, adjusting resolution, adding watermarks, removing watermarks, adjusting colors, and of course may also include other pre-processing. The embodiment of the present invention does not limit the pre-processing.

[0041] The encoding module 104 is used to encode the pre-processed video data to obtain pre-processed encoded video data. Since the pre-processing is performed on the decoded YUV / RGB data layer, the amount of YUV / RGB data is very large. In order to facilitate sending the pre-processed video data to the transcoding cluster 20, the pre-processed video data can be encoded to obtain pre-processed encoded video data, so that the video data is compressed, the amount of data transmitted to the transcoding cluster 20 is reduced, the network bandwidth is saved, the transmission time is shortened, and the transcoding efficiency can be improved.

[0042] In an example of the present invention, the pre-processing module 103 may include a pre-processing task acquisition sub-module, a pre-processing sub-module, and a pre-processing progress determination sub-module.

[0043] Among them, the pre-processing task acquisition submodule is used to acquire at least one pre-processing task, the pre-processing submodule is used to pre-process the decoded first video data in sequence according to the pre-processing tasks, and the pre-processing progress judgment submodule is used to judge whether all pre-processing tasks have been executed on the decoded first video data. If so, the encoding module is executed to encode the pre-processed video data. If not, return to the pre-processing submodule to continue to execute the next pre-processing task. The pre-processing process is as follows Figure 4 As shown, the specific process is:

[0044] S1, the original video data acquisition module acquires the original video data;

[0045] S2, the decoding module decodes the original video data to obtain decoded video data;

[0046] S3, the pre-processing task acquisition submodule acquires N pre-processing tasks;

[0047] S4, the pre-processing submodule pre-processes the decoded first video data in sequence according to the pre-processing task i;

[0048] S5, the pre-processing progress judgment submodule judges whether i is less than N, if so, execute S6, if not, execute S7;

[0049] S6, i=i+1;

[0050] S7. Encode the pre-processed video data to obtain pre-processed encoded video data.

[0051] In practical applications, a pre-processing task for raw video data can be pre-set in the pre-processing cluster 10. After the pre-processing cluster 10 obtains the raw video data, it decodes and obtains the video data of the decoded YUV / RGB data stream. The pre-processing module 103 executes the pre-processing tasks one by one in sequence to pre-process the video data until all pre-processing tasks are completed to obtain the pre-processed video data. The encoding module 104 encodes the pre-processed video data to obtain the pre-processed encoded video data.

[0052] After the current processing cluster 10 completes pre-processing and encoding of the original video data, the sending module 105 can send a pre-processing completion message to the management server 30. After receiving the pre-processing completion message, the management server 30 can control the pre-processing cluster 10 to send the pre-processed video data to the transcoding cluster 20.

[0053] In an optional embodiment, the management server 30 may include a message receiving module and a message sending module, wherein the message receiving module is used to receive a pre-processing completion message sent by the pre-processing cluster 10, and the message sending module is used to generate a video data sending message and send it to the pre-processing cluster 10. The pre-processing cluster 10 also includes a receiving module, which is used to receive a video data sending message sent by the management server 30. The sending module 105 of the pre-processing cluster 10 is also used to send the pre-processed video data to the transcoding cluster when receiving the video data sending message.

[0054] Exemplarily, after receiving the pre-processing completion message sent by the pre-processing cluster 10, the management server 30 can obtain the load status of each computing device in the transcoding cluster 20 and select a computing device with a lower load as the transcoding device, or the management server 30 selects a corresponding computing device from the transcoding cluster 20 as the transcoding device according to the transcoding requirements (transcoding format). Specifically, the management server 30 can generate a video data sending message and send it to the pre-processing cluster 10. The video data sending message includes the address of at least one computing device in the transcoding cluster 20, so that the sending module 105 of the pre-processing cluster 10 can send the pre-processed video data to the specified computing device in the transcoding cluster 20 for video transcoding.

[0055] Of course, in actual applications, the pre-processing cluster 10 can also send the pre-processed video data to the management server 30, and the management server 30 sends the pre-processed video data to the specified computing device in the transcoding cluster 20 according to the load and resource status of the transcoding cluster 20.

[0056] In the embodiment of the present invention, the pre-processing of video data is performed in a pre-processing cluster, which can be a GPU pre-processing cluster. The pre-processed data stream is transmitted in the video memory, which improves the efficiency of the pre-processing. Furthermore, the pre-processed video data is encoded and sent to the transcoding cluster through the network, which reduces the data transmission volume between the pre-processing cluster and the transcoding cluster, saving bandwidth and transmission time.

[0057] like Figure 3 As shown, in an optional embodiment of the present invention, the transcoding cluster 20 includes a video data receiving module 201 , a transcoding module 202 and a video data sending module 203 .

[0058] Among them, the video data receiving module 201 is used to receive pre-processed video data from the pre-processing cluster 10, the transcoding module 202 is used to transcode the pre-processed video data to obtain transcoded target video data, and the video data sending module 203 is used to send the transcoded target video data to the content distribution network, and the content distribution network sends the transcoded target video data to the client.

[0059] In an optional embodiment of the present invention, the transcoding module 202 of the transcoding cluster 20 may include a decoding submodule, an encoding submodule, and a packaging submodule.

[0060] Among them, the decoding submodule is used to decode the pre-processed video data to obtain decoded second video data, the encoding submodule is used to encode the decoded second video data according to at least one preset encoding format to obtain at least one encoded video data, and the encapsulation submodule is used to encapsulate the corresponding encoded video data according to the encoding format to obtain the transcoded target video data.

[0061] In one example, the transcoding cluster 20 receives the pre-processed encoded video data sent by the pre-processing cluster 10. For transcoding purposes, the pre-processed encoded video data is first decoded by a decoding submodule to obtain decoded second video data, and then the decoded second video data is encoded, and finally encapsulated into video data of various formats as target video data by an encapsulation submodule.

[0062] In one example, the encoding submodule may include a first encoding unit, an encoding parameter prediction unit and an Nth encoding unit, wherein the first encoding unit is used to encode the decoded second video data to obtain the first encoded video data, the first encoding parameter and the quality parameter, the encoding parameter prediction unit is used to input the first encoding parameter and the quality parameter into a pre-trained encoding parameter prediction model to obtain N-channel encoding parameters, and the Nth encoding unit is used to encode the decoded second video data based on the Nth encoding parameter to obtain the Nth encoded video data.

[0063] like Figure 5 The figure shows the transcoding of the transcoding cluster 20. Figure 5 In the transcoding cluster 20, the decoding submodule of the transcoding module 202 first decodes the pre-processed video data received by the video data receiving module 201. When the transcoding submodule is transcoding, the first encoding unit first encodes the decoded video data to obtain the first encoded video data, the first encoding parameter and the quality parameter. The first encoding parameter can be encoding parameters such as bit rate, bit rate, compression rate, etc., and the quality parameter can be quality parameters such as resolution and clarity. Then, the first encoding parameter and the quality parameter are input into a pre-trained encoding parameter prediction model to predict the encoding parameters of the second, third, ... Nth channels. The Nth encoding unit can encode the decoded video data according to the predicted encoding parameters to obtain the Nth encoded video data. The encapsulation subunit can encapsulate the encoded video data according to the encapsulation format of the Nth channel to obtain multiple target video data.

[0064] The embodiment of the present invention processes the original video data through a pre-processing cluster, and transcodes the pre-processed video data through a transcoding cluster, thereby realizing decoupling of pre-processing and transcoding. On the one hand, the pre-processing cluster can adopt a GPU platform, and the data stream is transmitted in the video memory during pre-processing. The pre-processing cluster and the transcoding cluster transmit the pre-processed video data, with high transmission efficiency and high transcoding efficiency. On the other hand, the pre-processing can be implemented on a GPU platform, and the transcoding can be implemented on a CPU platform. There is no need for the entire transcoding process to rely on a platform with a GPU deployed, and the system hardware cost is low. On the other hand, the problem that the pre-processing requires a large amount of resources to affect the coding parameter prediction is solved. The transcoding process runs in the transcoding cluster and is not affected by the pre-processing, thereby ensuring the accuracy and speed of the coding parameter prediction.

[0065] Furthermore, the pre-processed video data is encoded and sent to the transcoding cluster through the network, which reduces the amount of data transmission between the pre-processing cluster and the transcoding cluster, saving bandwidth and transmission time.

[0066] Embodiment 3

[0067] Figure 6 This is a flowchart of a video transcoding method provided in Embodiment 3 of the present invention. The embodiment of the present invention is applicable to the case of transcoding video data. The method can be executed by a video transcoding system of the embodiment of the present invention. The video transcoding system includes a pre-processing cluster, a management server and a transcoding cluster. The video transcoding system can be implemented by hardware or software and integrated in the electronic device provided in the embodiment of the present invention. Specifically, Figure 6 As shown, the video transcoding method of the embodiment of the present invention may include the following steps:

[0068] S601: The pre-processing cluster acquires original video data and pre-processes the original video data to obtain pre-processed video data.

[0069] In an optional embodiment of the present invention, the pre-processing cluster may be a plurality of computing devices deployed with a GPU platform. The pre-processing cluster may obtain the original video data uploaded by the client from the storage server, and decode the original video data to obtain decoded first video data, and further pre-process the decoded first video data to obtain pre-processed video data. After encoding the pre-processed video data to obtain pre-processed encoded video data, the pre-processed encoded video data is sent to the transcoding cluster.

[0070] Among them, the original video data can be video data in the format of mp3, mp4, rm, rmvb, avi, wmv, etc. In one example, the client responds to the user's transcoding operation on the video data, and sends the original video data and transcoding requirements to the storage server. The pre-processing cluster can obtain the original video data and the user's transcoding requirements from the storage server. The transcoding requirements can be resolution, bit rate, transcoding format, etc.

[0071] Since the pre-processing cluster needs to perform image beautification processing such as denoising, adjusting resolution, adding watermarks, removing watermarks, etc. on the video data based on the YUV / RGB data layer, or perform operations such as understanding the video content and evaluating the video quality of the original video data, before pre-processing, the pre-processing cluster decodes the original video data to obtain decoded video data of the YUV / RGB data stream, and sends it to the transcoding cluster after the pre-processing is completed, and losslessly encodes the pre-processed video data (such as x264, CRF 18, ultrafast preset encoding) to obtain pre-processed encoded video data, and sends the pre-processed encoded video data to the transcoding cluster. Since the pre-processed video data is encoded before being sent to the transcoding cluster, the video data is compressed, the amount of data transmitted to the transcoding cluster is reduced, the network bandwidth is saved, the transmission time is shortened, and the transcoding efficiency can be improved.

[0072] S602: The management server controls the pre-processing cluster to send the pre-processed video data to the transcoding cluster.

[0073] In an embodiment of the present invention, the management server can comprehensively manage the tasks, resources, load balancing, etc. of the entire video transcoding system. After the current processing cluster completes the pre-processing of the original video data, the management server can control the pre-processing cluster to send the pre-processed video data to the transcoding cluster.

[0074] In one example, after the current processing cluster completes pre-processing and encoding of the original video data, the pre-processing cluster can send a pre-processing completion message to the management server. After receiving the pre-processing completion message, the management server generates a video data sending message and sends it to the pre-processing cluster. When the pre-processing cluster receives the video data sending message sent by the management server, it sends the pre-processed video data to the transcoding cluster.

[0075] Optionally, after receiving the pre-processing completion message sent by the pre-processing cluster, the management server can obtain the load status of each computing device in the transcoding cluster and select a computing device with a lower load as the transcoding device. Alternatively, the management server selects a corresponding computing device from the transcoding cluster as the transcoding device according to the transcoding requirements (transcoding format). Specifically, the management server can generate a video data sending message and send it to the pre-processing cluster. The video data sending message includes the address of at least one computing device in the transcoding cluster, so that the pre-processing cluster can send the pre-processed video data to a designated computing device in the transcoding cluster for video transcoding.

[0076] Of course, in actual applications, the pre-processing cluster can also send the pre-processed video data to the management server, and the management server sends the pre-processed video data to the specified computing device in the transcoding cluster according to the load and resource status of the transcoding cluster.

[0077] S603: The transcoding cluster transcodes the pre-processed video data to obtain target video data, and sends the target video data to the client through a content distribution network.

[0078] In an optional embodiment of the present invention, after receiving the pre-processed video data from the pre-processing cluster, the transcoding cluster transcodes the pre-processed video data to obtain transcoded video data, and sends the transcoded video data to the content distribution network, and the content distribution network sends the transcoded video data to the client.

[0079] Optionally, during the transcoding process, the pre-processed video data is first decoded, and then the decoded video data is encoded in the first channel to obtain the first channel of encoded video data, the first encoding parameters and the quality parameters. The first encoding parameters may be encoding parameters such as bit rate, bit rate, compression rate, etc., and the quality parameters may be quality parameters such as resolution and clarity. The first encoding parameters and the quality parameters are then input into a pre-trained encoding parameter prediction model to predict the encoding parameters of the second channel, the third channel...N channel, and then the decoded video data can be encoded according to the predicted N channel encoding parameters to obtain N channels of encoded video data, and the encoded video data can be encapsulated according to the N channel encapsulation format to obtain multiple channels of target video data.

[0080] The video transcoding method of the embodiment of the present invention processes the original video data through a pre-processing cluster, and transcodes the pre-processed video data through a transcoding cluster, thereby realizing the decoupling of pre-processing and transcoding. On the one hand, the pre-processing cluster can adopt a GPU platform, and the data stream is transmitted in the video memory during pre-processing. The pre-processing cluster and the transcoding cluster transmit the pre-processed video data, with high transmission efficiency and high transcoding efficiency. On the other hand, the pre-processing can be implemented on a GPU platform, and the transcoding can be implemented on a CPU platform. There is no need for the entire transcoding process to rely on a platform with a GPU deployed, and the system hardware cost is low. On the other hand, the problem that the pre-processing requires a large amount of resources to affect the coding parameter prediction is solved. The transcoding process runs in the transcoding cluster and is not affected by the pre-processing, thereby ensuring the accuracy and speed of the coding parameter prediction.

[0081] Embodiment 4

[0082] Reference Figure 7 , shows a schematic diagram of the structure of an electronic device in an example of the present invention. Figure 7 As shown, the electronic device may specifically include: a processor 701, a storage device 702, a display screen 703 with a touch function, an input device 704, an output device 705, and a communication device 706. The number of processors 701 in the electronic device may be one or more. Figure 7 A processor 701 is taken as an example. The processor 701, storage device 702, display screen 703, input device 704, output device 705 and communication device 706 of the electronic device can be connected through a bus or other means. Figure 7 The electronic device is used to execute the video transcoding method provided by any embodiment of the present invention.

[0083] An embodiment of the present invention further provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor of a device, the device can execute the video transcoding method as described in the above method embodiment.

[0084] It should be noted that, for the method, electronic device, and storage medium embodiments, since they are basically similar to the system embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiments.

[0085] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0086] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A video transcoding system, characterized in that: Includes pre-processing cluster, management server and transcoding cluster; The pre-processing cluster is used to obtain original video data and pre-process the original video data to obtain pre-processed video data; wherein the pre-processing cluster is a GPU pre-processing cluster; The pre-processing cluster includes: The original video data acquisition module is used to obtain the original video data uploaded by the client from the storage server; A decoding module, used for decoding the original video data to obtain decoded first video data; A pre-processing module, used for pre-processing the decoded first video data to obtain pre-processed video data; The management server is used to control the pre-processing cluster to send the pre-processed video data to the transcoding cluster; The transcoding cluster is used to receive the pre-processed video data, transcode the pre-processed video data to obtain target video data, and send the target video data to the client through a content distribution network; The pre-processing module comprises: A pre-processing task acquisition submodule, used to acquire at least one pre-processing task; A pre-processing submodule, used for performing pre-processing operations on the decoded first video data in sequence according to the pre-processing tasks; The pre-processing progress judgment submodule is used to judge whether all pre-processing tasks have been performed on the decoded first video data. If so, the encoding module is executed; if not, the pre-processing submodule is returned.

2. The video transcoding system according to claim 1, characterized in that: The pre-processing cluster also includes: The encoding module is used to encode the pre-processed video data to obtain pre-processed encoded video data.

3. The video transcoding system according to claim 1, characterized in that: The pre-processing cluster also includes: The sending module is used to send a pre-processing completion message to the management server after all pre-processing tasks are performed on the decoded first video data.

4. The video transcoding system according to claim 3, characterized in that: The management server comprises: A message receiving module, used for receiving a pre-processing completion message sent by the pre-processing cluster; The message sending module is used to generate a video data sending message and send it to the pre-processing cluster.

5. The video transcoding system according to claim 4, characterized in that: The pre-processing cluster also includes: A receiving module, used for receiving a video data sending message sent by the management server; The sending module is further configured to send the pre-processed video data to a transcoding cluster upon receiving the video data sending message.

6. The video transcoding system according to any one of claims 1 to 5, characterized in that: The transcoding cluster includes: A video data receiving module, configured to receive the pre-processed video data from the pre-processing cluster; A transcoding module, used for transcoding the pre-processed video data to obtain transcoded target video data; The video data sending module is used to send the transcoded target video data to a content distribution network, and the content distribution network sends the transcoded target video data to a client.

7. The video transcoding system according to claim 6, characterized in that: The transcoding module comprises: A decoding submodule, used for decoding the pre-processed video data to obtain decoded second video data; An encoding submodule, used for encoding the decoded second video data according to at least one preset encoding format to obtain at least one channel of encoded video data; The encapsulation submodule is used to encapsulate the corresponding encoded video data according to the encoding format to obtain transcoded target video data.

8. The video transcoding system according to claim 7, characterized in that: The encoding submodule includes: A first encoding unit, used for encoding the decoded second video data according to a preset first encoding format to obtain first encoded video data, first encoding parameters and quality parameters; a coding parameter prediction unit, configured to input the first coding parameter and the quality parameter into a pre-trained coding parameter prediction model to obtain N coding parameters, where N is a natural number; The N-th encoding unit is used to encode the decoded second video data based on a preset N-th encoding format and the N-th encoding parameter to obtain N-th encoded video data.

9. The video transcoding system according to claim 8, characterized in that: The encapsulation submodule is also used for: The N-th channel of coded video data is encapsulated according to the coding format of the N-th channel of coding to obtain the N-th channel of transcoded target video data.

10. A video transcoding method, characterized in that: Applied to a video transcoding system including a pre-processing cluster, a management server and a transcoding cluster, the video transcoding method includes: The pre-processing cluster acquires original video data and pre-processes the original video data to obtain pre-processed video data; wherein the pre-processing cluster is a GPU pre-processing cluster; The pre-processing cluster obtains original video data and pre-processes the original video data to obtain pre-processed video data, including: the pre-processing cluster obtains original video data uploaded by the client from the storage server, decodes the original video data to obtain decoded first video data, and pre-processes the decoded first video data to obtain pre-processed video data; The management server controls the pre-processing cluster to send the pre-processed video data to the transcoding cluster; The transcoding cluster transcodes the pre-processed video data to obtain target video data, and sends the target video data to the client through a content distribution network; The pre-processing the decoded first video data to obtain pre-processed video data includes: Acquire at least one pre-processing task; perform pre-processing operations on the decoded first video data in sequence according to the pre-processing tasks; determine whether all pre-processing tasks have been performed on the decoded first video data, and if so, encode the pre-processed video data to obtain pre-processed encoded video data; if not, perform pre-processing operations on the decoded first video data in sequence according to the pre-processing tasks.

11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video transcoding method as claimed in claim 10.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the video transcoding method as claimed in claim 10 is implemented.

Citation Information

Patent Citations

  • Cluster transcoding system and method thereof

    CN104244025A

  • Distributed embedded real-time video stream processing system and method based on deep learning

    CN107067365A

  • Face model feature statistical analysis system

    CN109492604A

  • Method for realizing one-input-multiple-output transcoding of multi-code-rate video file based on NVIDIA GPU

    CN110418144A

  • Video encoding method, device and equipment and storage medium

    CN110418177A