CN117714756A - Video processing method and device - Google Patents

Video processing method and device Download PDF

Info

Publication number
CN117714756A
CN117714756A CN202311705426.2A CN202311705426A CN117714756A CN 117714756 A CN117714756 A CN 117714756A CN 202311705426 A CN202311705426 A CN 202311705426A CN 117714756 A CN117714756 A CN 117714756A
Authority
CN
China
Prior art keywords
video
template
description information
information file
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311705426.2A
Other languages
Chinese (zh)
Inventor
王叙鹏
周凡
李仁海
胡乾旭
刘洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hode Information Technology Co Ltd
Original Assignee
Shanghai Hode Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hode Information Technology Co Ltd filed Critical Shanghai Hode Information Technology Co Ltd
Priority to CN202311705426.2A priority Critical patent/CN117714756A/en
Publication of CN117714756A publication Critical patent/CN117714756A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application provides a video processing method, which comprises the following steps: acquiring a video template selected by a user; converting a video description information file in the video template into an operable object under the condition that a reconfiguration instruction for the video template is received; modifying the object according to an operation instruction input by a user to obtain a modified object; converting the modified object into a video description information file; and notifying the video description information file to a client so that the client reconstructs the video template according to the video description information file obtained by conversion to obtain a reconstructed video template, and synthesizing a video according to the reconstructed video template. The video processing method provided by the embodiment of the application can realize the modification of the video template on the client page.

Description

