Video generation method and device
By synthesizing video previews on the client and sending the initial video and target material information to the server to generate target videos, the problem of insufficient flexibility and editability of traditional video production methods is solved, and the efficiency and resource utilization of video secondary creation are improved.
Patent Information
- Application Number
- CN202411864424.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-07
AI Technical Summary
Traditional video production methods have significant limitations in terms of flexibility and editability, especially when videos require secondary creation, it is difficult to effectively remove the original materials embedded in the video picture, and the prior art such as slow OCR processing speed and high computing resource consumption.
By editing the initial video on the client to synthesize a preview video with target material information embedded in it, and sending the initial video and target material information to the server when the preview video meets the requirements. The server backs up the initial video and generates the same target video as the preview video based on the initial video and target material information. The target video is used to distribute to multiple clients.
It improves the processing speed during the secondary creation of videos, reduces the consumption of computing resources, and facilitates the second creation users to directly obtain the initial video without embedded target material information from the server for editing.
Smart Images

Figure CN119583916A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of multimedia technology, and in particular, to a video generation method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] The creation and editing of video content has increasingly become an important form of information dissemination, entertainment consumption, and cultural dissemination. The material processing technology in the video production process has also become a key factor affecting the efficiency of creation and the quality of the work. Traditional video production methods often rely on embedding various materials (including text, images, etc.) directly into the video screen to form an integrated visual effect. However, this processing method has significant limitations in flexibility and editability. When the video needs to be re-created, it is difficult to remove the original material embedded in the video screen.
[0003] Currently, the traditional method is to remove the original material embedded in the video screen through technologies such as OCR, but the processing speed is slow and the consumption of computing resources is high.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0005] The embodiments of the present application provide a video generation method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.
[0006] One aspect of an embodiment of the present application provides a video generation method for a client, the method comprising: Editing the initial video through an editor to synthesize a preview video embedded with target material information; If the preview video meets the requirements, the initial video and the target material information are sent to the server; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video that is the same as the preview video according to the initial video and target material information, and the target video is used to distribute to the plurality of clients.
[0007] Optionally, the video generation method further includes: In response to triggering a first preset operation, deleting the preview video; or In response to triggering a second preset operation, exporting the preview video.
[0008] Optionally, the video generation method further includes: Editing subtitles to the original video by the editor; In the process of editing subtitles into the original video, recording and updating subtitle information of each subtitle on the original video, wherein the subtitle information includes content, position, style and / or timeline; In response to a third preset operation, the target material information corresponding to the preview video is generated according to the most recently updated subtitle information.
[0009] Optionally, the video generation method further includes: The updated subtitle information is stored separately in the local database.
[0010] Another aspect of an embodiment of the present application provides a video generation method for a server, the method comprising: Get the initial video and target material information uploaded by the client; Synthesizing a target video embedded with the target material information according to the initial video and the target material information; The target video is forwarded to the multiple clients for playback.
[0011] Optionally, the video generation method further includes: backing up the initial video; In case of receiving a target request from a target client, the initial video is sent to the target client.
[0012] Another aspect of an embodiment of the present application provides a video generation device for a client, the device comprising: An editing module, used for editing the initial video through an editor to synthesize a preview video embedded with target material information; A sending module, used for sending the initial video and the target material information to a server if the preview video meets the requirements; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video identical to the preview video according to the initial video and target material information, and the target video is used to distribute to the client.
[0013] Another aspect of an embodiment of the present application provides a video generation device for a server, the device comprising: The acquisition module is used to obtain the initial video and target material information uploaded by the client; A synthesis module, used for synthesizing a target video embedded with the target material information according to the initial video and the target material information; The forwarding module is used to forward the target video to the multiple clients for playing.
[0014] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.
[0015] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0016] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0017] The above technical solution adopted in the embodiment of the present application may have the following advantages: The initial video is edited by an editor to synthesize a preview video embedded with target material information. When the preview video meets the requirements, the initial video and the target material information are sent to the server separately. Among them, the target material information is the information edited into the initial video to form the preview video. The server is used to back up the initial video, and generate a target video that is the same as the preview video based on the initial video and the target material information, and the target video is used to distribute to a certain client. It can be seen that the embodiment of the present application adopts a terminal-cloud combination solution, and first forms a preview video on the client for users to preview the effect. However, instead of uploading the preview video embedded with the target material information to the server, the initial video and the target material information are sent to the server, and the server synthesizes the target video (video embedded with the target material information) based on the initial video and the target material information and provides it to a certain client. Since the server receives the initial video and target material information, the initial video can be backed up in the server (i.e., the cloud). Therefore, when other users (secondary creation users) want to perform secondary video creation, they can directly obtain the initial video without embedded target material information from the server for editing (for example, adding new materials, etc.), without the need to use OCR and other technologies to remove the target material information embedded in the target video, thereby improving the processing speed in the secondary creation process and reducing the consumption of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0019] Figure 1 The diagram schematically shows an operating environment of the video generation method according to the first embodiment of the present application; Figure 2 The flowchart of the video generation method according to the first embodiment of the present application is schematically shown; Figure 3 The newly added flow chart of the video generation method according to the first embodiment of the present application is schematically shown; Figure 4 The newly added flow chart of the video generation method according to the first embodiment of the present application is schematically shown; Figure 5 The flowchart of the video generation method according to the second embodiment of the present application is schematically shown; Figure 6 The newly added flow chart of the video generation method according to the second embodiment of the present application is schematically shown; Figure 7 The following schematically shows an exemplary application flow chart of the present application; Figure 8 A block diagram of a video generating device according to a third embodiment of the present application is schematically shown; Fig. 9 A block diagram schematically shows a video generating device according to a fourth embodiment of the present application; and Fig.10 The hardware architecture diagram of the computer device according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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 intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0021] 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 number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0023] First, the following terms are explained: OCR (Optical Character Recognition): used to convert text in images or scanned documents into editable text.
[0024] Subtitles: Subtitles are text displayed on the video screen, used to present the video's language dialogues, narration or other explanatory information.
[0025] Secondly, to facilitate those skilled in the art to understand the technical solutions provided by the embodiments of the present application, the relevant technologies are described below: The traditional video production process uses embedded materials (such as subtitles, etc.) to embed the material information directly into the video screen and integrate it with the video content, which makes it impossible to extract or modify it independently at a later stage. Embedded materials can seriously affect secondary creation or re-editing. Although OCR technology can extract text information from videos, its recognition accuracy is relatively low and the processing speed is slow when identifying subtitles in different fonts, complex backgrounds or dynamic scenes. In addition, the location where the subtitles are removed after OCR processing usually requires image filling and repair, which increases the consumption of computing resources.
[0026] To this end, the embodiment of the present application provides a video generation technical solution. In this technical solution, the above problems are overcome, as described in detail below.
[0027] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0028] like Figure 1 As shown, the operating environment diagram includes: a service platform 2, and clients (4A, 4B, ..., 4N).
[0029] The service platform 2 can be connected to the client terminals ( 4A, 4B, ..., 4N) via a network.
[0030] The service platform 2 may be a single server, a server cluster or a cloud computing service center.
[0031] The service platform 2 can provide the client with synthetic video services, stored video services, etc.
[0032] The service platform 2 may be located in a data center such as a single location, or distributed in different geographical locations (e.g., in multiple locations). The service platform 2 may provide services via a network. The network includes various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network may include physical links such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and the like, or wireless links such as cellular links, satellite links, Wi-Fi links, and the like.
[0033] The client (4A, 4B, ..., 4N) may be configured to access the content and services of the service platform 2. The client (4A, 4B, ..., 4N) may include an electronic device carrying or externally connected to a display panel, such as a mobile device, a tablet device, a laptop computer, a workstation, a virtual reality device, a gaming device, a digital streaming device, a vehicle terminal, a smart TV, a set-top box, etc., and may also include a virtualized computing instance. The virtualized computing instance may include a virtual machine, such as a simulation of a computer system, an operating system, a server, etc. The computing device may load a virtual machine based on a virtual image and / or other data defining specific software (e.g., an operating system, a dedicated application, a server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices.
[0034] The client (4A, 4B, ..., 4N) may be associated with one or more users. A single user may also use one or more of the clients (4A, 4B, ..., 4N) to access the service platform 2. The client (4A, 4B, ..., 4N) may travel to various locations and use different networks to access the service platform 2.
[0035] The client (4A, 4B, ..., 4N) may include an interface. The interface may include a touch pad, a touch screen, a mouse, a keyboard, or other sensing elements. For example, the input element may be configured to receive user instructions, and the user instructions may enable the client (4A, 4B, ..., 4N) to perform various operations, such as uploading a video, editing a video, exporting a video, etc.
[0036] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.
[0037] Embodiment 1 This method embodiment can be executed in a client. In the following, the client is taken as the execution subject of this process.
[0038] Figure 2 The flowchart of the video generation method according to the first embodiment of the present application is schematically shown.
[0039] like Figure 2 As shown, the video generation method may include steps S200 to S202, wherein: Step S200, editing the initial video through an editor to synthesize a preview video embedded with target material information; Step S202, when the preview video meets the requirements, sending the initial video and the target material information to the server; wherein the target material information is the information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video identical to the preview video according to the initial video and target material information, and the target video is used to distribute to the client.
[0040] The video generation method provided in this embodiment edits the initial video through an editor to synthesize a preview video embedded with target material information. When the preview video meets the requirements, the initial video and the target material information are sent to the server. Among them, the target material information is the information edited into the initial video to form the preview video. The server is used to back up the initial video, and generate a target video identical to the preview video based on the initial video and the target material information, and the target video is used to distribute to the client. It can be seen that the embodiment of the present application adopts a terminal-cloud combination solution, and first forms a preview video on the client for the user to preview the effect. However, instead of uploading the preview video embedded with the target material information to the server, the initial video and the target material information are sent to the server, and the server synthesizes the target video (the video embedded with the target material information) based on the initial video and the target material information and provides it to a certain client. Since the server receives the initial video and target material information, the initial video can be backed up in the server (i.e., the cloud). Therefore, when other users (secondary creative users) want to perform secondary video creation, they can directly obtain the initial video without embedded target material information from the server for editing (for example, adding new materials, etc.), without the need to remove the target material information embedded in the target video through OCR and other technologies, thereby improving the processing speed and reducing the consumption of computing resources.
[0041] The following combination Figure 2 , each step in steps S200~S202 and other optional steps are explained in detail.
[0042] Step S200 , edit the initial video through an editor to synthesize a preview video embedded with target material information.
[0043] Exemplarily, before editing the target material information into the initial video, the initial video can be backed up in a local cache so that the initial video can be uploaded to the server later. The target material information can include target material content such as subtitles, stickers, background music, and parameters such as the timeline (i.e., the start and end time of the display), position, transparency or volume of these target material contents in the video. The target material content can be selected from the local material library and the cloud material library, or the target material content can be entered through the edit box embedded in the editor. For example, enter text content such as title, subtitle, label, etc. in the edit box.
[0044] In some embodiments, the target material information can be adjusted by using the drag function or property panel provided by the editor. For example, the user can change the position, size, rotation angle, transparency, start and end time, etc. of the target material in the video screen by dragging or using the property panel.
[0045] Step S202 , if the preview video meets the requirements, sending the initial video and the target material information to the server; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video that is the same as the preview video according to the initial video and target material information, and the target video is used to distribute to the plurality of clients.
[0046] Exemplarily, when the user selects parameters such as picture fluency, embedding effect and overall duration of the target material, and confirms that these parameters all meet their expectations, the initial video and target material information are uploaded and sent to the server. It should be noted that the embodiment of the present application forms a preview video embedded with target material information in the editor for the user to preview the effect. However, when the user chooses to publish the video, the initial video and the target material information are uploaded to the server separately, instead of uploading the preview video to the server. The server generates the same target video as the preview video based on the initial video and the target material information, and then distributes the target video to multiple clients.
[0047] That is, when the editor edits the initial video and obtains a qualified preview video, instead of uploading the preview video embedded with the target material information to the server, the initial video and the target material information are sent to the server. The server synthesizes the target video (the video embedded with the target material information) based on the initial video and the target material information and provides it to the client in need. Since the server receives the initial video and the target material information, the initial video can be backed up in the server (i.e., the cloud) for use by other users (secondary creators) when they want to create a video for the second time.
[0048] In some embodiments, the preview video embedded with the target material information and the initial video may be uploaded to the server at the same time, and the initial video may be saved in the server so that the secondary creator can edit the initial video. In some embodiments, if the preview video does not meet the requirements, it may be fine-tuned again, such as adjusting the location, size, transparency and other properties of the target material, or modifying the display duration on the timeline.
[0049] In this embodiment, after the preview video is formed in the editor, if the preview video meets the requirements, the initial video is sent to the server for backup, so that the secondary creative user can obtain the initial video without embedded target material information for editing. It can be seen that the embodiment of the present application does not need to use OCR and other technologies to remove the target material information embedded in the target video, thereby improving the processing speed and reducing the consumption of computing resources.
[0050] The above "compliance with requirements" is determined by an editor, who may be a user or an automatic editing module. For at least the client of the above method, "compliance with requirements" may be determined based on "triggering a specific control (such as upload, publish, etc.)".
[0051] In an optional embodiment, if Figure 3 As shown, the video processing method may further include: Step S300, in response to triggering a first preset operation, deleting the preview video; or Step S302: in response to triggering a second preset operation, exporting the preview video.
[0052] Exemplarily, triggering the first preset operation may be a user clicking a button (e.g., a publish button, a delete button, etc.) or various methods such as voice commands. For example, when a user chooses to publish a video, the initial video and target material information may be uploaded to the server, and the preview video may be automatically deleted. In addition to automatically deleting the preview video when the user chooses to publish the video, a delete button may also be provided for the user to choose whether to delete the preview video.
[0053] The second preset operation may be triggered by the user clicking a button (e.g., an export button) or by voice commands or other methods. Videos in various formats such as MP4, AVI, FLV, etc. may be selected for export. In some embodiments, the user may specify a storage path for the exported video, such as a local hard disk, an external storage device, a cloud storage, etc.
[0054] In this embodiment, by triggering different preset operations, the user can flexibly choose to delete or export the preview video, thereby improving the convenience and flexibility of the operation.
[0055] In an optional embodiment, if Figure 4 As shown, the video processing method may further include: Step S400, editing subtitles into the initial video through the editor; Step S402, in the process of editing subtitles into the original video, recording and updating subtitle information of each subtitle on the original video, wherein the subtitle information includes content, position, style and / or timeline; Step S404: in response to a third preset operation, generating the target material information corresponding to the preview video according to the latest updated subtitle information.
[0056] For example, the user can enter the subtitle content in the edit box embedded in the editor. The subtitle content can also be imported from an external file (such as SRT, SSA, ASS and other common subtitle formats), thereby simplifying the operation process. The text in the original video can also be automatically recognized and extracted as the subtitle content through OCR technology. The language in the original video can also be converted into text and the text can be used as the subtitle content.
[0057] Subtitle information may include subtitle content, position, style, timeline, subtitle type (such as dialogue subtitles, narration subtitles, explanatory subtitles, lyrics subtitles, etc.), animation effects (such as fade in and out, fly in and out, bounce, etc.), metadata (such as subtitle author, creation date, modification date, etc.), etc.
[0058] The third preset operation may be triggered by the user clicking a button (eg, a publish button, a generate button, etc.) or by various methods such as a voice command.
[0059] In this embodiment, in the process of editing subtitles into the original video, the subtitle information is recorded and updated in real time, and finally the target material information corresponding to the preview video is generated according to the last updated subtitle information. That is, the preview video finally generated has the latest subtitle information embedded therein.
[0060] In an optional embodiment, the video processing method may further include: storing the updated subtitle information separately in a local database.
[0061] Exemplarily, in the process of editing subtitles to the original video, the subtitle information updated is stored separately in the local database in real time. In addition, before editing subtitles to the original video, the original video can be backed up in the local database.
[0062] Embodiment 2 This method embodiment can be executed in a server. Below, the server is used as the execution subject of this process.
[0063] It should be noted that the technical details and technical effects of this embodiment can be referred to in Example 1.
[0064] like Figure 5 As shown, the video generation method may include steps S500 to S504, wherein: Step S500, obtaining the initial video and target material information uploaded by the client; Step S502, synthesizing a target video embedded with the target material information according to the initial video and the target material information; Step S504: forward the target video to the multiple clients for playback.
[0065] Exemplarily, after synthesizing a target video embedded with target material information based on the initial video and the target material information, the target material information can be deleted immediately to save space, or the target material information can be saved for a preset time to facilitate possible subsequent modification or reuse, providing greater flexibility and convenience for video editing.
[0066] In this embodiment, by acquiring the initial video and target material information uploaded by the client, synthesizing the target video with embedded material, and forwarding it to multiple clients for playing, greater flexibility is provided for video editing.
[0067] In an optional embodiment, if Figure 6 As shown, the video generation method also includes: Step S600, backing up the initial video; Step S602: upon receiving a target request from a target client, sending the initial video to the target client.
[0068] Exemplarily, the initial video can be backed up in the database of the server all the time. In some embodiments, in order to more effectively manage storage resources and optimize server performance, it can also be decided when to delete the initial video based on the download usage of the client. Specifically, if a certain initial video has not been downloaded or requested by any client within a certain period of time (such as one month, three months or longer), it can be deleted from the database of the server to free up storage space and reduce unnecessary maintenance costs. If a certain initial video is frequently downloaded or requested, its backup can be retained to meet the continuous needs of the client.
[0069] In this embodiment, when the initial video uploaded by the client is received, the initial video file is backed up in the server, and when the user (for example, the secondary creation user) sends a target request, the initial video is sent to the target client corresponding to the user, so that the secondary creation user can edit according to the obtained initial video, without the need to remove the target material information embedded in the target video through OCR and other technologies, thereby improving the processing speed and reducing the consumption of computing resources.
[0070] In order to make this application easier to understand, the following Figure 7 An exemplary application is provided.
[0071] In step S11, a user (eg, a creator) creates a video using a tool (eg, an editor).
[0072] Step S12, when the user adds and edits subtitles in a video (eg, an initial video), the user records subtitle data (eg, text data, position, style, timeline, etc.) in a local cache.
[0073] Step S13, when the user previews or chooses to export the video, synthesize the video with embedded subtitles.
[0074] Step S14, when the user chooses to upload a video, the video without subtitles (ie, the initial video) and the subtitle data are uploaded to the server respectively.
[0075] In step S15, the server writes the subtitle data and the video without subtitles (for ease of understanding, it can be called video A without subtitles) into the database respectively.
[0076] In step S16, the server reads the subtitle data and the video A without subtitles from the database to synthesize a video with subtitles (for ease of understanding, it can be called video B with subtitles).
[0077] In step S17, the server forwards the subtitled video B to multiple clients so that users who want to watch the video can play it.
[0078] Step S18, when a user (for example, a secondary creative user) sends a target request to the server, the video A without subtitles is forwarded to the client corresponding to the secondary creative user.
[0079] Embodiment 3 Figure 8 The block diagram of the video generation device according to the third embodiment of the present application is schematically shown. The device can be used in a client. The device 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 embodiment of the present application. The program module referred to in the embodiment of the present application refers 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. Figure 8 As shown, the device 1000 may include: an editing module 1100 and a sending module 1200, wherein: An editing module 1100 is used to edit the initial video through an editor to synthesize a preview video embedded with target material information; The sending module 1200 is used to send the initial video and the target material information to the server if the preview video meets the requirements; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video identical to the preview video according to the initial video and target material information, and the target video is used to distribute to the client.
[0080] In an optional embodiment, the device further includes a response module, configured to: In response to triggering a first preset operation, deleting the preview video; or In response to triggering a second preset operation, exporting the preview video.
[0081] In an optional embodiment, the device further includes a generating module, configured to: Editing subtitles to the original video by the editor; In the process of editing subtitles into the original video, recording and updating subtitle information of each subtitle on the original video, wherein the subtitle information includes content, position, style and / or timeline; In response to a third preset operation, the target material information corresponding to the preview video is generated according to the most recently updated subtitle information.
[0082] In an optional embodiment, the device further includes an updating module, configured to: The updated subtitle information is stored separately in the local database.
[0083] Embodiment 4 Fig. 9 The block diagram of the video generation device according to the fourth embodiment of the present application is schematically shown. The device can be used in a server. The device 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 embodiment of the present application. The program module referred to in the embodiment of the present application refers 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. Fig. 9 As shown, the apparatus 2000 may include: an acquisition module 2100, a synthesis module 2200, and a forwarding module 2300, wherein: The acquisition module 2100 is used to acquire the initial video and target material information uploaded by the client; A synthesis module 2200, configured to synthesize a target video embedded with target material information according to the initial video and the target material information; The forwarding module 2300 is used to forward the target video to the multiple clients for playback.
[0084] In an optional embodiment, the device further includes a backup module, which is used to: backing up the initial video; In case of receiving a target request from a target client, the initial video is sent to the target client.
[0085] Embodiment 5 Fig.10 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the video generation method according to the fifth embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. 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. Fig.10 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and 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 disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store an operating system and various application software installed in the computer device 10000, such as program codes of a video generation method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.
[0086] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. 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.
[0087] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 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 to 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 intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0088] It should be pointed out that Fig.10 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0089] In this embodiment, the video generation 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 processor 10020) to complete the embodiment of the present application.
[0090] Embodiment 6 An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the video generating method in the embodiment are implemented.
[0091] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, 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, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the video generation method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0092] Embodiment 7 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0093] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, 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 executable program codes of computer devices, so that 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 that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0094] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A video generation method, characterized in that: For a client, the method comprises: Editing the initial video through an editor to synthesize a preview video embedded with target material information; If the preview video meets the requirements, the initial video and the target material information are sent to the server; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video that is the same as the preview video according to the initial video and target material information, and the target video is used to distribute to the plurality of clients.
2. The method according to claim 1, characterized in that The method further comprises: In response to triggering a first preset operation, deleting the preview video; or In response to triggering a second preset operation, exporting the preview video.
3. The method according to claim 1, characterized in that The method further comprises: Editing subtitles to the original video by the editor; In the process of editing subtitles into the original video, recording and updating subtitle information of each subtitle on the original video, wherein the subtitle information includes content, position, style and / or timeline; In response to a third preset operation, the target material information corresponding to the preview video is generated according to the most recently updated subtitle information.
4. The method according to claim 3, characterized in that The method further comprises: The updated subtitle information is stored separately in the local database.
5. A video processing method, characterized in that: For a server, the method comprises: Get the initial video and target material information uploaded by the client; Synthesizing a target video embedded with the target material information according to the initial video and the target material information; The target video is forwarded to the multiple clients for playback.
6. The method according to claim 5, characterized in that The method further comprises: backing up the initial video; In case of receiving a target request from a target client, the initial video is sent to the target client.
7. A video generating device, characterized in that: For a client, the device comprises: An editing module, used for editing the initial video through an editor to synthesize a preview video embedded with target material information; A sending module, used for sending the initial video and the target material information to a server if the preview video meets the requirements; wherein the target material information is information edited into the initial video to form the preview video; The server is used to back up the initial video, and generate a target video that is the same as the preview video according to the initial video and target material information, and the target video is used to distribute to the plurality of clients.
8. A video generating device, characterized in that: For a server, the device comprises: The acquisition module is used to obtain the initial video and target material information uploaded by the client; A synthesis module, used for synthesizing a target video embedded with the target material information according to the initial video and the target material information; The forwarding module is used to forward the target video to the multiple clients for playing.
9. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed 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 perform the method according to any one of claims 1 to 6.
10. 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.
11. 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.
Citation Information
Patent Citations
Method and system for editing cloud video
CN104796767A
Video editing method, browser and server
CN111010591A
Video data transmission method and device and video data publishing method and device
CN112738573A
Video editing method and device, electronic equipment, storage medium and program product
CN113747199A