Video processing method, cloud server, electronic equipment and storage medium

By performing video processing on cloud servers and leveraging their abundant resources, the problem of poor user experience and unsatisfactory video processing results caused by the need for the client to remain open has been solved, achieving efficient and high-definition video processing effects.

CN118842931APending Publication Date: 2024-10-25ARASHI VISION INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410860664.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

In existing technologies, the client needs to remain open during video editing, resulting in a poor user experience. Furthermore, the limited resources of electronic devices lead to poor video processing quality and low processing efficiency after downloading.

Method used

Video processing is performed on a cloud server by obtaining a set of parameters to process the video. The client can be closed, and the rich resources of the cloud server are used to improve video quality and processing efficiency.

Benefits of technology

It improves the user experience and video processing quality, reduces data transmission time between the client and the cloud server, and enhances video processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842931A_ABST
    Figure CN118842931A_ABST
Patent Text Reader

Abstract

The invention relates to a video processing method, a cloud server, electronic equipment and a storage medium. The video processing method comprises the following steps: in response to a processing task sent by a client based on a first video, obtaining a parameter set corresponding to the processing task; and processing the first video based on the parameter set to obtain a second video, and in the processing process, the client can be in a closed state. The first video is processed in the cloud server, and the client can be in a closed state, so that the user experience is improved. Meanwhile, as the resources of the cloud server are rich, the image quality of the second video processed by the cloud server is high, and the video processing effect is improved. Moreover, before the second video is processed, the client only needs to send the parameter set to reduce the time of data transmission between the client and the cloud server, so that the video processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of video processing, and in particular to a video processing method, a cloud server, an electronic device and a storage medium. Background Art

[0002] With the development of video processing technology, users can edit the captured videos to obtain edited videos. However, during the editing process, the client needs to remain open, resulting in a poor user experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a video processing method, a cloud server, an electronic device and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a video processing method is provided, which is applied to a cloud server. The video processing method includes:

[0005] In response to a processing task sent by the client based on the first video, obtaining a parameter set corresponding to the processing task;

[0006] The first video is processed based on the parameter set to obtain a second video. During the processing, the client may be in a closed state.

[0007] According to a second aspect of an embodiment of the present disclosure, a video processing method is provided, which is applied to a client. The video processing method includes:

[0008] In response to a pre-operation on a first video in a cloud server, generating a parameter set corresponding to the pre-operation, wherein the pre-operation is an operation that is planned to be performed but not actually performed;

[0009] In response to the pre-operation processing instruction for the first video, a processing task is generated and sent to the cloud server. The processing task includes the parameter set. The cloud server is used to process the first video based on the parameter set to obtain a second video. During this processing process, the client can be in a closed state.

[0010] According to a third aspect of an embodiment of the present disclosure, a cloud server is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.

[0011] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the second aspect are implemented.

[0012] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0013] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0014] In response to a processing task sent by the client based on the first video, a parameter set corresponding to the processing task is obtained, and the first video is processed based on the parameter set to obtain a second video. Since the first video is processed on the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0017] Figure 1-1 is a schematic diagram of an image processing scene according to an exemplary embodiment;

[0018] Figure 1-2 is a schematic diagram showing an image processing scene according to another exemplary embodiment

[0019] Figure 2 is a flowchart of a method for uploading a file according to an exemplary embodiment;

[0020] Figure 3 is a flowchart of a file uploading method according to another exemplary embodiment;

[0021] Figure 4 is a flowchart of a file uploading method according to another exemplary embodiment;

[0022] Figure 5is a flowchart of a file uploading method according to another exemplary embodiment;

[0023] Figure 6 is a flowchart of a file uploading method according to another exemplary embodiment;

[0024] Figure 7 is a flow chart of a communication method according to an exemplary embodiment;

[0025] Figure 8 is a flow chart of a communication method according to another exemplary embodiment;

[0026] Fig. 9 is a flow chart of an image processing method according to an exemplary embodiment;

[0027] Fig.10 is a flowchart of an image processing method according to another exemplary embodiment;

[0028] Fig.11 is a flowchart of an image processing method according to another exemplary embodiment;

[0029] Fig.12 is a flowchart of an image processing method according to another exemplary embodiment;

[0030] Fig.13 is a flowchart of an image processing method according to another exemplary embodiment;

[0031] Fig.14 is a flowchart of an image processing method according to another exemplary embodiment;

[0032] Fig.15 is a flowchart of an image processing method according to another exemplary embodiment;

[0033] Fig.16 is a flowchart of a video processing method according to an exemplary embodiment;

[0034] Fig.17 is a flowchart of a video processing method according to another exemplary embodiment;

[0035] Fig.18 is a flowchart of a video processing method according to another exemplary embodiment;

[0036] Figure 19-1 is a schematic diagram of a rendering screen according to an exemplary embodiment;

[0037] Figure 19-2 is a schematic diagram of a rendering screen according to another exemplary embodiment;

[0038] Fig. 20 is a flowchart of a video processing method according to another exemplary embodiment;

[0039] Fig.21 is a flowchart of a video processing method according to another exemplary embodiment;

[0040] Fig. 22 is a flowchart of a video processing method according to another exemplary embodiment;

[0041] Fig.23 is a flowchart of a video processing method according to another exemplary embodiment;

[0042] Fig.24 is a flowchart of a video processing method according to another exemplary embodiment;

[0043] Fig.25 is a flowchart of a video sharing method according to an exemplary embodiment;

[0044] Fig.26 is a flow chart showing a method for an access terminal to play a target video according to an exemplary embodiment;

[0045] Fig. 27 is a flow chart showing a method for an access terminal to play a target video according to another exemplary embodiment;

[0046] Fig.28 is a flow chart showing a method for an access terminal to play a target video according to another exemplary embodiment;

[0047] Fig.29 is a flow chart showing a method for an access terminal to play a target video according to another exemplary embodiment;

[0048] Fig.30 is a flow chart showing a method for an access terminal to play a target video according to another exemplary embodiment;

[0049] Fig.31 is a flowchart of a video sharing method according to another exemplary embodiment;

[0050] Fig.32 is a flowchart of a video sharing method according to another exemplary embodiment;

[0051] Fig.33 is a flow chart showing a method of generating sharing data based on a user's sharing operation on a target video according to an exemplary embodiment;

[0052] Fig.34 is a flow chart showing generation of sharing data based on a user's sharing operation on a target video according to another exemplary embodiment;

[0053] Fig.35 is a flowchart of a video sharing method according to another exemplary embodiment;

[0054] Fig.36 It is a block diagram of a computer device according to an exemplary embodiment.

[0055] In the figure:

[0056] 1- cloud server; 2- client; 3- access terminal; 4- shooting device; 100- computer device; 101- computing unit; 102- ROM; 103- RAM; 104- bus; 105- input / output interface; 106- input unit; 107- output unit; 108- storage unit; 109- communication unit. DETAILED DESCRIPTION