Video processing method and device
Technical Field
The present disclosure relates to the field of multimedia processing technologies, and in particular, to a video processing method, a video processing device, a computer device, and a storage medium.
Background
With the development of video platform services, an interactive modality of video posting is often used on user-oriented client pages: on the client page, a developer of the video platform develops the client page, a user selects an existing video template on the page (which is authored by a business person of the video platform based on a video processing program (such as a must cut app)), re-edits the video template (such as replacing video information with a nickname of the user, selecting album personalized customized video content) and generates a new personalized video, so that the video can be posted, downloaded locally or shared and split into social scenes quickly.
At present, although the initial video template can be created by a video processing program, the generated video template cannot be modified on a client page.
Disclosure of Invention
The purpose of the present application is to provide a video processing method, apparatus, computer device and storage medium, for solving the following technical problems: modification of the generated video templates is currently not possible on client pages.
An aspect of an embodiment of the present application provides a video processing method, including: acquiring a video template selected by a user; converting a video description information file in the video template into an operable object under the condition that a reconfiguration instruction for the video template is received; modifying the object according to an operation instruction input by a user to obtain a modified object; converting the modified object into a video description information file; and notifying the video description information file to a client so that the client reconstructs the video template according to the video description information file obtained by conversion to obtain a reconstructed video template, and synthesizing a video according to the reconstructed video template.
Optionally, the modifying the object according to the operation instruction input by the user to obtain a modified object includes: modifying the object and the material in the video template according to an operation instruction input by a user to obtain modified object and material modification information; the step of notifying the video description information file to a client so that the client reconstructs the video template according to the video description information file obtained by conversion, comprising: and notifying a client of the video description information file and the material modification information so that the client can reconstruct the video template according to the video description information file and the material modification information.
Optionally, the modifying the object and the material in the video template according to the operation instruction input by the user to obtain modified object and material modification information includes: uploading original materials in the video template to a target server, wherein in the target server, the naming of each material corresponds to one URL; uploading the modified material to the target server, and obtaining a target URL (uniform resource locator) named at the target server of the modified material; mapping the name of the original material with the target URL to obtain mapping information, and obtaining the material modification information according to the mapping information.
Optionally, the video description information file is a pb file, and the operable object is a JSON object; the converting the video description information file in the video template into an operable object comprises the following steps: the pb files in the video template are inversely sequenced into JSON objects; the converting the modified object into a video description information file includes: and serializing the modified JSON object into a pb file.
Optionally, the method is applied to a front-end SDK, which is also used for integrating the composition of video, the uploading of video, and the posting operation of video.
An aspect of an embodiment of the present application further provides a video processing apparatus, including: the acquisition module is used for acquiring the video template selected by the user; the first conversion module is used for converting the video description information file in the video template into an operable object under the condition that a reconfiguration instruction for the video template is received; the modification module is used for modifying the object according to the operation instruction input by the user to obtain a modified object; the second conversion module is used for converting the modified object into a video description information file; and the notification module is used for notifying the video description information file to the client so that the client can reconstruct the video template according to the video description information file obtained by conversion to obtain a reconstructed video template, and synthesizing a video according to the reconstructed video template.
Optionally, the modification module is further configured to: modifying the object and the material in the video template according to an operation instruction input by a user to obtain modified object and material modification information; the notification module is further configured to: and notifying a client of the video description information file and the material modification information so that the client can reconstruct the video template according to the video description information file and the material modification information.
Optionally, the modification module is further configured to: uploading original materials in the video template to a target server, wherein in the target server, the naming of each material corresponds to one URL; uploading the modified material to the target server, and obtaining a target URL (uniform resource locator) named at the target server of the modified material; mapping the name of the original material with the target URL to obtain mapping information, and obtaining the material modification information according to the mapping information.
An aspect of the embodiments of the present application further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the video processing method described above.
An aspect of the embodiments of the present application further provides a computer readable storage medium having a computer program stored therein, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the video processing method described above.
The video processing method, the video processing device, the computer equipment and the storage medium provided by the embodiment of the application have the following advantages:
the video template selected by the user is obtained, under the condition that a video template reconfiguration instruction is received, a video description information file in the video template is converted into an operable object, the operable object is modified according to the operation instruction input by the user, the modified object is obtained, the modified object is converted into a video description information file, the video description information file is notified to a client, so that the client reconfigures the video template according to the video description information file obtained by conversion, and synthesizes a video according to the video template after reconfiguration, and the video template can be modified on a page of the client by converting the video description information file into the operable object, thereby enabling the video template to meet the diversified demands of the user.
Drawings
FIG. 1 schematically illustrates an environmental architecture diagram of an embodiment of the present application;
fig. 2 schematically shows a flowchart of a video processing method according to a first embodiment of the present application;
FIG. 3 is a diagram of an example of a framework of a video processing method;
FIG. 4 is another flow chart of a video processing method;
FIG. 5 is a flowchart showing a sub-step of step S530 in FIG. 4;
FIG. 6 is a flowchart illustrating a video processing method;
fig. 7 schematically shows a block diagram of a video processing apparatus according to a second embodiment of the present application;
fig. 8 schematically shows a hardware architecture diagram of a computer device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the descriptions of "first," "second," etc. in the embodiments of the present application are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but are only used for convenience in describing the present application and distinguishing each step, and thus should not be construed as limiting the present application.
The following is an explanation of terms involved in the present application:
HTML5 (HyperText Markup Language, fifth generation hypertext markup language): the method is a language description mode for constructing Web contents, is a new generation standard of the Internet, is a language mode for constructing and presenting the Internet contents, and is considered as one of core technologies of the Internet.
Software development kit (Software Development Kit, abbreviated as SDK): typically, a collection of development tools are created by some software engineers for a particular software package, software framework, hardware platform, operating system, etc. when the application software is built.
JSON (JavaScript Object Notation, JS object numbered musical notation): is a lightweight data exchange format.
Must cut app: a video authoring client of the disclosure of a beep-type company.
pb file: the specific file based on the proto serialization protocol can be cross-language and is based on the description information of the proto description clip video.
protobufjs: the proto-serialization protocol is directed to public packages provided by javascripts.
AIGC (Artificial Intelligence Generated Content, generative artificial intelligence): refers to content generated by artificial intelligence, and typically includes various forms of information, such as text, images, audio, and the like.
Contribution: video is published to a public video content set of a video platform.
Fig. 1 schematically illustrates an environmental architecture diagram of an embodiment of the present application, as shown in the following:
the client 300 is connected to the server 100 through the network 200. The video processing method of the embodiment of the present application may be applied to a front-end SDK (not shown in the figure) that communicates with the client 300, and may be specifically implemented by an HTML5 application. Taking the front-end SDK as an example, the front-end SDK acquires a video template selected by a user through the client 300, and converts a video description information file in the video template into an operable object under the condition that a user reconfigures an instruction for the video template is received; modifying the operable object according to the operation instruction input by the user to obtain a modified object; the modified object is converted into a video description information file, the video description information file is notified to the client 300, so that the client 300 reconstructs the video template according to the converted video description information file, a reconstructed video template is obtained, a video is synthesized according to the reconstructed video template, and the synthesized video is uploaded and posted to the server 100, etc.
In an exemplary embodiment, the server 100 may refer to a data center, such as a single house, or distributed across different geographic locations (e.g., across several houses). The server 100 may provide services through one or more networks 200.
Network 200 includes various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. Network 200 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. Network 200 may include wireless links such as cellular links, satellite links, wi-Fi links, and/or the like.
The client 300 may include, for example, a mobile device, tablet device, laptop computer, smart device (e.g., smart clothing, smart watch, smart glasses), virtual reality headset, gaming device, set top box, digital streaming device, robot, vehicle terminal, smart television, television box, or electronic book reader.
In the related art, the generated video template cannot be modified on the page of the client 300.
The video processing method of the embodiment of the application can modify the generated video template on the page of the client 300.
The video processing scheme will be described below by way of several embodiments.
Example 1
Fig. 2 schematically illustrates a flowchart of a video processing method according to the first embodiment of the present application, and as shown in the drawing, may include steps S410 to S450, which are specifically described as follows:
step S410, a video template selected by a user is acquired.
In an exemplary embodiment, the video processing method of the embodiment of the application is applied to a front-end SDK in communication with a client, and may be specifically implemented by an HTML5 application.
In step S410, the user may select a video template at the client, and after the user selects the video template, the client may notify the front-end SDK, so that the front-end SDK may obtain the video template selected by the user.
Step S420, in the case of receiving the video template reconfiguration instruction, converts the video description information file in the video template into an operable object.
The user can send a reconfiguration instruction to the video template at the client, and the client can send the reconfiguration instruction to the front-end SDK when the client receives the reconfiguration instruction to the video template, so that the front-end SDK receives the reconfiguration instruction to the video template. The front-end SDK converts the video description information file in the video template into an operable object under the condition that a video template reconfiguration instruction is received. The reconfiguration instruction is an instruction for reconfiguring the video template, and a specific instruction may be set according to actual needs, which is not particularly limited herein.
In an exemplary embodiment, the video description information file is a pb file and the operational object is a JSON object. In step S420, converting the video description information file in the video template into an operable object includes: and (5) de-ordering the pb files in the video template into JSON objects.
In practical application, if the instruction of reconstructing the video template by the user is not received, the video can be synthesized directly at the client according to the video template selected by the user.
In step S430, the operable object is modified according to the operation instruction input by the user, so as to obtain the modified object.
It can be understood that, in the case that the video description information file is a pb file and the operable object is a JSON object, the pb file is inversely sequenced into the JSON object, and an inoperable object (because the pb file is a serialized binary file) of the pb file can be converted into an operable object, so that a user can modify the JSON object as required.
In addition, since the video template may include two parts: 1. materials or resources (such as pictures, audio or video clips, etc.) relied upon in the video; 2. a pb file describing video integrity information; therefore, in practical application, a user can modify the JSON object after deserializing the pb file according to the need, and can also modify the dependent materials in the video according to the practical need.
In step S440, the modified object is converted into a video description information file.
In the case where the video description information file is a pb file and the operable object is a JSON object, step S440 may include: the modified JSON object is serialized into a pb file.
Step S450, notifying the client of the video description information file, so that the client reconstructs the video template according to the video description information file obtained by conversion, so as to obtain a reconstructed video template, and synthesizing the video according to the reconstructed video template.
Under the condition that the user modifies the material in the video template, the front-end SDK can also acquire the material modification information, and notify the client of the material modification information while notifying the client of the video description information file, so that the client can reconstruct the video template according to the video description information file obtained by conversion and the material modification information, and then synthesize, upload, contribution and the like the video according to the reconstructed video template.
In an exemplary embodiment, the front-end SDK is also used to integrate the composition of the video, the uploading of the video, and the posting operation of the video. Specifically, the steps of video composition, video uploading and video contribution operation can be unified in the front-end SDK, and under the condition that a specific instruction (such as one-key contribution) of a user is received, the front-end SDK communicates with the client, and the video composition, the video uploading and the video contribution are realized by combining the bottom layer capability of the client.
Please refer to fig. 3, which is a diagram illustrating a video processing method according to an embodiment of the present application. As shown, the overall framework may be divided into a user presentation layer, a front-end SDK, a client, and a bottom layer, where the user presentation layer may include active pages, generate video pages, and a video player; the front-end SDK comprises a one-key contribution workflow class and a serialization, anti-serialization and pb modification method set of pb files, wherein the one-key contribution workflow class unifies video synthesis, video uploading and video contribution to the front-end SDK, and the one-key contribution function of the video is realized by utilizing the bottom layer capability of the client through interactive communication with the client; the client can comprise specific operations such as video composition, AI processing, template construction, video cloud uploading, contribution and the like; the bottom layer is the bottom layer capability support of the client, and comprises a beauty shot capability, an AIGC capability and a video cloud basic capability. In addition, the front end SDK, the client and the bottom layer capability are combined to realize proto serialization, so that the modification of the video template can be realized on the page of the client.
According to the video processing method, the video template selected by the user is obtained, under the condition that a video template reconfiguration instruction is received, the video description information file in the video template is converted into an operable object, the operable object is modified according to the operation instruction input by the user, the modified object is obtained, the modified object is converted into the video description information file, the video description information file is notified to the client, so that the client can reconfigure the video template according to the video description information file obtained by conversion, and video is synthesized according to the video template after reconfiguration, and the modification of the video template can be realized on a page of the client by converting the video description information file into the operable object, thereby enabling the video template to meet the diversified demands of the user.
In an exemplary embodiment, as shown in fig. 4, which is another flow chart of the video processing method according to the embodiment of the present application, the method specifically may include steps S510 to S550:
step S510, obtaining the video template selected by the user.
Step S520, in the case of receiving the video template reconfiguration instruction, converts the video description information file in the video template into an operable object.
Step S530, modifying the object and the material in the video template according to the operation instruction input by the user, and obtaining modified object and material modification information.
Step S540, converting the modified object into a video description information file.
Step S550, notifying the client of the video description information file and the material modification information, so that the client reconstructs the video template according to the video description information file and the material modification information to obtain a reconstructed video template, and synthesizing the video according to the reconstructed video template.
The embodiment corresponding to step S510 to step S550 is different from the embodiment corresponding to step S410 to step S450 in that step S530 and step S550, namely step S530: and (3) modifying the operable object and the material in the video template according to the operation instruction input by the user to obtain modified object and material modification information, and informing the client of the video description information file and the material modification information in step S550 so that the client can reconstruct the video template according to the video description information file and the material modification information. That is, the user modifies two portions of the video template, the material in the video and the video description information file.
In an exemplary embodiment, in step S530, the modification is performed on the operable object and the material in the video template according to the operation instruction input by the user, so as to obtain modified object and material modification information, as shown in fig. 5, which may include steps S531 to S533:
step S531, upload the original material in the video template to the target server, in the target server, each naming of the material corresponds to a URL.
Step S532, uploading the modified material to a target server, and obtaining a target URL of the modified material named at the target server.
In step S533, the naming of the original material is mapped with the target URL to obtain mapping information, and material modification information is obtained according to the mapping information.
Namely, under the condition that a user modifies the material in the video template, the naming of the original material in the video template and the URL of the new material are mapped, so that under the condition that the video template is reconfigured, the new material is used for synthesizing the video, and the purpose of modifying the material in the video template is achieved.
Please refer to fig. 6, which is a flowchart illustrating a video processing method. As shown, the general flow is as follows:
1. acquiring video template information;
2. judging whether the user terminal reconstructs the template or not, if so, entering 3, otherwise, entering 8;
3. deserializing the pb file into a JSON object;
4. modifying the materials in the video template according to the needs of the user;
5. modifying pb (JSON object) in the video template according to the needs of the user;
6. serializing the modified JSON object into a pb file;
7. notifying the modified pb file and the modification information of the material to the client so that the client reconstructs the video template according to the modified pb file and the new material to obtain a reconstructed video template;
8. and carrying out video synthesis, uploading and contribution flow.
In this embodiment, a video description information file in a video template is converted into an operable object by acquiring a video template selected by a user under the condition that a video template reconfiguration instruction is received, the operable object and materials in the video template are modified according to the operation instruction input by the user, modified object and material modification information are obtained, the modified object is converted into a video description information file, the video description information file and material modification information are notified to a client, so that the client reconfigures the video template according to the video description information file and the material modification information obtained by conversion, and video is synthesized according to the video template after reconfiguration, and modification of the video template can be realized on a client page by modifying the video description information file and the materials of the video template, thereby enabling the video template to meet the diversified demands of the user.
Example two
Fig. 7 schematically shows a block diagram of a video processing apparatus 600 according to a second embodiment of the present application, where the video processing apparatus 600 may be divided into one or more program modules, and the 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. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment.
As shown in fig. 7, the video processing apparatus 600 may include an acquisition module 610, a first conversion module 620, a modification module 630, a second conversion module 640, and a notification module 650.
An obtaining module 610, configured to obtain a video template selected by a user;
a first conversion module 620, configured to convert a video description information file in a video template into an operable object when receiving a video template reconfiguration instruction;
the modification module 630 is configured to modify the object according to an operation instruction input by a user, so as to obtain a modified object;
a second conversion module 640, configured to convert the modified object into a video description information file;
and the notification module 650 is configured to notify the client of the video description information file, so that the client reconstructs the video template according to the video description information file obtained by conversion, obtains a reconstructed video template, and synthesizes the video according to the reconstructed video template.
In an exemplary embodiment, the modification module 630 is further configured to: modifying the object and the material in the video template according to the operation instruction input by the user to obtain modified object and material modification information;
the notification module 650 is further configured to: and notifying the video description information file and the material modification information to the client so that the client can reconstruct the video template according to the video description information file and the material modification information.
In an exemplary embodiment, the modification module 630 is further configured to:
uploading original materials in a video template to a target server, wherein the naming of each material corresponds to one URL in the target server;
uploading the modified material to a target server, and obtaining a target URL (uniform resource locator) named in the target server of the modified material;
mapping the naming of the original material with the target URL to obtain mapping information, and obtaining material modification information according to the mapping information.
In an exemplary embodiment, the video description information file is a pb file and the operable object is a JSON object; the first conversion module 620 is further configured to: the pb files in the video template are inversely sequenced into JSON objects; the second conversion module 640 is further configured to: the modified JSON object is serialized into a pb file.
In an exemplary embodiment, applied to the front-end SDK, the front-end SDK is also used to integrate the composition of video, the uploading of video, and the posting operation of video.
Example III
Fig. 8 schematically shows a hardware architecture diagram of a computer device 700 adapted for a video processing method according to a third embodiment of the present application. The computer device 700 may be a device capable of automatically performing numerical calculation and/or data processing according to a preset or stored instruction. For example, it may be a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers), a gateway, or the like. As shown in fig. 8, computer device 700 includes at least, but is not limited to: memory 710, processor 720, and network interface 730 may be communicatively linked together by a system bus. Wherein:
the memory 710 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card 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 memory 710 may be an internal storage module of the computer device 700, such as a hard disk or memory of the computer device 700. In other embodiments, the memory 710 may also be an external storage device of the computer device 700, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 700. Of course, the memory 710 may also include both internal memory modules of the computer device 700 and external memory devices. In this embodiment, the memory 710 is typically used to store an operating system and various types of application software installed on the computer device 700, such as program codes of a video processing method, and the like. In addition, the memory 710 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 720 may be a central processing unit (Central Processing Unit, simply CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 720 is typically used to control the overall operation of the computer device 700, such as performing control and processing related to data interaction or communication with the computer device 700, and the like. In this embodiment, processor 720 is used to execute program code or process data stored in memory 710.
Network interface 730 may include a wireless network interface or a wired network interface, and network interface 730 is typically used to establish a communication link between computer device 700 and other computer devices. For example, the network interface 730 is used to connect the computer device 700 to an external terminal through a network, establish a data transmission channel and a communication link between the computer device 700 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
It should be noted that FIG. 8 only shows a computer device having components 710-730, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the video processing method stored in the memory 710 may also be divided into one or more program modules and executed by one or more processors (the processor 720 in this embodiment) to complete the embodiments of the present application.
Example IV
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the video processing method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. that are provided on the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer readable storage medium is typically used to store an operating system and various types of application software installed on a computer device, such as program codes of the video processing method in the embodiment, and the like. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A video processing method, comprising:
acquiring a video template selected by a user;
converting a video description information file in the video template into an operable object under the condition that a reconfiguration instruction for the video template is received;
modifying the object according to an operation instruction input by a user to obtain a modified object;
converting the modified object into a video description information file;
and notifying the video description information file to a client so that the client reconstructs the video template according to the video description information file obtained by conversion to obtain a reconstructed video template, and synthesizing a video according to the reconstructed video template.
2. The video processing method according to claim 1, wherein modifying the object according to the operation instruction input by the user, to obtain the modified object, comprises:
modifying the object and the material in the video template according to an operation instruction input by a user to obtain modified object and material modification information;
the step of notifying the video description information file to a client so that the client reconstructs the video template according to the video description information file obtained by conversion, comprising:
and notifying a client of the video description information file and the material modification information so that the client can reconstruct the video template according to the video description information file and the material modification information.
3. The video processing method according to claim 2, wherein modifying the object and the material in the video template according to the operation instruction input by the user to obtain modified object and material modification information includes:
uploading original materials in the video template to a target server, wherein in the target server, the naming of each material corresponds to one URL;
uploading the modified material to the target server, and obtaining a target URL (uniform resource locator) named at the target server of the modified material;
mapping the name of the original material with the target URL to obtain mapping information, and obtaining the material modification information according to the mapping information.
4. The video processing method according to claim 1, wherein the video description information file is a pb file, and the operable object is a JSON object;
the converting the video description information file in the video template into an operable object comprises the following steps:
the pb files in the video template are inversely sequenced into JSON objects;
the converting the modified object into a video description information file includes:
and serializing the modified JSON object into a pb file.
5. The video processing method according to any one of claims 1 to 4, applied to a front-end SDK that is further used to integrate the composition of video, the uploading of video, and the posting operation of video.
6. A video processing apparatus, comprising:
the acquisition module is used for acquiring the video template selected by the user;
the first conversion module is used for converting the video description information file in the video template into an operable object under the condition that a reconfiguration instruction for the video template is received;
the modification module is used for modifying the object according to the operation instruction input by the user to obtain a modified object;
the second conversion module is used for converting the modified object into a video description information file;
and the notification module is used for notifying the video description information file to the client so that the client can reconstruct the video template according to the video description information file obtained by conversion to obtain a reconstructed video template, and synthesizing a video according to the reconstructed video template.
7. The video processing device of claim 6, wherein the modification module is further configured to: modifying the object and the material in the video template according to an operation instruction input by a user to obtain modified object and material modification information;
the notification module is further configured to: and notifying a client of the video description information file and the material modification information so that the client can reconstruct the video template according to the video description information file and the material modification information.
8. The video processing apparatus of claim 7, wherein the modification module is further configured to:
uploading original materials in the video template to a target server, wherein in the target server, the naming of each material corresponds to one URL;
uploading the modified material to the target server, and obtaining a target URL (uniform resource locator) named at the target server of the modified material;
mapping the name of the original material with the target URL to obtain mapping information, and obtaining the material modification information according to the mapping information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to implement the steps of the video processing method of any of claims 1 to 5 when the computer program is executed by the processor.
10. A computer readable storage medium, characterized in that it has stored therein a computer program executable by at least one processor to cause the at least one processor to perform the steps of the video processing method according to any one of claims 1 to 5.
CN202311705426.2A 2023-12-12 2023-12-12 Video processing method and device Pending CN117714756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311705426.2A CN117714756A (en) 2023-12-12 2023-12-12 Video processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311705426.2A CN117714756A (en) 2023-12-12 2023-12-12 Video processing method and device

Publications (1)

Publication Number Publication Date
CN117714756A true CN117714756A (en) 2024-03-15

Family

ID=90159957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311705426.2A Pending CN117714756A (en) 2023-12-12 2023-12-12 Video processing method and device

Country Status (1)

Country Link
CN (1) CN117714756A (en)

Similar Documents

Publication Publication Date Title
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
US10331422B1 (en) System and method for generating API devlopment code for integrating platforms
CN106843828B (en) Interface display and loading method and device
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN111079047B (en) Web-oriented page construction system
CN112612452B (en) API platform realization method, device, equipment and storage medium
US20190173958A1 (en) Increased interoperability between web-based applications and hardware functions
CN111414158A (en) Cross-platform development method, cross-platform development system and electronic equipment
CN114253436B (en) Page display method, device and storage medium
CN115486050A (en) Method and apparatus for cascading multiple input content preparation templates for 5G networks
CN101964742B (en) Method, system and device for using network open ability
CN106844763B (en) A kind of method showed to the Internet media file formula of modifying and its device
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN107147732A (en) Image processing method, device, client and service end
CN113204341A (en) Page generation method, device and medium
CN117714756A (en) Video processing method and device
CN115811481A (en) Interactive service testing method and device, computer equipment and storage medium
CN116088829A (en) Data processing method, device, storage medium and equipment
CN113037848B (en) File uploading method and system
CN108604226A (en) For the cross-platform system and method for keeping the comment to electronic document synchronous
CN112817688B (en) Network slice template generation method and device
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium
CN112417818A (en) Document directory generation method and device, storage medium and electronic equipment
CN111008346A (en) Data acquisition method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination