Video processing method and device

By predicting the video synthesis time at the client terminal and uploading the material to the server to synthesize when the threshold exceeds the threshold, the problem of video synthesis efficiency caused by insufficient local equipment is solved, and more efficient video publishing and improved user experience is achieved.

CN120281936APending Publication Date: 2025-07-08SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510372158.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, video synthesis efficiency is low and user experience is poor due to insufficient local equipment performance during video release.

Method used

By obtaining the reference value and video editing information of the client terminal, the synthesis time of the target video is predicted, and when the synthesis time exceeds the threshold, the video material is uploaded to the server for synthesis, and the powerful computing power of the server is used for video synthesis.

Benefits of technology

It improves video publishing efficiency, reduces the operation process of the client terminal, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281936A_ABST
    Figure CN120281936A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video processing method and device, computer equipment, a computer readable storage medium and a computer program product, and relates to the technical field of computers. The video processing method comprises the following steps: acquiring a reference value of the client terminal, wherein the reference value is time required for synthesizing a reference video by the client terminal; obtaining a video material; receiving video editing information for the video materials, wherein the video editing information is used for indicating to synthesize the video materials into a target video; based on the video editing information and the reference value, obtaining a predicted synthesis duration of the target video; and under the condition that the predicted synthesis duration is greater than a preset threshold value, uploading the video materials to the server side, and performing synthesis through the server side. According to the technical scheme of the embodiment of the invention, the video processing and publishing efficiency is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technology, and in particular, to a video processing method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art

[0002] With the popularization of the Internet and the rapid development of multimedia technology, videos have occupied an indispensable position in people's daily lives. In many video application scenarios, users often need to share wonderful video collections. The existing video publishing process is that users can publish after editing and synthesizing video materials locally. However, in the video publishing process, video synthesis depends on local devices, and there is a problem of low video publishing efficiency due to insufficient performance of local devices.

[0003] It should be noted that the above content is not necessarily prior art and is not used to limit the patent protection scope of the present application. Summary of the Invention

[0004] Embodiments of the present application provide a video processing method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the above technical problems.

[0005] One aspect of embodiments of the present application provides a video processing method for a client terminal, and the method includes: Obtaining a reference value of the client terminal, where the reference value is the time required for the client terminal to synthesize a reference video; Obtaining video materials; Receiving video editing information for the video materials, where the video editing information is used to indicate synthesizing the video materials into a target video; Based on the video editing information and the reference value, obtaining a predicted synthesis duration of the target video; In the case where the predicted synthesis duration is greater than a preset threshold, uploading the video materials to the server for synthesis by the server.

[0006] Optionally, the method further includes: In the case where the predicted synthesis duration is not greater than the preset threshold, synthesizing the target video locally on the client terminal.

[0007] Optionally, based on the video editing information and the reference value, obtaining the predicted synthesis duration of the target video includes: Based on the duration of the target video, obtaining a duration coefficient; Based on the resolution of the target video, obtaining a resolution coefficient; Obtain an effect coefficient based on the special effect of the target video; Obtain the predicted synthesis duration based on the duration coefficient, the resolution coefficient, the special effect coefficient, and the reference value.

[0008] Optionally, the reference value is obtained through the following operations: Obtain multiple video synthesis durations and corresponding multiple device information; Generate reference values for different devices based on the multiple video synthesis durations and the multiple device information.

[0009] Optionally, the video material includes a first type of material and a second type of material; the method further includes: When the predicted synthesis duration is greater than the preset threshold, synthesize the first type of material locally on the client terminal to obtain an initial video; Upload the initial video and the second type of material to the server, so as to synthesize the initial video and the second type of material through the server to obtain the target video.

[0010] Optionally, the method further includes: Obtain the device status information of the client terminal; Obtain a device status value based on the device status information; When the device status value falls within a preset range, upload the video material to the server.

