Game wonderful moment recording method and system
By recording and synthesising videos on cloud servers, the problem of gamers being stuck and high thresholds when recording exciting moments is solved, achieving a more efficient video sharing experience, reducing the performance consumption and data security risks of the client.
Patent Information
- Application Number
- CN202411066597.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-03
AI Technical Summary
When gamers record exciting moments of games, they need to use third-party recording software, which leads to game lag and raises the production threshold, and cannot be effectively applied to all gamers groups.
When the client starts the game program, the video recording tool is initialized and environmentally deployed through the cloud server, collects and uploads exciting moment information, and the cloud server records and synthesizes videos to generate complete video files to reduce the performance consumption of the client.
It greatly releases the client's video recording performance consumption, reduces the threshold for gamers to share videos, improves gamers' experience, and avoids game performance degradation and data security issues.
Smart Images

Figure CN119071581A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method and system for recording game highlights. Background Art
[0002] When playing massively multiplayer online games, gamers want to record the exciting game clips during the game and share and spread them on social platforms. To solve the above problem, the existing technology mainly adopts the following solution: during the game, open a third-party screen recording software to record all the information in the game into a video file, and use another video editing tool to edit the exciting clips and splice them into a video for sharing.
[0003] When using the above solution, gamers need to use third-party recording software, which may cause game lag due to too many application startups during the game. In addition, using third-party game editing software raises the production threshold and requires additional video editing skills and learning costs, which cannot be effectively applied to all game player groups.
[0004] The Chinese patent with publication number CN107297074A discloses a game video recording method, terminal and storage medium, which belongs to the field of terminal technology. The method includes the steps of: obtaining game player information; according to the game player information, starting the polling recording function during the running of the game program; during the polling recording process, determining whether there is a wonderful video; if so, recording the wonderful video. The invention requires polling during the running of the game program, which increases the performance overhead of the system, especially if the game screen needs to be captured and processed frequently during the recording process, which may cause the game performance to decline and affect the player's gaming experience. Summary of the invention
[0005] The present invention provides a method and system for recording game highlights, aiming to solve the problem that the existing game highlights recording requires game players to use third-party recording software and the game may be stuck due to too many application startups.
[0006] In order to solve the above technical problems, the present invention provides a method for recording game highlights, comprising the following steps:
[0007] S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client.
[0008] S2: When the game program is running, the client collects a collection of highlights and uploads it to the cloud server.
[0009] S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding several wonderful moment information in sequence.
[0010] S4: Adjust the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, start the video recording function, stop the video recording until the recording end time, store the corresponding wonderful moments and mark the timeline.
[0011] S5: After obtaining all the wonderful moments, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline markers of the wonderful moments, integrates all the wonderful moments into a complete video file and stores it in the cloud server space.
[0012] Preferably, the step S2 is specifically:
[0013] S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range.
[0014] S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
[0015] Preferably, in step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows:
[0016] The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
[0017] Preferably, the method further comprises: the cloud server sends a notification of having created the wonderful moment video file to the client, and after receiving the notification, the client allows to start downloading the wonderful moment video file and obtains the corresponding wonderful moment video file from the cloud server space.
[0018] On the other hand, the present invention also provides a game highlight moment recording system, including a client and a cloud server, and the system implements the following steps:
[0019] S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client.
[0020] S2: When the game program is running, the client collects a collection of highlights and uploads it to the cloud server.
[0021] S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding several wonderful moment information in sequence.
[0022] S4: Adjust the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, start the video recording function, stop the video recording until the recording end time, store the corresponding wonderful moments and mark the timeline.
[0023] S5: After obtaining all the wonderful moments, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline markers of the wonderful moments, integrates all the wonderful moments into a complete video file and stores it in the cloud server space.
[0024] Preferably, the step S2 is specifically:
[0025] S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range;
[0026] S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
[0027] Preferably, in step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows:
[0028] The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
[0029] Preferably, the system further implements: the cloud server sends a notification of having created a wonderful moment video file to the client, and after receiving the notification, the client allows to start downloading the wonderful moment video file and obtains the corresponding wonderful moment video file from the cloud server space.
[0030] On the other hand, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for recording game highlights as described in any embodiment of the present invention when executing the computer program.
[0031] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for recording game highlights as described in any embodiment of the present invention is implemented.
[0032] Compared with the prior art, the present invention has the following technical effects:
[0033] The present invention adopts a video synthesis solution based on video recording on the server, which greatly releases the performance consumption of the client for video recording, and dynamically generates corresponding video highlights of wonderful moments, lowering the entry threshold for game players to share wonderful videos, allowing more game players to experience game video sharing and improving the game players' experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is an overall flow chart of the method for recording game highlights of the present invention. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in combination with specific embodiments of the present application and with reference to the accompanying drawings.
[0036] Embodiment 1
[0037] This embodiment provides a method for recording game highlights, and simplifies the process of recording and sharing game videos, making it easier to operate, while reducing the performance consumption of the client during the recording process, thereby improving the game experience of game players. Figure 1 As shown, the following steps are included:
[0038] S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client to ensure the normal operation of the connection and communication between the client and the cloud server.
[0039] S2: When the game program is running, the client collects a collection of highlights and uploads it to the cloud server.
[0040] As a preferred implementation of this embodiment, step S2 is specifically as follows:
[0041] S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range.
[0042] As a preferred implementation of this embodiment, in step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows:
[0043] The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
[0044] Furthermore, the preset value of HP in residual HP elimination can be set according to the overall HP setting of the game, the game rhythm or the game difficulty, and is generally set to 5. The preset time period in continuous elimination can be set according to the game rhythm and the frequency of interaction between game players, and is generally set to 30s; the preset number of eliminated opponents in continuous elimination can be set according to the average density of game players and the frequency of interaction between game players. The preset number of eliminated opponents in vehicle elimination can be set according to the availability of vehicles. The preset number of eliminated opponents in elimination highlights can be set according to the game achievement system or reward mechanism, and is generally higher than the preset number of eliminated opponents in continuous elimination and vehicle elimination.
[0045] S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
[0046] S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding several wonderful moment information in sequence.
[0047] S4: Adjust the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, start the video recording function, stop the video recording until the recording end time, store the corresponding wonderful moments and mark the timeline.
[0048] S5: After getting all the highlights, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline mark of the highlights, integrates all the highlights into a complete video file and stores it in the cloud server space. The capture of the entire highlight moment and the synthesis of the video file are all located on the cloud server, without occupying the resources of the client device, reducing the burden on the client, avoiding adverse effects on game performance, and having better data security and reliability, preventing game player data from being lost or damaged.
[0049] As a preferred implementation of this embodiment, the method further includes: the cloud server sends a notification that the wonderful moment video file has been created to the client, and after receiving the notification, the client allows the download of the wonderful moment video file to be started, and obtains the corresponding wonderful moment video file from the cloud server space. After waiting for the final complete download of the video, an MP4 video is automatically generated, allowing game players to play and share the video.
[0050] Embodiment 2
[0051] Accordingly, this embodiment provides a system for recording game highlights, including a client and a cloud server, wherein the cloud server is configured with a video recording tool and a video synthesis tool, and the system implements the following steps:
[0052] S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client to ensure the normal operation of the connection and communication between the client and the cloud server.
[0053] S2: When the game program is running, the client collects a collection of highlights and uploads it to the cloud server.
[0054] As a preferred implementation of this embodiment, step S2 is specifically as follows:
[0055] S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range.
[0056] As a preferred implementation of this embodiment, in step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows:
[0057] The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
[0058] Furthermore, the preset value of HP in residual HP elimination can be set according to the overall HP setting of the game, the game rhythm or the game difficulty, and is generally set to 5. The preset time period in continuous elimination can be set according to the game rhythm and the frequency of interaction between game players, and is generally set to 30s; the preset number of eliminated opponents in continuous elimination can be set according to the average density of game players and the frequency of interaction between game players. The preset number of eliminated opponents in vehicle elimination can be set according to the availability of vehicles. The preset number of eliminated opponents in elimination highlights can be set according to the game achievement system or reward mechanism, and is generally higher than the preset number of eliminated opponents in continuous elimination and vehicle elimination.
[0059] S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
[0060] S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding several wonderful moment information in sequence.
[0061] S4: Adjust the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, start the video recording function, stop the video recording until the recording end time, store the corresponding wonderful moments and mark the timeline.
[0062] S5: After getting all the highlights, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline mark of the highlights, integrates all the highlights into a complete video file and stores it in the cloud server space. The capture of the entire highlight moment and the synthesis of the video file are all located on the cloud server, without occupying the resources of the client device, reducing the burden on the client, avoiding adverse effects on game performance, and having better data security and reliability, preventing game player data from being lost or damaged.
[0063] As a preferred implementation of this embodiment, the system also implements: the cloud server sends a notification that a wonderful moment video file has been created to the client, and after receiving the notification, the client is allowed to start downloading the wonderful moment video file and obtain the corresponding wonderful moment video file from the cloud server space. After waiting for the final complete download of the video, an MP4 video is automatically generated, allowing game players to play and share the video.
[0064] Embodiment 3
[0065] This embodiment provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, a method for recording game highlights as described in any embodiment of the present invention is implemented.
[0066] Embodiment 4
[0067] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for recording game highlights as described in any embodiment of the present invention is implemented.
[0068] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0069] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0070] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0071] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.
[0072] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for recording game highlights. It is characterized in that The following steps are involved: S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client; S2: The client collects the highlights information when the game program is running and uploads it to the cloud server; S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding pieces of wonderful moment information; S4: adjusting the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, and starting the video recording function, stopping the video recording until the recording end time, storing the corresponding wonderful moments and marking the timeline; S5: After obtaining all the wonderful moments, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline markers of the wonderful moments, integrates all the wonderful moments into a complete video file and stores it in the cloud server space.
2. The method for recording game highlights according to claim 1, It is characterized in that The step S2 is specifically as follows: S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range; S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
3. The method for recording game highlights according to claim 2, It is characterized in that In step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows: The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
4. The method for recording game highlights according to claim 1, It is characterized in that The method further includes: the cloud server sends a notification that the wonderful moment video file has been created to the client, and after the client receives the notification, it allows the download of the wonderful moment video file to be started and obtains the corresponding wonderful moment video file from the cloud server space.
5. A system for recording game highlights. It is characterized in that Including a client and a cloud server, the system implements the following steps: S1: When the client starts the game program, the cloud server initializes the video recording tool in the game, deploys the environment and prepares for recording, and establishes a connection with the client; S2: The client collects the highlights information when the game program is running and uploads it to the cloud server; S3: The cloud server deserializes the wonderful moment information set uploaded by the client, restores the wonderful moment information set, and parses the wonderful moment information set one by one to obtain the corresponding pieces of wonderful moment information; S4: adjusting the game content played by the video recording tool on the cloud server to the recording start time corresponding to each wonderful moment information, and starting the video recording function, stopping the video recording until the recording end time, storing the corresponding wonderful moments and marking the timeline; S5: After obtaining all the wonderful moments, the cloud server starts the video synthesis tool, performs corresponding dynamic splicing according to the timeline markers of the wonderful moments, integrates all the wonderful moments into a complete video file and stores it in the cloud server space.
6. The game highlights recording system according to claim 5, It is characterized in that The step S2 is specifically as follows: S21: When the game program is running, the client determines the recording start time of the wonderful moment, calculates the recording duration according to the recording start time and the recording end time, and determines whether the recording duration meets the predetermined recording time range; S22: After determining that the recording duration meets the predetermined recording time range, the current wonderful moment information is recorded and the timeline is marked, and all the collected wonderful moment information is collected. After the game program ends, the client serializes the obtained wonderful moment information collection and uploads it to the cloud server.
7. The game highlights recording system according to claim 6, It is characterized in that In step S21, when the game program is running, the client determines the start time of recording the wonderful moment as follows: The occurrence times of low-health elimination, continuous elimination, vehicle elimination, and elimination highlights are set as the start time of recording wonderful moments; the judgment of low-health elimination is set to eliminate opponents when the health of the current game player is less than a preset value; the judgment of continuous elimination is set to eliminate a preset number of opponents when the time interval between each elimination is less than a preset time period; the judgment of vehicle elimination is set to that the current game player eliminates a preset number of opponents through the vehicle during the game; the judgment of elimination highlights is set to that the current game player eliminates a preset number of opponents throughout the game.
8. The game highlights recording system according to claim 5, It is characterized in that The system also implements: the cloud server sends a notification of having created a wonderful moment video file to the client, and after receiving the notification, the client is allowed to start downloading the wonderful moment video file and obtain the corresponding wonderful moment video file from the cloud server space.
9. An electronic device, the electronic device include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for recording game highlights as described in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for recording game highlights as claimed in any one of claims 1 to 4 is implemented.