[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims. It should also be understood that the term "and / or" used in the present invention refers to and includes any or all possible combinations of one or more associated listed items.

[0058] With the development of video processing technology, users can perform editing operations such as speed playback, time trimming, and perspective selection on the captured videos to add editing effects to the videos to make them more exciting and diverse. After the user performs the editing operation, the video processing of the editing operation will be performed so that it can be watched or shared.

[0059] In the related art, a video processing method is disclosed, in which a user performs a video editing operation on a client of an electronic device, and then the video processing of the editing operation is performed through the electronic device. Although this method can process videos that perform editing operations, during the video processing, the client needs to remain turned on, which affects the user experience. At the same time, due to the small resources of the electronic device, the processed video has the problem of poor effect. In addition, if the video to be edited is a video stored in a cloud server, the video needs to be downloaded before it can be processed, resulting in low efficiency of video processing.

[0060] Based on this, the present disclosure provides a video processing method, in which a cloud server obtains a parameter set corresponding to a processing task, and processes a first video according to the parameter set to obtain a second video. Since the first video is processed in the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, since the resources of the cloud server are richer than the resources of the electronic device, the image quality of the processed second video is high, thereby improving the effect of video processing. In addition, the first video is a video stored in the cloud server, and the second video can be processed by only transmitting the parameter set, thereby improving the efficiency of video processing.

[0061] For ease of understanding, the image processing scenario of the present disclosure is first described. Figure 1-1 and Figure 1-2 As shown, the image processing scenario includes a cloud server 1, a client 2, an access terminal 3 and a shooting device 4, and the shooting device 4 can be a camera. After the user takes a photo or video through the shooting device 4, the shooting device 4 can automatically upload the image file to the cloud server 1 when a communication connection is established with the communication device. After the user takes the image, the shooting device 4 may be in a shutdown state due to insufficient power or shutdown operation, and the power of the shooting device 4 is detected. After the power of the shooting device 4 reaches the preset power, the shooting device 4 turns on the upload function and automatically uploads the image file to the cloud server 1 to achieve imperceptible uploading of the image. After acquiring the image, the cloud server 1 processes the image to reduce the size of the image to reduce the network bandwidth required for image playback. When the user needs to play the image stored in the cloud server 1, the client 2 receives the image sent by the cloud server 1, processes the image and plays it. During the video playback in the image, the user performs a video editing operation on the client 2 to obtain the edited video. During the user's editing operation, the client 2 determines the data corresponding to the editing operation and saves it in the form of a parameter set. After the user performs the editing operation, the video after the editing operation needs to be exported or shared, and the cloud server 1 obtains the parameter set. During the export process, the cloud server 1 processes the video based on the parameter set to obtain the exported video. During the sharing process, the cloud server 1 obtains the corresponding sharing data when it recognizes that the client 2 sends a sharing task, and then sends the sharing data to the access terminal 3 that accesses the sharing task, so that the access terminal 3 displays the display effect corresponding to the sharing data when playing the video.

[0062] First, the method of uploading an image file in the image processing scenario of the present disclosure is described.

[0063] The present disclosure provides a method for uploading a file. Figure 2 As shown, the method includes:

[0064] S100. When the camera is turned off, detect the battery level of the camera.

[0065] S200: When the power level of the camera is greater than or equal to a preset power level, the upload function of the camera is enabled to send the image files that have not been uploaded in the camera to the cloud server.

[0066] In this embodiment, when the camera is in the off state, the power of the camera is detected to determine whether the power of the camera is sufficient to upload the image file. When the power of the camera is greater than or equal to the preset power, the power of the camera is sufficient to upload the image file, the upload function of the camera is turned on, and the image files that have not been uploaded in the camera are sent to the cloud server. By automatically turning on the upload function to send the image file to the cloud server when the power of the camera is sufficient, the user can upload the image file without turning on the camera in the off state, thereby improving the user experience. At the same time, since the user does not need to turn on the camera, the power consumption of the camera is reduced, and the image file can be uploaded when the power of the camera is low, thereby improving the reliability of file upload.

[0067] Exemplarily, the detection of the power level of the camera in step S100 may be performed by a microcontroller unit (MCU) of the camera.

[0068] In one embodiment, if Figure 3 As shown, the file upload method also includes:

[0069] S110: Determine the volume of image files in the camera that have not been uploaded.

[0070] S120: Determine a preset power level according to the volume of the image file that has not been uploaded.

[0071] In this embodiment, since the volume of the image files not uploaded in the camera is different, the time required to upload the image files is different, and the power consumed by the camera to upload the image files is different. The volume of the image files not uploaded in the camera is determined, and the preset power is determined according to the volume of the image files not uploaded. By determining the preset power according to the volume of the image files not uploaded, the camera will not be shut down due to insufficient power during the process of uploading the image files, thereby improving the reliability of file uploading.

[0072] In one embodiment, before determining the preset power according to the volume of the image file that has not been uploaded in step S120, the file uploading method further includes:

[0073] Determine the bandwidth of the network environment where the camera is located.

[0074] In step S120, the preset power is determined according to the volume of the image file that has not been uploaded in the following manner:

[0075] Determine the preset power consumption based on the volume of the image files that have not been uploaded and the bandwidth of the network environment.

[0076] In this embodiment, since the volume of the image files not uploaded in the camera is different and the bandwidth of the network environment in which the camera is located is different, the time required to upload the image files is different, and the power consumed by the camera to upload the image files is different. The volume of the image files not uploaded in the camera and the bandwidth of the network environment in which the camera is located are determined, and the preset power is determined based on the volume of the image files not uploaded and the bandwidth of the network environment. By determining the preset power based on the volume of the image files not uploaded and the bandwidth of the network environment, the camera will not be shut down due to insufficient power during the process of uploading image files, thereby improving the reliability of file uploading.

[0077] Exemplarily, the preset power level may be determined in the above manner or may be pre-set in the camera, which is not limited here.

[0078] In one embodiment, the sending of the image files not uploaded in the camera to the cloud server in step S200 may be determined in the following manner:

[0079] Automatically send the un-uploaded image files in the camera to the cloud server.

[0080] In this embodiment, by automatically sending the image files that have not been uploaded in the camera to the cloud server, the image files can be uploaded to the cloud server in a way that the user is not aware of, thereby improving the user experience.

[0081] In one embodiment, sending the image files not uploaded in the camera to the cloud server in step S200 can also be determined by the following method:

[0082] Send a prompt message, which is used to prompt the user to send the image files that have not been uploaded in the camera to the cloud server.

[0083] In response to an approval operation for the prompt information, the image files not uploaded in the camera are sent to the cloud server.

[0084] In this embodiment, a prompt message is sent to prompt the user whether to send the unuploaded image files to the cloud server, thereby avoiding sending image files that do not need to be uploaded to the cloud server and occupying the storage space of the cloud server, thereby improving the reliability of file upload.

[0085] In one embodiment, when the camera is in a powered-off state in step S100, the power level of the camera is detected and determined by:

[0086] When the camera is turned off and charging, check the battery level of the camera.

[0087] In this embodiment, since the camera may be automatically shut down due to low power, the camera cannot start the upload function and needs to be charged. When the camera is in the shutdown charging state, the power of the camera gradually increases, and the power of the camera is detected to determine whether the power of the camera is sufficient to upload the image file. By detecting the power of the camera in the shutdown charging state, the interruption of image file upload or the inability to upload image files due to insufficient power of the camera is avoided, thereby improving the reliability of file upload.

[0088] In one embodiment, sending the image files not uploaded in the camera to the cloud server in step S200 can also be determined in the following manner:

[0089] Send the unuploaded image files in the camera to the cloud server in multi-part upload.

[0090] In this embodiment, since the image file can be divided into multiple file segments in the segmented upload mode, and the multiple file segments can be uploaded in parallel. By sending the image files that have not been uploaded in the camera to the cloud server in the segmented upload mode, the image file upload speed is fast, thereby improving the efficiency of file upload. At the same time, since the image file upload time is reduced, the possibility of interruption of image file upload due to exhaustion of camera power is reduced, thereby improving the reliability of file upload.

[0091] In one embodiment, if Figure 4 As shown, in the above step, the image files not uploaded in the camera are sent to the cloud server in the form of segmented uploads by the following method:

[0092] S210: Obtain the segment volume, segment quantity and upload address of the image file that has not been uploaded from the cloud server.

[0093] S220: Segment the image file that has not been uploaded according to the slice volume and the slice quantity to obtain multiple file segments.

[0094] S230: Send the file segments to the upload address in parallel.

[0095] In this embodiment, the slice volume, the number of slices and the upload address of the image file that has not been uploaded are obtained from the cloud server to determine how to split the image file and the location to which the split image file is sent. The image file that has not been uploaded is split according to the slice volume and the number of slices to obtain multiple file segments and each file segment is sent in parallel to the upload address so that the cloud server can identify each file segment. By uploading the image file in segments according to the slice volume, the number of slices and the upload address obtained from the cloud server, it is avoided that the cloud server cannot recognize the file segments when the image file can be uploaded quickly, thereby improving the reliability of file upload.

[0096] Exemplarily, after sending the file segments to the upload address in parallel in step S230, the above step of sending the image files not uploaded in the camera to the cloud server in a segmented upload manner further includes:

[0097] When a file segment is sent, an upload completion message is sent to the cloud server at an agreed interval until the number of times the receiving completion message or the upload completion message sent by the cloud server reaches a preset number.

[0098] In response to the reception completion information sent by the cloud server, it is determined that the reception of the file segment is completed.

[0099] When the number of times the upload completion information is sent reaches a preset number, it is determined that the file segment has failed to be received, and the file segment is uploaded again.

[0100] The value of the agreed time may be 5s, 10s, 20s, etc. The value of the preset number of times may be 5 times, 10 times, 20 times, etc.

[0101] In one embodiment, before sending the image files not uploaded in the camera to the cloud server in step S200, the file uploading method further includes:

[0102] Scan the identification list in the camera, each identification in the identification list corresponds to an image file.

[0103] Based on the identification list, identify the image files that have not been uploaded.

[0104] In this embodiment, the image files that have not been uploaded are determined by identifying the list, thereby avoiding missing or repeated uploading of image files, thereby improving the reliability of file uploading.

[0105] In one embodiment, each identifier corresponds to an upload status. In the above step, the image files that have not been uploaded are determined according to the identifier list in the following manner:

[0106] It is determined that the image file corresponding to the identifier whose upload status is the not-uploaded status is the not-uploaded image file.

[0107] In this embodiment, since each identifier corresponds to an upload status and an image file, the upload status of the identifier can reflect whether the image file is uploaded. By determining that the image file corresponding to the identifier whose upload status is not uploaded is the image file not uploaded, the image file not uploaded can be clearly distinguished to avoid missing the image file upload, thereby improving the reliability of file upload.

[0108] In one embodiment, after sending the image files not uploaded in the camera to the cloud server in step S200, the file uploading method further includes:

[0109] The upload status of the identifier corresponding to the image file sent to the cloud server in the identifier list is adjusted to the uploaded status.

[0110] In this embodiment, by adjusting the upload status of the identifier corresponding to the image file sent to the cloud server in the identifier list to the uploaded status, repeated uploading of the image file sent to the cloud server is avoided, thereby improving the reliability of file uploading.

[0111] In one embodiment, the file uploading method further includes:

[0112] After the camera shoots the image file, an identification of the image file is generated.

[0113] Adds an identity to the identity list.

[0114] Send the list of identifiers to the cloud server.

[0115] In this embodiment, after the camera shoots an image file, an identifier of the image file is generated, so that each image file corresponds to an identifier. The identifier is added to the identifier list so that the image file can be uploaded to the cloud server. The identifier list is sent to the cloud server so that the cloud server saves the identifier list. By sending the identifier list to the cloud server after shooting the image file, the identifier list can be obtained through the cloud server in the event of a camera failure to avoid missing or repeated uploading of image files, thereby improving the reliability of file uploading.

[0116] In one embodiment, after the camera captures the image file, the file uploading method further includes:

[0117] In response to a clipping operation on an image file in a camera, a target parameter file corresponding to the clipping operation is generated, where the clipping operation is an operation that is planned to be executed but not actually executed.

[0118] The sending of the image files not uploaded in the camera to the cloud server in step S200 can also be determined in the following manner:

[0119] In response to a processing instruction for a clipping operation on an image file in a camera, a processing task is generated, and the processing task and the image file not uploaded in the camera are sent to a cloud server.

[0120] Among them, the processing task includes a target parameter file. The cloud server is used to process the image file based on the target parameter file and export the target image file. The target image file is a file obtained by actually executing the operation data in the target parameter file on the image file. The operation data is generated based on the editing operation of the image file.

[0121] In this embodiment, after shooting an image file, the user may need to perform a clipping operation on the image file to add the effect of the clipping operation to the image file. In response to the clipping operation on the image file in the camera, a target parameter file corresponding to the clipping operation is generated, so that the target parameter file contains the operation data corresponding to the clipping operation. Since the camera has few resources, if the target image file is exported in the camera, the export effect of the target image file is poor and the export efficiency is low. In response to the processing instruction of the clipping operation on the image file in the camera, a processing task is generated, and the processing task and the image file not uploaded in the camera are sent to the cloud server to export the target image file through the cloud server. Since the cloud server has abundant resources, the target image file exported by the cloud server has high image quality, thereby improving the effect of image file export. At the same time, since the target parameter file is small in size and is uploaded to the cloud server at the same time as the image file, the upload of the target parameter file has little impact on the upload of the image file, thereby improving the reliability of file upload. In addition, since the image file can be clipped immediately after the image file is shot, it is avoided that the user subsequently searches for the shot image file, thereby improving the user experience.

[0122] In one embodiment, after scanning the identification list in the camera in the above step, the file uploading method further includes:

[0123] In case the identification list scan fails, the identification list is obtained from the cloud server.

[0124] In this embodiment, when the camera fails and cannot scan the identification list, the identification list is obtained from the cloud server to upload the image file to avoid missing or repeated uploading of the image file, thereby improving the reliability of file uploading.

[0125] In one embodiment, the name of the identifier is composed of the serial number of the camera and the time when the image file is generated, so that the identifier is unique in the identifier list.

[0126] In this embodiment, since the serial number of each camera is unique and the same camera can only generate one image file at the same time, the name of the identifier is formed by the serial number of the camera and the generation time of the image file to make the identifier unique in the identifier list. By combining the serial number of the camera and the generation time of the image file to make the identifier unique, it is avoided that the image file is missed or repeatedly uploaded due to duplicate identifiers, thereby improving the reliability of file upload.

[0127] Exemplarily, in addition to the camera's serial number and the time the image file was generated, the name of the identifier can also be composed of the camera's serial number and the time the image file was taken. The name of the identifier can also be composed of the camera's serial number, the time the image file was taken, and the time the image file was generated.

[0128] In one embodiment, if Figure 5 As shown, the enabling of the upload function of the camera in step S200 is determined in the following manner:

[0129] S240, controlling the upload unit in the camera to run, where the upload unit is used to upload data to a cloud server.

[0130] S250: Establish a communication connection with a communication device, where the communication device is used to realize data transmission between the camera and the cloud server.

[0131] In this embodiment, when uploading an image file to a cloud server, the upload unit in the camera is controlled to run to upload the data in the image file to the cloud server. A communication connection is established with a communication device so that the camera and the cloud server can perform data transmission through the communication device. By only turning on the upload unit during the process of uploading the image file, the camera does not need to be turned on to reduce the power consumption of the camera to avoid interruption of the transmission of the image file, thereby improving the reliability of file transmission.

[0132] Exemplarily, the uploading unit may include a communication unit and a storage unit. The communication device may be a router.

[0133] Exemplarily, after establishing a communication connection with a communication device, it is necessary to test whether the camera can communicate with the communication device. The client sends a detection request to the camera. The camera sends the detection request to the communication device. After receiving the detection request, the communication device sends a response identifier to the camera. The camera sends the response identifier to the client. In the case where the response identifier is a first response identifier, the client determines that the camera successfully establishes a communication connection with the communication device. In the case where the response identifier is a second response identifier, the client determines that the camera fails to establish a communication connection with the communication device. In the case where the response identifier is a third response identifier, the client determines that the communication device is a device that requires authentication.

[0134] In one embodiment, after establishing a communication connection with the communication device in step S250, the file uploading method further includes:

[0135] The first authentication data returned by the communication device is sent to the client to display an authentication interface on the client, where the authentication interface is formed based on the first authentication data.

[0136] In response to the authentication operation of the authentication interface displayed on the client, the second authentication data returned by the client is sent to the communication device, so that the communication device authenticates the camera according to the second authentication data.

[0137] In this embodiment, after establishing a communication connection with the communication device, it is determined whether the communication device is a device that requires authentication based on the response identifier returned by the communication device. If the communication device is a device that requires authentication, the first authentication data returned by the communication device is sent to the client so that the client assists the camera in authentication. In response to the authentication operation of the authentication interface displayed on the client, the second authentication data returned by the client is sent to the communication device so that the communication device authenticates the camera based on the second authentication data. By using the client to assist the camera in authenticating the communication device, the camera can connect to more types of communication devices for file upload, thereby improving the reliability of file upload.

[0138] In one embodiment, the second authentication data includes an account number and a verification code.

[0139] In this embodiment, after the account number and verification code are inputted in the authentication interface, the account number and verification code are sent to the communication device through the camera so that the communication device can verify the camera, thereby improving the reliability of file uploading.

[0140] Exemplarily, the authentication interface may display an account input field, a verification code acquisition control, and a verification code input field. After the user enters the account number and verification code, the client sends the account number and verification code as the second authentication data to the camera, so that the communication device authenticates the camera according to the second authentication data.

[0141] In one embodiment, after sending the second authentication data returned by the client to the communication device in the above step, the file upload method further includes:

[0142] The authentication identifier returned by the communication device is sent to the client. The authentication identifier is used to indicate whether the camera authentication is successful.

[0143] When the authentication success mark sent by the client is received, it is determined that the camera authentication is successful.

[0144] In this embodiment, after the second authentication data returned by the client is sent to the communication device, the communication device determines whether the camera has been authenticated based on the second authentication data. The authentication identifier returned by the communication device is sent to the client, so that the client determines whether the camera has been authenticated based on the authentication identifier. In the case where the authentication identifier indicates that the camera has been authenticated, the client sends an authentication success identifier to the camera, and determines that the authentication is successful when the authentication success identifier is received. By assisting the camera in determining whether the authentication is successful through the client, the camera can connect to more types of communication devices for file upload, thereby improving the reliability of file upload.

[0145] In one embodiment, before sending the first authentication data returned by the communication device to the client in the above step, the file upload method further includes:

[0146] The verification address sent by the client is transmitted to the communication device so that the communication device returns the first authentication data, and the verification address is formed based on the data returned by the communication device after the client and the communication device establish a communication connection.

[0147] The authentication identifier is also used to indicate whether the client is successfully authenticated. If the camera is successfully authenticated, the client is successfully authenticated.

[0148] In this embodiment, since the user may need to authenticate both the client and the camera through the communication device, if the operations are performed separately, two authentication processes are required, which makes the authentication complicated. Before sending the first authentication data returned by the communication device to the client, the client first establishes a communication connection with the communication device and forms a verification address based on the data returned by the communication device. The verification address sent by the client is transmitted to the communication device to apply for authentication again. The communication device needs to redirect the authentication interface, and the communication device returns the first authentication data. After performing the authentication operation on the authentication interface displayed by the client, the communication device authenticates the camera and the client at the same time, and the client authentication is successful when the camera authentication is successful. The client and the camera are authenticated successfully at the same time through one authentication operation, avoiding the complexity of authentication caused by performing two operations, thereby improving the reliability of communication.

[0149] Exemplarily, the check address may be an address formed by data returned by the communication device, or may be an address formed after processing the data returned by the communication device.

[0150] In one embodiment, the establishment of a communication connection with the communication device in step S250 may be determined in the following manner:

[0151] In response to a selection operation on a communication device at the client, a communication connection is established with the communication device selected by the selection operation.

[0152] In this embodiment, since the camera may not be able to actively scan the communication device, the client needs to assist the camera in selecting and connecting the communication device. In response to the selection operation of the communication device on the client, a communication connection is established with the communication device selected by the selection operation to realize data transmission between the camera and the cloud server. By assisting the camera in establishing a communication connection with the communication device through the client, more types of cameras can connect to the communication device for file upload, thereby improving the versatility of file upload.

[0153] In one embodiment, in the case where the communication device requires a password, establishing a communication connection with the communication device selected by the selection operation in the above step is determined by:

[0154] The password of the communication device sent by the client is transmitted to the communication device selected by the selection operation to establish a communication connection with the communication device.

[0155] Before performing the selection operation, the client has established a communication connection with the communication device through the password of the communication device.

[0156] In this embodiment, when the communication device requires a password, the camera cannot establish a communication connection with the communication device only by the selection operation, and the password of the communication device needs to be entered on the client for assistance. The password of the communication device sent by the client is transmitted to the communication device selected by the selection operation, so that the communication device establishes a communication connection with the camera after receiving the password. By assisting the camera to establish a communication connection with the communication device through the client, more types of cameras can connect to the communication device for file upload, thereby improving the versatility of file upload.

[0157] In one embodiment, establishing a communication connection with the communication device in step S250 may also be determined in the following manner:

[0158] Scan for connectable communication devices.

[0159] When the password of the connectable communication device is stored or the connectable communication device does not need a password, a communication connection is established with the communication device.

[0160] In this embodiment, the connectable communication devices are scanned to determine the communication devices with which the communication connection can be established. In the case where the password of the connectable communication device is stored, the camera can send the password to the communication device to establish a communication connection with the communication device. In the case where the connectable communication device does not require a password, the communication device can establish a communication connection without a password and establish a communication connection with the communication device. By automatically establishing a communication connection with the communication device, the user does not need to operate the client and the camera, thereby improving the user experience.

[0161] In one embodiment, establishing a communication connection with the communication device in step S250 may also be determined in the following manner:

[0162] Scan for connectable communication devices.

[0163] When the password of the connectable communication device is not stored and the connectable communication device requires a password, the name of the connectable communication device is transmitted to the client.

[0164] In response to the operation of inputting a password to a connectable communication device at the client, the password returned by the client is sent to the corresponding communication device to establish a communication connection with the communication device.

[0165] In this embodiment, the connectable communication devices are scanned to determine the communication devices with which the communication connection can be established. If the password of the connectable communication device is not stored and the connectable communication device requires a password, the camera cannot establish a communication connection with the communication device, and the name of the connectable communication device is sent to the client. In response to the operation of inputting a password for the connectable communication device on the client, the password returned by the client is sent to the corresponding communication device to establish a communication connection with the communication device. By assisting the camera in inputting the password through the client, more types of cameras can connect to the communication device for file upload, thereby improving the versatility of file upload.

[0166] Exemplarily, the camera pre-stores the names of the communication devices with historical connections. The scanning of the connectable communication devices in the above step may be to preferentially scan whether there are communication devices with historical connections.

[0167] In one embodiment, before controlling the uploading unit in the camera to run in step S240, the file uploading method further includes:

[0168] Check if there are any unuploaded image files in the camera.

[0169] The operation of the uploading unit in the control camera in step S240 is determined as follows:

[0170] If there are unuploaded image files in the camera, the upload unit in the camera is controlled to operate.

[0171] In this embodiment, before the upload unit is controlled to run, it is determined whether there are unuploaded image files in the camera to determine whether the upload unit is required to upload the image files. If there are unuploaded image files in the camera, the upload unit is required to upload the image files and the upload unit is controlled to run. By determining in advance whether there are unuploaded image files to determine whether to control the upload unit to run, it is avoided that the unuploaded image files cannot be uploaded, thereby improving the reliability of file upload.

[0172] In one embodiment, after determining whether there are any unuploaded image files in the camera in the above step, the file uploading method further includes:

[0173] If there are no unuploaded image files in the camera, keep the upload unit in the camera closed.

[0174] In this embodiment, by keeping the upload unit closed when it is not necessary to run, the upload unit is prevented from running and consuming extra power of the camera, thereby improving the reliability of file uploading.

[0175] In one embodiment, after sending the image files not uploaded in the camera to the cloud server in step S200, the file uploading method further includes:

[0176] When all the image files in the camera have been uploaded and there is no image file that can be uploaded, the upload unit is controlled to stop running.

[0177] In this embodiment, the uploading unit is controlled to stop running after all image files have been uploaded, so as to avoid extra consumption of camera power due to the running of the uploading unit, thereby improving the reliability of file uploading.

[0178] The present disclosure provides a method for uploading a file. Figure 6 As shown, the method includes:

[0179] S300: When the camera is powered off and charging, scan the identification list in the camera.

[0180] S310: Determine that the image file corresponding to the identifier whose upload status is not uploaded in the identifier list is the image file that has not been uploaded.

[0181] S320: If there are unuploaded image files in the camera, check the battery level of the camera.

[0182] S330: Determine the volume of the image files in the camera that have not been uploaded.

[0183] S340: Determine a preset power level according to the volume of the image file that has not been uploaded.

[0184] S350: When the power level of the camera is greater than or equal to the preset power level, control the uploading unit to operate.

[0185] S360: Establish a communication connection with a communication device.

[0186] S370, obtaining the segment volume, segment quantity and upload address of the image file that has not been uploaded from the cloud server.

[0187] S380: Segment the image file that has not been uploaded according to the slice volume and the number of slices to obtain multiple file segments.

[0188] S390. Automatically send each file fragment to the upload address in parallel.

[0189] S400: Adjust the upload status of the identifier corresponding to the image file sent to the cloud server in the identifier list to the uploaded status.

[0190] S410: When all image files in the camera have been uploaded and there is no image file that can be uploaded, the upload unit is controlled to stop running.

[0191] In this embodiment, when the camera is in the off-charging state, the power of the camera gradually increases, and the image files that have been taken and not uploaded can be uploaded to the cloud server. Scan the identification list in the camera, and determine that the image files corresponding to the identifications in the identification list whose upload status is not uploaded are the image files that have not been uploaded, so as to determine whether there are image files that have not been uploaded. In the case that there are image files that have not been uploaded in the camera, detect the power of the camera to determine the extent to which the camera can upload image files. Determine the volume of the image files that have not been uploaded in the camera, and determine the preset power according to the volume of the image files that have not been uploaded to determine the power required to upload the image files. In the case that the power of the camera is greater than or equal to the preset power, control the upload unit to run, and establish a communication connection with the communication device to upload the image files. Obtain the fragment volume, number of fragments and upload address of the image files that have not been uploaded from the cloud server, and upload the image files that have not been uploaded in fragments based on the fragment volume, number of fragments and upload address to increase the speed of file upload. Adjust the upload status of the identification corresponding to the image file sent to the cloud server in the identification list to the uploaded status, and in the case that all image files in the camera have been uploaded and there are no image files that can be uploaded, turn off the upload unit to reduce the power consumed by the camera. By automatically enabling the upload function to send image files to the cloud server when the camera has enough power, users can upload image files without turning on the camera when it is turned off, thereby improving the user experience. At the same time, since users do not need to turn on the camera, the camera's power consumption is reduced, so that image files can be uploaded when the camera's power is low, thereby improving the reliability of file upload.

[0192] The present disclosure provides a communication method, which is applied to a camera, such as Figure 7 As shown, the method includes:

[0193] S500: When a communication connection is established with a communication device, first authentication data returned by the communication device is sent to a client to display an authentication interface on the client, where the authentication interface is formed based on the first authentication data.

[0194] S600: In response to an authentication operation on the authentication interface displayed on the client, second authentication data returned by the client is sent to the communication device, so that the communication device authenticates the camera according to the second authentication data.

[0195] Among them, the communication device is used to realize data transmission between the camera and the cloud server.

[0196] In this embodiment, when a communication connection is established with a communication device and the communication device needs to be authenticated, the first authentication data returned by the communication device is sent to the client, so that the client assists the camera in authentication. In response to the authentication operation of the authentication interface displayed on the client, the second authentication data returned by the client is sent to the communication device, so that the communication device authenticates the camera according to the second authentication data. By using the client to assist the camera in authenticating the communication device, the camera can connect to more types of communication devices, thereby improving the reliability of communication.

[0197] In one embodiment, the second authentication data includes an account number and a verification code.

[0198] In this embodiment, after the account number and verification code are inputted in the authentication interface, the account number and verification code are sent to the communication device through the camera so that the communication device can verify the camera, thereby improving the reliability of communication.

[0199] Exemplarily, the authentication interface may display an account input field, a verification code acquisition control, and a verification code input field. After the user enters the account number and verification code, the client sends the account number and verification code as the second authentication data to the camera, so that the communication device authenticates the camera according to the second authentication data.

[0200] In one embodiment, after sending the first authentication data returned by the communication device to the client in step S500, the communication method further includes:

[0201] The authentication identifier returned by the communication device is sent to the client. The authentication identifier is used to indicate whether the camera authentication is successful.

[0202] When the authentication success mark sent by the client is received, it is determined that the camera authentication is successful.

[0203] In this embodiment, after the second authentication data returned by the client is sent to the communication device, the communication device determines whether the camera is authenticated based on the second authentication data. The authentication identifier returned by the communication device is sent to the client, so that the client determines whether the camera is authenticated based on the authentication identifier. In the case where the authentication identifier indicates that the camera has passed the authentication, the client sends an authentication success identifier to the camera, and determines that the authentication is successful when the authentication success identifier is received. By assisting the camera in determining whether the authentication is successful through the client, the camera can connect to more types of communication devices, thereby improving the reliability of communication.

[0204] In one embodiment, before sending the first authentication data returned by the communication device to the client in step S500, the communication method further includes:

[0205] The verification address sent by the client is transmitted to the communication device so that the communication device returns the first authentication data, and the verification address is formed based on the data returned by the communication device after the client and the communication device establish a communication connection.

[0206] The authentication identifier is also used to indicate whether the client is successfully authenticated. If the camera is successfully authenticated, the client is successfully authenticated.

[0207] In this embodiment, since the user may need to authenticate both the client and the camera through the communication device, if the operations are performed separately, two authentication processes are required, which makes the authentication complicated. Before sending the first authentication data returned by the communication device to the client, the client first establishes a communication connection with the communication device and forms a verification address based on the data returned by the communication device. The verification address sent by the client is transmitted to the communication device to apply for authentication again. The communication device needs to redirect the authentication interface, and the communication device returns the first authentication data. After performing the authentication operation on the authentication interface displayed by the client, the communication device authenticates the camera and the client at the same time, and the client authentication is successful if the camera authentication is successful. Through a single authentication operation, the client and the camera are authenticated successfully at the same time, avoiding the complexity of authentication caused by performing two operations, thereby improving the convenience of communication.

[0208] Exemplarily, the check address may be an address formed by data returned by the communication device, or may be an address formed after processing the data returned by the communication device.

[0209] In one embodiment, the communication method further includes:

[0210] In response to a selection operation on a communication device at the client, a communication connection is established with the communication device selected by the selection operation.

[0211] In this embodiment, since the camera may not be able to actively scan the communication device, it is necessary to assist the camera in selecting and connecting the communication device through the client. In response to the selection operation of the communication device on the client, a communication connection is established with the communication device selected by the selection operation to realize data transmission between the camera and the cloud server. By assisting the camera in establishing a communication connection with the communication device through the client, more types of cameras can connect to the communication device, thereby improving the reliability of communication.

[0212] In one embodiment, in the case where the communication device requires a password, establishing a communication connection with the communication device selected by the selection operation in the above step is determined by:

[0213] The password of the communication device sent by the client is transmitted to the communication device selected by the selection operation to establish a communication connection with the communication device.

[0214] Before performing the selection operation, the client has established a communication connection with the communication device through the password of the communication device.

[0215] In this embodiment, when the communication device requires a password, the camera cannot establish a communication connection with the communication device only by the selection operation, and the password of the communication device needs to be entered on the client for assistance. The password of the communication device sent by the client is transmitted to the communication device selected by the selection operation, so that the communication device establishes a communication connection with the camera after receiving the password. By assisting the camera to establish a communication connection with the communication device through the client, more types of cameras can be connected to the communication device, thereby improving the reliability of communication.

[0216] In one embodiment, the communication method further includes:

[0217] Scan for connectable communication devices.

[0218] When the password of the connectable communication device is stored or the connectable communication device does not need a password, a communication connection is established with the communication device.

[0219] In this embodiment, the connectable communication devices are scanned to determine the communication devices with which the communication connection can be established. If the password of the connectable communication device is not stored and the connectable communication device requires a password, the camera cannot establish a communication connection with the communication device, and the name of the connectable communication device is sent to the client. In response to the operation of inputting a password for the connectable communication device on the client, the password returned by the client is sent to the corresponding communication device to establish a communication connection with the communication device. By assisting the camera in inputting the password through the client, more types of cameras can connect to the communication device, thereby improving the reliability of communication.

[0220] In one embodiment, the communication method further includes:

[0221] Scan for connectable communication devices.

[0222] When the password of the connectable communication device is not stored and the connectable communication device requires a password, the name of the connectable communication device is transmitted to the client.

[0223] In response to the operation of inputting a password to a connectable communication device at the client, the password returned by the client is sent to the corresponding communication device to establish a communication connection with the communication device.

[0224] In this embodiment, the connectable communication devices are scanned to determine the communication devices with which the communication connection can be established. In the case where the password of the connectable communication device is stored, the camera can send the password to the communication device to establish a communication connection with the communication device. In the case where the connectable communication device does not require a password, the communication device can establish a communication connection without a password and establish a communication connection with the communication device. By automatically establishing a communication connection with the communication device, the user does not need to operate the client and the camera, thereby improving the user experience.

[0225] The present disclosure provides a communication method. Figure 8 As shown, the method includes:

[0226] S700: In response to a selection operation on a communication device at a client, establish a communication connection with the communication device selected by the selection operation.

[0227] S710: Transmit the verification address sent by the client to the communication device.

[0228] S720: Send the first authentication data returned by the communication device to the client.

[0229] S730. In response to the authentication operation on the authentication interface displayed on the client, send the second authentication data returned by the client to the communication device.

[0230] S740: Send the authentication identifier returned by the communication device to the client.

[0231] S750: Upon receiving the authentication success identifier sent by the client, determine that the camera authentication is successful.

[0232] In this embodiment, since the camera cannot actively establish a communication connection with the communication device, in response to the selection operation of the communication device on the client, a communication connection is established with the communication device selected by the selection operation. The verification address sent by the client is transmitted to the communication device, so that the communication device redirects the authentication interface. The first authentication data returned by the communication device for directing the authentication interface is sent to the client to display the authentication interface on the client. In response to the authentication operation of the authentication interface displayed on the client, the second authentication data returned by the client is sent to the communication device, so that the communication device authenticates the camera and the client. The authentication identifier returned by the communication device is sent to the client, and when the authentication success identifier sent by the client is received, it is determined that the camera authentication is successful and the client authentication is successful. By using the client to assist the camera in authenticating the communication device, the camera can connect to more types of communication devices, thereby improving the reliability of communication. In addition, through one authentication operation, the client and the camera are authenticated successfully at the same time, avoiding the complexity of authentication caused by performing two operations, thereby improving the convenience of communication.

[0233] After uploading the image file to the cloud server, the cloud server can process the image, and the user can play the image stored in the cloud server through the client.

[0234] Next, the image processing and playback method in the image processing scenario of the present disclosure is described. The image file includes a first image.

[0235] The present disclosure provides an image processing method, which is applied to a cloud server, such as Fig. 9 As shown, the method includes:

[0236] S800: Receive a first image to be processed.

[0237] S900. In response to a playback request sent by a client, a second image generated based on the first image is sent to the client, so that the client plays the second image. The bandwidth required by the second image is smaller than the bandwidth required by the first image. The second image is a panoramic image or a wide-angle image.

[0238] In this embodiment, a first image to be processed is received, and a second image is generated based on the first image. In response to a playback request sent by a client, a panoramic / wide-angle second image is sent to the client, so that the client can play the second image at a lower bandwidth. By generating the second image based on the first image, the bandwidth required for the panoramic / wide-angle second image is lower than the bandwidth required for the first image, thereby reducing the possibility of image playback jamming. At the same time, since the first image is pre-processed on the cloud server, the image quality of the second image is better than the first image, thereby improving the effect of image playback.

[0239] Exemplarily, the first image and the second image may be videos or images.

[0240] In one embodiment, if Fig.10 As shown, after receiving the first image to be processed in step S800, the image processing method further includes:

[0241] S1000: Preprocess the first image to obtain a second image.

[0242] The preprocessing includes transcoding processing, and the transcoding processing is used to adjust one or more of the encoding format, projection format, and bit rate to reduce the volume of the image.

[0243] In this embodiment, the image volume is reduced by adjusting one or more of the encoding format, projection format, and bit rate of the image, and the bandwidth required for the panoramic / wide-angle second image is low, thereby reducing the possibility of image playback jamming.

[0244] In one embodiment, there are multiple first images, and the first images are taken by multiple cameras with different viewing directions. Fig.11 As shown, the first image is preprocessed in step S1000 to obtain the second image by the following method:

[0245] S1010: Perform synthesis processing on the multiple first images to obtain a third image, where the third image is a spherical panoramic image or a spherical wide-angle image.

[0246] S1020: Transcode the third image to obtain a second image, where the second image is a cubic panoramic image or a cubic wide-angle image.

[0247] The bandwidth required by the second image is smaller than the bandwidth required by the third image.

[0248] In this embodiment, since the camera includes multiple cameras with different viewing directions, and the images captured by the multiple cameras can be synthesized to obtain a panoramic image or a wide-angle image, the multiple first images are synthesized to obtain a panoramic / wide-angle third image whose projection format is a spherical format. Since the volume of the third image is large, the third image is transcoded to obtain a panoramic / wide-angle second image whose projection format is a cube (CubeMap) format. The second image is obtained by performing a transcoding process including adjusting the projection format on the third image. The small volume of the second image reduces the bandwidth required for the second image, thereby reducing the possibility of image playback jams. At the same time, since the synthesis process is performed on the cloud server, the camera only needs to upload the image captured by the camera without processing the captured image, thereby improving the effect of image processing.

[0249] Exemplarily, the cameras in the camera may be back-to-back fisheye cameras, or wide-angle cameras facing in different directions, etc.

[0250] Exemplarily, the third image may be a video or a picture.

[0251] Exemplarily, when the second image and the third image are videos, the bandwidth required for the second image may be, for example, 3 Mbps, 10 Mbps, etc., and the bandwidth required for the third image may be, for example, 120 Mbps.

[0252] In one embodiment, the synthesis process of the plurality of first images in step S1010 to obtain the third image is determined in the following manner:

[0253] The plurality of first images are stitched, stabilized and achromatized to obtain a third image.

[0254] In this embodiment, since the first images captured by multiple cameras have different framing directions and the field of view of each camera is less than 360°, the first images need to be spliced ​​to obtain a panoramic image or a wide-angle image. Since the camera may be in motion during the process of shooting the first image, causing the first image to shake, the spliced ​​image is subjected to anti-shake processing. Since the environment in which the camera is located when shooting the first image is different, there may be a certain color difference in the first image, and the image after anti-shake processing is subjected to achromatic aberration processing. By splicing, anti-shake and achromatic aberration processing of multiple first images, the image quality of the third image is improved so that the image quality of the second image after transcoding processing is good, thereby improving the effect of image playback.

[0255] In one embodiment, during the transcoding process of the third image, the encoding format of the third image is converted into a preset encoding format, the projection format of the third image is converted from a spherical format to a cubic format, and the bit rate of the third image is reduced.

[0256] In this embodiment, the encoding format of the third image is converted to a preset encoding format, and the volume of the third image is reduced by adjusting the encoding format. The projection format of the third image is converted from a spherical format to a cubic format, and the volume of the third image is reduced by adjusting the projection format. The bit rate of the third image is reduced, and the volume of the third image is reduced by adjusting the bit rate. By reducing the volume of the third image in a variety of ways, the volume of the third image can be greatly reduced for smooth playback, thereby reducing the possibility of image playback jamming.

[0257] Exemplarily, the preset format may be, for example, H.265 format. The bit rate of the third image may be reduced by, for example, adjusting the resolution of the third image, adjusting the frame rate of the third image, adjusting the compression ratio of the third image, and the like.

[0258] In one embodiment, the second image includes a first sub-image and a second sub-image. The third image is transcoded in step S1020 to obtain the second image in the following manner:

[0259] The third image is transcoded at different bit rates to obtain a first sub-image and a second sub-image.

[0260] The volume of the first sub-image is smaller than the volume of the second sub-image.

[0261] In this embodiment, by transcoding the third image at different bit rates to obtain a first sub-image and a second sub-image of different volumes, the corresponding sub-image can be sent to the client according to the different bandwidths to play the second image smoothly and clearly, thereby reducing the possibility of image playback being stuck and improving the image playback effect.

[0262] Exemplarily, the volume of the first sub-image may be, for example, 1 / 34 of the volume of the second image, and the volume of the second sub-image may be, for example, 1 / 11 of the volume of the second image.

[0263] In one embodiment, when the second image is a video, after the first image is preprocessed in step S1000 to obtain the second image, the image processing method further includes:

[0264] The first sub-image and the second sub-image are segmented in a preset manner to obtain segments of the first sub-image and the second sub-image in multiple time periods.

[0265] In this embodiment, although the volume of the second image is smaller than the first image and the third image, it still takes a certain amount of time for the client to receive the complete second image, and the user may only need to watch a portion of the second image. The first sub-image and the second sub-image are segmented in a preset manner to obtain segments of the first sub-image and the second sub-image in multiple time periods, so as to segment the first sub-image and the second sub-image into multiple small segments. By segmenting the first sub-image and the second sub-image into multiple segments, the second image can be sent to the client in segments, thereby reducing the possibility of image playback freezes.

[0266] Exemplarily, the preset manner may be a preset protocol format. The preset protocol may be an HLS protocol, a DASH protocol, or the like.

[0267] Exemplarily, the first image may also be a spherical panoramic image or a spherical wide-angle image. After multiple cameras with different framing directions in the camera respectively shoot images, the camera may perform stitching, anti-shake and achromatic aberration processing on the images to obtain the first image. In this case, the preprocessing only includes transcoding processing, but does not include synthesis processing.

[0268] In one embodiment, the second image includes a first sub-image and a second sub-image, and the volume of the first sub-image is smaller than the volume of the second sub-image. The sending of the second image generated based on the first image to the client in step S900 is determined by:

[0269] Determine the bandwidth of the client's network environment.

[0270] When the bandwidth of the network environment where the client is located is less than the preset bandwidth, the first sub-image is sent to the client.

[0271] When the bandwidth of the network environment where the client is located is greater than or equal to the preset bandwidth, the second sub-image is sent to the client.

[0272] In this embodiment, the bandwidth of the network environment in which the client is located is determined to determine whether the client can play the second image with high definition. When the bandwidth of the network environment in which the client is located is less than the preset bandwidth, the client cannot play the second image with high definition, and the first sub-image with a small volume is sent to the client. When the bandwidth of the network environment in which the client is located is greater than or equal to the preset bandwidth, the client can play the second image with high definition, and the second sub-image with a large volume is sent to the client. By determining the second image to be sent based on the network environment in which the client is located, it is avoided that the second image cannot be played smoothly or the second image is played with low definition, thereby reducing the possibility of image playback jamming and improving the image playback effect.

[0273] Exemplarily, in the above step, determining the bandwidth of the network environment where the client is located may be that the cloud server actively detects the bandwidth of the network environment where the client is located, or the cloud server obtains the bandwidth of the network environment detected by the client.

[0274] For example, the value of the preset bandwidth may be determined according to the volume of the second sub-image, and the value of the preset bandwidth may be 5 Mbps, 10 Mbps, 15 Mbps, and the like.

[0275] In one embodiment, when the second image is a video, the first sub-image and the second sub-image are both composed of segments in multiple time periods. The sending of the first sub-image to the client in the above step is determined by:

[0276] A first time point for playing the second image is determined.

[0277] The segment corresponding to the first moment in the first sub-image is sent to the client.

[0278] The sending of the second sub-image to the client in the above step is determined by:

[0279] A second time for playing the second image is determined.

[0280] The segment of the second sub-image corresponding to the second moment is sent to the client.

[0281] In this embodiment, since both the first sub-image and the second sub-image are composed of segments in multiple time periods, when sending the first sub-image or the second sub-image to the client, they can be sent one by one in segments. In order to reduce the time required for playing the first sub-image or the second sub-image, the segments corresponding to the moments that the user needs to watch are sent to the client first. Determine the first moment or the second moment for playing the second image, and send the segment corresponding to the first moment in the first sub-image or the segment corresponding to the second moment in the second sub-image to the client, so that the client can play it immediately after receiving the segment. By sending the segment corresponding to the first moment in the first sub-image or the segment corresponding to the second moment in the second sub-image to the client, only one segment needs to be sent to play the second image, thereby reducing the possibility of image playback jamming.

[0282] Exemplarily, after a segment corresponding to a first moment in the first sub-image or a segment corresponding to a second moment in the second sub-image is sent to the client, segments after the segment may be sent to the client in sequence, and then the remaining unsent segments may be sent to the client. Alternatively, the segments may be sent to the client in sequence.

[0283] Exemplarily, the first moment and the second moment may be the same or different.

[0284] In one embodiment, sending the second image generated based on the first image to the client in step S900 further includes:

[0285] A preset bandwidth is determined according to the volume of the second sub-image.

[0286] In this embodiment, due to the different volumes of the second sub-image, different bandwidths are required for smoothly playing the second sub-image. According to the volume of the second sub-image, a preset bandwidth is determined to send the second sub-image when the second sub-image can be smoothly played. By determining the preset bandwidth according to the volume of the second sub-image, the second image can be played clearly and smoothly, thereby reducing the possibility of image playback jamming and improving the image playback effect.

[0287] In one embodiment, the second image includes a first sub-image and a second sub-image, and the volume of the first sub-image is smaller than the volume of the second sub-image. When the second image starts to play, the first sub-image is sent to the client.

[0288] In this embodiment, since the second image is not stored in the client when the second image starts to play, it needs to receive the second image before it can be played. In order to successfully start the second image, the first sub-image with a small size is sent to the client when the second image starts to play. By sending the first sub-image when the second image starts to play, the user is prevented from waiting for a long time, thereby improving the reliability of image playback.

[0289] In one embodiment, when the second image is a video, the first sub-image is composed of segments in multiple time periods. The sending of the first sub-image to the client in the above step is determined by:

[0290] According to the playback request, a third time for playing the second image is determined.

[0291] The segment of the first sub-image corresponding to the third moment is sent to the client.

[0292] In this embodiment, since the first sub-image is composed of segments in multiple time periods, when sending the first sub-image to the client, it can be sent one by one in segments. In order to reduce the time required for the second image to start playing, the segment corresponding to the moment the user needs to watch is sent to the client first. The third moment of playing the second image is determined, and the segment corresponding to the third moment in the first sub-image is sent to the client, so that the client can play it immediately after receiving the segment. By sending the segment corresponding to the third moment in the first sub-image to the client, only one segment needs to be sent to play the first sub-image so that the second image can be successfully started, thereby improving the reliability of image playback.

[0293] Exemplarily, the third moment may be the same as or different from the first moment and the second moment.

[0294] In one embodiment, after sending the second image generated based on the first image to the client in step S900, the image processing method further includes:

[0295] A clipping request for the second image sent by the client is received, where the clipping request includes clipping data, and the clipping data is generated based on a pre-operation of the client on the second image.

[0296] Based on the editing data, the second image is edited.

[0297] In this embodiment, since the user can edit the second image during the playback of the second image. In order to prevent the electronic device on which the client is installed from having few resources and being unable to effectively edit the second image, an editing request for the second image sent by the client is received, and the second image is edited based on the editing data. Since the cloud server has abundant resources, the image quality after the cloud server edits the second image is high, thereby improving the effect of image processing. At the same time, before editing the second image, the client only needs to send an editing request to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of image processing.

[0298] The present disclosure provides an image processing method, which is applied to a cloud server, such as Fig.12 As shown, the method includes:

[0299] S1100, receiving a plurality of first images respectively captured by a plurality of cameras with different framing directions in a camera.

[0300] S1110 , performing stitching, anti-shake and achromatic aberration processing on the multiple first images to obtain a third image.

[0301] S1120 , performing transcoding processing with different bit rates on the third image to obtain a first sub-image and a second sub-image.

[0302] S1130: Segment the first sub-image and the second sub-image in a preset manner to obtain segments of the first sub-image and the second sub-image in multiple time periods.

[0303] S1140: In response to the playback instruction sent by the client, determine a third time for playing the second image according to the playback instruction.

[0304] S1150: Send the segment of the first sub-image corresponding to the third moment to the client.

[0305] S1160: Determine the bandwidth of the network environment where the client is located.

[0306] S1170: When the bandwidth of the network environment where the client is located is less than a preset bandwidth, determine a first time for playing the second image.

[0307] S1180: Send the segment corresponding to the first moment in the first sub-image to the client.

[0308] S1190: When the bandwidth of the network environment where the client is located is greater than or equal to a preset bandwidth, determine a second time for playing the second image.

[0309] S1200: Send the segment corresponding to the second moment in the second sub-image to the client.

[0310] In this embodiment, after the camera captures multiple first images respectively through multiple cameras with different viewing directions, multiple first images are received. Multiple first images are spliced, anti-shake and achromatic processing is performed on the multiple first images to synthesize the multiple first images to obtain a panoramic / wide-angle third image. The third image is transcoded with different bit rates to reduce the volume of the image to obtain a first sub-image and a second sub-image with different volumes. The first sub-image and the second sub-image are segmented in a preset manner to obtain segments of the first sub-image and the second sub-image in multiple time periods, so as to send corresponding segments according to the moment of playing the second image. In response to the play instruction sent by the client, the third moment of playing the second image is determined, and the segment corresponding to the third moment in the first sub-image is sent to the client to start playing the second image. During the playback of the second image, the bandwidth of the network environment where the client is located is determined to send the corresponding image according to the bandwidth of the network environment. When the bandwidth of the network environment where the client is located is less than the preset bandwidth, the first moment of playing the second image is determined, and the segment corresponding to the first moment in the first sub-image is sent to the client. When the bandwidth of the network environment in which the client is located is greater than or equal to the preset bandwidth, the second moment of the second image playback is determined, and the segment corresponding to the second moment in the second sub-image is sent to the client. In the process of preprocessing the first image, the image volume is reduced by adjusting one or more of the encoding format, projection format, and bit rate of the image, and the bandwidth required for the panoramic / wide-angle second image is low, thereby reducing the possibility of image playback jamming. At the same time, since the first image is preprocessed on the cloud server, the image quality of the second image is better than that of the first image, thereby improving the image playback effect. In addition, since the second image is small in size, the second image occupies less storage space on the cloud server, thereby reducing the occupation of cloud server resources.

[0311] The present disclosure provides an image processing method, which is applied to a client, such as Fig.13 As shown, the method includes:

[0312] S1300: Receive a playback instruction for a second image in a cloud server, and send a playback request to the cloud server based on the playback instruction, where the second image is a panoramic image or a wide-angle image, and the second image is generated based on the first image.

[0313] S1400: Receive and play a second image sent by a cloud server, where a bandwidth required by the second image is smaller than a bandwidth required by the first image.

[0314] In this embodiment, a playback instruction for the second image in the cloud server is received, and a playback request is sent to the cloud server based on the playback instruction, so that the cloud server sends the second image in response to the playback request. The second image sent by the cloud server is received, and the second image is played to achieve playback of the second image. Since the panoramic / wide-angle second image is generated based on the first image, the size of the second image is small and the required bandwidth is low, thereby reducing the possibility of image playback jamming. At the same time, since the first image is pre-processed in the cloud server, the image quality of the second image is better than the first image, thereby improving the effect of image playback.

[0315] In one embodiment, the second image is obtained based on preprocessing the first image.

[0316] The preprocessing includes transcoding processing, and the transcoding processing is used to adjust one or more of the encoding format, projection format, and bit rate to reduce the volume of the image.

[0317] In this embodiment, the image volume is reduced by adjusting one or more of the encoding format, projection format, and bit rate of the image, and the bandwidth required for the panoramic / wide-angle second image is low, thereby reducing the possibility of image playback jamming.

[0318] In one embodiment, the receiving and playing of the second image sent by the cloud server in step S1400 may be determined as follows:

[0319] The second image is adjusted from a cubic panoramic image or a cubic wide-angle image to a spherical panoramic image or a spherical wide-angle image and played.

[0320] In this embodiment, when playing a cubic panoramic image or a cubic wide-angle image, there may be distortion of the image at different viewing angles, which affects the effect of image playback. By adjusting the second image from a cubic panoramic image or a cubic wide-angle image to a spherical panoramic image or a spherical wide-angle image and playing it, the distortion of the image during image playback is eliminated, thereby improving the effect of image playback.

[0321] In one embodiment, the second image includes a first sub-image and a second sub-image, and the volume of the first sub-image is smaller than the volume of the second sub-image. The receiving and playing of the second image sent by the cloud server in step S1400 can also be determined by:

[0322] When the bandwidth of the network environment where the client is located is less than the preset bandwidth, the first sub-image sent by the cloud server is received and played.

[0323] When the bandwidth of the network environment where the client is located is greater than or equal to the preset bandwidth, the second sub-image sent by the cloud server is received and played.

[0324] In this embodiment, when the bandwidth of the network environment in which the client is located is less than the preset bandwidth, the client cannot smoothly play the second image with high definition, and receives and plays the first sub-image sent by the cloud server. When the bandwidth of the network environment in which the client is located is greater than or equal to the preset bandwidth, the client can smoothly play the second image with high definition, and receives and plays the second sub-image sent by the cloud server. By receiving and playing different second images according to the network environment, it is avoided that the second image cannot be played smoothly or the second image is played with low definition, thereby reducing the possibility of image playback jamming and improving the image playback effect.

[0325] In one embodiment, when the second image is a video, the first sub-image and the second sub-image are both composed of segments in multiple time periods. The receiving and playing of the first sub-image sent by the cloud server in the above step is determined by:

[0326] A segment corresponding to a first moment in the first sub-image sent by the cloud server is received and played, where the first moment is the moment when the second image is played.

[0327] The receiving and playing of the second sub-image sent by the cloud server in the above step is determined by the following method:

[0328] A segment corresponding to a second moment in the second sub-image sent by the cloud server is received and played, where the second moment is the moment when the second image is played.

[0329] In this embodiment, since both the first sub-image and the second sub-image are composed of segments in multiple time periods, when receiving the first sub-image or the second sub-image sent by the cloud server, the segments can be received one by one. In order to reduce the time required to play the first sub-image or the second sub-image, the segment corresponding to the moment the user needs to watch, that is, the segment corresponding to the first moment or the second moment, is received and played first. By receiving and playing the segment corresponding to the first moment in the first sub-image or the segment corresponding to the second moment in the second sub-image, only one segment needs to be received to play the second image, thereby reducing the possibility of image playback jamming.

[0330] In one embodiment, the second image includes a first sub-image and a second sub-image, and the volume of the first sub-image is smaller than the volume of the second sub-image. When the second image starts to play, the first sub-image sent by the cloud server is received and played.

[0331] In this embodiment, since the second image is not stored in the client when the second image starts to play, it needs to receive the second image before it can be played. In order to successfully start the second image, when the second image starts to play, the first sub-image with a small size is received and played. By receiving the first sub-image when the second image starts to play, the user is prevented from waiting for a long time, thereby improving the reliability of image playback.

[0332] In one embodiment, when the second image is a video, the first sub-image is composed of segments in multiple time periods. The receiving and playing of the first sub-image sent by the cloud server in the above step is determined by:

[0333] A segment of the first sub-image corresponding to a third moment is received and played back from the cloud server, where the third moment is a moment corresponding to the playback request.

[0334] In this embodiment, since the first sub-image is composed of segments in multiple time periods, when receiving the first sub-image sent by the cloud server, the segments can be received one by one. In order to reduce the time required to start playing the second image, the segment corresponding to the moment the user needs to watch, that is, the segment corresponding to the play request, is received and played first. By receiving and playing the segment corresponding to the third moment in the first sub-image, only one segment needs to be received to successfully start playing the second image, thereby improving the reliability of image playback.

[0335] In one embodiment, during the process of playing the second image, the image processing method further includes:

[0336] The played portion of the second image is cached.

[0337] In this embodiment, by caching the played portion of the second image, when the portion is played again, there is no need to receive the second image and the second image can be played quickly, thereby improving the user experience.

[0338] In one embodiment, after receiving and playing the second image sent by the cloud server in step S1400, the image processing method further includes:

[0339] Based on the pre-operation on the second image, a clipping request including clipping data is generated.

[0340] The editing request is sent to the cloud server so that the second image is edited by the cloud server.

[0341] In this embodiment, since the user can edit the second image during the playback of the second image, a editing request containing editing data is generated based on the pre-operation of the second image. In order to prevent the electronic device installed with the client from having few resources and being unable to effectively edit the second image, the editing request is sent to the cloud server so that the second image can be edited by the cloud server. Since the cloud server has abundant resources, the image quality after the cloud server edits the second image is high, thereby improving the effect of image processing. At the same time, before editing the second image, the client only needs to send a editing request to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of image processing.

[0342] Exemplarily, the pre-operation is an operation that is planned to be executed but not actually executed. The pre-operation may be an editing operation. After the user performs the pre-operation on the second image through the client, the pre-operation is not actually executed on the client. That is, there is no second image after editing. After the cloud server performs editing on the second image, the pre-operation is actually executed on the cloud server. That is, the second image is an image after editing.

[0343] The present disclosure provides an image processing method, which is applied to a client, such as Fig.14 As shown, the method includes:

[0344] S1500: Receive a playback instruction for a second image in a cloud server, and send a playback request to the cloud server based on the playback instruction.

[0345] S1510: When the second image starts to play, receive a segment of the first sub-image corresponding to the third moment sent by the cloud server.

[0346] S1520: Adjust the segment in the first sub-image corresponding to the third moment from a cubic panoramic image to a spherical panoramic image and then play it.

[0347] S1530: Detect the bandwidth of the network environment.

[0348] S1540: When the bandwidth of the network environment is less than the preset bandwidth, receive a segment of the first sub-image corresponding to the first moment sent by the cloud server.

[0349] S1550: Adjust the segment corresponding to the first moment in the first sub-image from a cubic panoramic image to a spherical panoramic image and then play it.

[0350] S1560: When the bandwidth of the network environment is greater than or equal to the preset bandwidth, receive a segment of the second sub-image corresponding to the second moment sent by the cloud server.

[0351] S1570: Adjust the segment in the second sub-image corresponding to the second moment from a cubic panoramic image to a spherical panoramic image and then play it.

[0352] S1580: Cache the played portion of the second image.

[0353] In this embodiment, a play instruction for the second image in the cloud server is received, and a play request is sent to the cloud server based on the play instruction to play the second image on the client. When the second image starts to play, a segment corresponding to the third moment in the first sub-image sent by the cloud server is received, and the segment corresponding to the third moment in the first sub-image is adjusted from a cubic panoramic image to a spherical panoramic image and then played to start the second image. The bandwidth of the network environment is detected to receive the corresponding image according to the bandwidth of the network environment. When the bandwidth of the network environment is less than the preset bandwidth, the segment corresponding to the first moment in the first sub-image sent by the cloud server is received, and the segment is adjusted from a cubic panoramic image to a spherical panoramic image and then played to make the second image play smoothly. When the bandwidth of the network environment is greater than or equal to the preset bandwidth, the segment corresponding to the second moment in the second sub-image sent by the cloud server is received, and the segment is adjusted from a cubic panoramic image to a spherical panoramic image and then played to play the second image with high definition. The played part of the second image is cached so that it can be called when the part is played again. Since the panoramic / wide-angle second image is an image that has been adjusted in one or more of the encoding format, projection format, and bit rate, the second image is small in size and requires low bandwidth, thereby reducing the possibility of image playback jams. At the same time, since the first image is pre-processed on the cloud server, the image quality of the second image is better than the first image, thereby improving the image playback effect.

[0354] The present disclosure provides an image processing method. Fig.15 As shown, the method includes:

[0355] S1600: A cloud server receives a plurality of first images respectively captured by a plurality of cameras with different framing directions in a camera.

[0356] S1610: The cloud server performs stitching, anti-shake and achromatic aberration processing on the multiple first images to obtain a third image.

[0357] S1620: The cloud server performs transcoding processing with different bit rates on the third image to obtain a first sub-image and a second sub-image.

[0358] S1630: The cloud server segments the first sub-image and the second sub-image according to a preset method to obtain segments of the first sub-image and the second sub-image in multiple time periods.

[0359] S1640: The client receives a playback instruction for the second image in the cloud server, and sends a playback request to the cloud server based on the playback instruction.

[0360] S1650: In response to the playback request sent by the client, the cloud server determines a third time for playing the second image according to the playback request.

[0361] S1660: The cloud server sends the segment of the first sub-image corresponding to the third moment to the client.

[0362] S1670: The client adjusts the segment corresponding to the third moment in the first sub-image from a cubic panoramic image to a spherical panoramic image and then plays it.

[0363] S1680. The cloud server determines the bandwidth of the network environment where the client is located.

[0364] S1690: The cloud server determines the first time or the second time of playing the second image according to the bandwidth of the network environment where the client is located.

[0365] S1700. The cloud server sends the segment of the first sub-image corresponding to the first moment or the segment of the second sub-image corresponding to the second moment to the client.

[0366] S1710: The client adjusts the segment in the first sub-image corresponding to the first moment or the segment in the second sub-image corresponding to the second moment from a cubic panoramic image to a spherical panoramic image and then plays it.

[0367] In this embodiment, the cloud server receives multiple first images taken by multiple cameras with different viewing directions in the camera, and performs stitching, anti-shake and achromatic aberration processing on the multiple first images to obtain a panoramic / wide-angle third image. The cloud server performs transcoding processing with different bit rates on the third image, and divides the obtained first sub-image and second sub-image in a preset manner to obtain segments of the first sub-image and the second sub-image in multiple time periods to reduce the volume of the segments sent to the client. The client receives a playback instruction for the second image in the cloud server, and sends a playback request to the cloud server based on the playback instruction to play the second image. In response to the playback request sent by the client, the cloud server sends the segment corresponding to the third moment in the first sub-image to the client according to the playback request so that the second image is successfully played. The client adjusts the segment corresponding to the third moment in the first sub-image from a cubic panoramic image to a spherical panoramic image and then plays it to avoid distortion of the second image playback screen. The cloud server determines the bandwidth of the network environment where the client is located, and sends the corresponding segment in the first sub-image or the second sub-image to the client so that the second image can be played smoothly or in high definition. The client adjusts the segment in the first sub-image corresponding to the first moment or the segment in the second sub-image corresponding to the second moment from a cubic panoramic image to a spherical panoramic image and then plays it to avoid distortion of the second image playback. In the process of preprocessing the first image, the image volume is reduced by adjusting one or more of the encoding format, projection format, and bit rate of the image, and the bandwidth required for the panoramic / wide-angle second image is low, thereby reducing the possibility of image playback jamming. At the same time, since the first image is preprocessed on the cloud server, the image quality of the second image is better than that of the first image, thereby improving the image playback effect. In addition, since the second image is small in size, the second image occupies less storage space on the cloud server, thereby reducing the occupancy of cloud server resources.

[0368] During the video playback process, users can edit the video through the client, and process or share the edited video through the cloud server.

[0369] Then, the method for exporting a video in the image processing scenario of the present disclosure is described. The image file includes a first video.

[0370] The present disclosure provides a video processing method, which is applied to a cloud server, such as Fig.16 As shown, the method includes:

[0371] S1800. In response to a processing task sent by the client based on the first video, obtain a parameter set corresponding to the processing task.

[0372] S1900: Process the first video based on the parameter set to obtain a second video. During this processing, the client may be in a closed state.

[0373] In this embodiment, in response to the processing task sent by the client based on the first video, a parameter set corresponding to the processing task is obtained, and the first video is processed by the parameter set to process the second video. Since the first video is processed on the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0374] In one embodiment, the parameter set is generated based on a pre-operation performed by the client on the first video in the cloud server, where the pre-operation is an operation that is planned to be performed but not actually performed.

