Video processing method, device and system and terminal equipment
By using QR codes to pass video processing information in the video processing system, the problem of inefficient video processing is solved, and the efficiency and user-friendliness of video processing are achieved.
Patent Information
- Application Number
- CN202510377458.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-06-24
AI Technical Summary
In the prior art, video processing is inefficient, especially for users without a video processing basis, it is difficult to independently produce videos with ideal effects.
By generating a QR code based on video processing information on the first terminal device, including control parameters related to the video processing process, the second terminal device can obtain processing information by scanning or receiving the QR code to process the second panoramic video.
The efficiency of video processing is improved, so that users without a video processing basis can easily realize video processing, and the generated video has ideal effects.
Smart Images

Figure CN120201238A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of video processing, and in particular, to a video processing method, apparatus, system, and terminal device. Background Art
[0002] With the continuous development of video-related technologies, the processing methods of videos have become more and more diverse. In order to achieve a more ideal video effect, people usually need to set multiple shooting parameters of the camera, and / or edit the captured video. However, for users without a video processing foundation, it is difficult to independently produce a video with an ideal effect, and the video processing efficiency is low. Summary of the Invention
[0003] Embodiments of this application provide a video processing method, apparatus, system, and terminal device, which can solve the problem of low current video processing efficiency.
[0004] In a first aspect, this application provides a video processing method. The video processing method is applied to a first terminal device that stores a first panoramic video. The video processing method includes: generating a first two-dimensional code based on first processing information, where the first processing information includes control parameters related to the processing process of the first panoramic video; and outputting the first two-dimensional code.
[0005] In a possible implementation manner of the first aspect, the first processing information includes: first shooting data or / and first editing data, where the first shooting data is the camera shooting parameters involved in the process of shooting the first panoramic video, and the first editing data is data related to the editing process of the first panoramic video.
[0006] In a possible implementation manner of the first aspect, the first processing information includes first editing data, and the first editing data includes key frame parameters corresponding to the first panoramic video and inter-frame editing operation data corresponding to the first panoramic video. Correspondingly, generating the first two-dimensional code based on the first processing information includes: generating a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video; generating a second hash value corresponding to the first panoramic video based on the inter-frame editing operation data corresponding to the first panoramic video; and generating a first two-dimensional code based on the first hash value corresponding to the first panoramic video and the second hash value corresponding to the first panoramic video.
[0007] In a possible implementation of the first aspect, the first panoramic video includes at least two video segments, and each video segment is a sub-template. Correspondingly, generating a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video, generating a second hash value corresponding to the first panoramic video based on the inter-frame editing operation data corresponding to the first panoramic video, and generating a first two-dimensional code corresponding to the first panoramic video based on the first hash value corresponding to the first panoramic video and the second hash value corresponding to the first panoramic video, includes:
[0008] Executing the following steps for each sub-template respectively: generating a first hash value corresponding to the sub-template based on the key frame parameters corresponding to the sub-template; generating a second hash value corresponding to the sub-template based on the inter-frame editing operation data corresponding to the sub-template; generating a third hash value corresponding to the sub-template based on the first hash value corresponding to the sub-template and the second hash value corresponding to the sub-template;
[0009] Generating a first two-dimensional code corresponding to all sub-templates based on the third hash values corresponding to all sub-templates, and the first two-dimensional code corresponding to all sub-templates carries the third hash values corresponding to all sub-templates.
[0010] In a possible implementation of the first aspect, the video processing method further includes: if it is monitored that the first panoramic video is updated, updating the third hash value corresponding to the first panoramic video, and generating a second two-dimensional code based on the updated third hash value, where the second two-dimensional code carries the updated third hash value, and the updated first panoramic video and the unupdated first panoramic video correspond to the same ID.
[0011] In a possible implementation of the first aspect, the first two-dimensional code carries the first processing information.
[0012] In a second aspect, an embodiment of the present application provides a video processing system, including: a first terminal device and a second terminal device, where: the first terminal device stores a first panoramic video, and the first terminal device is configured to generate a first two-dimensional code based on first processing information, where the first processing information includes: control parameters related to the processing process of the first panoramic video, and then, the first terminal device outputs the first two-dimensional code; the second terminal device is configured to: obtain the first processing information through the first two-dimensional code to process a second panoramic video.
[0013] In a third aspect, an embodiment of the present application provides a video processing device, which is applied to a first terminal device that stores a first panoramic video. The video processing device includes: a QR code generation unit configured to generate a first QR code based on first processing information, where the first processing information includes control parameters related to the processing process of the first panoramic video; and a QR code output unit configured to output the first QR code.
[0014] In a fourth aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method according to any one of the above first aspects is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, where when the computer program is executed by a processor, the method according to any one of the above first aspects is implemented.
[0016] In the embodiment of the present application, the first terminal device can generate a first QR code based on the first processing information, where the first processing information includes control parameters related to the processing process of the first panoramic video; and then output the first QR code, so that the second terminal device can obtain the first processing information through the first QR code to process the second panoramic video. That is, the first terminal device can share video processing experience through the first QR code, enabling the second terminal device to draw on the video processing experience to process the second panoramic video, making the second panoramic video have an ideal effect. In this way, the processing efficiency of the second panoramic video can be greatly improved. For users without a video processing foundation, video processing can be easily achieved through the second terminal device. Description of the Drawings
[0017] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 is a flowchart of a video processing method provided by an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a video processing device provided by an embodiment of the present application. Detailed Embodiments
[0020] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used to explain the present application and are not intended to limit the present application.
[0021] It should be noted that the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0022] It should be noted that the term "processing information" herein includes control parameters related to the processing process of panoramic video, and the processing process of panoramic video may include the generation process and / or the editing process of panoramic video.
[0023] It should be noted that the terms "first", "second", etc. in the specification, claims and the above-mentioned drawings of this article are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0024] In this article, the term "or / and" is merely a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0025] Embodiment 1
[0026] Figure 1 The flowchart of a video processing method provided by an embodiment of the present application is shown. The video processing method is applied to a first terminal device. By way of example and not limitation, the first terminal device is a terminal device, a mobile phone, a computer or other terminals. The first terminal device stores a first panoramic video, and the video processing method includes step S101 and step S102. Details are as follows:
[0027] Step S101: Generate a first QR code based on first processing information, where the first processing information includes control parameters related to the processing process of the first panoramic video.
[0028] Specifically, the first terminal device encodes the first processing information to generate the first QR code. The first processing information includes control parameters related to the processing process of the first panoramic video. The processing process of the first panoramic video may include the generation process of the first panoramic video and / or the editing process of the first panoramic video. The generation process of the first panoramic video may include the process of shooting (to obtain) the first panoramic video.
[0029] Optionally, the first processing information includes first shooting data and / or first editing data. Among them, the first shooting data is the camera shooting parameters involved in the process of shooting the first panoramic video, and the first editing data is the data related to the editing process of the first panoramic video.
[0030] By way of example and not limitation, the first shooting data includes: the aperture size set by the first terminal device, and / or the shutter opening time, and / or the sensitivity, and / or the automatic white balance control parameters during the process of shooting the first panoramic video. The first editing data includes: the key frame parameters corresponding to the first panoramic video and / or the inter-frame editing operation data corresponding to the first panoramic video. The key frame parameters are the related parameters of the key frames but do not include the inter-frame editing operation data. The inter-frame editing operation data is the editing control parameters that can reflect the connection between at least two video frames.
[0031] For example, the key frame parameters may include at least one of the following: the time stamp corresponding to the key frame, the scaling ratio of the field of view (FOV) corresponding to the key frame, the size of the preview perspective corresponding to the key frame, and the filter control parameters corresponding to the key frame. The inter-frame editing operation data is the editing control parameters that can reflect the connection between at least two key frames. The inter-frame editing operation data may include at least one of the following: the key frame transition method, the special effect control parameters. Among them, the special effect control parameters are the control parameters for forming special effects based on multiple key frames. For example, the key frame transition method may be a linear transition method or a Bezier curve transition method, and the special effect may be an asteroid special effect or a sliding zoom. Among them, the asteroid special effect can process multiple video frames into a bird's-eye view of a miniature planet effect.
[0032] Optionally, the first two-dimensional code may carry an identifier (ID) corresponding to the first panoramic video. If the first panoramic video is updated, the ID corresponding to the first panoramic video remains unchanged, that is, the ID of the updated first panoramic video is the same as that of the unupdated first panoramic video. Since the ID of the updated first panoramic video is the same as that of the unupdated first panoramic video, the same ID can reflect the "inheriting" relationship between the updated first panoramic video and the unupdated first panoramic video, thus facilitating the subsequent update of the second panoramic video by the second terminal device.
[0033] Optionally, the first two-dimensional code carries the first processing information. Since the first two-dimensional code itself carries the first processing information, when the second terminal device scans the first two-dimensional code subsequently, the second terminal device can directly obtain the first processing information, thereby improving the video processing efficiency of the second terminal device.
[0034] Optionally, the first processing information includes first clip data, and the first clip data includes key frame parameters corresponding to the first panoramic video and inter-frame clip operation data corresponding to the first panoramic video. Correspondingly, the step S101 includes: step a1, step a2, and step a3.
[0035] Step a1: Generate a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video.
[0036] Step a2: Generate a second hash value corresponding to the first panoramic video based on the inter-frame clip operation data corresponding to the first panoramic video.
[0037] Step a3: Generate a first two-dimensional code based on the first hash value corresponding to the first panoramic video and the second hash value corresponding to the first panoramic video.
[0038] By way of example and not limitation, step a1 includes: generating a first hash value corresponding to the first panoramic video based on the Secure Hash Algorithm (SHA) and the key frame parameters corresponding to the first panoramic video, and step a2 includes: generating a second hash value corresponding to the first panoramic video based on SHA and the inter-frame clip operation data corresponding to the first panoramic video.
[0039] In some embodiments, the first two-dimensional code carries the first hash value and the second hash value.
[0040] In some embodiments, step a3 includes: generating a third hash value corresponding to the first panoramic video based on the first hash value and the second hash value corresponding to the first panoramic video; generating a first two-dimensional code based on the third hash value corresponding to the first panoramic video, where the first two-dimensional code carries the third hash value corresponding to the first panoramic video.
[0041] In this embodiment, since the first terminal device does not need to calculate the relevant data of each frame of the first panoramic video, the amount of calculation can be reduced. In addition, through the multi-layer hash mechanism (the first hash value, the second hash value, and the third hash value are each a layer), the overall situation of the first panoramic video can be efficiently reflected; if the first panoramic video is modified subsequently, this mechanism is also conducive to monitoring the modification of the first panoramic video.
[0042] In some embodiments, before generating the first two-dimensional code based on the third hash value corresponding to the first panoramic video, it further includes: reducing the size of the third hash value corresponding to the first panoramic video. Correspondingly, generating the first two-dimensional code based on the third hash value corresponding to the first panoramic video includes: generating the first two-dimensional code based on the third hash value with the reduced size.
[0043] By way of example and not limitation, reducing the size of the third hash value corresponding to the first panoramic video includes: retaining the key characters of the third hash value corresponding to the first panoramic video and determining the key characters as the third hash value with the reduced size.
[0044] Through this embodiment, the first terminal device of the present application can reduce the amount of data to be transmitted, thereby improving the data transmission efficiency.
[0045] In some embodiments, the first panoramic video includes at least two video segments, and each video segment is a sub-template. Correspondingly, step a1, step a2, and step a3 include: respectively performing step B1 for each sub-template, and performing step B2. Step B1 includes step b11, step b12, and step b13.
[0046] Step b11: generating a first hash value corresponding to the sub-template based on the key frame parameters corresponding to the sub-template; step b12: generating a second hash value corresponding to the sub-template based on the inter-frame editing operation data corresponding to the sub-template; step b13: generating a third hash value corresponding to the sub-template based on the first hash value and the second hash value corresponding to the sub-template.
[0047] Step B2: Generate the first two-dimensional code corresponding to all the sub-templates based on the third hash values corresponding to all the sub-templates, and the first two-dimensional code corresponding to all the sub-templates carries the third hash values corresponding to all the sub-templates.
[0048] By way of example and not limitation, assume that there are two video segments in the first panoramic video, one of which uses the asteroid special effect and the other uses the sliding zoom special effect. Correspondingly, the video segment using the asteroid special effect is used as one sub-template (video), and the video segment using the sliding zoom special effect is used as another sub-template (video). Step B2 includes: generating the first two-dimensional code corresponding to all the sub-templates based on the third hash values corresponding to all the sub-templates, and the number of the first two-dimensional codes corresponding to all the sub-templates can be one or more.
[0049] In this embodiment, the first panoramic video includes multiple sub-templates. It is equivalent to that the first panoramic video is a large template (video), and each sub-template (video) is a small template (video). Each sub-template corresponds to a third hash value respectively. In this way, targeted management of the sub-templates can be realized, thus improving the management efficiency.
[0050] Step S102: Output the first two-dimensional code so that the second terminal device can obtain the first processing information through the first two-dimensional code to process the second panoramic video.
[0051] By way of example and not limitation, the output of the first two-dimensional code includes: the first terminal device displays the first two-dimensional code, and the second terminal device scans the first two-dimensional code; or, the first terminal device sends the first two-dimensional code to the second terminal device. The second terminal device can be a terminal device, a mobile phone, a computer or other terminals. After the second terminal device obtains the first processing information, the second terminal device can shoot / generate the second panoramic video through the first processing information, or the second terminal device can edit the second panoramic video through the first processing information.
[0052] In some embodiments, the second terminal device shoots the second panoramic video through the first processing information, including: the second terminal device controls the display screen of the second terminal device to play the first panoramic video, and at the same time displays the processing information related to the played video frame, so that the user can control the second terminal device to complete the shooting of the second panoramic video according to the displayed processing information.
[0053] By way of example and not limitation, the second terminal device controls the display screen of the second terminal device to play the first panoramic video, including: the second terminal device intercepts the sub-template (video) based on the video time length of the sub-template (video), and then controls the display screen to play the sub-template (video) within the video time length of the sub-template (video).
[0054] In some embodiments, the video processing method also includes: the first terminal device sends the structural parameters of the first terminal device to the second terminal device, the second terminal device obtains the structural parameters of the first terminal device, and then processes the second panoramic video based on the structural parameters of the first terminal device, the structural parameters of the second terminal device and the first processing information.
[0055] In some embodiments, before step S102, the first terminal device attaches a first QR code to the first panoramic video, and then, when sharing the first panoramic video, the first terminal device can share the first QR code.
[0056] Optionally, the video processing method also includes: if it is monitored that the first panoramic video is updated, updating the third hash value corresponding to the first panoramic video, and generating a second QR code based on the updated third hash value, the second QR code carries the updated third hash value, and the updated first panoramic video and the unupdated first panoramic video correspond to the same ID.
[0057] As an example but not limitation, the updating of the third hash value corresponding to the first panoramic video includes: the first terminal device determines the difference between the updated first panoramic video and the unupdated first panoramic video, and updates the third hash value according to the processing information corresponding to the difference. The first terminal device can also send the second QR code to the second terminal device so that the second terminal device can process the panoramic video through the second QR code. Specifically, the second terminal device scans the second QR code to obtain the information carried by the second QR code, and the information carried by the second QR code includes the ID corresponding to the second QR code; if the ID corresponding to the second QR code is the same as the ID corresponding to the first QR code, the hash value in the second QR code is compared with the hash value in the first QR code to determine the target hash value, the target hash value includes the first hash value or / and the second hash value that are not in the first QR code but are carried in the second QR code, the second terminal device downloads the processing information corresponding to the target hash value, and processes the panoramic video of the second terminal device according to the processing information corresponding to the target hash value. In this way, the amount of data required to be downloaded by the second terminal device can be effectively reduced.
[0058] In some embodiments, updating the third hash value according to the processing information corresponding to the difference part includes: if the processing information corresponding to the difference part includes key frame parameters, updating the first hash value based on the key frame parameters corresponding to the difference part; if the processing information corresponding to the difference part includes inter-frame editing operation data, updating the second hash value based on the inter-frame editing operation data corresponding to the difference part, and updating the third hash value based on the updated first hash value and / or the updated second hash value.
[0059] Optionally, the second terminal device compares the hash value in the second two-dimensional code with the hash value in the first two-dimensional code to determine the target hash value, including: the second terminal device compares the hash value in the second two-dimensional code with the hash value in the first two-dimensional code by means of one-by-one comparison to determine the target hash value.
[0060] By way of example and not limitation, the first two-dimensional code carries a first hash value and a second hash value. The second terminal device compares the first hash value in the second two-dimensional code with the first hash value in the first two-dimensional code, and compares the second hash value in the second two-dimensional code with the second hash value in the first two-dimensional code to determine the target hash value.
[0061] Optionally, the second terminal device compares the hash value in the second two-dimensional code with the hash value in the first two-dimensional code to determine the target hash value, including: the second terminal device compares the hash value in the second two-dimensional code with the hash value in the first two-dimensional code by means of hierarchical comparison to determine the target hash value.
[0062] By way of example and not limitation, the first two-dimensional code carries a third hash value. The second terminal device compares the third hash value in the second two-dimensional code with the third hash value in the first two-dimensional code. If the third hash value in the second two-dimensional code is different from the third hash value in the first two-dimensional code, the second terminal device compares the first hash value in the second two-dimensional code with the first hash value in the first two-dimensional code, and compares the second hash value in the second two-dimensional code with the second hash value in the first two-dimensional code to determine the target hash value.
[0063] In the embodiment of the present application, the first terminal device can generate a first two-dimensional code based on the first processing information, where the first processing information includes: control parameters related to the processing process of the first panoramic video; and then output the first two-dimensional code, so that the second terminal device can obtain the first processing information through the first two-dimensional code to process the second panoramic video, that is, the first terminal device can share video processing experience through the first two-dimensional code, so that the second terminal device can draw on the video processing experience to process the second panoramic video, so that the second panoramic video has an ideal effect. In this way, the processing efficiency of the second panoramic video can be greatly improved. For users without video processing foundation, video processing can be easily achieved through the second terminal device.
[0064] Embodiment 2
[0065] Corresponding to the video processing method described in the above embodiment, the embodiment of the present application provides a video processing system, which includes: a first terminal device and a second terminal device, where:
[0066] The first terminal device stores a first panoramic video, and the first terminal device is configured to generate a first two-dimensional code based on first processing information, where the first processing information includes: control parameters related to the processing process of the first panoramic video. Then, the first terminal device outputs the first two-dimensional code.
[0067] The second terminal device is configured to: obtain the first processing information through the first two-dimensional code to process a second panoramic video.
[0068] It should be noted that for the technical details not described in detail in this embodiment, reference can be made to the video processing methods provided in the respective embodiments of the above-mentioned Embodiment 1.
[0069] Embodiment 3
[0070] Corresponding to the video processing method described in the above embodiment, an embodiment of the present application provides a video processing device. The video processing device is applied to a first terminal device, and the first terminal device stores a first panoramic video. Figure 2 The figure shows a schematic diagram of a video processing device provided by an embodiment of the present application. The video processing device includes: a two-dimensional code generation unit 201 and a two-dimensional code output unit 202.
[0071] The two-dimensional code generation unit 201 is configured to generate a first two-dimensional code based on first processing information, where the first processing information includes: control parameters related to the processing process of the first panoramic video.
[0072] Optionally, the first processing information includes first clip data, and the first clip data includes key frame parameters corresponding to the first panoramic video and inter-frame clip operation data corresponding to the first panoramic video. Correspondingly, when the two-dimensional code generation unit 201 executes generating the first two-dimensional code based on the first processing information, it specifically executes step a1, step a2, and step a3.
[0073] Step a1: Generate a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video.
[0074] Step a2: Generate a second hash value corresponding to the first panoramic video based on the inter-frame clip operation data corresponding to the first panoramic video.
[0075] Step a3: Generate a first two-dimensional code based on the first hash value corresponding to the first panoramic video and the second hash value corresponding to the first panoramic video.
[0076] In some embodiments, step a3 includes: generating a third hash value corresponding to the first panoramic video based on the first hash value and the second hash value corresponding to the first panoramic video; generating a first two-dimensional code based on the third hash value corresponding to the first panoramic video, where the first two-dimensional code carries the third hash value corresponding to the first panoramic video.
[0077] In some embodiments, before generating the first two-dimensional code based on the third hash value corresponding to the first panoramic video, the two-dimensional code generation unit 201 is further configured to: reduce the size of the third hash value corresponding to the first panoramic video. Correspondingly, when the two-dimensional code generation unit 201 generates the first two-dimensional code based on the third hash value corresponding to the first panoramic video, it is specifically configured to: generate the first two-dimensional code based on the third hash value with the reduced size.
[0078] The two-dimensional code output unit 202 is configured to output the first two-dimensional code.
[0079] In some embodiments, when executing the output of the first two-dimensional code, the two-dimensional code output unit 202 is specifically configured to: attach the first two-dimensional code to the first panoramic video. Then, when the first terminal device shares the first panoramic video, the first two-dimensional code can be shared along with it.
[0080] In some embodiments, the video processing device further includes: a structure parameter sending unit.
[0081] The structure parameter sending unit is configured to: send the structure parameters of the first terminal device to the second terminal device. The second terminal device obtains the structure parameters of the first terminal device, and then the second terminal device processes the second panoramic video based on the structure parameters of the first terminal device, the structure parameters of the second terminal device, and the first processing information.
[0082] Optionally, the video processing method further includes: a two-dimensional code updating unit.
[0083] The two-dimensional code updating unit is configured to: if it is monitored that the first panoramic video is updated, update the third hash value corresponding to the first panoramic video, and generate a second two-dimensional code based on the updated third hash value, where the second two-dimensional code carries the updated third hash value. The updated first panoramic video and the unupdated first panoramic video correspond to the same ID.
[0084] It should be noted that for the technical details not described in detail in this embodiment, reference can be made to the video processing methods provided in the respective embodiments of the above-mentioned Embodiment 1.
[0085] Embodiment 4
[0086] The terminal device in this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, the steps in any of the above-described video processing method embodiments are implemented.
[0087] When the processor executes the computer program, the steps in any of the above-described video processing method embodiments are implemented, for example Figure 1 the steps S101 to S102 shown. Alternatively, when the processor executes the computer program, the functions of the respective units in any of the above-described apparatus embodiments are implemented. For example, Figure 2 the functions of the units 201 to 202 shown.
[0088] Those skilled in the art can understand that this embodiment is only an example of the terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0089] The so-called processor may be a central processing unit (CPU), and this processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.
[0090] In some embodiments, the memory may be an internal storage unit of the terminal device, such as the hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory may also include both the internal storage unit and the external storage device of the terminal device. The memory is used to store an operating system, application programs, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory may also be used to temporarily store data that has been output or will be output.
[0091] It should be noted that for the content such as information interaction and execution process between the above-mentioned devices / units, since it is based on the same concept as the method embodiment of the present application, for its specific functions and the technical effects brought, reference can be specifically made to the method embodiment part, and details will not be elaborated here.
[0092] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example for illustration. In practical applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiment, and details will not be elaborated here.
[0093] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0094] The embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executed.
[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of the present application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device capable of carrying the computer program code to a terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0096] In the above embodiments, the descriptions of the various embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0097] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0098] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0099] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included within the protection scope of the present application.
Claims
1. A video processing method, characterized in that: The video processing method is applied to a first terminal device, the first terminal device stores a first panoramic video, and the video processing method includes: generating a first QR code based on first processing information, wherein the first processing information includes: control parameters related to a processing process of the first panoramic video; The first two-dimensional code is output.
2. The video processing method according to claim 1, characterized in that: The first processing information includes: first shooting data and / or first editing data, wherein the first shooting data is the camera shooting parameters involved in the process of shooting the first panoramic video, and the first editing data is data related to the editing process of the first panoramic video.
3. The video processing method according to claim 2, characterized in that: The first processing information includes first clipping data, and the first clipping data includes key frame parameters corresponding to the first panoramic video and inter-frame clipping operation data corresponding to the first panoramic video. Correspondingly, generating a first QR code based on the first processing information includes: Generate a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video; generating a second hash value corresponding to the first panoramic video based on the inter-frame clipping operation data corresponding to the first panoramic video; A first QR code is generated based on a first hash value corresponding to the first panoramic video and a second hash value corresponding to the first panoramic video.
4. The video processing method according to claim 3, characterized in that: The first panoramic video includes at least two video clips, each of which is a sub-template. Correspondingly, the generating a first hash value corresponding to the first panoramic video based on the key frame parameters corresponding to the first panoramic video, generating a second hash value corresponding to the first panoramic video based on the inter-frame clipping operation data corresponding to the first panoramic video, and generating a first QR code based on the first hash value corresponding to the first panoramic video and the second hash value corresponding to the first panoramic video include: The following steps are performed for each sub-template respectively: a first hash value corresponding to the sub-template is generated based on the key frame parameters corresponding to the sub-template; a second hash value corresponding to the sub-template is generated based on the inter-frame clipping operation data corresponding to the sub-template; a third hash value corresponding to the sub-template is generated based on the first hash value corresponding to the sub-template and the second hash value corresponding to the sub-template; Based on the third hash values corresponding to all the sub-templates, first two-dimensional codes corresponding to all the sub-templates are generated, and the first two-dimensional codes corresponding to all the sub-templates carry the third hash values corresponding to all the sub-templates.
5. The video processing method according to claim 3, characterized in that: The video processing method further includes: If it is monitored that the first panoramic video is updated, the third hash value corresponding to the first panoramic video is updated, and a second QR code is generated based on the updated third hash value, the second QR code carries the updated third hash value, and the updated first panoramic video and the unupdated first panoramic video correspond to the same ID.
6. The video processing method according to claim 1, characterized in that: The first two-dimensional code carries the first processing information.
7. A video processing system, characterized in that: include: A first terminal device and a second terminal device, wherein: The first terminal device stores a first panoramic video, and the first terminal device is used to generate a first two-dimensional code based on first processing information, wherein the first processing information includes: control parameters related to a processing process of the first panoramic video, and then the first terminal device outputs the first two-dimensional code; The second terminal device is used to obtain the first processing information through the first QR code to process the second panoramic video.
8. A video processing device, characterized in that: The video processing device is applied to a first terminal device, the first terminal device stores a first panoramic video, and the video processing device includes: A two-dimensional code generating unit, configured to generate a first two-dimensional code based on first processing information, wherein the first processing information includes: control parameters related to a processing process of the first panoramic video; A two-dimensional code output unit is used to output the first two-dimensional code.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.