[0011] Another aspect of the embodiments of the present application provides a video processing device for a client terminal, and the device includes: A first acquisition module, configured to acquire the reference value of the client terminal, where the reference value is the time required for the client terminal to synthesize a reference video; A second acquisition module, configured to acquire video material; A receiving module, configured to receive video editing information for the video material, where the video editing information is used to indicate synthesizing the video material into a target video; A third acquisition module, configured to acquire the predicted synthesis duration of the target video based on the video editing information and the reference value; An upload module, configured to upload the video material to the server when the predicted synthesis duration is greater than a preset threshold, so as to perform synthesis through the server.

[0012] Another aspect of the embodiments of the present application provides a computer device, including: At least one processor; and A memory communicatively connected to the at least one processor; Wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method as described above.

[0013] Another aspect of the embodiments of the present application provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed by a processor, the method as described above is implemented.

[0014] Another aspect of the embodiments of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method as described above is implemented.

[0015] The embodiments of the present application adopting the above technical solutions may include the following advantages: Based on the video editing information and the reference value for the video material, the predicted synthesis duration of the target video is obtained, and the predicted synthesis duration is the predicted time for synthesizing the target video locally on the client terminal. When the predicted synthesis duration is greater than the preset threshold, it indicates that the client terminal cannot meet the high-efficiency synthesis requirement, so the video material is uploaded to the server for synthesis. Since the server has stronger computing power and faster synthesis speed compared to the client terminal, and at the same time, the client terminal does not need to perform the operation of synthesizing the video, reducing the operation process, thereby improving the video publishing efficiency and enhancing the user experience. Description of the Drawings

[0016] The drawings exemplarily show the embodiments and form a part of the specification, and are used together with the written description of the specification to explain the exemplary embodiments. The shown embodiments are only for illustrative purposes and do not limit the scope of the claims. In all the drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0017] Figure 1 Schematically shows an operating environment diagram of the video processing method according to Embodiment 1 of the present application; Figure 2 Schematically shows a flowchart of the video processing method according to Embodiment 1 of the present application; Figure 3 Schematically shows an additional flowchart of the video processing method according to Embodiment 1 of the present application; Figure 4 Schematically shows according to Figure 2 the sub-step flowchart of step S206; Figure 5 Schematically shows an additional flowchart of the video processing method according to Embodiment 1 of the present application; Figure 6 Schematically shows an additional flowchart of the video processing method according to Embodiment 1 of the present application; Figure 7 Schematically shows an application example diagram of the video processing method according to Embodiment 1 of the present application; Figure 8 Schematically shows a block diagram of the video processing apparatus according to Embodiment 2 of the present application; and Figure 9 Schematically shows a schematic diagram of the hardware architecture of the computer device according to Embodiment 3 of the present application. Detailed implementation manners

[0018] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without making creative efforts belong to the scope of protection of the present application.

[0019] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between various embodiments may be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement them. When the combination of technical solutions appears to be contradictory or unable to be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.

[0020] In the description of the present application, it should be understood that the numerical labels before the steps do not identify the order of execution of the steps, but are only used to facilitate the description of the present application and distinguish each step, and thus cannot be understood as a limitation to the present application.

[0021] To facilitate the understanding of those skilled in the art of the technical solutions provided in the embodiments of the present application, the related technologies are described below: The process of video publishing is usually that the user edits video materials on a local device, and after video synthesis, uploads and publishes them. However, in the case where the synthesized video is large or the performance of the local device is poor, the entire video publishing process will be too long, resulting in the user abandoning the video publishing.

[0022] For this reason, the embodiments of the present application provide a video processing technical solution. In this technical solution, the efficiency of publishing videos can be improved and the user experience can be enhanced. See the following for details.

[0023] Finally, for the convenience of understanding, an exemplary operating environment is provided below.

[0024] Such as Figure 1As shown, the environmental schematic diagram includes a server 2, a network 4, and a client terminal 6, where: The server 2 can be composed of a single or multiple computing devices. The multiple computing devices can include virtualized computing instances. The virtualized computing instances can include virtual machines, such as emulations of computer systems, operating systems, servers, etc. The computing devices can load virtual machines based on virtual images and / or other data that define specific software (e.g., operating systems, dedicated applications, servers) for emulation. As the demand for different types of processing services changes, different virtual machines can be loaded and / or terminated on one or more computing devices. A hypervisor can be implemented to manage the use of different virtual machines on the same computing device.

[0025] The server 2 can be configured to communicate with the client terminal 6, etc. via the network 4. The network 4 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network 4 can include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links and their combinations, etc., or wireless links, such as cellular links, satellite links, Wi-Fi links, etc.

[0026] The server 2 can provide services such as video synthesis and publishing, e.g., synthesizing and publishing video materials provided to the client terminal.

[0027] The client terminal 6 can be an electronic device running operating systems such as Windows, Android™, or iOS, such as smartphones, tablet devices, laptop computers, virtual reality devices, gaming devices, set-top boxes, in-vehicle terminals, smart TVs. Based on the above operating systems, various application programs can be run, such as video platforms.

[0028] The client terminal 6 can provide / configure a user access page for uploading video materials, etc.

[0029] It should be noted that the above devices are exemplary, and the number and types of devices can be adjusted in different scenarios or according to different requirements.

[0030] Next, taking the client terminal 6 as the execution entity, the technical solutions of this application will be introduced through multiple embodiments. It should be noted that these embodiments can be implemented in various different forms and should not be construed as being limited only to the embodiments described herein.

[0031] Embodiment 1 Figure 2 A flowchart of a video processing method according to Embodiment 1 of the present application is schematically shown.

[0032] As Figure 2As shown, the video processing method may include steps S200 to S208, where: Step S200: Obtain a reference value of the client terminal, where the reference value is the time required for the client terminal to synthesize a reference video.

[0033] Step S202: Obtain video materials.

[0034] Step S204: Receive video editing information for the video materials, where the video editing information is used to indicate synthesizing the video materials into a target video.

[0035] Step S206: Based on the video editing information and the reference value, obtain a predicted synthesis duration of the target video.

[0036] Step S208: When the predicted synthesis duration is greater than a preset threshold, upload the video materials to the server for synthesis by the server.

[0037] The video processing method provided in this embodiment obtains the predicted synthesis duration of the target video based on the video editing information for the video materials and the reference value. The predicted synthesis duration is the predicted time for synthesizing the target video locally on the client terminal. When the predicted synthesis duration is greater than the preset threshold, it indicates that the client terminal cannot meet the high-efficiency synthesis requirement, so the video materials are uploaded to the server for synthesis by the server. Since the server has stronger computing power and faster synthesis speed compared to the client terminal, and at the same time, the client terminal does not need to perform the operation of synthesizing the video, reducing the operation process, thereby improving the video publishing efficiency and enhancing the user experience.

[0038] The following combines Figure 2 to elaborate in detail on each step in steps S200 to S208 and other optional steps.

[0039] Step S200 Obtain a reference value of the client terminal, where the reference value is the time required for the client terminal to synthesize a reference video.

[0040] The reference value can be obtained from the server or generated according to the device performance of the client terminal. For example, corresponding reference values are generated according to the hardware performance and operating status of different client terminals. The reference value is a measurement benchmark in a system and is used to determine the relative standard of other measured values. In this embodiment, other videos to be synthesized can be measured by the reference video, and thus the time required to synthesize the reference video can be used as the relative standard, that is, the reference value. For example, taking a 10-minute 1080P resolution video as the reference video, the reference value is the time required for the client terminal to synthesize a 10-minute 1080P resolution video.

[0041] Regarding the reference value, in an alternative embodiment, as Figure 3 shown, the reference value can be obtained through the following operations: Step S300, obtain a plurality of video synthesis durations and corresponding device information.

[0042] Step S302, generate reference values corresponding to different devices based on the plurality of video synthesis durations and the plurality of device information.

[0043] The plurality of video synthesis durations may be the time required for different devices to synthesize a reference video, and different devices have corresponding different device information. The device information may be the processor model, screen resolution, operating system, etc., which are not limited herein. Since there are differences in the performance of different devices, such as differences in computing power and processing speed between devices, the time required for different devices to synthesize a reference video also varies. Therefore, corresponding reference values can be generated for different types of devices respectively. The average video synthesis duration of the same type of device can be calculated and used as the reference value. For example, a certain model of mobile phone of a certain mobile phone manufacturer can be used as the same type of device, and the average of the video synthesis durations of this type of device can be taken as the reference value of this type of device. In some embodiments, different devices can be simulated in a virtual environment for testing to obtain the duration required for different devices to synthesize a reference video, that is, the video synthesis duration. And the device parameters configured in the test environment can be used as the corresponding device information.