[0375] In this embodiment, after the user performs a pre-operation on the first video in the cloud server through the client, the video after the pre-operation needs to be processed by the cloud server, and the client generates a processing task. By processing the first video through the pre-operation that is planned to be executed but not actually executed, the first video can be processed on the cloud server instead of on the client, thereby improving the effect of video processing.

[0376] For example, the pre-operation may be a clipping operation. After the user performs the pre-operation on the first video through the client, the pre-operation is not actually performed on the client. That is, there is no video after the pre-operation on the first video. After the cloud server processes the second video, the pre-operation is actually performed on the cloud server. That is, the second video is the video after the pre-operation on the first video.

[0377] Exemplarily, the processing task, the first video and the second video are bound to the same account, so that the user can pre-operate the first video and play the second video on clients of different electronic devices.

[0378] In one embodiment, after the first video is processed based on the parameter set in step S1900 to obtain the second video, the video processing method further includes:

[0379] The obtained second video is sent to the client.

[0380] In the process of sending the second video to the client, there is no need to open the client.

[0381] In this embodiment, after the second video is processed, the second video is sent to the client so that the user can play or download the second video through the client. Since the second video is sent to the client without the user having to open the client, the user's experience is improved.

[0382] In one embodiment, sending the obtained second video to the client in the above step can be determined in the following manner:

