Ultra-high-definition video processing method and related equipment based on cloud computing
By performing video editing on the local client and allocating rendering tasks using automatic sharding and load balancing on the cloud server, the problem of low efficiency of the cloud editing system in processing ultra-high-definition videos is solved, and efficient video editing and rendering synthesis are achieved. , supports remote production of 4K/8K ultra-high definition videos.
Patent Information
- Application Number
- CN202111675049.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The existing cloud editing system is inefficient when processing ultra-high-definition videos. It cannot be compared with offline processing, and the editing and rendering efficiency is not high.
Using an ultra-high-definition video processing method based on cloud computing, video editing is performed on the local client and rendering synthesis is performed on the cloud server. Automatic sharding and load balancing are used to allocate rendering tasks to the rendering executor cluster for processing to achieve distribution. treatment plan.
It significantly improves the efficiency of video editing and rendering, achieves efficient production of 4K/8K ultra-high-definition videos, breaks the deadlock of traditional cloud clipping's narrow application range, supports multiple presentation requirements, and reduces the data intermediate dump process.
Smart Images

Figure CN114205612B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing, and in particular to an ultra-high-definition video processing method based on cloud computing and related equipment. Background Art
[0002] As video content becomes richer, videos need to be processed to a certain extent. Many existing editing software remixes the added images, background music, special effects, scenes and other materials with the video, cuts and merges the video source, and generates new videos with different expressiveness through secondary encoding. At the same time, in order to improve the efficiency of video processing, video production companies have launched a large number of cloud editing systems to process videos in a cloud mode.
[0003] At present, the various cloud editing systems that have been launched mainly serve simple application scenarios. For some ultra-high-definition video processing, due to the influence of external factors, it cannot be compared with offline processing. Therefore, in the existing cloud processing of ultra-high-definition videos, there are problems of low efficiency in ultra-high-definition video editing and video post-rendering. Summary of the invention
[0004] In view of the above problems, the present invention provides an ultra-high-definition video processing method and related equipment based on cloud computing to overcome the above problems or at least partially solve the above problems. The technical solution is as follows:
[0005] A method for processing ultra-high-definition video based on cloud computing, comprising:
[0006] In response to the received video processing instruction, a plurality of video material files are captured according to a preset capture path;
[0007] Uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files;
[0008] Sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file;
[0009] Determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server;
[0010] Determine, from among the video material files stored on the cloud server, each target video material file that matches the rendering project file, and determine the rendering task corresponding to each target video material file;
[0011] Slicing the rendering task to obtain a plurality of segmented tasks, and assigning each of the segmented tasks to each rendering executor currently in an idle state in a rendering executor cluster for rendering;
[0012] After rendering of each of the segmented tasks is completed, the rendered segmented tasks are stitched together to obtain a stitched finished video.
[0013] Optionally, the method described above includes uploading each of the video material files to an established cloud server for storage, including:
[0014] Determine an upload thread for each of the video material files;
[0015] The upload thread is used to upload the video material file, and the message digest algorithm MD5 is used to verify the video material file during the uploading process to ensure that the video material file is not tampered with during the uploading process;
[0016] Each of the video material files uploaded to the cloud server is stored in a preset target storage area.
[0017] In the above method, optionally, the step of transcoding each of the video material files in the cloud server includes:
[0018] Determining whether the file parameters of each of the video material files are consistent with the editing project parameters in the video processing instruction;
[0019] Determine a video material file having file parameters consistent with the editing project parameters as a first video material file;
[0020] Determine a video material file whose file parameters are inconsistent with the editing project parameters as a second video material file;
[0021] Adjusting parameters of each of the second video material files to make the file parameters of each of the second video material files consistent with the editing project parameters;
[0022] Upload each of the first video material files and each of the second video material files with adjusted parameters to a defined transcoding template for transcoding.
[0023] In the above method, optionally, the file parameters include: resolution and frame rate;
[0024] The step of adjusting parameters of each of the second video material files includes:
[0025] By inserting frames, the second video material file is supplemented with frames to adjust the frame rate of the second video material file;
[0026] The resolution of the second video material file is super-resolution processed by super-resolution processing.
[0027] In the above method, optionally, the determining of the rendering tasks corresponding to the respective target video material files includes:
[0028] Determine the track level of the video track where each of the target video material files is located;
[0029] In order of track levels from high to low, each of the target video material files is pushed down one by one, and each target video material file on the video track corresponding to the current track level is pushed down to the video track corresponding to the next track level of the current track level, so as to replace the content and time code corresponding to each target video material file on the video track corresponding to the current track level with the corresponding position on the video track corresponding to the next track level, until each target video material file on the video track corresponding to each track level is pushed down to the same video track, completing the simplification of the track level and the relinking of each of the target video material files, and obtaining the rendering task corresponding to each of the target video material files.
[0030] The above method may optionally further include:
[0031] Through a preset embedded window, each video material file stored in the cloud server is previewed.
[0032] The above method may optionally further include:
[0033] Each video material file currently previewed in the embedded window is used in a drag-and-drop manner.
[0034] An ultra-high-definition video processing device based on cloud computing, comprising:
[0035] A capture unit, configured to capture a plurality of video material files according to a preset capture path in response to a received video processing instruction;
[0036] A transcoding unit, used for uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files;
[0037] An editing unit, used for sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file;
[0038] A first determining unit, configured to determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server;
[0039] A second determining unit is used to determine, from among the video material files stored on the cloud server, each target video material file that matches the rendering project file, and to determine a rendering task corresponding to each target video material file;
[0040] A rendering unit, used for slicing the rendering task to obtain a plurality of segmented tasks, and assigning each of the segmented tasks to each rendering executor currently in an idle state in a rendering executor cluster for rendering;
[0041] The splicing unit is used to splice the rendered segmented tasks after the rendering of each segmented task is completed to obtain a spliced finished video.
[0042] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned ultra-high-definition video processing method based on cloud computing.
[0043] An electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; the processor is used to call program instructions in the memory to execute the above-mentioned cloud computing-based ultra-high-definition video processing method.
[0044] Compared with the prior art, the present invention has the following advantages: a method for processing ultra-high-definition video based on cloud computing, comprising: in response to a received video processing instruction, grabbing multiple video material files according to a preset grabbing path; uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files; sending each of the transcoded files to a local client, and performing video clipping in the local client according to each of the transcoded files to generate a clipping file; determining a rendering project file corresponding to the clipping file, and uploading the rendering project file to the cloud server; determining each of the target video material files that match the rendering project file in each of the video material files stored on the cloud server, and determining a rendering task corresponding to each of the target video material files; slicing the rendering task to obtain multiple segmented tasks, and assigning each of the segmented tasks to each of the rendering executors currently in an idle state in a rendering executor cluster for rendering; when each of the segmented tasks is rendered, splicing each of the rendered segmented tasks to obtain a spliced finished video.
[0045] In the method provided by the embodiment of the present invention, video editing and background rendering synthesis adopt a distributed processing solution. The video editing process is completed on the local client, and the video rendering and synthesis is on the cloud server. The cloud rendering and synthesis adopts automatic sharding and load balancing to distribute the hosts in the cluster to complete file rendering and export in parallel, which greatly improves the rendering efficiency and video editing efficiency.
[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0048] Figure 1 A method flow chart of an ultra-high-definition video processing method based on cloud computing provided by an embodiment of the present invention;
[0049] Figure 2 Another method flow chart of an ultra-high-definition video processing method based on cloud computing provided by an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of the structure of an ultra-high-definition video processing device based on cloud computing provided by an embodiment of the present invention;
[0051] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary 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 enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0053] refer to Figure 1 FIG. 4 shows a method flow chart of an ultra-high-definition video processing method based on cloud computing provided by an embodiment of the present invention. Figure 1The method execution process shown is a feasible implementation scheme of the ultra-high-definition video processing method based on cloud computing provided by an embodiment of the present invention. The method can be applied in various cloud editing systems, and its execution subject can be a cloud server or a processor of a third-party application software. The following describes the scheme with the processor in the application software of the cloud editing system as the execution subject. The method specifically includes:
[0054] S101: In response to a received video processing instruction, capture multiple video material files according to a preset capture path;
[0055] In the method provided by the embodiment of the present invention, when it is necessary to process the video, a video processing instruction can be sent to the processor, wherein the video processing instruction includes a plurality of editing project parameters pre-set in the video editing project. The video is preferably an ultra-high-definition video, which can be a 4K video or an 8K video.
[0056] In the method provided in the embodiment of the present invention, in response to the video processing instruction, multiple video material files are captured according to a preset capture path. Each video material file can be stored in a different server, and a corresponding capture path is set respectively. That is, in actual operation, in response to the video processing instruction, multiple video material files can be captured according to multiple capture paths at the same time.
[0057] S102: uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files, while maintaining the original file directory structure;
[0058] In the method provided by the embodiment of the present invention, each captured video material file is uploaded to a cloud server, stored in a predetermined location in the cloud server, and each video material file is transcoded. Since the captured video material files may be in various forms, it is necessary to unify the frame rate and resolution of each video material file, transcode each video material file into a unified encoding file, and maintain the original file directory structure between each video material file.
[0059] S103: Sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file;
[0060] In the method provided by the embodiment of the present invention, each transcoded file is sent to a local client, and video editing is performed in the local client to generate the required editing file.
[0061] S104: Determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server;
[0062] In the method provided by the embodiment of the present invention, the rendering project file includes the file name, storage location and related content to be rendered in the clipping file, and the rendering project file is uploaded to the cloud server, and the rendering process is performed in the cloud server.
[0063] S105: Determine, from among the video material files stored on the cloud server, each target video material file that matches the rendering project file, and determine a rendering task corresponding to each target video material file;
[0064] S106: Slice the rendering task to obtain a plurality of segmented tasks, and assign each of the segmented tasks to each rendering executor currently in an idle state in the rendering executor cluster for rendering;
[0065] In the method provided by the embodiment of the present invention, in order to improve rendering efficiency, the rendering task is sliced to obtain a plurality of segmented tasks, and the segmented tasks are allocated to idle rendering executors for rendering.
[0066] S107: After rendering of each of the segmented tasks is completed, the rendered segmented tasks are combined to obtain a combined finished video.
[0067] In the method provided in the embodiment of the present invention, each rendered segment task is combined to obtain a combined finished video. In the embodiment of the present invention, the operation principle performed on videos of different resolutions is the same. In this solution, high-definition and ultra-high-definition videos are preferably processed.
[0068] In the method provided by the embodiment of the present invention, video editing and background rendering synthesis adopt a distributed processing solution. The video editing process is completed on the local client, and the video rendering and synthesis is on the cloud server. The cloud rendering and synthesis adopts automatic sharding and load balancing to distribute the hosts in the cluster to complete file rendering and export in parallel, which greatly improves the rendering efficiency and video editing efficiency.
[0069] In the method provided by the embodiment of the present invention, in the actual operation process, the mainstream editing application software can send rendering tasks to the cloud server. During the upload of video material files, directory configuration synchronization, data verification, and multi-threaded automatic capture of material data are performed and transmitted to the cloud, and the materials are managed uniformly after uploading.
[0070] Determine whether the resolution and frame rate of each video material file are consistent with the settings of the current editing project. If not, decide whether to start the image super-resolution and frame supplement processing based on the background configuration parameters, and ensure that the total length of the processed video material file segments remains unchanged. After the processing is completed, the file path information is relinked back to the original editing project.
[0071] In the method provided by the embodiment of the present invention, the transcoded file is edited locally to generate a rendering project file corresponding to the editing file and send it to the cloud server. The cloud server intelligently matches the source material required in the rendering project from the path where the original material is stored on the cloud, automatically completes the material rechain, and slices the automatic rendering task, and distributes the decomposed fragments to the idle rendering executors in the cluster. After all the slices are rendered, the fast stitching command is executed to losslessly stitch the segmented materials into a complete 4k finished video.
[0072] refer to Figure 2 , showing the process of uploading each of the video material files to the established cloud server for storage in the method provided in the embodiment of the present invention, including:
[0073] S201: Determine an upload thread for each of the video material files;
[0074] S202: using the upload thread to upload the video material file, and applying the message digest algorithm MD5 to verify the video material file during the uploading process to ensure that the video material file is not tampered with during the uploading process;
[0075] S203: storing each of the video material files uploaded to the cloud server in a preset target storage area.
[0076] In the method provided in the embodiment of the present invention, a multi-threaded uploading method is adopted. For each video material file, the upload thread corresponding to the video material file is determined to upload it. During the uploading process, the MD5 algorithm is adopted to ensure that each uploaded video material file is not tampered with, and each video material file is uploaded to a predetermined area of the cloud server.
[0077] In the method provided in the embodiment of the present invention, the step of transcoding each of the video material files in the cloud server includes:
[0078] Determining whether the file parameters of each of the video material files are consistent with the editing project parameters in the video processing instruction;
[0079] Determine a video material file having file parameters consistent with the editing project parameters as a first video material file;
[0080] Determine a video material file whose file parameters are inconsistent with the editing project parameters as a second video material file;
[0081] Adjusting parameters of each of the second video material files to make the file parameters of each of the second video material files consistent with the editing project parameters;
[0082] Upload each of the first video material files and each of the second video material files with adjusted parameters to a defined transcoding template for transcoding.
[0083] In the method provided by an embodiment of the present invention, during the video editing process, it is necessary to unify the file parameters of each video material file. Before execution begins, the editing project parameters are set. The editing project parameters specify the parameters of the video material files that need to be executed during the editing process. The editing project parameters include multiple parameters, which set a standard resolution and a standard frame rate.
[0084] The file parameters of each video material file that needs to be transcoded include resolution and frame rate. When the corresponding resolution and frame rate in the video material file are consistent with the corresponding parameters in the editing project parameters, it is determined whether to transcode the video material file according to the configuration parameters.
[0085] When the resolution or frame rate corresponding to the video material file is inconsistent with the corresponding parameters in the editing project parameters, the video material file is not allowed to be transcoded.
[0086] In the method provided by the embodiment of the present invention, the file parameters include: resolution and frame rate;
[0087] The step of adjusting parameters of each of the second video material files includes:
[0088] By inserting frames, the second video material file is supplemented with frames to adjust the frame rate of the second video material file;
[0089] The resolution of the second video material file is super-resolution processed by super-resolution processing.
[0090] The editing project parameters are set with a standard frame rate and a standard resolution. When the frame rate of the video material file is inconsistent with the standard frame rate, or the resolution of the video material file is inconsistent with the standard resolution, the video material file is determined as the second video material file.
[0091] If the frame rate of the second video material file is inconsistent with the standard frame rate, the second video material file is supplemented with frames to adjust the frame rate.
[0092] If the resolution of the second video material file is inconsistent with the standard resolution, super-resolution processing is performed on the second video material file.
[0093] In the method provided by the embodiment of the present invention, the determining of the rendering tasks corresponding to the target video material files includes:
[0094] Determine the track level of the video track where each of the target video material files is located;
[0095] In order of track levels from high to low, each of the target video material files is pushed down one by one, and each target video material file on the video track corresponding to the current track level is pushed down to the video track corresponding to the next track level of the current track level, so as to replace the content and time code corresponding to each target video material file on the video track corresponding to the current track level with the corresponding position on the video track corresponding to the next track level, until each target video material file on the video track corresponding to each track level is pushed down to the same video track, completing the simplification of the track level and the relinking of each of the target video material files, and obtaining the rendering task corresponding to each of the target video material files.
[0096] In the method provided by the embodiment of the present invention, the content and time code corresponding to each target video material file on the video track corresponding to each track level are replaced to the corresponding position on the video track corresponding to the next track level of the track level, starting from the video track corresponding to the highest-level track level, the content and time code corresponding to each target video material file on the video track corresponding to the highest-level track level are replaced to the corresponding position of the video track corresponding to the next track level of the highest-level track level, and then starting from the video track corresponding to the next track level of the highest-level track level, the target video material files on the video track are pushed down and replaced until the target video material files on the video tracks corresponding to each track level are pushed down to the same video track.
[0097] In the method provided in the embodiment of the present invention, the tracks where the current target video material files are located are pushed down and merged to form a single track by pushing the tracks down, so that the editing decision list EDL or the extensible markup language XML interaction method can be applied in the variety show production scene, thereby improving the rendering efficiency.
[0098] The method provided in the embodiment of the present invention further includes:
[0099] Through a preset embedded window, each video material file stored in the cloud server is previewed.
[0100] The method provided in the embodiment of the present invention further includes:
[0101] Each video material file currently previewed in the embedded window is used in a drag-and-drop manner.
[0102] The cloud computing-based ultra-high-definition video processing method provided by the embodiment of the present invention utilizes the cloud's super computing power to perform distributed rendering in slices, thereby accelerating the production efficiency of 4K / 8K ultra-high-definition video content. At the same time, it realizes interconnection with existing cloud editing systems, such as media resource systems, and opens up the cloud-online channel, realizes local rapid access and call of cloud resources, and realizes remote production of 4K / 8K ultra-high-definition videos.
[0103] The method provided in the embodiment of the present invention breaks the deadlock of the narrow application of traditional cloud editing and realizes "heavy" production on the cloud. The local area still uses the original high-definition content production workflow and post-production software to complete the high-definition content output, and the cloud uses cloud computing technology to synchronously output 4K / 8K ultra-high-definition content at high speed, and one editing can meet the needs of multiple presentations.
[0104] Through the development of the application programming interface API, the mainstream editing application software on the market can send rendering output tasks to the cloud server with one click, and perform background distributed clustered slicing and synthesis processing on the cloud server, achieving the goal of rendering speed far exceeding real time.
[0105] The method provided by the embodiment of the present invention implements one type of storage in the cloud while serving all cloud business systems, realizes the interconnection and intercommunication of business systems in the context of media convergence, and reduces the intermediate data dump process.
[0106] The method provided in the embodiment of the present invention designs a complete cloud-based digital imaging engineer DIT production management process, with full-process automation and user-defined processing steps. It involves a complete solution for comprehensive management, editing and system usage management of various types of media materials. It includes directory configuration synchronization, data verification, multi-threaded automatic capture of material data and transmission to the cloud during material upload, unified management of material after upload, automatic transcoding of materials, format and channel maintenance and matching during transcoding, automatic writing back of proxy bitrate files to local, intelligent up-conversion of high-definition editing / color grading projects, intelligent analysis, classification, processing and editing of materials, and involves automatic archiving after data production is completed and system user management issues.
[0107] The method provided by the embodiment of the present invention can automatically perform super-resolution processing on mixed-cut projects of HD / 4K / 8K materials with different resolutions, and intelligently perform frame interpolation processing on mixed-cut projects of materials with different frame rates such as 25P / 50P.
[0108] The method provided by the embodiment of the present invention intelligently merges editing tracks into a single track, making engineering-level interaction of multi-track editing and color grading possible and avoiding multiple generation.
[0109] The method provided by the embodiment of the present invention does not need to download the cloud proxy bit rate file in its entirety, and can implement material window browsing in the editing / color grading tool on the locally networked editing / color grading machine, and supports one-click dragging and dropping onto the track for use, and supports cloud material management based on user permissions, so that materials can be uploaded to the cloud at extremely high speed in the same city.
[0110] By applying the method provided in the embodiment of the present invention, media units can smoothly complete the transition from high-definition to 4K / 8K ultra-high-definition content production with minimal investment. This method is also applicable to the efficient output of immersive content such as virtual reality technology VR, and can help various small and medium-sized production units to have the ability to produce 4K / 8K / VR content without investing huge costs, thus completely breaking through the bottleneck of the difficulty in implementing ultra-high-definition projects.
[0111] The method provided by the embodiment of the present invention achieves the matching of resolution and frequency, and intelligently scales various special effects FX, including motion trajectories. It intelligently transforms the materials that do not meet the ultra-high-definition requirements in the editing project, and makes the dynamic picture smoother through super-resolution / motion frame supplementation technology, and the low-definition picture will not become more blurred due to forced enlargement of the picture frame.
[0112] The video file processing process on the cloud can be customized. You can set the capture path of local materials and the upload destination by yourself. You can also complete the conversion of proxy format files in the specified format according to the customized template. The transcoded files can be automatically written back to the local computer. If there are new files or file changes in the capture directory, synchronization will be automatically initiated to ensure file consistency.
[0113] Through the embedded window, local editing / color grading applications can directly access cloud materials without having to wait for the materials to be fully downloaded before use, greatly improving production efficiency.
[0114] Taking into account the storage usage scenarios of various businesses on the cloud, the object storage used by cloud media resources is used as the storage pool for cloud production, which can ensure interoperability, have cost advantages, and meet the needs of high concurrency and high bandwidth access. However, object storage cannot directly implement file-level access under WIN / MAC, and file access instruction translation is required to implement system-level file operation instructions stored on both WIN / MAC platforms.
[0115] Editing and background rendering and synthesis adopt a distributed processing solution. Editing is done locally, and rendering and synthesis is done in the cloud. Cloud-based rendering and synthesis uses automatic sharding and load balancing to distribute hosts in the cluster to complete file rendering and export in parallel, greatly improving rendering efficiency.
[0116] The ultra-high-definition video processing method based on cloud computing provided by the embodiment of the present invention may correspond to a corresponding implementation system in the actual application process, and the system may include: an intelligent up-conversion system, a track compression processing and interaction management system, an automatic process management system, a local call system for cloud materials, a cloud object storage translation and mounting system, and a background distributed cluster fragment rendering and synthesis system, wherein:
[0117] The intelligent up-conversion system is used to intelligently match the resolution and frame rate, extract the METADATA (metadata) information in the video clip, and determine whether the resolution and frame rate of the clip are consistent with the settings of the current 4K / 8K editing project. If they are inconsistent, the image super-resolution and frame filling processing will be started, and the total length of the processed clip will be guaranteed to remain unchanged. After the processing, the file path information will be relinked back to the original editing project. The track compression processing and interactive management system is used to intelligently analyze the track hierarchy after the rough cut is completed and before exporting EDL / XML, and push down the material clips of the highest level track. The high-level material clip name content and time code replace the content of the corresponding position of the next level, and then push it down level by level until it finally becomes a single track before executing the EDL / XML export operation, forming an editing decision table containing only single-track information.
[0118] The automatic process management system is used to configure the capture path and cloud target path of the file to be uploaded in the automatic process management system, realize the extremely fast multi-threaded upload of the file, verify the MD5 during the upload process, and ensure that the file is not tampered with during the material transmission process. It can also realize the work of converting the file to the proxy bit rate according to the defined template while uploading. The transcoded file is automatically written back to the local computer for proxy editing. The transcoding process can realize distributed slicing processing, and the audio channel remains unchanged during the transcoding process, and the Alpha channel can be carried.
[0119] The local call system for cloud materials is used to realize the embedded use of cloud material management windows in local editing / color grading tools, which can realize online preview of video, audio, pictures and other materials. During the preview process, it can support the keyboard space bar to continue / pause playback. The cloud materials previewed in the embedded window can be directly placed in the non-editing / color grading software by dragging and dropping, and are no longer restricted by the incompatibility of software, which improves production efficiency.
[0120] The cloud object storage translation and mounting system is used to implement OBS object storage protocol mounting: using the open source framework Dokan (WIN platform) / FUSE (MAC platform) to implement user-mode calls to the operating system file interface, call back the object storage interface, and optimize data read and write performance for media asset scenarios. This allows native media asset application software to seamlessly operate cloud storage resources, and achieve media transcoding, non-editing, synthesis, color grading, and Internet distribution based on a set of storage; in terms of business, cloud computing and storage resources can be flexibly used according to business requirements to achieve both efficiency and cost reduction.
[0121] The background distributed cluster fragmented rendering and synthesis system is used for secondary development based on the SDK interface of the editing application. In the editing application tool menu, a button is integrated to send the rendering and synthesis task to the cloud transcoding / synthesis cluster with one click. After the task is sent, the rendering project file is synchronized to the cloud. The cloud intelligently matches the source material stored in the cloud to the source material needed in the rendering project, automatically completes the material rechain, and automatically slices the rendering task, and distributes the decomposed fragments to the idle rendering executors in the cluster. After all the fragments are rendered, the fast stitching command is executed.
[0122] The embodiment of the present invention also provides an ultra-high-definition video processing device based on cloud computing corresponding to the ultra-high-definition video processing method based on cloud computing, which is used to implement the application of the ultra-high-definition video processing method based on cloud computing in practice. The structure diagram of the ultra-high-definition video processing method based on cloud computing is as follows: Figure 3 As shown, specifically including:
[0123] The capture unit 301 is used to capture multiple video material files according to a preset capture path in response to the received video processing instruction;
[0124] The transcoding unit 302 is used to upload each of the video material files to the established cloud server for storage, and transcode each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files, and maintain the original file directory structure;
[0125] The editing unit 303 is used to send each of the transcoded files to a local client, and perform video editing in the local client according to each of the transcoded files to generate an editing file;
[0126] A first determining unit 304 is used to determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server;
[0127] The second determining unit 305 is used to determine each target video material file that matches the rendering project file among each of the video material files stored on the cloud server, and determine the rendering task corresponding to each of the target video material files;
[0128] A rendering unit 306 is used to slice the rendering task to obtain a plurality of segmented tasks, and assign each of the segmented tasks to each rendering executor currently in an idle state in the rendering executor cluster for rendering;
[0129] The splicing unit 307 is used to splice the rendered segmented tasks after the rendering of each segmented task is completed, so as to obtain a spliced finished video.
[0130] In the device provided by the embodiment of the present invention, video editing and background rendering synthesis adopt a distributed processing solution. The video editing process is completed on the local client, and the video rendering and synthesis is on the cloud server. The cloud rendering and synthesis adopts automatic sharding and load balancing to distribute the hosts in the cluster to complete file rendering and export in parallel, which greatly improves the rendering efficiency and video editing efficiency.
[0131] The cloud computing-based ultra-high-definition video processing device provided in an embodiment of the present invention includes a processor and a memory. The above-mentioned units are stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0132] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the processing of ultra-high-definition video can be dynamically executed by adjusting the kernel parameters to improve the update efficiency.
[0133] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the ultra-high-definition video processing method based on cloud computing is implemented.
[0134] An embodiment of the present invention provides a processor, which is used to run a program, wherein the ultra-high-definition video processing method based on cloud computing is executed when the program is running.
[0135] like Figure 4 As shown, an embodiment of the present invention provides an electronic device, the electronic device 40 includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; wherein the processor 401 and the memory 402 communicate with each other through the bus 403; the processor 401 is used to call the program instructions in the memory 402 to execute the above-mentioned ultra-high-definition video processing method based on cloud computing. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0136] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps, including:
[0137] A method for processing ultra-high-definition video based on cloud computing, comprising:
[0138] In response to the received video processing instruction, a plurality of video material files are captured according to a preset capture path;
[0139] Uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files;
[0140] Sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file;
[0141] Determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server;
[0142] Determine, from among the video material files stored on the cloud server, each target video material file that matches the rendering project file, and determine the rendering task corresponding to each target video material file;
[0143] Slicing the rendering task to obtain a plurality of segmented tasks, and assigning each of the segmented tasks to each rendering executor currently in an idle state in a rendering executor cluster for rendering;
[0144] After rendering of each of the segmented tasks is completed, the rendered segmented tasks are stitched together to obtain a stitched finished video.
[0145] Optionally, the method described above includes uploading each of the video material files to an established cloud server for storage, including:
[0146] Determine an upload thread for each of the video material files;
[0147] The upload thread is used to upload the video material file, and the message digest algorithm MD5 is used to verify the video material file during the uploading process to ensure that the video material file is not tampered with during the uploading process;
[0148] Each of the video material files uploaded to the cloud server is stored in a preset target storage area.
[0149] In the above method, optionally, the step of transcoding each of the video material files in the cloud server includes:
[0150] Determining whether the file parameters of each of the video material files are consistent with the editing project parameters in the video processing instruction;
[0151] Determine a video material file having file parameters consistent with the editing project parameters as a first video material file;
[0152] Determine a video material file whose file parameters are inconsistent with the editing project parameters as a second video material file;
[0153] Adjusting parameters of each of the second video material files to make the file parameters of each of the second video material files consistent with the editing project parameters;
[0154] Upload each of the first video material files and each of the second video material files with adjusted parameters to a defined transcoding template for transcoding.
[0155] In the above method, optionally, the file parameters include: resolution and frame rate;
[0156] The step of adjusting parameters of each of the second video material files includes:
[0157] By inserting frames, the second video material file is supplemented with frames to adjust the frame rate of the second video material file;
[0158] The resolution of the second video material file is super-resolution processed by super-resolution processing.
[0159] In the above method, optionally, the determining of the rendering tasks corresponding to the respective target video material files includes:
[0160] Determine the track level of the video track where each of the target video material files is located;
[0161] In order of track levels from high to low, each of the target video material files is pushed down one by one, and each target video material file on the video track corresponding to the current track level is pushed down to the video track corresponding to the next track level of the current track level, so as to replace the content and time code corresponding to each target video material file on the video track corresponding to the current track level with the corresponding position on the video track corresponding to the next track level, until each target video material file on the video track corresponding to each track level is pushed down to the same video track, completing the simplification of the track level and the relinking of each of the target video material files, and obtaining the rendering task corresponding to each of the target video material files.
[0162] The above method may optionally further include:
[0163] Through a preset embedded window, each video material file stored in the cloud server is previewed.
[0164] The above method may optionally further include:
[0165] Each video material file currently previewed in the embedded window is used in a drag-and-drop manner.
[0166] The present application is described 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 application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0167] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0168] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0169] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0170] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0171] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0172] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing ultra-high-definition video based on cloud computing, characterized in that: include: In response to the received video processing instruction, a plurality of video material files are captured according to a preset capture path; Uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files; Sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file; Determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server; Determine, from among the video material files stored on the cloud server, each target video material file that matches the rendering project file, and determine the rendering task corresponding to each target video material file; Slicing the rendering task to obtain a plurality of segmented tasks, and assigning each of the segmented tasks to each rendering executor currently in an idle state in a rendering executor cluster for rendering; After rendering of each of the segmented tasks is completed, the rendered segmented tasks are stitched together to obtain a stitched finished video; The step of determining the rendering tasks corresponding to the target video material files includes: Determine the track level of the video track where each of the target video material files is located; In order of track levels from high to low, each of the target video material files is pushed down one by one, and each target video material file on the video track corresponding to the current track level is pushed down to the video track corresponding to the next track level of the current track level, so as to replace the content and time code corresponding to each target video material file on the video track corresponding to the current track level with the corresponding position on the video track corresponding to the next track level, until each target video material file on the video track corresponding to each track level is pushed down to the same video track, completing the simplification of the track level and the relinking of each of the target video material files, and obtaining the rendering task corresponding to each of the target video material files.
2. The method according to claim 1, characterized in that The uploading of each of the video material files to the established cloud server for storage includes: Determine an upload thread for each of the video material files; The upload thread is used to upload the video material file, and the message digest algorithm MD5 is used to verify the video material file during the uploading process to ensure that the video material file is not tampered with during the uploading process; Each of the video material files uploaded to the cloud server is stored in a preset target storage area.
3. The method according to claim 1, characterized in that The step of transcoding each of the video material files in the cloud server includes: Determining whether the file parameters of each of the video material files are consistent with the editing project parameters in the video processing instruction; Determine a video material file having file parameters consistent with the editing project parameters as a first video material file; Determine a video material file whose file parameters are inconsistent with the editing project parameters as a second video material file; Adjusting parameters of each of the second video material files to make the file parameters of each of the second video material files consistent with the editing project parameters; Upload each of the first video material files and each of the second video material files with adjusted parameters to a defined transcoding template for transcoding.
4. The method according to claim 3, characterized in that The file parameters include: resolution and frame rate; The step of adjusting parameters of each of the second video material files includes: By inserting frames, the second video material file is supplemented with frames to adjust the frame rate of the second video material file; The resolution of the second video material file is super-resolution processed by super-resolution processing.
5. The method according to claim 1, characterized in that Also includes: Through a preset embedded window, each video material file stored in the cloud server is previewed.
6. The method according to claim 5, characterized in that Also includes: Each video material file currently previewed in the embedded window is used in a drag-and-drop manner.
7. An ultra-high-definition video processing device based on cloud computing, characterized in that: include: A capture unit, configured to capture a plurality of video material files according to a preset capture path in response to a received video processing instruction; A transcoding unit, used for uploading each of the video material files to an established cloud server for storage, and transcoding each of the video material files in the cloud server to obtain a transcoded file corresponding to each of the video material files; An editing unit, used for sending each of the transcoded files to a local client, and performing video editing in the local client according to each of the transcoded files to generate an editing file; A first determining unit, configured to determine a rendering project file corresponding to the clipping file, and upload the rendering project file to the cloud server; The second determination unit is used to determine each target video material file that matches the rendering project file among each of the video material files stored on the cloud server, and determine the rendering tasks corresponding to each of the target video material files; wherein, the determination of the rendering tasks corresponding to each of the target video material files includes: determining the track level of the video track where each of the target video material files is located; pushing down the track of each of the target video material files one by one in the order of the track levels from high to low, pushing down each of the target video material files on the video track corresponding to the current track level to the video track corresponding to the next track level of the current track level, so as to replace the content and time code corresponding to each of the target video material files on the video track corresponding to the current track level with the corresponding position on the video track corresponding to the next track level, until each of the target video material files on the video track corresponding to each track level is pushed down to the same video track, completing the simplification of the track level and the re-linking of each of the target video material files, and obtaining the rendering tasks corresponding to each of the target video material files; A rendering unit, used for slicing the rendering task to obtain a plurality of segmented tasks, and assigning each of the segmented tasks to each rendering executor currently in an idle state in a rendering executor cluster for rendering; The splicing unit is used to splice the rendered segmented tasks after the rendering of each segmented task is completed, so as to obtain a spliced finished video.
8. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the cloud computing-based ultra-high-definition video processing method as described in any one of claims 1 to 6.
9. An electronic device, characterized in that: It includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the cloud computing-based ultra-high-definition video processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Network rendering method and device based on project scheme management
CN103258249A
Component rendering method and device
CN111290754A