[0044] In this embodiment, by generating reference values corresponding to different devices, the predicted synthesis duration generated based on the reference values is more accurate.

[0045] Step S202 , obtain video materials.

[0046] Video materials refer to the original resources used for editing, synthesizing, and producing videos, including video clips, audio, images, special effects, animations, etc. Video materials may include multiple different materials, such as multiple video clips and multiple special effects. Video materials can be obtained from the local of the client terminal or from the server, which is not limited herein. For example, the client terminal can obtain video clips and pictures locally, and at the same time can obtain video templates, audio, special effects, etc. from the server.

[0047] Step S204 , receive video editing information for the video materials, where the video editing information is used to indicate synthesizing the video materials into a target video.

[0048] Video editing information refers to the editing operations performed by the user on video materials, such as cutting operations, adding subtitle operations, adding special effect operations, video cropping, video splicing, etc. Since the user's editing operations are performed on the acquired video materials, the video information of the target video can be determined according to the video editing information, such as the resolution of the target video, the video duration, and the number of special effects. In some embodiments, the user can perform real-time editing on the video materials in the preview window of the client terminal, and video editing information is generated after the user finishes editing.

[0049] Step S206 , based on the video editing information and the reference value, obtain the predicted synthesis duration of the target video.

[0050] The predicted synthesis duration is the duration expected to synthesize the target video. The video information of the target video can be obtained according to the video editing information, so as to compare the video information of the reference video with that of the target video, and then deduce the predicted synthesis duration of the target video based on the comparison result and the reference value. For example, compare the resolution and video duration of the reference video and the target video, and deduce the predicted synthesis duration of the target video according to the obtained difference value and the reference value. In some embodiments, the predicted synthesis duration can be predicted based on an algorithm model.

[0051] Regarding obtaining the predicted synthesis duration, in an alternative embodiment, as Figure 4 shown, step S206 may include: Step S400, based on the duration of the target video, obtain a duration coefficient.

[0052] Step S402, based on the resolution of the target video, obtain a resolution coefficient.

[0053] Step S404, based on the special effects of the target video, obtain a special effect coefficient.

[0054] Step S406, based on the duration coefficient, the resolution coefficient, the special effect coefficient, and the reference value, obtain the predicted synthesis duration.

[0055] The duration coefficient is the ratio of the duration of the target video to that of the reference video, and the resolution coefficient is the ratio of the resolution of the target video to that of the reference video. The special effect coefficient is a coefficient used to measure the impact of the number of video special effects on the synthesis time. Therefore, the product of the duration coefficient, the resolution coefficient, the special effect coefficient, and the reference value can be used as the predicted synthesis duration. For example, the duration required to synthesize a 10-minute reference video with a resolution of 1080P is denoted as duration (i.e., the reference value). If the duration of the target video is 5 minutes, then the duration coefficient is 5 / 10 = 0.5. If the resolution of the target video is 4K (i.e., 2160P), then the resolution coefficient is 2160 / 1080 = 2. The initial special effect coefficient is 1, and for every additional 10 special effects (such as transitions, filters, etc.), the special effect coefficient increases by 0.05. If the target video has 10 special effects, then the special effect coefficient is 1 + 0.05 = 1.05. The predicted synthesis duration of the target video is p_duration = duration × 0.5 × 2 × 1.05. In some embodiments, corresponding coefficients can also be obtained based on other video information of the target video according to actual needs to generate a more accurate predicted synthesis duration. For example, frame rate coefficients and encoding format coefficients can be obtained based on the frame rates and encoding formats of the reference video and the target video.

[0056] In this embodiment, the complexity of the target video relative to the reference video is quantified by the duration coefficient, the resolution coefficient, and the special effect coefficient, and the predicted synthesis duration is calculated based on the reference value, thereby making the predicted synthesis duration more accurate.