[0383] The link address corresponding to the second video is sent to the client, so that the client downloads or plays the second video based on the link address.

[0384] In this embodiment, by sending the link address corresponding to the second video to the client, the user only needs to click the link address to download or play the second video on the client, thereby reducing the complexity of downloading or playing the second video, thereby improving the user experience.

[0385] In one embodiment, sending the obtained second video to the client in the above step can also be determined in the following manner:

[0386] The thumbnail corresponding to the second video is sent to the client, so that the client downloads or plays the second video based on the thumbnail.

[0387] In this embodiment, by sending the thumbnail corresponding to the second video to the client, the user only needs to click the thumbnail on the client to download or play the second video, thereby reducing the complexity of downloading or playing the second video, thereby improving the user's experience. In addition, since the thumbnail can intuitively reflect the screen of the second video, sending the thumbnail can prevent the user from accidentally downloading or playing the second video, thereby improving the reliability of video processing.

[0388] For example, the processed second video may be stored in a directory different from that of the first video in the cloud server to prevent the user from accidentally downloading or playing the first video.

[0389] In one embodiment, when there are multiple processing tasks, multiple second videos corresponding to the multiple processing tasks are processed in parallel.

[0390] Each processing task corresponds to a parameter set.

[0391] In this embodiment, due to the rich resources of the cloud server, when the number of processing tasks is multiple, multiple second videos are processed in parallel. By processing the second videos in parallel according to the corresponding parameter sets, the time required for the second video processing is reduced, thereby improving the efficiency of video processing.

