A video processing method, electronic device, storage medium and product
By storing video streams in the target cache space of the cloud server, the problem of video streams not being able to be stored automatically is solved, enabling real-time high-definition video processing and playback, and improving the efficiency of storage resource utilization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- MIGU INTERACTIVE ENTERTAINMENT CO LTD
- Filing Date
- 2024-06-03
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, fields where video streams are generated in real time (such as live streaming and games) cannot achieve automatic storage. Users need to record manually, which makes it impossible to review videos from past moments. Furthermore, the clarity and size of the recorded videos are limited by the performance and memory space of the screen recording device.
The video stream generated by the user on the client is stored in the target cache space of the cloud server. The user can send video processing requests at any time through the client for processing, including editing and playback.
It enables real-time and high-definition storage of video streams, avoiding playback issues caused by users not recording, and provides ample storage resources.
Smart Images

Figure CN118678118B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of video processing technology, and more specifically, to a video processing method, electronic device, storage medium, and product. Background Technology
[0002] In fields where video streams are generated in real time, such as live streaming and gaming, automatic storage of the video stream is not possible. Users typically need to manually record the video on a screen recording device. If users do not record the video in advance, they will not be able to review the video from previous moments.
[0003] For example, regarding game video recording, the technology can record game videos after the user clicks to record. In other words, the technology can record game videos generated after the user clicks to record. If the user forgets to click to start recording, game videos generated in the past period will not be recorded. Furthermore, the recorded game videos are typically stored in the local storage space of the screen recording device. However, due to limitations in the performance and memory capacity of the screen recording device, the clarity and file size of the videos recorded using this technology are limited. Summary of the Invention
[0004] This disclosure provides at least one video processing method, electronic device, storage medium, and product.
[0005] In a first aspect, embodiments of this disclosure provide a video processing method applied to a cloud server, comprising:
[0006] Detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed;
[0007] In the cloud public cache space, a target cache space corresponding to the first user is determined, and in the target cache space, a target video corresponding to the video processing request is determined; wherein, the target cache space is used to store the video stream generated by the first user on the client;
[0008] The target video is processed according to the processing method indicated by the video processing request, and the processed target video is returned to the first user.
[0009] In one optional implementation, the processing method is video editing; processing the target video according to the processing method indicated by the video processing request includes:
[0010] Obtain video editing parameters, and edit the target video according to the video editing parameters to obtain the edited target video;
[0011] The edited target video is stored in the target private space of the cloud private space; wherein, the target private space is used to store the video edited by the first user.
[0012] In one optional implementation, the target private space for storing the edited target video in a cloud private space includes:
[0013] If it is determined that the first user's private space does not exist in the cloud private space, a permission prompt message is sent to the first user; wherein, the permission prompt message is used to prompt the first user whether to enable or use the private space;
[0014] Upon detecting the confirmation message sent by the first user, the target private space is allocated to the first user in the cloud private space, and the edited target video is stored in the target private space.
[0015] In one optional implementation, the method further includes:
[0016] If it is determined that the cached video in the target cache space meets the conditions for saving, a video saving prompt is sent to the first user; wherein, the video saving prompt is used to prompt the first user whether to continue saving the cached video;
[0017] If the confirmation of saving information is detected, the cached video in the target cache space continues to be saved, and the remaining cache time of the cached video is sent to the first user.
[0018] In an optional implementation, after processing the target video according to the processing method indicated by the video processing request, the method further includes:
[0019] After the release instruction for the target video after detection and processing, the display parameters of the processed target video are obtained; wherein, the display parameters include, but are not limited to, video type, display method, video name, and key video description information;
[0020] The processed target video is displayed on the video publishing page according to the aforementioned display parameters.
[0021] In one optional implementation, the method further includes:
[0022] After detecting the second user's challenge operation on the processed target video published on the video publishing page, a challenge process video of the second user is generated and stored in the cloud public cache space;
[0023] Based on the processed target video and the challenge process video, the challenge result of the second user is determined;
[0024] In response to the second user's result query request, the challenge result is pushed to the second user.
[0025] Secondly, this disclosure provides another video processing method applied to a client, including:
[0026] In response to a first user's video processing instruction for a target video in a target cache space, a video processing request is sent to a cloud server; wherein, the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud server's public cloud cache space used to store the video stream generated by the first user on the client;
[0027] Obtain the processed target video returned by the cloud server; wherein the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request.
[0028] Thirdly, embodiments of this disclosure also provide a video processing apparatus, including:
[0029] The detection module is used to detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed;
[0030] The determination module is used to determine a target cache space corresponding to the first user in the cloud public cache space, and to determine a target video corresponding to the video processing request in the target cache space; wherein, the target cache space is used to store the video stream generated by the first user on the client.
[0031] The processing module is used to process the target video according to the processing method indicated by the video processing request, and return the processed target video to the first user.
[0032] Fourthly, embodiments of this disclosure also provide another video processing apparatus, including:
[0033] The sending module is used to send a video processing request to the cloud server in response to a video processing instruction from a first user for a target video in the target cache space; wherein the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud public cache space of the cloud server used to store the video stream generated by the first user on the client.
[0034] The acquisition module is used to acquire the processed target video returned by the cloud server; wherein the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request.
[0035] Fifthly, embodiments of this disclosure also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.
[0036] In a sixth aspect, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the first aspect or any possible implementation thereof.
[0037] In a seventh aspect, embodiments of this disclosure also provide a computer program product stored in a storage medium, wherein the program product is executed by at least one processor of the steps described in the first aspect or any possible implementation thereof.
[0038] In embodiments of this disclosure, firstly, a video processing request from a first user is detected, the video processing request carrying location information and / or processing method of the target video to be processed; secondly, a target cache space corresponding to the first user is determined in the cloud public cache space, and a target video corresponding to the video processing request is determined in the target cache space, wherein the target cache space is used to store the video stream generated by the first user on the client; finally, the target video is processed according to the processing method indicated by the video processing request, and the processed target video is returned to the first user.
[0039] In the above embodiments, real-time storage of the video stream is achieved by storing the video stream generated by the user on the client to the target cache space corresponding to the user in the cloud service. When the user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. At the same time, the technical solution of this disclosure, by storing the video stream to the target cache space corresponding to the user in the cloud server, provides more sufficient storage resources for the video stream compared to the existing technology of directly storing the video stream to the client's storage space, thereby enabling the storage of higher definition videos.
[0040] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0041] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0042] Figure 1 A flowchart of a video processing method provided by an embodiment of this disclosure is shown;
[0043] Figure 2 A schematic diagram of the cloud-based public cache space provided in an embodiment of this disclosure is shown;
[0044] Figure 3 A schematic diagram of the target private space provided in an embodiment of this disclosure is shown;
[0045] Figure 4 A schematic diagram of the cloud server storage space provided in an embodiment of this disclosure is shown;
[0046] Figure 5 A flowchart of another video processing method provided by an embodiment of this disclosure is shown;
[0047] Figure 6 A schematic diagram of a video processing apparatus provided in an embodiment of the present disclosure is shown;
[0048] Figure 7 A schematic diagram of another video processing apparatus provided in an embodiment of this disclosure is shown;
[0049] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present disclosure is shown. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0051] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0052] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0053] Research has found that in fields where video streams are generated in real time, such as live streaming and gaming, automatic storage of the video stream is not possible. Users typically need to manually record the video on a screen recording device. If users do not record the video in advance, they will not be able to review the video from previous moments.
[0054] For example, regarding game video recording, the technology can record game videos after the user clicks to record. In other words, the technology can record game videos generated after the user clicks to record. If the user forgets to click to start recording, game videos generated in the past period will not be recorded. Furthermore, the recorded game videos are typically stored in the local storage space of the screen recording device. However, due to limitations in the performance and memory capacity of the screen recording device, the clarity and file size of the videos recorded using this technology are limited.
[0055] Based on the above research, this disclosure provides a video processing method that enables real-time storage of video streams by storing the video stream generated by a user on the client side in a target cache space corresponding to that user within a cloud service. When a user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. Furthermore, by storing the video stream in the user-corresponding target cache space on the cloud server, compared to the existing method of directly storing the video stream in the client's storage space, this disclosure provides more ample storage resources for the video stream, thereby enabling the storage of higher-definition videos.
[0056] To facilitate understanding of this embodiment, a video processing method disclosed in this disclosure will first be described in detail. The execution subject of the video processing method provided in this disclosure is generally an electronic device with a certain computing power. In some possible implementations, the video processing method can be implemented by a processor calling computer-readable instructions stored in memory.
[0057] See Figure 1 The diagram shows a flowchart of a video processing method provided in an embodiment of this disclosure. The method includes steps S101 to S103, wherein:
[0058] S101, Detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed.
[0059] In embodiments of this disclosure, the cloud server can send a video processing prompt to the client to which the first user belongs. The video processing prompt is used to indicate to the first user whether they need to process the video stream. For example, the video processing prompt may include information such as whether to edit the video stream; in addition, the video processing prompt may also include a "Confirm" button and a "Close" button.
[0060] Here, after detecting the first user's triggering of the "Confirm" button in the video processing prompt, and determining that the first user has chosen to process the video stream, the client can then send a video processing request to the cloud server.
[0061] Here, the location information of the target video is used to indicate the storage location of the target video in the cloud server; or the time information of the target video in all the videos generated by the first user on the client; the processing methods include, but are not limited to, video playback, video editing, video download, etc.
[0062] S102. Determine the target cache space corresponding to the first user in the cloud public cache space, and determine the target video corresponding to the video processing request in the target cache space; wherein, the target cache space is used to store the video stream generated by the first user on the client.
[0063] In the embodiments of this disclosure, the cloud server can pre-allocate cache space, i.e., target cache space, for the first user in the cloud public cache space. Specifically, the cloud server can allocate target cache space for the first user when it detects that the first user has launched the client for the first time; or, the cloud server can allocate target cache space for the first user when it detects that the first user has generated a video stream in the client for the first time; or, the cloud server can also allocate target cache space for the first user when it detects a space allocation request from the first user.
[0064] Here, the target cache space allocated by the cloud server for the first user in the cloud's public cache space is the allocated space. The size of the target cache space can be determined based on the attributes of the application corresponding to the client to which the first user belongs, or a preset cache space value can be used as the size of the target cache space. Here, the application attributes include the application type, the application's usage method, and the application's configuration information, etc.
[0065] Here, refer to Figure 2 The diagram shown is a schematic representation of a cloud-based public cache space provided in an embodiment of this disclosure. The cloud-based public cache space includes allocated space and free space.
[0066] Here, the allocated space indicates the cache space that has been allocated to each user. For example, user A's target cache space is space A; user B's target cache space is space B; and user C's target cache space is space C.
[0067] Here, while user A is running the application, the cloud server generates a corresponding video stream based on the user's operation instructions and automatically saves the generated video stream to space A. If the storage space occupied by space A is greater than or equal to a preset storage space threshold, space A can be expanded. For example, some free space can be allocated to space A to increase its storage capacity.
[0068] For example, if the storage space size of space A is set to T, and the occupied storage space in space A meets the preset occupancy conditions, then T*10% of the free space will be allocated to space A. For instance, if the occupied storage space is greater than or equal to T*the preset storage space threshold (e.g., 80%), then it can be determined that the occupied storage space meets the preset occupancy conditions.
[0069] In this embodiment of the disclosure, the size of space A can be adjusted multiple times based on the remaining storage size (free space value X) of the cloud public cache space, wherein each increase is T*10%. For example, after the first increase, the size of space A can be T1=T+T*10%, and after the second increase, the size can be T2=T1+T*10%.
[0070] Here, if the remaining storage space in the free space is less than 10%*T, the spare space in the cloud server will be used to allocate storage space for space A.
[0071] S103. Process the target video according to the processing method indicated in the video processing request, and return the processed target video to the first user.
[0072] In the embodiments of this disclosure, when the processing method indicated by the video processing request is video editing, firstly, the cloud server can obtain the location information of the target video to be processed carried in the video processing request. Secondly, it can locate the target video in the target cache space based on the location information. Finally, the target video is edited to obtain the processed target video.
[0073] Here, after obtaining the processed target video, the cloud server can send the processed target video to the client used by the first user.
[0074] Here, if the processing method indicated by the video processing request is video playback, firstly, the cloud server can locate the target video based on the location information of the target video to be processed carried in the video processing request. Then, the found target video is used as the processed target video, and the processed target video is sent to the client used by the first user.
[0075] In embodiments of this disclosure, firstly, a video processing request from a first user is detected, the video processing request carrying location information and / or processing method of the target video to be processed; secondly, a target cache space corresponding to the first user is determined in the cloud public cache space, and a target video corresponding to the video processing request is determined in the target cache space, wherein the target cache space is used to store the video stream generated by the first user on the client; finally, the target video is processed according to the processing method indicated by the video processing request, and the processed target video is returned to the first user.
[0076] In the above embodiments, real-time storage of the video stream is achieved by storing the video stream generated by the user on the client to the target cache space corresponding to the user in the cloud service. When the user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. At the same time, the technical solution of this disclosure, by storing the video stream to the target cache space corresponding to the user in the cloud server, provides more sufficient storage resources for the video stream compared to the existing technology of directly storing the video stream to the client's storage space, thereby enabling the storage of higher definition videos.
[0077] In an optional embodiment, when the processing method is video editing, the above steps process the target video according to the processing method indicated by the video processing request, specifically including the following steps:
[0078] First, obtain the video editing parameters, and then edit the target video according to the video editing parameters to obtain the edited target video;
[0079] Then, the edited target video is stored in the target private space of the cloud private space; wherein, the target private space is used to store the video edited by the first user.
[0080] In the embodiments of this disclosure, when the processing mode is video editing, the cloud server can control the first user's client to display the video editing interface.
[0081] Here, the parameter values of the video editing parameters entered by the first user in the video editing interface displayed on the client can be obtained. The video editing interface can have default video editing parameters pre-set, and users can adjust these default parameter values to set their own video editing parameters.
[0082] Here, if the first user completes the video editing parameter settings, the server can obtain the user-defined video editing parameters. If the first user does not set any video editing parameters, the default video editing parameters will be used as the user-defined parameters.
[0083] Here, video editing parameters include the resolution of the target video, the start frame of the target video, and the end frame of the target video.
[0084] After obtaining the video editing parameters, the target video can be edited according to the video editing parameters to obtain the edited target video.
[0085] If it is determined that the target private space of the first user exists in the cloud private space, after obtaining the edited target video, it can be determined whether the storage space required by the target video is less than or equal to the remaining storage space of the target private space.
[0086] If it is determined that the storage space required for the target video exceeds the remaining storage space in the target private space, a storage space shortage warning is sent to the first user. This warning indicates whether the first user needs additional storage space in the target private space. If the first user confirms the need for additional space, some free storage space from the cloud private space is added to the target private space.
[0087] If it is determined that the storage space required for the target video is less than or equal to the remaining storage space in the target private space, the edited target video can be stored in the target private space in the cloud private space.
[0088] Here, the storage space indicator can also be used to indicate the remaining storage space in the target private space.
[0089] Here, when it is determined that the storage space of the target private space is to be increased, the storage space can be increased by a preset storage size, or the storage space can be increased by a storage size specified by the first user.
[0090] In an optional embodiment, the above steps store the edited target video in a target private space in the cloud, specifically including the following steps:
[0091] First, if it is determined that the first user's private space does not exist in the cloud private space, a permission prompt message is sent to the first user; the permission prompt message is used to ask the first user whether to enable or use the private space.
[0092] Then, upon detecting the confirmation message sent by the first user, a target private space is allocated to the first user in the cloud private space, and the edited target video is stored in the target private space.
[0093] In the embodiments of this disclosure, it can be determined whether a first user's private space exists in the cloud private space when the first user launches the application for the first time, or when the first user runs the application for the first time, or when the target video is detected to have been edited.
[0094] If it is determined that the first user's private space does not exist, a permission prompt message can be displayed in the client to which the first user belongs, so as to prompt the user whether to enable or use the private space.
[0095] Here, the client can detect the first user's trigger action on the permission prompt message, and determine whether to enable or disable the private space based on this trigger action. The information prompt interface corresponding to the permission prompt message can include a "Hide" button and a "Confirm" button. After the client detects the first user's trigger action on the "Hide" button, the permission prompt message is hidden; after the client detects the first user's trigger action on the "Confirm" button, it is determined that confirmation has been detected. At this point, the client can send this confirmation to the cloud server. After detecting this confirmation, the cloud server can allocate a target private space for the first user in the cloud's private space and store the edited target video in the target private space.
[0096] In this embodiment of the disclosure, after the permission prompt information is hidden, if the client detects the first user's operation to display the permission prompt information, the permission prompt information can still be displayed on the client's display interface, thereby enabling the hidden permission prompt information to be restored at any time, thus guiding the first user to process the permission prompt information.
[0097] Here, the activation information can also include the size of the private space to be activated for the first user and / or the usage time.
[0098] Here, if the confirmation message includes the size of the private space and the usage time of the private space, the cloud server can allocate the target private space to the first user based on the size of the private space and the usage time of the private space.
[0099] In this embodiment of the disclosure, if it is confirmed that the activation information does not carry the size and usage time of the activated private space, then the cloud server can allocate the target private space to the first user according to the preset private space size and the preset private storage space usage time.
[0100] Here, refer to Figure 3 The diagram shown is a schematic representation of the target private space provided in an embodiment of this disclosure. The target private space includes used space and free space. The used space is used to store the video stream generated by the first user on the client and obtained after processing.
[0101] Here, refer to Figure 4 The diagram shown is a schematic representation of the cloud server storage space provided in an embodiment of this disclosure. The cloud server storage space includes a public cloud cache space, a private cloud space, and a spare space.
[0102] Here, cloud-based private space is used to allocate target private space to users.
[0103] In an optional embodiment, in the above... Figure 1 Based on the described embodiments, the method further includes the following steps:
[0104] First, if the cached video in the target cache space meets the conditions for saving, a video save prompt is sent to the first user; the video save prompt is used to ask the first user whether to continue saving the cached video.
[0105] Secondly, upon detecting confirmation of the save information, continue to save the cached video in the target cache space and send the remaining cache time of the cached video to the first user.
[0106] In the embodiments of this disclosure, the conditions for prompting the user to save the application can be pausing the application, ending a process within the application, or the application's runtime reaching a preset runtime threshold. For example, if the application being run by the first user is a game, ending a process within the application could mean ending the game; if the application being run by the first user is a live streaming application, ending a process within the application could mean ending the live stream.
[0107] While sending a video saving prompt to the first user, it can also send the cached video in the target cache space to the first user.
[0108] When the client used by the first user receives a video save prompt from the cloud server, it can detect the first user's trigger operation on the video save prompt, and then determine whether to continue saving the cached video in the target cache space based on the trigger operation.
[0109] If the cloud server detects that the first user has chosen not to continue saving the cached video, it will delete the cached video from the target cache space. If the cloud server detects that the first user has chosen to continue saving the cached video, it will continue to save the cached video from the target cache space, while prompting the user with the remaining time for the video to be saved (e.g., the video must be edited and uploaded to the private space within 24 hours, otherwise the video will be deleted).
[0110] In the embodiments of this disclosure, when the first user's client responds to the first user launching an application, or when the first user launches a process within the application, the cloud server can control the client's display interface to pop up a video recording parameter acquisition page.
[0111] Here, the parameter values of the video recording parameters entered by the first user on the video recording parameter acquisition page displayed on the client can be obtained. The video recording parameter acquisition page can have default video recording parameters pre-set, and users can set the video recording parameters by changing the default parameter values.
[0112] In an optional embodiment, after processing the target video according to the processing method indicated by the video processing request, the following steps are further included:
[0113] First, after the release instruction for the processed target video is received, the display parameters of the processed target video are obtained; among them, the display parameters include, but are not limited to, video type, display method, video name, and key video description information;
[0114] Then, the processed target video is displayed on the video publishing page according to the display parameters.
[0115] In the embodiments of this disclosure, after processing the target video, firstly, the cloud server can respond to the first user's video save command and save the processed target video to the first user's target private space. Secondly, the cloud server can send a video publishing prompt to the first user's client. The video publishing prompt is used to ask the user whether to publish the processed target video.
[0116] The client can respond to the instructions of the target video after the first user has processed it, generate a publishing instruction for the target video, and send the publishing instruction to the cloud server.
[0117] Upon receiving the release command, the cloud server can display the parameter editing interface on the client side of the first user. This parameter editing page can contain the display parameters to be edited, as well as the editing area for those parameters.
[0118] The client can detect the user's editing operations on the display parameters in the editing area, thereby obtaining the parameter values of the display parameters, and then sending the parameter values of the display parameters back to the cloud server.
[0119] In this embodiment of the disclosure, a default parameter value can also be displayed in the editing area of each display parameter. At this time, the first user can modify the default parameter value, or directly determine the default parameter value as the parameter value of the corresponding display parameter.
[0120] Here, the display methods include: only the first user can view it, all users can view it, and users who meet the viewing requirements can view it.
[0121] Here, when the target video is a game video, the video type includes game guides (e.g., successfully completing the game or achieving victory) and help requests for assistance (e.g., failing to complete the game).
[0122] In an optional embodiment, the following steps are also included:
[0123] First, after detecting the second user's challenge operation on the processed target video published on the video publishing page, the challenge process video of the second user is generated and stored in the cloud public cache space;
[0124] Secondly, based on the processed target video and the challenge process video, the challenge result for the second user is determined;
[0125] Finally, in response to the second user's result query request, the challenge result is pushed to the second user.
[0126] In the embodiments of this disclosure, after detecting a second user's challenge operation on the processed target video published on the video publishing page, a challenge process video of the second user is generated and stored in a public cache space in the cloud, specifically including the following steps:
[0127] After detecting a challenge operation by a second user on the processed target video published on the video publishing page, the cloud server can first determine the video configuration parameters of the target video.
[0128] Secondly, the cloud server can adjust the video configuration parameters of the second user's client according to the video configuration parameters, so that the video environment configuration of the second user's client is the same as or similar to the video environment configuration of the processed target video.
[0129] Finally, the video generated by the second user under this video environment configuration is used as the challenge process video of the second user, and the challenge process video is stored in the cloud public cache space.
[0130] Here, the video environment configuration includes configuration information such as video scene and user level. When the target video after processing is a game video, the video environment configuration also includes game equipment (e.g., game items, game virtual currency) and button configuration. Therefore, the video environment configuration is related to the application scenario of the technical solution disclosed herein.
[0131] Here, a designated cache space can be allocated for the second user in advance in the public cache space in the cloud, and the challenge process video can be stored in the designated cache space.
[0132] If the target video after processing is a game video showing a successful completion of the level, the challenge result of the challenge process video can be determined using the following methods:
[0133] (1) If the challenge process video and the processed target video are both of type "successful completion", and the challenge time and the amount of game equipment used are less than the challenge time and the amount of game equipment used in the processed target video, then the challenge result of the challenge process video will be set to Excellent.
[0134] (2) If the challenge process video and the processed target video are both of type "successful completion", and either the challenge time or the amount of game equipment used is less than the challenge time or the amount of game equipment used in the processed target video, then the challenge result of the challenge process video is set to "Good".
[0135] (3) If the challenge process video and the processed target video are both of type "successful completion", and the challenge time and the amount of game equipment used are greater than or equal to the challenge time and the amount of game equipment used in the processed target video, then the challenge result of the challenge process video is set to Average.
[0136] (4) If the video type of the target video after processing is "successful" and the video type of the challenge process video is "failed", then the challenge result of the challenge process video will be set to "Poor".
[0137] (5) If the video type of the target video after processing is "failed to pass the level" and the video type of the challenge process video is "successful to pass the level", then the challenge result of the challenge process video will be set to "Excellent".
[0138] (6) If the video type of the target video after processing is "failed to pass the level", and the video type of the challenge process video is "failed to pass the level", then set the challenge result of the challenge process video to "Poor".
[0139] In the embodiments of this disclosure, when the cloud server detects that the first user meets the conditions for pushing game videos, it can push videos of successful level completion from the video publishing page to the first user's client.
[0140] Here, the conditions for pushing game videos include the first user repeatedly failing to complete a certain level or play a game character, and the first user entering a request for help on the video publishing page.
[0141] Reference Figure 5 The diagram shows another video processing method provided in this disclosure, applied to a client. The method includes steps S201 to S202, wherein:
[0142] S201. In response to the first user's video processing instruction for the target video in the target cache space, a video processing request is sent to the cloud server; wherein, the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud public cache space of the cloud server used to store the video stream generated by the first user on the client.
[0143] In embodiments of this disclosure, the cloud server may send a video processing prompt to the first user. This video processing prompt is used to indicate to the first user whether processing is required on the video stream generated by the first user on the client side.
[0144] Here, if the first user chooses to process the video stream generated by the first user on the client, the client can send a video processing request to the cloud server.
[0145] Here, the location information of the target video is used to indicate its storage location on the cloud server. Processing methods include, but are not limited to, video playback and video editing.
[0146] In embodiments of this disclosure, when the client detects that the first user has launched an application that can generate a video stream for the first time, or when the client detects that the first user has run the application for the first time, the client allocates target cache space for the first user in the free space of the cloud public cache space.
[0147] Here, the target cache space allocated by the client to the first user in the cloud-based public cache space is the used space. The size of the target cache space can be determined based on the attributes of the application corresponding to the first user, or a preset cache space value can be used as the target cache space size. The application attributes include the application type, how the application is used, and the application's configuration information.
[0148] Here, refer to Figure 2 The diagram shown is a schematic representation of a cloud-based public cache space provided in an embodiment of this disclosure. The cloud-based public cache space includes used space and free space.
[0149] Here, the used space indicates the cache space allocated to each user. For example, user A's cache space is space A; user B's cache space is space B; and user C's cache space is space C.
[0150] Here, while user A is running the application, the video stream automatically recorded by the cloud server is automatically saved to space A. If the storage space occupied by space A is greater than or equal to a preset storage space threshold, some free space can be allocated to space A to increase its storage capacity.
[0151] For example, if the storage space size of space A is set to T, and the storage space of space A is occupied in accordance with the preset occupancy conditions, 10%*T of the free space will be allocated to space A.
[0152] Here, if the remaining storage space in the free space is less than 10%*T, the spare space in the cloud server will be used to allocate storage space for space A.
[0153] S202. Obtain the processed target video returned by the cloud server; wherein, the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request.
[0154] In the embodiments of this disclosure, when the processing method indicated by the video processing request is video editing, firstly, the cloud server can obtain the location information of the target video to be processed carried in the video processing request. Secondly, it can locate the target video in the target cache space based on the location information. Finally, the target video is edited to obtain the processed target video.
[0155] Here, after obtaining the processed target video, the cloud server can send the processed target video to the client used by the first user.
[0156] Here, if the processing method indicated by the video processing request is video playback, firstly, the cloud server can locate the target video based on the location information of the target video to be processed carried in the video processing request. Then, the found target video is used as the processed target video, and the processed target video is sent to the client used by the first user.
[0157] In the above embodiments, real-time storage of the video stream is achieved by storing the video stream generated by the user on the client to the target cache space corresponding to the user in the cloud service. When the user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. At the same time, the technical solution of this disclosure, by storing the video stream to the target cache space corresponding to the user in the cloud server, provides more sufficient storage resources for the video stream compared to the existing technology of directly storing the video stream to the client's storage space, thereby enabling the storage of higher definition videos.
[0158] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0159] The video processing method provided in this application is described below with a specific embodiment. This embodiment is for the gaming field, and the specific process is described as follows:
[0160] First, when the client detects that the first user has clicked to enter the game application for the first time, a video saving prompt is displayed on the client's display interface, and an entry point to the video recording parameter acquisition page pops up on the display interface.
[0161] Secondly, if the client detects the parameter value of the video recording parameter entered by the first user on the video recording parameter collection page displayed on the client, the game video generated after the game starts will be recorded using the video recording parameter entered by the first user. If the client does not detect the parameter value of the video recording parameter entered by the first user on the video recording parameter collection page displayed on the client, the game video generated after the game starts will be recorded using the default video recording parameters.
[0162] Secondly, the cloud server can pre-allocate cache space, i.e., target cache space, for the first user in the cloud public cache space.
[0163] In practice, the cloud server can allocate target cache space to the first user when it detects that the first user has started the client for the first time; or, the cloud server can allocate target cache space to the first user when it detects that the first user has generated a video stream in the client for the first time; or, the cloud server can also allocate target cache space to the first user when it detects the first user's space allocation request.
[0164] Secondly, the cloud server stores the game video generated after the game starts into the target cache space. Once it is determined that the game video in the target cache space meets the conditions for saving, a video saving prompt is sent to the first user.
[0165] Secondly, upon detecting confirmation of the save information, the game in the target cache space is saved, and the remaining cache time of the game is sent to the first user.
[0166] Secondly, the system detects the first user's video processing request for the game video and determines the game video corresponding to the video processing request in the target cache space. The video processing request carries the location information and / or processing method of the game video.
[0167] The processing methods here include, but are not limited to, video playback, video editing, and video downloading.
[0168] Secondly, the game video is processed according to the processing method indicated by the video processing request, and the processed game video is returned to the first user.
[0169] Secondly, after detecting and issuing the release command for the processed game video, the display parameters of the processed game video are obtained.
[0170] Finally, the processed game video is displayed on the video publishing page according to the aforementioned display parameters.
[0171] Based on the same inventive concept, this disclosure also provides a video processing apparatus corresponding to the video processing method. Since the principle of the apparatus in this disclosure for solving the problem is similar to that of the video processing method described above, the implementation of the apparatus can refer to the implementation of the method, and repeated details will not be repeated.
[0172] Reference Figure 6 The diagram shown is a schematic representation of a video processing apparatus provided in an embodiment of this disclosure. The apparatus includes: a detection module 11, a determination module 12, and a processing module 13; wherein,
[0173] The detection module is used to detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed;
[0174] The determination module is used to determine a target cache space corresponding to the first user in the cloud public cache space, and to determine a target video corresponding to the video processing request in the target cache space; wherein, the target cache space is used to store the video stream generated by the first user on the client.
[0175] The processing module is used to process the target video according to the processing method indicated by the video processing request, and return the processed target video to the first user.
[0176] In the above embodiments, real-time storage of the video stream is achieved by storing the video stream generated by the user on the client to the target cache space corresponding to the user in the cloud service. When the user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. At the same time, the technical solution of this disclosure, by storing the video stream to the target cache space corresponding to the user in the cloud server, provides more sufficient storage resources for the video stream compared to the existing technology of directly storing the video stream to the client's storage space, thereby enabling the storage of higher definition videos.
[0177] Reference Figure 7 The diagram shown is a schematic of another video processing apparatus provided in an embodiment of this disclosure. The apparatus includes: a determining module 21 and a processing module 22; wherein,
[0178] The sending module is used to send a video processing request to the cloud server in response to a video processing instruction from a first user for a target video in the target cache space; wherein the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud public cache space of the cloud server used to store the video stream generated by the first user on the client.
[0179] The acquisition module is used to acquire the processed target video returned by the cloud server; wherein the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request.
[0180] In the above embodiments, real-time storage of the video stream is achieved by storing the video stream generated by the user on the client to the target cache space corresponding to the user in the cloud service. When the user wants to process the video stream, they can send a video processing request to the cloud server at any time through the client to process the video. This processing method avoids the problem of not being able to review videos generated in the past due to the user not recording the video. At the same time, the technical solution of this disclosure, by storing the video stream to the target cache space corresponding to the user in the cloud server, provides more sufficient storage resources for the video stream compared to the existing technology of directly storing the video stream to the client's storage space, thereby enabling the storage of higher definition videos.
[0181] Corresponding to Figure 1 and Figure 5 In addition to the video processing methods described in this disclosure, this embodiment also provides an electronic device 800, such as... Figure 8 The diagram shown is a structural schematic of an electronic device 800 provided in an embodiment of this disclosure, including:
[0182] The system includes a processor 81, a memory 82, and a bus 83. The memory 82 stores execution instructions and includes main memory 821 and external memory 822. The main memory 821, also called internal memory, temporarily stores the computational data in the processor 81, as well as data exchanged with external memory such as a hard disk. The processor 81 exchanges data with the external memory 822 through the main memory 821. When the electronic device 800 is running, the processor 81 communicates with the memory 82 through the bus 83, causing the processor 81 to execute the following instructions:
[0183] Detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed;
[0184] In the cloud public cache space, a target cache space corresponding to the first user is determined, and in the target cache space, a target video corresponding to the video processing request is determined; wherein, the target cache space is used to store the video stream generated by the first user on the client;
[0185] The target video is processed according to the processing method indicated by the video processing request, and the processed target video is returned to the first user.
[0186] The processor 81 can also execute the following instructions:
[0187] In response to a first user's video processing instruction for a target video in a target cache space, a video processing request is sent to a cloud server; wherein, the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud server's public cloud cache space used to store the video stream generated by the first user on the client;
[0188] Obtain the processed target video returned by the cloud server; wherein the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request.
[0189] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the video processing method described in the above-described method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0190] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the video processing method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0191] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0192] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0193] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0194] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0195] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, cloud server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0196] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A video processing method, characterized in that, Applied to cloud servers, including: Detect the video processing request of the first user; wherein the video processing request carries the location information and / or processing method of the target video to be processed; In the cloud public cache space, a target cache space corresponding to the first user is determined, and in the target cache space, a target video corresponding to the video processing request is determined; wherein, the target cache space is used to store the video stream generated by the first user on the client; The target video is processed according to the processing method indicated by the video processing request, and the processed target video is returned to the first user. After the release instruction for the target video after detection and processing, the display parameters of the processed target video are obtained; wherein, the display parameters include, but are not limited to, video type, display method, video name, and key video description information; The processed target video is displayed on the video publishing page according to the aforementioned display parameters; After detecting the second user's challenge operation on the processed target video published on the video publishing page, a challenge process video of the second user is generated and stored in the cloud public cache space; Based on the processed target video and the challenge process video, the challenge result of the second user is determined; In response to the second user's result query request, the challenge result is pushed to the second user.
2. The method according to claim 1, characterized in that, The processing method is video editing; processing the target video according to the processing method indicated by the video processing request includes: Obtain video editing parameters, and edit the target video according to the video editing parameters to obtain the edited target video; The edited target video is stored in the target private space of the cloud private space; wherein, the target private space is used to store the video edited by the first user.
3. The method according to claim 2, characterized in that, The target private space for storing the edited target video in the cloud includes: If it is determined that the first user's private space does not exist in the cloud private space, a permission prompt message is sent to the first user; wherein, the permission prompt message is used to prompt the first user whether to enable or use the private space; Upon detecting the confirmation message sent by the first user, the target private space is allocated to the first user in the cloud private space, and the edited target video is stored in the target private space.
4. The method according to claim 1, characterized in that, The method further includes: If it is determined that the cached video in the target cache space meets the conditions for saving, a video saving prompt is sent to the first user; wherein, the video saving prompt is used to prompt the first user whether to continue saving the cached video; If the confirmation of saving information is detected, the cached video in the target cache space continues to be saved, and the remaining cache time of the cached video is sent to the first user.
5. A video processing method, characterized in that, Applied to the client side, including: In response to a first user's video processing instruction for a target video in a target cache space, a video processing request is sent to a cloud server; wherein, the video processing request carries the location information and / or processing method of the target video, and the target cache space is the storage space in the cloud server's public cloud cache space used to store the video stream generated by the first user on the client; Obtain the processed target video returned by the cloud server; wherein the processed target video is obtained by the cloud server processing the target video according to the processing method indicated by the video processing request; The cloud server sends the processed target video display parameters to the cloud server, so that the cloud server displays the processed target video on the video publishing page according to the display parameters; wherein, the display parameters include, but are not limited to, video type, display method, video name, and key video description information; Specifically, after detecting a second user's challenge operation on the processed target video published on the video publishing page, the cloud server generates and stores the second user's challenge process video in the cloud public cache space; based on the processed target video and the challenge process video, it determines the second user's challenge result; and in response to the second user's result query request, it pushes the challenge result to the second user.
6. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the video processing method as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the video processing method as described in any one of claims 1 to 5.
8. A computer program product, characterized in that, The computer program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the video processing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Real-time cloud game video recording method, system and device and storage medium
CN111447485A
Cloud-based video processing method and device, storage medium and electronic equipment
CN112261416A
Data access method, system and device, electronic equipment and storage medium
CN115865862A