[0057] Step S208 , in the case where the predicted synthesis duration is greater than a preset threshold, the video material is uploaded to the server for synthesis by the server.

[0058] When the predicted synthesis duration is greater than the preset threshold, it means that the client terminal cannot meet the high-efficiency synthesis requirement. After the client terminal uploads the video material to the server, the video publishing process on the client terminal is completed. Subsequently, only the synthesis and publishing of the target video need to be completed through the server. Since the server has stronger computing power and faster synthesis speed compared to the client terminal, and at the same time the client terminal does not need to perform the operation of synthesizing the video, reducing the operation process, the video publishing efficiency is improved, and thus the user experience is enhanced. The preset threshold can be set according to actual needs. For example, data statistics show that when the video synthesis time exceeds 50 seconds, the probability that the user cancels publishing the video is relatively high. Based on this, the preset threshold can be set to 50 seconds.

[0059] When the predicted synthesis duration is greater than the preset threshold, the synthesis efficiency can also be improved by jointly synthesizing the target video between the local of the client terminal and the server. Further exemplary introduction to the joint synthesis of the target video will be given below.

[0060] In an alternative embodiment, the video material includes a first type of material and a second type of material. As Figure 5 shown, the method may further include: Step S500, when the predicted synthesis duration is greater than the preset threshold, synthesize the first type of material locally on the client terminal to obtain an initial video.

[0061] Step S502, upload the initial video and the second type of material to the server, so that the server synthesizes the initial video and the second type of material to obtain the target video.

[0062] The first type of material can be materials that require less computational effort during synthesis, such as video clips, subtitle texts, and simple filters. The second type of material can be materials that require more computational effort during synthesis, such as advanced 3D effects, special filters, etc. According to the user's editing instructions, the client terminal can perform operations such as clipping, splicing, adding subtitles, and adding filters on the first type of material to generate an initial video. The server then synthesizes and publishes the target video based on the second type of material and the initial video. In some embodiments, the server can further edit the initial video according to the video editing information to synthesize the target video, such as AI super-resolution, HDR rendering, etc. AI super-resolution is an image / video enhancement technology based on deep learning, which is used to enhance low-resolution videos to higher resolutions. HDR rendering is a technology that enhances brightness, contrast, and color range, which can make the video more realistic and vivid.

[0063] In this embodiment, the initial video is synthesized locally on the client terminal according to the first material, and then the target video is synthesized by the server according to the initial video and the second material, so as to improve the overall video synthesis efficiency and the video publishing efficiency.

[0064] Regarding the case where the predicted synthesis duration is not greater than the preset threshold, in an alternative embodiment, the method further includes: when the predicted synthesis duration is not greater than the preset threshold, synthesize the target video locally on the client terminal.

[0065] In this embodiment, when the predicted synthesis duration is not greater than the preset threshold, it indicates that the client terminal can meet the high-efficiency synthesis requirements. Therefore, when the client terminal meets the requirements, the target video is preferentially synthesized locally on the client terminal to reduce the consumption of the server's computing resources.

[0066] In an alternative embodiment, as Figure 6 shown, the method may further include: Step S600, obtain the device status information of the client terminal.

[0067] Step S602: Obtain the device status value based on the device status information.

[0068] Step S604: When the device status value falls within a preset range, upload the video material to the server for synthesis by the server.

[0069] The device status information can be the CPU (Central Processing Unit) occupancy rate, the number of background processes, etc. Calculate the device status value according to the parameters included in the device status information. For example, the lower the CPU occupancy rate and the fewer the number of background processes, the higher the device status value. The device status value can be used to determine whether the client terminal can normally perform video synthesis in the current state. When the device status value falls within the preset range, it indicates that the client terminal cannot meet the normal video synthesis requirements in the current state, so the video material is uploaded to the server for synthesis by the server. When the device status value is outside the preset range, it indicates that the client terminal can normally perform video synthesis in the current state, and then further obtain the predicted synthesis duration to determine whether it meets the requirements of high-efficiency video synthesis.

[0070] In this embodiment, when the device status value falls within the preset range, select the server for synthesis to reduce the load on the client terminal and improve the user experience.

[0071] To make the present application easier to understand, the following is combined with Figure 7 Provide an exemplary application.

[0072] Taking the example of a user publishing a video in the app on the client terminal, the video processing and publishing process is as follows: S1: In response to the user's operation of selecting materials, the client terminal obtains the video material.

[0073] S2: In response to the user's editing operation on the video material (i.e., editing the video), the client terminal obtains the video editing information (i.e., video information).

[0074] S3: In response to the user's click on the publish operation, the client terminal passes the video editing information to the configured duration estimation component.

[0075] The duration estimation component is used to generate the predicted synthesis duration (i.e., synthesis duration) of the target video.

[0076] S4: The duration estimation component obtains the benchmark value from the server (i.e., the cloud).

[0077] S5: The duration estimation component returns the predicted synthesis duration according to the benchmark value and the video editing information.

[0078] S6: The client terminal determines whether the predicted synthesis duration exceeds a preset threshold (i.e., 50s): When exceeding a preset threshold, the client terminal uploads video materials to the server for synthesizing a target video through the server and publishing it.

[0079] When not exceeding the preset threshold, the client terminal synthesizes the target video locally and publishes it.

[0080] In this exemplary application, the video synthesis method is determined by predicting the synthesis duration to improve the video synthesis efficiency, and further improve the video publishing efficiency.

[0081] Embodiment 2 Figure 7 Schematically shows a block diagram of a video processing apparatus according to Embodiment 2 of the present application. The apparatus can be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. As Figure 8 shown, the apparatus 800 may include: a first acquisition module 810, a second acquisition module 820, a receiving module 830, a third acquisition module 840, and an upload module 850, where: The first acquisition module 810 is configured to acquire a reference value of the client terminal, where the reference value is the time required for the client terminal to synthesize a reference video. The second acquisition module 820 is configured to acquire video materials. The receiving module 830 is configured to receive video editing information for the video materials, and the video editing information is used to indicate synthesizing the video materials into a target video. The third acquisition module 840 is configured to acquire a predicted synthesis duration of the target video based on the video editing information and the reference value. The upload module 850 is configured to upload the video materials to the server when the predicted synthesis duration is greater than a preset threshold for synthesis through the server.

[0082] As an optional embodiment, the apparatus 800 may further include a synthesis module, and the synthesis module is configured to: Synthesize the target video locally on the client terminal when the predicted synthesis duration is not greater than the preset threshold.

[0083] As an optional embodiment, the synthesis module is further configured to: Acquire a duration coefficient based on the duration of the target video; Acquire a resolution coefficient based on the resolution of the target video; Acquire a special effect coefficient based on the special effects of the target video; Based on the duration coefficient, the resolution coefficient, the special effect coefficient, and the reference value, obtain the predicted synthesis duration.

[0084] As an alternative embodiment, the reference value is obtained through the following operations: Obtain a plurality of video synthesis durations and corresponding a plurality of device information; Based on the plurality of video synthesis durations and the plurality of device information, generate reference values corresponding to different devices.

[0085] As an alternative embodiment, the video material includes a first type of material and a second type of material; the synthesis module is further configured to: In the case where the predicted synthesis duration is greater than the preset threshold, synthesize the first type of material locally on the client terminal to obtain an initial video; Upload the initial video and the second type of material to the server, so as to synthesize the initial video and the second type of material through the server to obtain the target video.

[0086] As an alternative embodiment, the upload module 850 is further configured to: Obtain the device status information of the client terminal; Based on the device status information, obtain a device status value; In the case where the device status value falls within a preset range, upload the video material to the server for synthesis through the server.

[0087] Embodiment III Figure 9 Schematically shows a hardware architecture diagram of a computer device 10000 suitable for implementing the video processing method according to Embodiment III of the present application. In some embodiments, the computer device 10000 may be a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, and other terminal devices. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server or a server cluster composed of multiple servers), etc. As Figure 9 shown, the computer device 10000 includes, but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can be communicatively linked to each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium. The readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disc, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as the hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. equipped on the computer device 10000. Of course, the memory 10010 may also include both the internal storage module and the external storage device of the computer device 10000. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed on the computer device 10000, such as the program code of the video processing method. In addition, the memory 10010 may also be used to temporarily store various data that has been output or will be output.