[0392] In one embodiment, if Fig.17As shown, the first video is processed based on the parameter set in step S1900 to obtain the second video in the following manner:

[0393] S1910. Determine rendering data based on the parameter set.

[0394] S1920. Process the first video based on the rendering data to obtain a second video.

[0395] In this embodiment, since the corresponding parameter sets are different under different pre-operations, the rendering data is determined based on the parameter set. The first video is processed based on the rendering data to pre-operate the first video to obtain the second video. By processing the first video based on the rendering data determined based on the parameter set, the rendering data can be quickly and accurately added to the first video to pre-process the first video, thereby improving the efficiency of video processing.

[0396] In one embodiment, the rendering data is determined based on the parameter set in step S1910 in the following manner:

[0397] When the type of the parameter set is the first type, the data in the parameter set is transcoded to obtain rendering data.

[0398] When the type of the parameter set is the second type, a preset program is called to load the parameter set for rendering to obtain rendering data.

[0399] In this embodiment, when the type of the parameter set is the first type, the pre-operation is implemented in a simple manner without the need for algorithmic processing, and the rendering data can be obtained by transcoding the data in the parameter set. When the type of the parameter set is the second type, the pre-operation is implemented in a complex manner and requires algorithmic processing, and a preset program is called to load the parameter set for rendering to obtain the rendering data. By obtaining the rendering data in a corresponding manner according to the type of the parameter set, the complexity of obtaining the rendering data can be reduced and errors in the rendering data can be avoided, thereby improving the reliability of video processing.

[0400] For example, the first type may be a time cutting type, for example, a type corresponding to an operation of adjusting the duration of the first video or cutting the first video into multiple segments. The second type may be a type of multiple speed playback or viewing angle selection, for example, a type corresponding to an operation of adjusting the playback rate of the first video or adjusting the viewing angle of the first video at different times.

[0401] In one embodiment, if Fig.18 As shown, in the above steps, the preset program is called to load the parameter set for rendering, and the rendering data is determined in the following way:

[0402] S1911. Integrate the preset kernel into the preset program.

[0403] S1912, loading a page of a preset program with a preset kernel.

[0404] S1913. Based on the parameter set, rendering is performed on the page of the preset program using the preset kernel.

[0405] S1914. Obtain rendering data obtained by rendering from a preset program.

[0406] In this embodiment, a preset kernel is integrated into the preset program, and the preset kernel can perform screen rendering, graphics processor acceleration, data transmission, and graphical user interface display, etc., so that the cloud server supports the same rendering method as the electronic device. The page of the preset program is loaded with the preset kernel so that the page can display and update the rendered screen. Based on the parameter set, the page of the preset program is rendered through the preset kernel, and the rendered screen is displayed and updated on the page to generate rendering data. After the page rendering is completed, the rendering data obtained by rendering is obtained from the preset program to process the first video through the rendering data. By rendering the page of the preset program by the preset kernel to obtain rendering data, the cloud server can achieve a consistent rendering effect with the electronic device, thereby improving the reliability of video processing.

[0407] In one embodiment, the preset program is a browser, the preset kernel is a Chromium kernel, and the page of the preset program is a page made based on the HTML5 language.

[0408] In this embodiment, since the cloud server does not support the same rendering method as the electronic device when creating a page in HTML5 language, it is necessary to adjust the browser kernel so that the cloud server can achieve the same rendering effect as the electronic device. By setting the browser kernel to the Chromium kernel, the cloud server can render the page in the browser in the same rendering method as the electronic device, thereby improving the reliability of video processing.

[0409] For example, in the Chromium kernel, a rendering process (Render process) responsible for rendering, a graphics processor process responsible for graphics processor acceleration, and a main process (Browser process) for managing graphical user interfaces and data input and output can be integrated. Since the browser page needs to be dynamically updated during the rendering process through the Chromium kernel, JavaScript object registration can be used to enable JavaScript and Native to interact.

[0410] For example, Figure 19-1 As shown in FIG. 1 , the screen rendered by the Chromium kernel on the browser page may be a dashboard screen. Figure 19-2As shown, after the second video is processed, the screen of the second video is the screen in which the dashboard screen is added to the corresponding screen of the first video.

[0411] In one embodiment, if Fig. 20 As shown, the first video is processed based on the rendering data in step S1920 to obtain the second video by:

[0412] S1921. Decapsulate and decode the first video to obtain a plurality of first video frame data.

[0413] S1922. Render each first video frame data according to the rendering data to obtain a plurality of second video frame data.

[0414] S1923. Encode and encapsulate each second video frame data to obtain a second video.

[0415] In this embodiment, the first video is decapsulated and decoded to obtain a plurality of first video frame data, so as to split the first video into a plurality of video frames. According to the rendering data, each first video frame data is rendered to obtain a plurality of second video frame data, so as to add the rendering data to each video frame. Each second video frame data is encoded and encapsulated to obtain a second video, so as to combine the rendered video frames. By adding the rendering data to the first video frame by frame, it is avoided that some video frames are missed and affect the user's viewing, thereby improving the reliability of video processing.

[0416] Exemplarily, the first video frame data may be YUV data.

[0417] In one embodiment, the storage protocol of the parameter set is the Protocol Buffers protocol.

[0418] In this embodiment, by storing the parameter set using the Protocol Buffers protocol, the parameter set can be parsed on different types of devices and can be transmitted at a faster speed, thereby improving the reliability of video processing.

[0419] In one embodiment, the parameter set includes one or more of speed playback data, panoramic video viewing angle selection data, time cropping data, dynamic map data, and picture-in-picture data.

[0420] In this embodiment, through the speed playback data, the user can play the first video quickly or slowly to present different picture effects. Through the perspective selection data of the panoramic video, the user can directly watch the wonderful framing pictures in the panoramic video without selecting the perspective of the panoramic video. Through the time cropping data, the user can crop the wonderful clips in the first video to select the wonderful pictures in the first video. Through the dynamic map data, the dynamic map can be superimposed on the first video to add different special effects to the first video. Through the picture-in-picture data, multiple pictures with different perspectives in the first video can be displayed at the same time, so that the user can have an overview of the first video. Because the parameter set includes one or more of the multiple data, under the action of the parameter set, the second video can present the corresponding pictures wonderfully, thereby improving the effect of video processing.

[0421] In one embodiment, the speed playback data is generated by a user performing a speed playback operation on the first video during playback of the first video on the client.

[0422] In this embodiment, as the first video is being played on the client, the user can adjust the effect of the picture playback and process it by playing it fast or slow by double-speed playback operation for the wonderful pictures, thereby improving the effect of video processing.

[0423] Exemplarily, the speed playback operation can be achieved by the user clicking a speed playback button and selecting a corresponding playback rate, or by the user sliding a speed playback bar and selecting a corresponding playback rate.

[0424] In one embodiment, the viewing angle selection data is generated by a user's viewing angle selection operation on the first video during playback of the first video on the client.

[0425] In this embodiment, since the first video is played on the client, the user can select and process the wonderful viewing angles in the panoramic video, thereby improving the effect of video processing.

[0426] Exemplarily, the perspective selection operation may be achieved by the user dragging the screen of the first video to adjust the perspective of the screen, or may be achieved by the user sliding the screen of the first video to adjust the perspective of the screen.

[0427] In one embodiment, the time cropping data is generated when a user performs cropping operations on the first video at different time points during playback of the first video on the client.

[0428] In this embodiment, since the first video is played on the client, the user can retain and process the wonderful clips by cropping, thereby improving the effect of video processing.

[0429] For example, the cropping operation may be implemented by retaining or deleting the segments between two adjacent time points when the user clicks on different time points of the progress bar.

[0430] In one embodiment, the dynamic sticker data is generated when a user adds a dynamic sticker to the first video during playback of the first video on the client.

[0431] In this embodiment, during the playback of the first video on the client, the user can add dynamic stickers to the distinctive pictures to improve the picture effect and process them, thereby improving the effect of video processing.

[0432] Exemplarily, the dynamic sticker adding operation can be implemented by the user selecting the dynamic sticker to be added and setting the dynamic sticker at a corresponding position in the first video.

[0433] In one embodiment, the picture-in-picture data is generated when a user performs a picture-in-picture operation on the first video during playback of the first video on the client.

[0434] In this embodiment, during the playback of the first video on the client, the user simultaneously displays images from different viewing directions in the same video frame to increase the visible range of the image and process it, thereby improving the effect of video processing.

[0435] Exemplarily, the picture-in-picture operation may be implemented by the user selecting a picture-in-picture setting and selecting the desired setting to be implemented in a picture corresponding to the viewing angle of the picture-in-picture.

[0436] In one embodiment, during the second video processing, the video processing method further includes:

[0437] The progress of the second video processing is determined at every preset time interval.

[0438] In response to the query request sent by the client, the progress of the second video processing is sent to the client.

[0439] In this embodiment, since the user may want to query the progress of the second video processing, the progress of the second video processing is determined at a preset time interval. In response to the query request sent by the client, the progress of the second video processing is sent to the client, so that the user can view the progress of the second video processing through the client. By determining and sending the progress of the second video processing, the user can estimate the time required for the second video processing, thereby improving the reliability of the video processing. At the same time, since the progress of the second video processing is determined once at a preset time interval, frequent determination is avoided to occupy the resources of the cloud server, thereby further improving the reliability of the video processing.

[0440] For example, the preset time may range from 1s to 60s, and may be 2s, 10s, 30s, and the like.

[0441] For example, at each preset time interval, in addition to determining the progress of the second video processing, the remaining time of the second video processing can also be determined. In response to the query request sent by the client, in addition to sending the progress of the second video processing to the client, the remaining time of the second video processing can also be sent to the client so that the user can determine the time to wait.

[0442] In one embodiment, after obtaining the parameter set corresponding to the processing task in step S1800, the video processing method further includes:

[0443] Add the processing task corresponding to the parameter set to the processing queue.

[0444] The first video is processed based on the parameter set in step S1900 to obtain the second video, which can also be determined in the following manner:

[0445] Based on the parameter set in the processing queue and the first video, a second video is obtained.

[0446] After the first video is processed based on the counted files in step S1900 to obtain the second video, the video processing method further includes:

[0447] Deletes a processing task from the processing queue.

[0448] In this embodiment, since the cloud server can process multiple second videos in parallel, in order to avoid confusion in the processing of the second video, the processing task corresponding to the parameter set is added to the processing queue so that the second video corresponds to a unique processing task. In the process of processing the second video, the second video is obtained based on the parameter set and the first video in the processing queue to avoid confusion in the processing of the second video. After obtaining the second video, the processing task is deleted from the processing queue to avoid repeated processing of the second video and occupying the resources of the cloud server. By processing the second video based on the processing tasks in the processing queue, each second video is processed only once to avoid occupying the resources of the cloud server and avoiding omission of the second video, thereby improving the reliability of video processing.

[0449] The present disclosure provides a video processing method, which is applied to a cloud server, such as Fig.21 As shown, the method includes:

[0450] S2000. In response to a processing task sent by the client based on the first video, obtain a parameter set corresponding to the processing task.

[0451] S2010. Add the processing task corresponding to the parameter set to the processing queue.

[0452] S2020. When the type of the parameter set in the processing queue is the first type, transcode the data of the parameter set to obtain rendering data.

[0453] S2030: When the type of the parameter set in the processing queue is the second type, integrate the preset kernel into the preset program.

[0454] S2040, loading a page of a preset program with a preset kernel.

[0455] S2050: Based on the parameter set, rendering is performed on a page of a preset program using a preset kernel.

[0456] S2060: Obtain rendering data obtained by rendering from a preset program.

[0457] S2070: Decapsulate and decode the first video to obtain a plurality of first video frame data.

[0458] S2080. Render each first video frame data according to the rendering data to obtain a plurality of second video frame data.

[0459] S2090: Encode and encapsulate each second video frame data to obtain a second video.

[0460] S2100. Delete the processing task from the processing queue.

[0461] S2110. Send the link address corresponding to the second video to the client.

[0462] In this embodiment, in response to a processing task sent by a client based on the first video, a parameter set corresponding to the processing task is obtained to obtain data corresponding to the pre-operation. The processing task corresponding to the parameter set is added to the processing queue to process the second video based on the processing queue. When the type of the parameter set in the processing queue is the first type, the data of the parameter set is transcoded to obtain rendering data. When the type of the parameter set in the processing queue is the second type, a preset kernel is integrated in the preset program, and rendering is performed on the page of the preset program based on the preset kernel to obtain rendering data. The first video is decapsulated and decoded to obtain a plurality of first video frame data to split the first video into a plurality of video frames. According to the rendering data, each first video frame data is rendered to obtain a plurality of second video frame data. Each second video frame data is encoded and encapsulated to obtain a second video, so that each video frame of the second video has a corresponding rendering effect. The processing task is deleted from the processing queue to avoid repeated processing of the second video. The link address corresponding to the second video is sent to the client so that the user can download the second video through the client. Since the first video is processed on the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0463] The present disclosure provides a video processing method, which is applied to a client, such as Fig. 22 As shown, the method includes:

[0464] S2200: In response to a pre-operation on a first video in a cloud server, a parameter set corresponding to the pre-operation is generated, where the pre-operation is an operation that is planned to be performed but not actually performed.

[0465] S2300, in response to a processing instruction for a pre-operation on the first video, a processing task is generated and sent to a cloud server, wherein the processing task includes a parameter set, and the cloud server is used to process the first video based on the parameter set to obtain a second video. During this processing, the client can be in a closed state.

[0466] In this embodiment, in response to the pre-operation of the first video in the cloud server, the user pre-operates the first video and generates a parameter set corresponding to the pre-operation. In response to the processing instruction for the second video, a processing task is generated, and the processing task is sent to the cloud server so that the cloud server prepares the processing of the second video. Since the first video is processed in the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0467] In one embodiment, after sending the processing task to the cloud server in step S2300, the video processing method further includes:

[0468] Receive a link address corresponding to the second video sent by the cloud server.

[0469] Based on the link address, download or play the second video.

[0470] In this embodiment, after processing the second video, the cloud server sends the link address corresponding to the second video to the client, and receives the link address corresponding to the second video sent by the cloud server. Based on the link address, the user can download or play the second video. By allowing the user to download or play the second video in the form of a link address, the method of downloading or playing the second video is simple, thereby improving the user experience.

[0471] Exemplarily, in addition to receiving the link address corresponding to the second video sent by the cloud server, a thumbnail corresponding to the second video sent by the cloud server may also be received. Based on the thumbnail, the second video is downloaded or played.

[0472] In one embodiment, before receiving the link address corresponding to the second video sent by the cloud server in the above step, the video processing method further includes:

[0473] At preset intervals, a query request is sent to the cloud server.

[0474] Receive the progress of the second video processing sent by the cloud server.

[0475] Displays the progress of the second video processing.

[0476] In this embodiment, since the user may want to query the progress of the second video processing, a query request is sent to the cloud server at a preset time interval. In response to the query request sent by the client, the cloud server sends the progress of the second video processing to the client, and receives and displays the progress of the second video processing sent by the cloud server. By receiving and displaying the progress of the second video processing, the user can estimate the time required for the second video processing, thereby improving the reliability of the video processing. At the same time, since the query request is sent once at a preset time interval, frequent queries that affect the use of the electronic device are avoided, thereby further improving the reliability of the video processing.

[0477] Exemplarily, in addition to receiving and displaying the progress of the second video processing sent by the cloud server, the remaining time of the second video processing sent by the cloud server may also be received and displayed.

[0478] The present disclosure provides a video processing method, which is applied to a client, such as Fig.23 As shown, the method includes:

[0479] S2400. In response to a pre-operation on a first video in a cloud server, generate a parameter set corresponding to the pre-operation.

[0480] S2410. In response to a processing instruction for a pre-operation on the first video, generate a processing task, and send the processing task to a cloud server.

[0481] S2420. Send a query request to the cloud server at preset time intervals.

[0482] S2430: Receive the progress of the second video processing sent by the cloud server.

[0483] S2440: Display the progress of the second video processing.

[0484] S2450: Receive a link address corresponding to the second video sent by the cloud server.

[0485] S2460: Download the second video based on the link address.

[0486] In this embodiment, in response to the pre-operation of the first video in the cloud server, the user pre-operates the first video and generates a parameter set corresponding to the pre-operation. In response to the processing instruction of the second video, a processing task is generated, and the processing task is sent to the cloud server to process the second video through the cloud server. During the processing of the second video, a query request is sent to the cloud server at every preset time interval. The progress of the second video processing sent by the cloud server is received and displayed, so that the user knows the progress of the second video processing. After the second video is processed, the link address corresponding to the second video sent by the cloud server is received, so that the user knows that the second video processing is completed and can be downloaded. Since the first video is processed in the cloud server, the client can be in a closed state, thereby improving the user's experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, since before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0487] The present disclosure provides a video processing method. Fig.24 As shown, the method includes:

[0488] S2500: In response to a pre-operation on a first video in a cloud server, the client generates a parameter set corresponding to the pre-operation.

[0489] S2510: In response to a processing instruction for a pre-operation on the first video, the client generates a processing task.

[0490] S2520. The client sends the processing task to the cloud server.

[0491] S2530. The cloud server processes the first video based on the parameter set in the processing task to obtain a second video.

[0492] S2540: The cloud server sends the link address corresponding to the second video to the client.

[0493] S2550. The client displays the link address.

[0494] S2560. In response to a click operation on the link address, the client downloads the second video.

[0495] In this embodiment, in response to the pre-operation of the first video in the cloud server, the user pre-operates the first video, and the client generates a parameter set corresponding to the pre-operation. In response to the processing instruction for the second video, the user needs to process the second video, and the client generates and sends the processing task to the cloud server. The cloud server processes the first video based on the parameter set to obtain the second video, and sends the link address of the second video to the client. The client displays the link address and downloads the second video after clicking on the link address. Since the first video is processed in the cloud server, the client can be in a closed state, thereby improving the user experience. At the same time, due to the rich resources of the cloud server, the second video processed by the cloud server has high image quality, thereby improving the effect of video processing. In addition, since before processing the second video, the client only needs to send a parameter set to reduce the time of data transmission between the client and the cloud server, thereby improving the efficiency of video processing.

[0496] Finally, the video sharing method in the image processing scenario of the present disclosure is described. The image file includes a first video, and the first video is a target video.

[0497] In an exemplary embodiment, a video sharing method is provided, which is applied to a cloud server, such as Fig.25 As shown, the video sharing method includes:

[0498] S2600: In response to a sharing task sent by the client, obtain sharing data corresponding to the sharing task, where the sharing data includes data for determining a display effect of a target video.

[0499] In step S2600, the client may be a platform or application that supports functions such as video uploading, video editing, and video sharing. The client can send a sharing task to the cloud server according to the user's sharing needs. Different sharing tasks correspond to different target videos and sharing operations on the target videos. When the cloud server receives or identifies the sharing task sent by the client, it obtains the sharing data corresponding to the sharing task.

[0500] The sharing data is generated in the client, and the sharing data includes data for determining the display effect of the target video, that is, the video data of the target video is not actually changed when the sharing data is generated, nor does it carry the display effect expected to be displayed in the subsequent playback process. Instead, the display effect expected to be displayed by the target video under the corresponding sharing task can be determined in the subsequent sharing data, so as to display the determined display effect when the target video is played on the access end.

[0501] Specifically, the user operation is obtained during the process of playing the target video on the client, and the playback of the target video is controlled based on the user operation. When playing the target video, the client will record the playback path data of the target video. The playback path includes: playback angle, playback speed, playback duration, playback mode, playback special effects, etc., and the sharing data is generated based on the recorded playback path data. The playback effect displayed on the client is the display effect that the user wants to share. For example, the perspective data that the user wants to share is obtained on the client. The user's operation method is that the user displays the perspective on the client, and then the client automatically records the displayed perspective data. When the subsequent access end accesses, the perspective data is directly used to make the target video display the corresponding perspective to the sharee.

[0502] S2700. In response to the access of the access terminal to the sharing task, the sharing data is sent to the access terminal so that the access terminal displays the display effect when playing the target video.

[0503] In step S2700, the access end may be, for example, a browser or platform that supports the video playback function. When the access end accesses a sharing task, the cloud server can send the acquired sharing data to the access end, so that the access end can play the target video according to the sharing data, and display the display effect determined by the sharing data during the playback of the target video, so as to apply the display effect to the target video.

[0504] For example, if the user who is the video sharer wants to control the playback speed of the target video, the corresponding sharing operation can be performed on the target video through the client, and corresponding sharing data can be generated according to the sharing operation. When the user sends a sharing task through the client, the cloud server can obtain the sharing data corresponding to the sharing task. When the user who is the video sharing object accesses the sharing task through the access terminal, the cloud server can send the sharing data to the access terminal. Since the sharing data includes data for determining the display effect of the target video, the display effect can be determined according to the sharing data when the target video is played on the access terminal, and the target video can be played at the playback speed that the video sharer wants to control.

[0505] It can be understood that, unlike the related art of sharing the completed edited video, the video sharing method of the present application actually shares the original target video and the corresponding sharing data. When the target video is played, the display effect determined by the sharing data is added to the target video. There is no need to download and re-upload the target video locally, thus reducing the transcoding work.

[0506] In this embodiment, when the client sends a sharing task, by obtaining the sharing data corresponding to the sharing task, the sharing data can be sent to the access terminal when the access terminal accesses the sharing task, so that the access terminal displays the display effect when playing the target video, thereby realizing the sharing of the target video and the addition of the display effect. The sharing data includes data for determining the display effect of the target video, and the display effect can be applied to the target video through the sharing data when the access terminal plays the target video, without the need for repeated downloading and uploading of the target video or complicated transcoding process, thereby reducing the consumption of computing resources and time and improving the user experience.

[0507] In some embodiments, Fig.26 As shown, the shared data is used to perform the following steps in the access terminal:

[0508] S2810. Determine video playback indication information based on the shared data, and the video playback indication information can be recognized by a player at the access end.

[0509] In step S2810, after receiving the shared data sent by the cloud server, the access end can determine the video playback indication information that can be recognized by the player of the access end based on the shared data. The video playback indication information can control the player to play the video according to a specific mode or effect. For example, the video playback indication information can control the player to play the video at a specific playback speed.

[0510] S2820. Based on the video play indication information, control the player to play the target video so that the target video displays a display effect corresponding to the shared data.

[0511] In step S2820, the access end can control the player to play the target video in the manner indicated by the video playback indication information according to the video playback indication information. Since the video playback indication information corresponds to the sharing data, and the sharing data includes data for determining the display effect of the target video, the target video can display the display effect corresponding to the sharing data, so as to realize the display of the display effect in the target video.

[0512] In this embodiment, after receiving the sharing data sent by the cloud server, the access terminal can determine the video playback indication information that can be recognized by the player of the access terminal based on the sharing data, and control the player to play the target video in the manner indicated by the video playback indication information based on the video playback indication information, so that the target video displays the display effect corresponding to the sharing data, and the display effect is displayed in the target video, so that when the access terminal plays the target video, the display effect is applied to the target video through the sharing data, reducing the consumption of computing resources and time, and improving the user experience.

[0513] In some embodiments, the cloud server is communicatively connected to the shooting device, and the target video is shot by the shooting device and uploaded to the cloud server.

[0514] The cloud server is communicatively connected with the shooting device, which may include, for example, electronic devices with video shooting functions such as mobile phones and cameras. The shooting device can automatically upload the captured target video to the cloud server in real time, and can also upload the captured target video to the cloud server based on the upload operation performed by the user, thereby realizing the storage of the target video in the cloud server.

[0515] In this embodiment, the cloud server is communicatively connected with the shooting device, and the target video can be shot and uploaded through the shooting device, so that the target video can be stored in the cloud server, which is convenient for subsequent sharing of the target video and saves the storage space occupied by the target video in the shooting device, thereby improving the user experience.

[0516] In some embodiments, the display effect includes any one or any combination of the following effects: double-speed playback effect, viewing angle selection effect, duration reduction effect, orientation information display effect, picture-in-picture effect, color enhancement effect, and anti-shake effect.

[0517] The display effects displayed when the target video is played on the access end may include any one or any combination of effects such as double-speed playback effect, viewing angle selection effect, duration reduction effect, orientation information display effect, picture-in-picture effect, color enhancement effect, and anti-shake effect. Different display effects correspond to different sharing operations and different types of sharing data. The corresponding display effects can be determined according to different types of sharing data to add a variety of different display effects to the target video.

[0518] The speed playback effect, for example, can correspond to a sharing operation that controls the playback speed of the target video. When the display effect includes the speed playback effect, the shared data includes the speed playback data. When the target video displays the speed playback effect, the target video can be played at different speeds such as 0.5x, 1.5x, 2x, etc., to achieve acceleration or deceleration of video playback.

[0519] The perspective selection effect, for example, may correspond to a sharing operation that controls the current perspective of the target video. When the display effect includes the perspective selection effect, the sharing data includes the perspective selection data. When the target video displays the perspective selection effect, it can play video content under different shooting perspectives corresponding to the panoramic video to realize the selection of the current playback perspective.

[0520] The duration reduction effect, for example, can correspond to a sharing operation of cropping a target video. When the display effect includes the duration reduction effect, the shared data includes the duration reduction data. When the target video displays the duration reduction effect, only part of the video content in the complete target video can be played to achieve a reduction in the video duration.

[0521] The orientation information display effect may correspond to a sharing operation that displays orientation information, for example. When the display effect includes the orientation information display effect, the shared data includes the orientation information display data. When the target video displays the orientation information display effect, the orientation information corresponding to the video content can be displayed in a specific area of ​​the target video to achieve a visual display of the orientation information.

[0522] The picture-in-picture effect, for example, may correspond to a sharing operation of displaying a picture-in-picture. When the display effect includes a picture-in-picture effect, the shared data includes picture-in-picture data. When the target video has a picture-in-picture effect, different video content can be displayed in a specific area of ​​the target video to achieve synchronous display of additional video content.

[0523] The color enhancement effect, for example, may correspond to a sharing operation of enhancing color. When the display effect includes the color enhancement effect, the sharing data includes algorithm data. When the target video displays the color enhancement effect, the color of the target video can be adjusted to make the video picture color of the target video richer and more realistic.

[0524] The anti-shake effect, for example, can correspond to the sharing operation of picture anti-shake. When the display effect includes the anti-shake effect, the shared data includes algorithm data. When the target video shows the anti-shake effect, it can reduce or eliminate the picture shaking of the target video to a certain extent, making the video picture of the target video more stable.

[0525] In this embodiment, any one or any combination of speed playback effect, viewing angle selection effect, duration reduction effect, orientation information display effect, picture-in-picture effect, color enhancement effect, and anti-shake effect is used as the display effect displayed when the access terminal plays the target video. This can meet the sharing needs of video sharers, and when the video sharing object plays the target video through the access terminal, rich and powerful display effects are added to the target video, thereby improving the user experience.

[0526] In some embodiments, if the display effect includes a double-speed playback effect, the shared data includes double-speed playback data.

[0527] If the display effect displayed when the access terminal plays the target video includes a double-speed playback effect, the shared data obtained by the cloud server and sent to the access terminal includes the double-speed playback data, and the double-speed playback data is generated according to the sharing operation of controlling the playback speed of the target video.

[0528] like Fig. 27 As shown, the speed playback data is used to perform the following steps in the access terminal:

[0529] S2910: Determine, based on the speed playback data, a plurality of preset video segments included in the target video and video segment information corresponding to each preset video segment, wherein the video segment information is used to represent a start time, an end time, and a playback speed of the corresponding preset video segment.

[0530] In step S2910, after the access end receives the speed playback data sent by the cloud server, it can parse the speed playback data, split the completed target video into multiple preset video segments, and obtain the video segment information corresponding to each preset video segment. The video segment information is used to represent the start time, end time and set playback speed of the corresponding preset video segment in the target video, so that each preset video segment has a corresponding playback speed.

[0531] S2920: Based on the video segment information, play the target video at a playback speed corresponding to the current playback time.

[0532] In step S2920, when the target video is played at the access end, the target video can be played at a playback speed corresponding to the current playback time of the target video according to the video segment information, so that the target video displays a double-speed playback effect.

[0533] Exemplarily, there are four preset video segments determined according to the speed playback data, and the corresponding start times and end times of the four preset video segments in the target video are 0 seconds to 90 seconds, 90 seconds to 180 seconds, 180 seconds to 270 seconds, and 270 seconds to 360 seconds, respectively, and the corresponding playback speeds of the four preset video segments are 1x, 0.5x, 1.5x and 2x, respectively. When playing the target video, if the current playback time of the target video is 150 seconds, it can be determined that the current playback time is within the second preset video segment, then the target video can be played at 0.5x speed according to the video segment information of the second preset video segment.