[0088] In some embodiments, the processor 10020 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other chip. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.

[0089] The network interface 10030 may include a wireless network interface or a wired network interface, which is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an enterprise intranet (Intranet), the Internet, the Global System of Mobile communication (GSM for short), Wideband Code Division Multiple Access (WCDMA for short), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0090] It should be noted that Figure 9 Only the computer device with components 10010 - 10030 is shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be alternatively implemented.

[0091] In this embodiment, the video processing method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as the processor 10020) to complete the embodiments of the present application.

[0092] Embodiment 4 The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video processing method in the embodiments are implemented.

[0093] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. In this embodiment, the computer-readable storage medium is generally used to store the operating system installed on the computer device and various application software, such as the program code of the video processing method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various data that have been output or will be output.

[0094] Embodiment 5 The embodiment of the present application further provides a computer program product, including a computer program, which when executed by a processor, implements the method in the above embodiment.

[0095] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the embodiments of the present application can be implemented by a general computer device. They can be concentrated on a single computer device or distributed on a network composed of multiple computer devices. Optionally, they can be implemented by program codes executable by the computer device. Thus, they can be stored in a storage device and executed by the computer device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to implement. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0096] It should be noted that the above are only the preferred embodiments of the present application, and do not limit the patent protection scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A video processing method, characterized in that, For a customer terminal, the method includes: Obtain a reference value of the customer terminal, where the reference value is the time required for the customer terminal to synthesize a reference video; Obtain video materials; Receive video editing information for the video materials, where the video editing information is used to indicate synthesizing the video materials into a target video; Based on the video editing information and the reference value, obtain a predicted synthesis duration of the target video; In the case where the predicted synthesis duration is greater than a preset threshold, upload the video materials to the server for synthesis and publication by the server.

2. The method according to claim 1, characterized in that, The method further includes: In the case where the predicted synthesis duration is not greater than the preset threshold, synthesize the target video locally on the customer terminal.

3. The method according to claim 1, wherein Based on the video editing information and the reference value, obtaining the predicted synthesis duration of the target video includes: Based on the duration of the target video, obtain a duration coefficient; Based on the resolution of the target video, obtain a resolution coefficient; Based on the special effects of the target video, obtain a special effects coefficient; Based on the duration coefficient, the resolution coefficient, the special effects coefficient, and the reference value, obtain the predicted synthesis duration.

4. The method according to claim 1, wherein The reference value is obtained through the following operations: Obtain multiple video synthesis durations and corresponding multiple device information; Based on the multiple video synthesis durations and the multiple device information, generate reference values for different devices.

5. The method according to any one of claims 1 to 4, characterized in that, The video materials include first-class materials and second-class materials; the method further includes: In the case where the predicted synthesis duration is greater than the preset threshold, synthesize the first-class materials locally on the customer terminal to obtain an initial video; Upload the initial video and the second-class materials to the server for the server to synthesize the initial video and the second-class materials to obtain the target video.

6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the device status information of the customer terminal; Based on the device status information, obtain a device status value; In the case where the device status value falls within a preset range, upload the video materials to the server for synthesis by the server.

7. A video processing device, characterized in that, For a customer terminal, the device includes: A first acquisition module for acquiring a reference value of the customer terminal, where the reference value is the time required for the customer terminal to synthesize a reference video; A second acquisition module for acquiring video materials; A receiving module for receiving video editing information for the video materials, where the video editing information is used to indicate synthesizing the video materials into a target video; A third acquisition module for obtaining a predicted synthesis duration of the target video based on the video editing information and the reference value; An upload module for uploading the video materials to the server for synthesis by the server in the case where the predicted synthesis duration is greater than a preset threshold.

8. A computer device, characterized in that, Includes: At least one processor; And A memory communicatively connected to the at least one processor; where: The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to claims 1 to 6 are implemented.