[0534] In this embodiment, if the display effect displayed when the access terminal plays the target video includes a double-speed playback effect, and the shared data includes the double-speed playback data, the access terminal can determine the multiple preset video segments included in the target video and the video segment information corresponding to each preset video segment based on the double-speed playback data sent by the cloud server, and play the target video at a playback speed corresponding to the current playback time based on the video segment information, and apply the double-speed playback effect to the target video when the access terminal plays the target video, thereby reducing the consumption of computing resources and time and improving the user experience.

[0535] In some embodiments, the video segment information is also used to represent the actual playback duration of the corresponding preset video segment.

[0536] Since each preset video segment has a corresponding playback speed, the actual playback duration of each preset video segment is different from the original playback duration of the preset video segment in the target video, and the video segment information corresponding to each preset video segment is also used to characterize the actual playback duration of the preset video segment. The actual playback duration of the preset video segment can be calculated by subtracting the end time and the start time of the preset video segment in the target video, and then dividing the difference by the playback speed of the preset video segment.

[0537] The video segment information is also used to perform the following steps in the access terminal:

[0538] Based on the video segment information, the actual playback time corresponding to the current playback time is determined, and the actual playback time is displayed when the target video is played.

[0539] The actual playback time corresponding to the current playback time of the target video can be determined based on the video segment information, and the actual playback time is displayed when the target video is played, so that the user can directly observe the actual playback time of the target video after acceleration or deceleration. Exemplarily, it is determined that the preset video segment where the current playback time of the target video is located is the Nth preset video segment, and then the current playback time is subtracted from the start time of the Nth preset video segment in the target video, and then the difference is divided by the playback speed corresponding to the Nth preset video segment to obtain the actual playback time from the start time of the preset video segment to the current playback time, and finally the actual playback time is added to the actual playback time of the 1st to N-1th preset video segments, and the result is the actual playback time corresponding to the current playback time.

[0540] In this embodiment, the video segment information is also used to characterize the actual playback time of the corresponding preset video segment. The actual playback time corresponding to the current playback time can be determined based on the video segment information, and the actual playback time can be displayed when playing the target video, so that the user can intuitively observe the actual playback time of the target video after adding the speed-up playback effect, which is convenient for the user to understand the actual playback time of the target video and improves the user experience.

[0541] In some embodiments, if the display effect includes a perspective selection effect, the target video is a panoramic video, and the shared data includes perspective selection data.

[0542] If the display effect when the access end plays the target video includes a perspective selection effect, and the target video stored in the cloud server is a panoramic video with video content from multiple different shooting angles, the sharing data obtained by the cloud server and sent to the access end includes perspective selection data, and the perspective selection data is generated based on the sharing operation of controlling the current perspective of the target video. The sharing operation of controlling the current perspective of the target video may, for example, be an operation of freely selecting the field of view (FOV) of the panoramic video by double-finger manipulation or shaking or rotating the device corresponding to the client. The perspective selection data may, for example, be Freecapture data.

[0543] like Fig.28 As shown, the view selection data is used to perform the following steps in the access terminal:

[0544] S3010. Determine the current viewing angle corresponding to the current playback time based on the viewing angle selection data.

[0545] In step S3010, the target video corresponds to different perspective selection data at different current playback times. After the access end receives the perspective selection data sent by the cloud server, it can parse the perspective selection data to determine the current perspective corresponding to the current playback time, that is, the playback perspective corresponding to the panoramic video at the current playback time.

[0546] It should be noted that if the current viewing angle corresponding to a certain current playback time cannot be determined based on the viewing angle selection data, the viewing angle corresponding to the moment closest to the current playback time can be used as the current viewing angle corresponding to the current playback time, so as to avoid the target video being unable to be played due to the lack of the current viewing angle.

[0547] S3020. Play the target video at the current viewing angle corresponding to the current playback time.

[0548] In step S3020, when the target video is played at the access end, the target video is played at the current viewing angle corresponding to the current playback time of the target video, so that the target video displays the viewing angle selection effect.

[0549] In this embodiment, if the display effect displayed when the access terminal plays the target video includes a perspective selection effect, the shared data includes the perspective selection data. The access terminal can determine the current perspective corresponding to the current playback time based on the perspective selection data sent by the cloud server, and play the target video at the current perspective corresponding to the current playback time. When the access terminal plays the target video, the perspective selection effect is applied to the target video, which reduces the consumption of computing resources and time and improves the user experience.

[0550] In some embodiments, if the display effect includes a time reduction effect, the shared data includes time reduction data.

[0551] If the display effect displayed when the access terminal plays the target video includes a time reduction effect, the sharing data obtained by the cloud server and sent to the access terminal includes time reduction data. The time reduction data is generated according to the sharing operation of cropping the target video. The time reduction data can be, for example, Trim data.

[0552] Before sending the duration reduction data to the access end, the video sharing method further includes:

[0553] Based on the duration reduction data and the initial playlist file corresponding to the target video, the target playlist file is determined and added to the duration reduction data. The initial playlist file includes address information of at least one initial slice file, and the target playlist file includes address information of at least one target slice file.

[0554] The playlist file may be, for example, an M3U8 file in a video playlist format based on the HLS protocol, and the slice file may be, for example, a TS file. The playlist file includes a file link of at least one slice file, and these links point to the addresses of the respective HLS video streams, so that the playlist file can be used to guide the online playback of the video.

[0555] Before sending the duration reduction data to the access end, the cloud server can classify and judge the shared data. If it is recognized that the shared data includes duration reduction data, it is necessary to determine the target playlist file based on the duration reduction data and the initial playlist file corresponding to the target video, and add the determined target playlist file to the duration reduction data. The cloud server can send the target playlist file to the access end when sending the shared data subsequently.

[0556] Exemplarily, for example, the time reduction data can be parsed and the parsing result can be matched with the initial M3U8 file. According to the sharing operation of the cropped target video, the cropped and retained part of the data is extracted to generate a new M3U8 file, which is then sent to the access end together with the time reduction data.

[0557] The duration reduction data and the target playlist file are used to perform the following steps in the access terminal:

[0558] Based on the duration reduction data and the target playlist file, the target video is played.

[0559] After the access end receives the time reduction data and the target playlist file sent by the cloud server, it can parse the time reduction data and the target playlist file, and when the access end plays the target video, it plays the target video according to the parsing result, so that when playing the target video, only the corresponding video content within the cropping range can be played, so that the target video shows a time reduction effect.

[0560] In this embodiment, if the display effect displayed when the access terminal plays the target video includes a time reduction effect, the shared data includes the time reduction data, the cloud server can determine the target playlist file based on the obtained time reduction data and the initial playlist file corresponding to the target video, and the access terminal can play the target video based on the time reduction data and the target playlist file sent by the cloud server, and the time reduction effect is applied to the target video when the access terminal plays the target video, thereby reducing the consumption of computing resources and time and improving the user experience. In addition, using the target playlist file as the basis for playing the target video can automatically select the optimal bit rate and video quality according to the access terminal network bandwidth, thereby providing a smoother playback experience.

[0561] In some embodiments, the duration reduction data and the target playlist file are further used to perform the following steps in the access terminal:

[0562] Based on the duration reduction data and the target playlist file, the actual play time corresponding to the current play time is determined, and the actual play time is displayed when the target video is played.

[0563] Since only the portion of video content retained after cropping is played when the target video is played, the access end displays a time reduction effect when playing the target video, so that the current playback time of the target video is different from the actual playback time. The actual playback time corresponding to the current playback time of the target video can be determined based on the time reduction data and the target playlist file, and the actual playback time is displayed when the target video is played, so that the user can directly observe the actual playback time of the target video after cropping.

[0564] In this embodiment, the access terminal can determine the actual playback time corresponding to the current playback time based on the duration reduction data and the target playlist file, and display the actual playback time when playing the target video, so that the user can directly observe the actual playback time of the target video after cutting, which is convenient for the user to understand the actual duration of playing the target video and improves the user experience.

[0565] In some embodiments, if the display effect includes a position information display effect, the shared data includes the position information display data.

[0566] If the display effect when the access terminal plays the target video includes a position information display effect, the shared data obtained by the cloud server and sent to the access terminal includes position information display data. The position information display data is generated according to the sharing operation of displaying the position information. The position information display data can be, for example, Dashboard data.

[0567] like Fig.29 As shown, the position information display data is used to perform the following steps in the access terminal:

[0568] S3110. Based on the direction information display data, determine the direction data corresponding to the current playback time.

[0569] In step S3110, the target video corresponds to different position information display data at different current playback times. After the access end receives the position information display data sent by the cloud server, it can parse the position information display data to determine the position data corresponding to the current playback time. The position data can represent the position information of the current playback time. The position data can be obtained based on the GPS information or TBOX information at the end of the target video file.

[0570] It should be noted that if the direction data corresponding to a current playback time cannot be determined based on the direction information display data, the direction data corresponding to the moment closest to the current playback time can be used as the direction data corresponding to the current playback time to avoid the target video being unable to play due to the lack of direction data.

[0571] S3120: When playing the target video, display the position data corresponding to the current playing time in the first preset area.

[0572] In step S3120, when the target video is played on the access terminal, the position data corresponding to the current playback time can be displayed in the first preset area of ​​the target video, so that the target video has a position information display effect. Exemplarily, a dynamic map containing the position data can be generated according to the position information display data, and the dynamic map containing the position data can be drawn above the layer of the first preset area of ​​the target video through the layer drawing function of the player.

[0573] In this embodiment, if the display effect displayed when the access terminal plays the target video includes a position information display effect, the shared data includes the position information display data, the access terminal can determine the position data corresponding to the current playback time based on the position information display data sent by the cloud server, and when playing the target video, display the position data corresponding to the current playback time in the first preset area, and apply the position information display effect to the target video when the access terminal plays the target video, thereby reducing the consumption of computing resources and time and improving the user experience.

[0574] In some embodiments, the location data includes any one or more combinations of longitude and latitude data, altitude data, direction data, and path data.

[0575] When playing the target video, the orientation data corresponding to the current playback time is displayed in the first preset area, which may include any one or more combinations of longitude and latitude data, altitude data, direction data, and path data. The longitude and latitude data, altitude data, direction data, and path data can all represent the orientation information of the shooting device when the video is shot, so that the user can observe the orientation information corresponding to the video content in the first preset area of ​​the target video when the target video is played on the access terminal.

[0576] In this embodiment, any one or more combinations of longitude and latitude data, altitude data, direction data, and path data are used as orientation data, so that the user can observe a variety of orientation information corresponding to the video content in the first preset area of ​​the target video when the target video is played on the access terminal, thereby ensuring the comprehensiveness and accuracy of the orientation information display effect and improving the user experience.

[0577] In some embodiments, if the display effect includes a picture-in-picture effect, the shared data includes picture-in-picture data.

[0578] If the display effect displayed when the access terminal plays the target video includes a picture-in-picture effect, the shared data obtained by the cloud server and sent to the access terminal includes picture-in-picture data, and the picture-in-picture data is generated according to the sharing operation of displaying the picture-in-picture.

[0579] like Fig.30 As shown, the picture-in-picture data is used to perform the following steps in the access terminal:

[0580] S3210. Determine the picture-in-picture image corresponding to the current playback time based on the picture-in-picture data.

[0581] In step S3210, after receiving the picture-in-picture data sent by the cloud server, the access terminal can parse the picture-in-picture data to determine whether there is a corresponding picture-in-picture image at the current playback time.

[0582] S3220: When playing the target video, display a picture-in-picture image corresponding to the current playing time in the second preset area.

[0583] In step S3220, when the target video is played at the access terminal, if the current playback time has a corresponding picture-in-picture image, the picture-in-picture image corresponding to the current playback time is displayed in the second preset area of ​​the target video. For example, the picture-in-picture image corresponding to the current playback time can be determined according to the picture-in-picture data, and then the picture-in-picture image is rendered on the screen of the target video in the form of a small window corresponding to the second preset area.

[0584] In this embodiment, if the display effect displayed when the access terminal plays the target video includes a picture-in-picture effect, and the shared data includes picture-in-picture data, the access terminal can determine the picture-in-picture image corresponding to the current playback time based on the picture-in-picture data sent by the cloud server, and when playing the target video, display the picture-in-picture image corresponding to the current playback time in the second preset area, and apply the picture-in-picture effect to the target video when the access terminal plays the target video, thereby reducing the consumption of computing resources and time and improving the user experience.

[0585] In some embodiments, the target video is a panoramic video, the target video being played and the picture-in-picture image both have corresponding current viewing angles, and the current viewing angle corresponding to the target video being played is different from the current viewing angle corresponding to the picture-in-picture image.

[0586] The target video is a panoramic video with video content from multiple different shooting angles. The played target video and the picture-in-picture image displayed in the second preset area both have corresponding current viewing angles, and the current viewing angle corresponding to the played target video is different from the current viewing angle corresponding to the picture-in-picture image, so that the target video and the picture-in-picture image can respectively play and display the video content of the panoramic video at different shooting angles.

[0587] In this embodiment, the target video is a panoramic video, and the played target video and the picture-in-picture image both have corresponding current viewing angles, and the played target video and the displayed picture-in-picture image correspond to different current viewing angles respectively. The picture-in-picture effect of the target video can simultaneously play and display the video content of the panoramic video at different shooting angles, thereby improving the user experience.

[0588] In some embodiments, if the display effect includes a color enhancement effect, or if the display effect includes an anti-shake effect, or if the display effect includes a color enhancement effect and an anti-shake effect, the shared data includes algorithm data.

[0589] If the display effects carried by the access terminal when playing the target video include any one or both of the color enhancement effect and the anti-shake effect, the shared data obtained by the cloud server and sent to the access terminal includes algorithm data, and the algorithm data is generated according to the sharing operation of color enhancement or image anti-shake. For example, the algorithm data can be output through the algorithm database of the relevant algorithm according to the sharing operation of color enhancement or image anti-shake.

[0590] Before sending the algorithm data to the access end, the video sharing method also includes:

[0591] Transcode algorithm data.

[0592] Before sending the algorithm data to the access end, the algorithm data needs to be transcoded, and then the transcoded algorithm data is sent to the access end. When the access end plays the target video, there is no need to transcode these algorithm-dependent shared data. The received algorithm data can be directly used to play the target video, so that the target video can display the color enhancement effect or anti-shake effect corresponding to the algorithm data.

[0593] In this embodiment, if the display effects displayed when the access terminal plays the target video include any one or two of the color enhancement effect and the anti-shake effect, the shared data includes algorithm data. The cloud server transcodes the algorithm data and can subsequently send the transcoded algorithm data to the access terminal, so that the access terminal no longer needs to perform transcoding when playing the target video and can directly use the received algorithm data to apply the color enhancement effect or the anti-shake effect to the target video, thereby improving the response speed of playing the target video with the color enhancement effect or the anti-shake effect.

[0594] In some embodiments, the video sharing method further includes:

[0595] Generate sharing links based on target videos and sharing data.

[0596] After obtaining the sharing data corresponding to the sharing task, the cloud server can generate a sharing link according to the target video and sharing data corresponding to the sharing task. The user who is the video sharer can share the sharing link to the video sharing object through the client or other platforms. The sharing link can, for example, be the address information for accessing the sharing task, or the interface for accessing the sharing task.

[0597] The access end accesses the shared task in the following ways:

[0598] Based on the shared link, a request is made to the cloud server to play the target video.

[0599] If the user who is the object of video sharing wants to access the sharing task, he can initiate a request to the cloud server to play the target video based on the sharing link generated by the cloud server and provided by the video sharer. After receiving the request, the cloud server sends the sharing data to the access end, so that the access end can play the target video and make the target video display the display effect.

[0600] In this embodiment, the cloud server can generate a sharing link based on the target video and the sharing data, so that the access terminal can initiate a request to the cloud server to play the target video based on the sharing link, providing a basis for accessing the sharing task, realizing the sharing of the target video, and allowing the access terminal to apply the display effect to the target video through the sharing data when playing the target video, thereby reducing the consumption of computing resources and time and improving the user experience.

[0601] In an exemplary embodiment, a video sharing method is provided, which is applied to a cloud server, such as Fig.31 As shown, the video sharing method includes:

[0602] S3300. In response to a sharing task sent by the client, obtain sharing data corresponding to the sharing task, where the sharing data includes data for determining a display effect of a target video, and the sharing data includes any one or a combination of any two or more of speed playback data, viewing angle selection data, duration reduction data, orientation information display data, picture-in-picture data, and algorithm data.

[0603] S3310: If the shared data includes duration reduction data, determine the target playlist file based on the duration reduction data and the initial playlist file corresponding to the target video, and add the target playlist file to the duration reduction data.

[0604] S3320: If the shared data includes algorithm data, transcode the algorithm data.

[0605] S3330: Generate a sharing link based on the target video and the sharing data.

[0606] S3340. In response to the access to the sharing task by the access terminal, the sharing data is sent to the access terminal so that the access terminal displays the display effect when playing the target video.

[0607] In this embodiment, when the client sends a sharing task, by obtaining the sharing data corresponding to the sharing task, the sharing data can be sent to the access terminal when the access terminal accesses the sharing task, so that the access terminal displays the display effect when playing the target video, thereby realizing the sharing of the target video and the addition of the display effect. The sharing data includes data for determining the display effect of the target video, and the display effect can be applied to the target video through the sharing data when the access terminal plays the target video, without the need for repeated downloading and uploading of the target video or complicated transcoding process, thereby reducing the consumption of computing resources and time and improving the user experience.

[0608] In an exemplary embodiment, a video sharing method is provided, which is applied to a client, and the client may be a platform or application that supports functions such as video uploading, video editing, and video sharing. Fig.32 As shown, the video sharing method includes:

[0609] S3400. Generate sharing data based on the user's sharing operation on the target video, where the sharing data includes data for determining a display effect of the target video.

[0610] In step S3400, the cloud server may be, for example, a platform that supports functions such as data storage, information interaction, and multi-user sharing. The user may perform a sharing operation on the target video stored in the cloud server through the client. The sharing operation may be, for example, a pre-operation that is planned to be executed but not actually executed, and is used to determine the display effect of the expected target video display. The client may generate sharing data based on the user's sharing operation on the target video, so that the sharing data can be used to determine the display effect of the target video.

[0611] S3500. Send a sharing task to the cloud server. The cloud server can obtain sharing data based on the sharing task, and can send the sharing data to the access terminal when the access terminal accesses the sharing task, so that the access terminal can display the display effect when playing the target video.

[0612] In step S3500, the access end may be, for example, a browser or platform that supports the video playback function. The user may send a sharing task to the cloud server through the client. After receiving the sharing task, the cloud server may obtain the corresponding sharing data, and when the access end accesses the sharing task, the sharing data may be sent to the access end, so that the display effect corresponding to the sharing data may be displayed when the access end plays the target video.

[0613] In this embodiment, the client can generate sharing data that determines the display effect of the target video according to the user's sharing operation on the target video, and send a sharing task to the cloud server, and the cloud server can obtain the sharing data corresponding to the sharing task, and can send the sharing data to the access terminal when the access terminal accesses the sharing task, so that the access terminal can display the display effect when playing the target video, thereby realizing the sharing of the target video and the addition of the display effect. The client generates sharing data according to the sharing operation, and can wait until the access terminal plays the target video and then apply the sharing operation and display effect to the target video through the sharing data, without the need to repeatedly download and upload the target video or the complicated transcoding process, thereby reducing the consumption of computing resources and time and improving the user experience.

[0614] In some embodiments, Fig.33 As shown, based on the user's sharing operation on the target video, sharing data is generated, including:

[0615] S3410: Record the sharing operation performed by the user during the playback of the target video.

[0616] In step S3410, when the user plays the target video through the client, a sharing operation for determining the expected display effect of the target video can be performed on the target video, and the client can record the sharing operation performed by the user during the playback of the target video.

[0617] S3420. Generate planned editing data based on the sharing operation.

[0618] In step S3420, the client may generate corresponding planned editing data according to the recorded sharing operation, so that the planned editing data can represent the sharing operation performed on the target video.

[0619] S3430. Obtain sharing data based on the planned clipping data.

[0620] In step S3430, since the planned editing data is directly generated by the client according to the sharing operation, the planned editing data may have characteristics such as complex data format and difficulty in parsing. Therefore, the corresponding sharing data can be determined based on the generated planned editing data, thereby realizing the generation of sharing data and making the sharing data have advantages such as fast transmission and parsing speed.

[0621] In this embodiment, the client records the sharing operations performed by the user during the playback of the target video, generates planned editing data based on the sharing operations, and then obtains sharing data based on the planned editing data, thereby realizing the generation of sharing data and providing a basis for the cloud server to obtain sharing data.

[0622] In other embodiments, Fig.34 As shown, based on the user's sharing operation on the target video, sharing data is generated, including:

[0623] S3440: Play the target video based on the sharing operation, and record the playback path during the playback of the target video.

[0624] In step S3440, the client can control the player to play the target video according to a specific playback path according to the user's sharing operation, and record the playback path in real time during the playback of the target video. The playback path includes: playback angle, playback speed, playback duration, playback mode, playback special effects, etc.

[0625] S3450. Generate planned editing data based on the recorded playback path.

[0626] In step S3450, the client may generate corresponding planned editing data according to the recorded playback path, so that the planned editing data can represent the sharing operation performed on the target video and the playback path of the target video during playback in the client.

[0627] S3460. Obtain sharing data based on the planned clipping data.

[0628] In step S3460, since the planned editing data is directly generated by the client according to the playback path, the planned editing data may have characteristics such as complex data format and difficulty in parsing. Therefore, the corresponding shared data can be determined based on the generated planned editing data, thereby realizing the generation of shared data and making the shared data have advantages such as fast transmission and parsing speed.

[0629] In this embodiment, the client plays the target video according to the sharing operation, records the playback path during the playback of the target video, generates planned clipping data according to the sharing operation, and then obtains the sharing data based on the planned clipping data, thereby realizing the generation of sharing data and providing a basis for the cloud server to obtain sharing data.

[0630] In some embodiments, obtaining the shared data based on the planned clipping data includes:

[0631] The planned clipping data is converted into a binary data format to obtain sharing data.

[0632] The client can perform data format conversion processing on the generated planned clipping data to convert the data format of the planned clipping data into a binary data format, obtain the shared data in binary data format, and realize the generation of shared data. Exemplarily, the planned clipping data can be converted into a binary proto format agreed upon by the development, so that the shared data obtained after the data format conversion can also represent the sharing operation performed on the target video or the playback path of the target video in the client, and when the sharing task is subsequently sent through the client, the binary shared data can be uploaded to the cloud server, so that the cloud server can obtain the shared data.

[0633] In this embodiment, through data format conversion processing, the data format of the shared data is made into a binary data format, ensuring that the data format of the shared data is convenient for subsequent processing such as data transmission, data storage and data analysis, thereby improving the response speed of playing the target video.

[0634] In some embodiments, the sharing operation includes any one or any combination of the following operations: double-speed playback editing operation, perspective selection editing operation, duration reduction editing operation, orientation information display editing operation, picture-in-picture editing operation, color enhancement editing operation, and anti-shake editing operation.

[0635] As mentioned above, the sharing operation is used to determine the display effect expected for the target video. The sharing operation may include a speed playback and editing operation, which is used to control the playback speed of the target video. When the sharing operation includes a speed playback and editing operation, the corresponding generated sharing data includes speed playback data, and the display effect displayed by the access end when playing the target video includes a speed playback effect.

[0636] The sharing operation may include a perspective selection and clipping operation, which is used to control the current perspective of the target video. When the sharing operation includes a perspective selection and clipping operation, the corresponding generated sharing data includes perspective selection data, and the display effect displayed by the access terminal when playing the target video includes a perspective selection effect.

[0637] The sharing operation may include a time reduction and editing operation for cropping the target video. When the sharing operation includes a time reduction and editing operation, the corresponding generated sharing data includes time reduction data, and the display effect displayed by the access terminal when playing the target video includes a time reduction effect.

[0638] The sharing operation may include a position information display clipping operation for displaying the position information. When the sharing operation includes a position information display clipping operation, the corresponding generated sharing data includes the position information display data, and the display effect displayed by the access terminal when playing the target video includes the position information display effect.

[0639] The sharing operation may include a picture-in-picture editing operation for displaying a picture-in-picture. When the sharing operation includes a picture-in-picture editing operation, the corresponding generated sharing data includes picture-in-picture data, and the display effect displayed by the access terminal when playing the target video includes a picture-in-picture effect.

[0640] The sharing operation may include a color enhancement editing operation for enhancing color. When the sharing operation includes a color enhancement editing operation, the corresponding generated sharing data includes algorithm data, and the display effect displayed by the access terminal when playing the target video includes a color enhancement effect.

[0641] The sharing operation may include an anti-shake editing operation for image anti-shake. When the sharing operation includes an anti-shake editing operation, the corresponding generated sharing data includes algorithm data, and the display effect displayed by the access end when playing the target video includes an anti-shake effect.

[0642] In this embodiment, any one or any combination of the speed playback editing operation, view selection editing operation, duration reduction editing operation, orientation information display editing operation, picture-in-picture editing operation, color enhancement editing operation, and anti-shake editing operation is used as a sharing operation. Corresponding sharing data can be generated according to different sharing operations to display different display effects when the target video is played on the access terminal, which can meet the sharing needs of video sharers and add rich and powerful display effects to the target video when the video sharing object plays the target video through the access terminal, thereby improving the user experience.

[0643] In an exemplary embodiment, a video sharing method is provided, which is applied to an access terminal, such as Fig.35 As shown, the video sharing method includes:

[0644] S3600: Based on the shared link, a request to play the target video is initiated to the cloud server.

[0645] S3610, receiving sharing data sent by the cloud server, where the sharing data includes any one or any combination of speed playback data, viewing angle selection data, duration reduction data, orientation information display data, picture-in-picture data, and algorithm data.

[0646] S3620: If the shared data includes speed playback data, determine multiple preset video segments included in the target video and video segment information corresponding to each preset video segment based on the speed playback data, where the video segment information is used to represent the start time, end time and playback speed of the corresponding preset video segment.

[0647] S3630: Based on the video segment information, play the target video at a playback speed corresponding to the current playback time.

[0648] S3640: Based on the video segment information, determine the actual playback time corresponding to the current playback time, and display the actual playback time when playing the target video.

[0649] S3650: If the shared data includes perspective selection data, determine the current perspective corresponding to the current playback time based on the perspective selection data.

[0650] S3660: Play the target video at the current viewing angle corresponding to the current playback time.

[0651] S3670: If the shared data includes duration reduction data, the target video is played based on the duration reduction data and the target playlist file.

[0652] S3680: Based on the duration reduction data and the target playlist file, determine the actual play time corresponding to the current play time, and display the actual play time when playing the target video.

[0653] S3690: If the shared data includes position information display data, determine the position data corresponding to the current playback time based on the position information display data.

[0654] S3700: When playing the target video, display the position data corresponding to the current playing time in the first preset area.

[0655] S3710: If the shared data includes picture-in-picture data, determine the picture-in-picture image corresponding to the current playback time based on the picture-in-picture data.

[0656] S3720: When playing the target video, display a picture-in-picture image corresponding to the current playing time in the second preset area.

[0657] In this embodiment, the access terminal can play the target video according to the shared data by receiving the shared data sent by the cloud server, so that the target video can display the display effect determined by the shared data. There is no need to repeatedly download and upload the target video or perform a complicated transcoding process, and a variety of display effects can be applied to the target video when the access terminal plays the target video, thereby reducing the consumption of computing resources and time and improving the user experience.

[0658] In an exemplary embodiment, a camera is provided, including a processor and a memory, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.

[0659] In an exemplary embodiment, a cloud server is provided, including a processor and a memory, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.

[0660] In an exemplary embodiment, an electronic device is provided, on which the client as described above is installed, including a processor and a memory, the memory storing a computer program, and the processor implements the steps of any of the above methods when executing the computer program. The electronic device is, for example, a mobile phone, a computer, and a camera.

[0661] In an exemplary embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented. The computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0662] In an exemplary embodiment, a computer program product is provided, comprising a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0663] like Fig.36 , a block diagram of a computer device that can be used as a cloud server, electronic device, or camera of the present disclosure will now be described. The computer device 100 includes a computing unit 101, which can perform various appropriate actions and processes according to a computer program stored in a ROM 102 or a computer program loaded from a storage unit 108 to a RAM 103. In the RAM 103, various programs and data required for the operation of the computer device 100 can also be stored. The computing unit 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.

[0664] A plurality of components in the computer device 100 are connected to the I / O interface 105, including: an input unit 106, an output unit 107, a storage unit 108, and a communication unit 109. The input unit 106 may be any type of device capable of inputting information to the computer device 100, the input unit 106 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the computer device 100, and may include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 107 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 108 may include but is not limited to a disk, an optical disk. The communication unit 109 allows the computer device 100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0665] The computing unit 101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 101 performs the various methods and processes described above. For example, in some embodiments, the method described above may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 108. In some embodiments, part or all of the computer program may be loaded and / or installed on the computer device 100 via ROM 102 and / or communication unit 109. When the computer program is loaded into RAM 103 and executed by the computing unit 101, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 101 may be configured to perform the method described above in any other appropriate manner (e.g., by means of firmware).

[0666] The computer device 100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned methods.

[0667] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present invention are indicated by the claims. Those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0668] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A video processing method, applied to a cloud server, characterized in that: The video processing method comprises: In response to a processing task sent by the client based on the first video, obtaining a parameter set corresponding to the processing task; The first video is processed based on the parameter set to obtain a second video. During the processing, the client may be in a closed state.

2. The video processing method according to claim 1, characterized in that: The parameter set is generated based on a pre-operation performed by the client on the first video in the cloud server, where the pre-operation is a clipping operation that is planned to be executed but not actually executed.

3. The video processing method according to claim 1, characterized in that: After the first video is processed based on the parameter set to obtain the second video, the video processing method further includes: Sending the obtained second video to the client; In the process of sending the information to the client, it is not necessary to open the client.

4. The video processing method according to claim 3, characterized in that: The step of sending the obtained second video to the client includes: The link address corresponding to the second video is sent to the client, so that the client downloads the second video based on the link address.

5. The video processing method according to claim 1, characterized in that: In the case where there are multiple processing tasks, multiple second videos corresponding to the multiple processing tasks are processed in parallel; Each of the processing tasks corresponds to one of the parameter sets.

6. The video processing method according to claim 1, characterized in that: The processing of the first video based on the parameter set to obtain the second video includes: Based on the parameter set, determining rendering data; The first video is processed based on the rendering data to obtain the second video.

7. The video processing method according to claim 6, characterized in that: The determining of rendering data based on the parameter set includes: When the type of the parameter set is the first type, transcoding the data in the parameter set to obtain the rendering data; In the case where the type of the parameter set is the second type, a preset program is called to load the parameter set for rendering to obtain the rendering data.

8. The video processing method according to claim 7, characterized in that: The calling of a preset program to load the parameter set for rendering to obtain the rendering data includes: Integrating a preset kernel into the preset program; Loading the page of the preset program with the preset kernel; Based on the parameter set, rendering the page of the preset program by the preset kernel; The rendering data obtained by rendering is acquired from the preset program.

9. The video processing method according to claim 8, characterized in that: The preset program is a browser, the preset kernel is a Chromium kernel, and the page of the preset program is a page made based on HTML5 language.

10. The video processing method according to claim 6, characterized in that: The processing of the first video based on the rendering data to obtain the second video includes: Decapsulating and decoding the first video to obtain a plurality of first video frame data; Rendering each of the first video frame data according to the rendering data to obtain a plurality of second video frame data; Each of the second video frame data is encoded and packaged to obtain the second video.

11. The video processing method according to claim 1, characterized in that: The storage protocol of the parameter set is the Protocol Buffers protocol.

12. The video processing method according to claim 1, characterized in that: The parameter set includes one or more of speed playback data, panoramic video viewing angle selection data, time cropping data, dynamic map data and picture-in-picture data.

13. The video processing method according to claim 12, characterized in that: The viewing angle selection data is generated by a user's viewing angle selection operation on the first video during playback of the first video on the client.

14. The video processing method according to claim 12, characterized in that: The time cropping data is generated by a user performing a cropping operation on the first video at different time points during playback of the first video on the client.

15. The video processing method according to any one of claims 1 to 14, characterized in that: During the second video processing, the video processing method further includes: Determining the progress of the second video processing at every preset time interval; In response to the query request sent by the client, the progress of the second video processing is sent to the client.

16. The video processing method according to any one of claims 1 to 14, characterized in that: After obtaining the parameter set corresponding to the processing task, the video processing method further includes: Adding the processing task corresponding to the parameter set to the processing queue; The processing of the first video based on the parameter set to obtain the second video includes: Based on the parameter set in the processing queue and the first video, obtain the second video; After the first video is processed based on the parameter set to obtain the second video, the video processing method further includes: The processing task is deleted from the processing queue.

17. A video processing method, applied to a client, characterized in that: The video processing method comprises: In response to a pre-operation on a first video in a cloud server, generating a parameter set corresponding to the pre-operation, wherein the pre-operation is an operation that is planned to be performed but not actually performed; In response to the pre-operation processing instruction for the first video, a processing task is generated and sent to the cloud server. The processing task includes the parameter set. The cloud server is used to process the first video based on the parameter set to obtain a second video. During this processing process, the client can be in a closed state.

18. The video processing method according to claim 17, characterized in that: After sending the processing task to the cloud server, the video processing method further includes: Receiving a link address corresponding to the second video sent by the cloud server; The second video is downloaded based on the link address.

19. The video processing method according to claim 18, characterized in that: Before receiving the link address corresponding to the second video sent by the cloud server, the video processing method further includes: Sending a query request to the cloud server at preset time intervals; receiving a progress of processing the second video sent by the cloud server; The progress of the second video processing is displayed.

20. A cloud server, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 16 are implemented.

21. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 17 to 19 are implemented.

22. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 19 are implemented.