WO2022127272A1 - Video generation method and apparatus, electronic device and storage medium - Google Patents

Video generation method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2022127272A1
WO2022127272A1 PCT/CN2021/121100 CN2021121100W WO2022127272A1 WO 2022127272 A1 WO2022127272 A1 WO 2022127272A1 CN 2021121100 W CN2021121100 W CN 2021121100W WO 2022127272 A1 WO2022127272 A1 WO 2022127272A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
information
event
event information
game
Prior art date
Application number
PCT/CN2021/121100
Other languages
French (fr)
Chinese (zh)
Inventor
谢祥超
邵峰
陈康康
魏毅
尤炜
沈晖
Original Assignee
完美世界征奇(上海)多媒体科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 完美世界征奇(上海)多媒体科技有限公司 filed Critical 完美世界征奇(上海)多媒体科技有限公司
Publication of WO2022127272A1 publication Critical patent/WO2022127272A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/85Providing additional services to players
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present invention relates to the field of data processing, and in particular, to a video generation method and apparatus, electronic equipment and storage medium.
  • players can log in to a multiplayer battle game through a client, and the multiplayer battle game can be a first-person shooter game in which multiple people are online at the same time, or other types of battle games.
  • the multiplayer battle game can be a first-person shooter game in which multiple people are online at the same time, or other types of battle games.
  • a function module is generally injected into the game client to intercept key event time points, and then a local recording process is started to record and synthesize.
  • the anti-plug-in module DLL (Dynamic Link Library) can be injected into the game APP (Application, application).
  • the anti-plug-in module is an independent dll, and the dll can be loaded into the game process using the remote thread technology, thereby Gain access to in-game functions and data addresses.
  • the anti-plug-in function module here can be an inline hook. By modifying the function header code of the internal function of the game, it can take over the call of the internal function of the game and monitor the caller information.
  • the game video recording method in the related art has the problem of increasing local resource consumption due to the need to run additional programs on the client.
  • a video generation method and apparatus, electronic device and storage medium are provided, which can at least solve the problem of increasing local resource consumption due to the need to run additional programs on the client side in the way of game video recording in the related art. The problem.
  • a video generation method which includes: acquiring a game game information record file of a target game game, wherein the game game information record file records at least one event information; extracting the game game information Record the target event information that meets the preset conditions in the file, and send at least part of the target event information to the client to support generating target event display information at the client, wherein the target event display information is used to At least part of the target event information is displayed at the client; in response to a target video generation instruction corresponding to the target event presentation information triggered at the client, a target video is generated according to the target event information.
  • a video generation method comprising: receiving target event information from a server, wherein the target event information is extracted by the server from a game round information record file of a target round game The event information that meets the preset conditions, the game information record file records at least one event information; Generate and display target event display information in the interface area of the client, wherein the target event display information is used to display at least part of The target event information; triggering a target video generation instruction corresponding to the target event display information on behalf of the user, so that the server side generates a target video according to the target event information.
  • a video generation device comprising: an acquisition unit configured to acquire a game information record file of a target game, wherein the game information record file records at least one event information
  • the extraction unit is used to extract the target event information that meets the preset conditions in the game information record file, and send at least part of the target event information to the client to support generating the target event display at the client information, wherein the target event display information is used to display at least part of the target event information at the client;
  • a generating unit is configured to respond to a trigger at the client corresponding to the target event display information
  • the target video generation instruction generates a target video according to the target event information.
  • a video generating apparatus comprising: a receiving unit configured to receive target event information from a server, wherein the target event information is the game round of the target round game played by the server from the server Event information extracted from the information record file that meets the preset conditions, the game information record file records at least one event information; the first generating unit is used to generate and display the target event display information in the interface area of the client, wherein , the target event display information is used to display at least part of the target event information; a triggering unit is used to trigger, on behalf of the user, a target video generation instruction corresponding to the target event display information, so that the server can Event information to generate target video.
  • an electronic device including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein the memory, For storing a computer program; a processor for implementing the steps of the method in any of the above embodiments by executing the computer program stored on the memory.
  • a computer-readable storage medium is also provided, where a computer program is stored in the storage medium, wherein when the computer program is executed by a processor, the steps of the method in any of the foregoing embodiments are implemented .
  • a computer program product comprising a computer program, which implements the steps of the method in any of the above embodiments when the computer program is executed by a processor.
  • the beneficial effects of the present invention are as follows: in the embodiment of the present invention, the method of using the game information record file to generate video after the game is over is adopted, and the game information record file of the target game is obtained by obtaining the game information record file, wherein the game information record file At least one event information is recorded; the target event information that meets the preset conditions in the game information record file is extracted, and at least part of the target event information is sent to the client to support generating target event display information at the client, wherein , the target event display information is used to display at least part of the target event information at the client; in response to the target video generation instruction corresponding to the target event display information triggered at the client, the target video is generated according to the target event information, because the video is in the After the game is over, it is generated based on the target event information extracted from the game information record file, instead of using the client-side screen recording method during the running of the game, which will not cause performance loss to the game experience; in addition, the video generation is performed by The server executes, rather than inject
  • FIG. 1 schematically shows a schematic diagram of a hardware environment of an optional video generation method according to an embodiment of the present invention
  • FIG. 2 schematically shows a schematic flowchart of an optional video generation method according to an embodiment of the present invention
  • FIG. 3 schematically shows a schematic flowchart of an optional parsing demo file according to an embodiment of the present invention
  • FIG. 4 schematically shows a schematic flowchart of an optional highlight moment generation according to an embodiment of the present invention
  • FIG. 5 schematically shows a schematic flowchart of another optional video generation method according to an embodiment of the present invention.
  • FIG. 6 schematically shows a schematic flowchart of another optional video generation method according to an embodiment of the present invention.
  • FIG. 7 schematically shows a structural block diagram of an optional video generation apparatus according to an embodiment of the present invention.
  • FIG. 8 schematically shows a structural block diagram of an optional video generation apparatus according to an embodiment of the present invention.
  • FIG. 9 schematically shows a structural block diagram of an optional electronic device according to an embodiment of the present invention.
  • Figure 10 schematically shows a block diagram of a computer apparatus for implementing the method according to the invention.
  • Figure 11 schematically shows a block diagram of a computer program product implementing the method according to the invention.
  • a video generation method is provided.
  • the above video generation method can be applied to the hardware environment composed of the terminal 102 and the server 104 as shown in FIG. 1 .
  • the server 104 is connected with the terminal 102 through the network, and can be used to provide services (such as game services, application services, etc.) for the terminal or the client installed on the terminal, and a database can be set on the server or independently of the server, Used to provide data storage services for the server 104 .
  • the above-mentioned network 104 includes but is not limited to at least one of the following: wired network, wireless network, the wired network may include but not limited to at least one of the following: a wide area network, a metropolitan area network or a local area network, the wireless network may include but not limited to at least one of the following One: Bluetooth, WIFI (Wireless Fidelity, wireless fidelity) and other networks that realize wireless communication.
  • the above-mentioned terminal 102 may be a terminal for computing data, such as a mobile terminal (such as a mobile phone, a tablet computer), a notebook computer, a PC (Personal Computer, personal computer) and other terminals.
  • the above-mentioned server may include, but is not limited to, any hardware device that can perform computing.
  • the video generation method according to the embodiment of the present invention may be executed by the server 104 , may also be executed by the terminal 102 , or may be executed jointly by the server 104 and the terminal 102 .
  • the terminal 102 executes the video generation method of the embodiment of the present invention, it may also be executed by a client installed on the terminal 102 .
  • FIG. 2 is a schematic flowchart of an optional video generation method according to the embodiment of the present invention. As shown in FIG. 2 , the process of the method can be It includes step S202, step S204 and step S206.
  • step S202 a game game information record file of the target game game is acquired, wherein the game game information record file records at least one event information.
  • the video generation method in this embodiment can be applied to a scene where a video of a highlight moment of a game is generated for a user, and the highlight moment video may include a video within a time period (which may be a short period of time) of a specific event that occurs in a game screen.
  • the video generation method in this embodiment is also applicable.
  • the above-mentioned one game may be one game (ie, one game) of the target game.
  • the target game can be a terminal game, a mobile game, a VR (Virtual Reality, virtual reality) game, an AR (Augmented Reality, augmented reality) game, or other types of games.
  • the target game can be a multiplayer battle game, for example, it can be FPS (First-person shooting game, first-person shooting game), FTG (Fighting Game, fighting game), MMORPG (Massive Multiplayer Online Role-Playing Game) , MMORPGs), or other game types.
  • the type of the target game is not limited.
  • a multiplayer online FPS game on the PC side is used as an example for description.
  • the video generation method in this embodiment is also applicable.
  • the game client with the target game can be run on the user's terminal device.
  • the game client can communicate with the server, and the above server is the background server of the target game. Users can use account and password, dynamic password, associated application (third-party application) login, etc. to log in to their terminal device to run the game client, and enter a game (a game) by operating the game client.
  • a platform client may also be downloaded and installed on the user's terminal device, and the platform client may serve as a launcher for one or more games (including target games), so that the game platform can be downloaded and installed on the user's terminal device.
  • Start the target game the game client that starts the target game
  • enter the game room and start a game of the target game, that is, the target game.
  • the platform client is run on the user's terminal device, and the target game is started through the platform client as an example.
  • the video generation method in this embodiment is the same. Be applicable.
  • the target round game may be a whole round game (not divided into small rounds), or may include multiple round games (eg, 30 rounds).
  • the target game may be an FPS game with MvM (M is a positive integer greater than 1, for example, 5v5), and the target game may be a game (or a game) of the target game.
  • the game server may generate a game round information record file of the target round game.
  • the game information record file is a file used to record game information of the target game, at least one event information can be recorded, and each event information can be used to represent one or more events that occurred in the target game.
  • the game information record file may be a structured file for recording all events that occur in the target game.
  • the game server can generate a demo (demonstration, example) file with a .dem extension, which contains all events for each small game and each player of the entire game, which is a structured document.
  • demo demo
  • a .dem extension which contains all events for each small game and each player of the entire game, which is a structured document.
  • the server side may save a game information record file (for example, a demo file) of the entire game, and the game information record file is a file directly output by the game.
  • the server side can generate the target video by parsing the game information record file.
  • the generated video has a time limit, such as 15s, which is similar to a short video.
  • the whole process can be completed on the cloud server.
  • the target video may be a highlight moment video, which may be simply referred to as a highlight moment, a perfect moment, or a wonderful moment.
  • the cloud server may include multiple servers, including but not limited to at least one of the following: a game server, a parsing server (eg, a demo parsing server), a recording and synthesis server, a platform server, and a cloud-on-demand (cloud-on-demand platform).
  • the game server may synchronize the game round information record file to the parsing server.
  • the parsing server may acquire a game game information record file of the target game game, and the game game information record file records at least one event information. At least one event information may be used to represent all events of each participating object in the target round game.
  • At least one event information may include, but is not limited to, at least one of the following events: start and end of the target round, start and end of each round, damage and kills, in and out, shooting and use props etc.
  • step S204 the target event information that meets the preset conditions in the game information record file is extracted, and at least part of the target event information is sent to the client to support the generation of target event display information at the client, wherein the target The event display information is used to display at least part of the target event information at the client.
  • the parsing server can parse the game information record file, and extract the target event information in the game game information record file that meets the preset conditions.
  • the preset condition is a pre-configured event condition, which is used to filter or extract which events triggered by the object, which may be: an object triggers the target event.
  • the preset condition can describe the target event triggered by an object (user) in the target game, and the target event can be configured according to the event that generates the video.
  • the preset condition may be that a user triggers all or part of the following events: a kill event, a continuous kill event, a cumulative kill event, a cumulative assist event, and so on.
  • the parsing server may extract at least part of the information from the target event information, that is, at least part of the target event information, and send at least part of the target event information to the client, so as to support the client and generating target event presentation information for presenting at least part of the target event information.
  • the parsing server may also directly send the target event information to the client, and the client extracts at least part of the information, and generates target event display information.
  • the client can directly receive at least part of the target event information from the server, or receive the target event information from the server, extract a specific part of the information from the server, and obtain at least part of the target event information.
  • the client can generate target event display information, and display the target event display information in the interface area of the client.
  • the target event display information may include all or part of the following: an event screen for describing the target event, Text, link to target video.
  • the client can display target prompt information (for example, displaying "there is a highlight moment to be generated", or other prompt information) through a pop-up window or the like.
  • target prompt information for example, displaying "there is a highlight moment to be generated", or other prompt information
  • the user can enter the personal center or other display interface by operating the client.
  • the target event display information can be displayed in a certain interface area of the personal center.
  • a prompt message may be displayed below the avatar frame on the main interface of the user's client or at other positions, prompting the user that there is a highlight moment to be generated.
  • the user can click on the avatar frame and enter the personal record center, which will be displayed at the highlight moment.
  • the area displays the video area of one or more games that can generate highlight moments, and displays prompts such as "to be generated” on the video area.
  • step S206 in response to the target video generation instruction corresponding to the target event presentation information triggered by the client, the target video is generated according to the target event information.
  • the client After detecting the operation performed by the user on the target event display information, or the operation performed on the button associated with the target display information, the client can trigger the target video generation instruction corresponding to the target event display information on behalf of the user to generate the above target video.
  • the target video generation instruction may be directly generated on the client side based on the user's operation, or the client side may return video generation response information to the server side to trigger the server side to generate the target video generation instruction.
  • the target video generation instruction may carry the target game's logo, the target game's logo, and the user's user logo (object logo of the object) to indicate which object was invented at the highlight moment of which game.
  • the server side may receive the above-mentioned target video generation instruction triggered by the client, and in response to the target video generation instruction, generate the target video according to the target event information.
  • the generated target video may be a highlight moment video of a participating object in the target game. Because the game information record file is used to record the game information of the target game, it can be used to trace the process of the target game; and according to the target event information, the server can determine which part of the process to trace back to the target game, so that it can Generate the target video.
  • the target event information that meets the preset condition may be multiple, if the multiple target event information corresponds to different participating objects.
  • the server may respectively send at least part of the target event information to the client of the corresponding participating object, so as to generate a target video corresponding to the participating object.
  • the generation process of the target video Similar to the above, it is not repeated here.
  • the server can also directly generate the target video based on the extracted target event information, without the need for the user to trigger the video generation instruction, and regenerate the target video according to the video generation instruction. This method can save computing resources on the server side.
  • a prompt button may be displayed on the game settlement interface displayed on the client, for example, a prompt button for generating a highlight moment.
  • the user can perform the triggering operation on the prompt button to trigger the sending of the video generation invention to the server, and the server can respond to the video generation invention, execute the acquisition of the game information record file of the target game, and extract the game information record file that meets the preset conditions. and the step of generating a target video according to the target event information.
  • the video generation solution provided in this implementation can reduce resource occupancy and improve user experience. .
  • the above-mentioned video generation method can also be executed by the client, for example, after the end of the target game, the client completes the above-mentioned video generation process, or another client completes the above-mentioned video generation process;
  • the video generation method may also be jointly executed by the server and the client, both of which respectively execute some steps of the above video generation process, which are not specifically limited in this embodiment.
  • the target event refers to a specific event in the game process, and the specific events triggered by different objects and the specific events triggered by the same object in the same game or in different games may be different.
  • the target video may be the highlight moment of the target object, including the video of the video screen where the target object triggers the target event, and the target video corresponding to different games may be different, which is not limited in this embodiment.
  • the game information record file of the target game is obtained, wherein the game information record file records at least one event information; the target event information that meets the preset conditions in the game game information record file is extracted, and Sending at least part of the target event information to the client to support generating target event display information at the client, wherein the target event display information is used to display at least part of the target event information at the client; in response to triggering at the client
  • the target video generation instruction corresponding to the target event display information, and the target video is generated according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the related art method of recording game videos. , which reduces resource consumption on the terminal side and improves user account security.
  • extracting target event information that meets preset conditions in the game information record file may include:
  • the parsing server can read the game information record file (demo file), traverse the game information record file, obtain the event information in the game information record file in turn in the order of traversal, and obtain the target event stream, and the target event stream is at least one
  • the event stream is obtained by sorting the event information according to the order of occurrence.
  • the parsing server may traverse the target event stream (at least one event information) to obtain target event information that meets preset conditions.
  • the target event information corresponds to the target event, and may be event information in the target event stream, or event information determined according to the event information in the target event stream.
  • the manner of determining the target event information may be configured as required, which is not limited in this embodiment.
  • the purpose of first traversing the game information record file to obtain the target event stream is to parse out the event information contained in the game game information record file, and then traversing the target event stream is to obtain the target event information that meets the preset conditions.
  • the video generation method in the above-mentioned embodiment is also applicable.
  • the event stream of the target game is obtained by reading the game information record file, and the target event information is determined by traversing the event stream, which can improve the applicability of video generation (applicable when the target event information is an event in the target event stream).
  • Information scenarios can also be applied to scenarios in which the target event information is event information determined according to the event information in the target event stream).
  • traversing at least one event information to obtain target event information that meets preset conditions may include:
  • S21 traverse at least one event information to obtain at least one reference event information, wherein the reference event information is used to represent a reference object that triggers a kill event and the start and end time of a kill event;
  • S22 traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event information is used to represent the target event, reference The target object that triggered the target event in the object, and the start and end time of the target event.
  • the preset condition is that an object triggers a target event
  • the target event kills events at least twice
  • the target event information is used to represent the target event, reference The target object that triggered the target event in the object, and the start and end time of the target event.
  • the preset condition can be an object triggering a target event, and the target event can be an event corresponding to the entire game, or an event corresponding to a small game in the entire game (corresponding to the target game containing multiple small games. game scene).
  • the type of target event can be configured as desired, for example, it can be a one-kill event or at least two kill events.
  • the above-mentioned at least two killing events may be consecutive killing events. For example, the interval between two consecutive killings does not exceed the target time interval, or, the object has not left the battle during the entire killing process.
  • the secondary kill event may be a cumulative kill event, for example, a cumulative kill event in the entire game, or a cumulative kill event in a small game.
  • the target event may also be other types of events, eg, a player playing alone against multiple players of an opponent, winning or escaping successfully, ie, 1vn.
  • the target event may include at least one of the following: 1v3, 3 kills (consecutive kills or accumulative kills), 4 kills (consecutive kills or accumulative kills), 5 kills (consecutive kills or accumulative kills), and the like.
  • the parsing server can traverse the target event stream to obtain at least one reference event information.
  • the reference event information is used to indicate the reference object that triggers a kill event, and a The start and end time of the kill event.
  • the parsing server can traverse each event information in the target event stream to determine whether the event information is a reference event information, that is, determine whether the event information is kill information, and if so, the parsing server can determine it as a reference event information event information, thereby obtaining at least one reference event information.
  • start and end time of the killing event may be the start and end time corresponding to the killing event and the participating objects are in a combat state; , back 3s), or, it can also be a period of time from when the user operates a scene prop and uses the prop to trigger a kill until the prop is replaced, or other types of start and end time, which are not limited in this embodiment.
  • the parsing server can obtain target event information that meets preset conditions, and the target event information can be used to represent: the target event (for example, 3 kills), the target object that triggered the target event in the reference object (for example, corresponding to the user ID of a user), and the start and end time of the target event.
  • the target event for example, 3 kills
  • the target object that triggered the target event in the reference object for example, corresponding to the user ID of a user
  • start and end time of the target event for example, 3 kills
  • the reference event information is used to indicate a kill event triggered by a specific object and the start and end time of a kill event
  • the target event information is used to indicate the target event, the target object, and the start and end time of the target event.
  • the information extraction process is similar to that described above and will not be repeated here.
  • the accuracy of information acquisition can be improved by acquiring the killing information first and then acquiring the killing information for multiple times.
  • traversing at least one event information to obtain at least one reference event information may include:
  • the target round game includes a plurality of small round games
  • the preset condition is that an object triggers at least two kill events in a small round game
  • traverse at least one event information and obtain information related to the plurality of small round games
  • the reference event information group may include at least part of the event information in at least one reference event information.
  • the parsing server may traverse the target event flow according to the round game. For example, at least one event information can be traversed to obtain a reference event information group corresponding to each round game, and each reference event information group includes reference event information in this round game.
  • the above at least one reference event information includes a reference event information group corresponding to each small round game.
  • the traversal of the target event stream is performed according to each small game, which can facilitate the extraction of target event information.
  • traversing at least one reference event information to obtain target event information that meets preset conditions may include:
  • S51 traverse the reference event information group of each small game to obtain target event information corresponding to each small game and meeting the preset conditions, wherein the target event information can be used to represent the target event, the target object, and the target event The game it belongs to, and the start and end time of the target event in the game it belongs to.
  • the parsing server may traverse separately to obtain target event information corresponding to each round game and meeting the preset conditions.
  • the obtained target event information can be used to represent the target event and the target object that triggers the target event.
  • the target event information may also be used to indicate the round game to which the target event belongs, and the start and end times of the target event in the round game to which the target event belongs.
  • the server can receive the video generation instruction returned by the client of each object, obtain the video generation instruction list, and extract the video generation instruction from it, and perform target video generation according to the corresponding target event information.
  • the demo parsing server can analyze the demo file of the game to get all the kills, assists, deaths and other events that occurred in the game; statistics based on these events can be used to get the highlights of each player. (For example, kill more than 3 people in a game and win), then record the start and end times that include these events.
  • the above-mentioned recording of the start and end times of the target events contained in different objects may include the following steps:
  • Step 1 read the demo file
  • Step 2 traversing to obtain an event stream sequence, that is, an event stream
  • Step 3 analyze the event flow sequence to determine whether it is the beginning of a game (a small game), if so, execute step 4, otherwise, execute step 8;
  • Step 4 record the information of the authority (this small bureau), and traverse the event flow;
  • Step 5 judge whether it is the end of the authority, if so, go to step 2, otherwise, go to step 6;
  • Step 6 determine whether the player is connected or killed, if so, go to Step 7, otherwise, go to Step 4;
  • Step 7 record kill information and start and end time (start and end time of kill information);
  • Step 8 judge whether it is the end of the file, if so, go to step 9, otherwise, go to step 2;
  • Step 9 Form each round of information into an array in sequence, and traverse the array
  • Step 10 judge whether the traversal is completed, if yes, go to step 14, otherwise, go to step 11;
  • Step 11 obtain a round of data
  • Step 12 judge whether it contains 3 kills, 4 kills or 5 kills, if it is, go to step 13, otherwise, go to step 10;
  • Step 13 record the killing information of the authorities and the start and end time of the recording, and then return to step 10;
  • Step 14 adding the game record to the queue for generating wonderful moments.
  • the parsing of the entire demo file is completed within 1 to 2 seconds, occupying less system resources, which is conducive to concurrent execution, so as to increase the number of wonderful moments (perfect moments) generated per unit time.
  • the wonderful moment queue can be Highlight moment event list.
  • the event information is extracted according to the small game, and the target event information includes event information, object information, small game information and event start and end event information, so that the accuracy of video generation can be achieved.
  • traversing at least one event information to obtain target event information that meets the preset conditions may include:
  • the target events include at least two types, determine the candidate event information corresponding to each target event, wherein the candidate event information is used to indicate that each target event is triggered target object, and the start and end time of each target event;
  • S52 merge the event information belonging to the same object in the candidate event information corresponding to each target event to obtain target event information, wherein the target event information is used to represent the target object, at least one target event triggered by the target object, and each The start and end time of the target event.
  • the parsing server can generate corresponding candidate event information for each target event in the aforementioned manner, where the candidate event information is used to indicate the target object that triggers each target event and the start and end time of each target event.
  • the parsing server may combine information to obtain target event information, where the target event information is used to represent the target object, at least one target event triggered by the target object, and each target event The start and end times of the event.
  • the target event includes: 1v3, 3 kills, 4 kills, and 5 kills.
  • the corresponding candidate event information that can be obtained by the parsing server can include the following information:
  • the obtained target event information can include the following information:
  • Player A 1v3, time period 1; 3 kills, time period 2; 4 kills, time period 5; 5 kills, time period 7;
  • Player B 3 kills, time period 3; 4 kills, time period 6;
  • the event information is acquired according to different events, and the event information of the same object is combined, which can improve the convenience of video generation and avoid the waste of resources in the multiple generation process (for example, there is no need to play back each event for each event). one target game).
  • generating the target video may include:
  • S63 Generate a target video including the target video picture.
  • the parsing server can send the game information record file and target event information to the recording and synthesis server for video generation.
  • the recording and synthesis server (or other servers) can run a client of the target game, and the first client can load the game information record file, thereby playing the target game, or in other words, the playback of the target game.
  • the played target round game is the target round game restored according to the game round information record file.
  • the recording composition server may start the video recording program to control the video recording program in the time period corresponding to the start and end times of the target event (that is, , the target time period) to record the target game played by the first client to obtain a set of game pictures, that is, target video pictures.
  • the recording and synthesis server may generate the target video based on the target video picture, so as to obtain the target video including the target video picture.
  • the demo file is loaded through the game client, and the game is recorded in a specified time period, which can improve the accuracy of video generation at the highlight moment.
  • the video generation method may further include:
  • S71 Configure recording parameters for video recording, where the recording parameters include: a recording angle of view, a recording start and end time, the recording angle of view is the angle of view of the target object, and the recording start and end time is the start and end time of the target event.
  • the recording synthesis server or other servers may configure the recording parameters of the video recording program as target recording parameters, and the recording parameters may include: angle of view and start and end time.
  • the target recording parameters may include: the recording angle of view and the recording start and end time, the recording angle of view is the angle of view of the target object, and the recording start and end time is the start and end time of the target event (the start and end time of the target event triggered by the target object).
  • the recording parameters may further include: frame rate and resolution, where the frame rate and resolution may adopt default values, or may be configured based on information in the demo file, which is not limited in this embodiment.
  • recording parameters are configured for the video recording program based on the target event information, which can improve the flexibility of video recording.
  • generating the target video including the target video frame may include:
  • S82 Add a target resource to the target video file to obtain a target video, where the target resource is generated based at least in part on target event information.
  • the recording and synthesis server can synthesize the target video picture into a target video file in the target format.
  • the recording and synthesis server can use ffmpeg (Fast Forward Moving Pictures Experts Group) to combine the target video
  • the video picture (target video picture) of the target event triggered by the object is synthesized into a file in video format, for example, a file in mp4 (Mobile Pentium 4, video player) format, where ffmpeg is used to record and convert digital audio, video, and An open-source computer program that turns it into a stream.
  • mp4 Mobile Pentium 4, video player
  • the obtained video file can be directly used as the target video, or specific processing can be performed on the obtained video file.
  • the recording and synthesis server may generate target resources based at least in part on the target event information, such as video cover, title, title, etc., and may also add background music and the like.
  • the recording and synthesis server can record between the video frames of different target events or between different kill events.
  • a transition picture that is, a transition segment, is added between the video pictures to obtain a target video corresponding to the target game.
  • the way the recording composition server generates the perfect moment may include the following steps:
  • Step 1 obtain a record from the producible queue (which can be the producible queue obtained based on the video generation instruction, including the target event information corresponding to each video generation instruction, etc.);
  • Step 2 download the demo file and get the recording start and end time
  • Step 3 set the recording parameters of the recording program, which can include: angle of view, frame rate, resolution, start and end time;
  • Step 4 start the recording program and the game client, and start recording;
  • Step 5 complete the recording, and obtain each frame of picture file
  • Step 6 synthesizing each frame of pictures into mp4 format video files in sequence
  • Step 7 add opening and ending and transition effects to the video
  • Step 8 upload the video and return the result.
  • a plurality of producible records obtained in response to an application for generating a highlight moment of multiple objects may be stored in the producible queue, and each producible record may correspond to a video generation instruction.
  • the server obtains records from the queue that can be generated and processes them according to the order of applications.
  • the entire video recording and synthesis needs to be completed within 3 to 5 minutes, which is relatively time-consuming.
  • the video generation method may further include:
  • S92 in response to the target operation request, transmit the target video to the second client, so as to perform the target operation on the target video through the second client.
  • the target video can be stored in the cloud on-demand platform, so that the client of the target object or the client of other objects (may require the sharing of the target object, etc.) can obtain the target video from the cloud on-demand platform by performing the target operation, so that they can watch it. the video.
  • the cloud-on-demand platform may receive the target operation request sent by the second client to request to perform the target operation on the target video.
  • the second client may be a client of the target object, or a client of other objects.
  • the above-mentioned target operation may be an on-demand operation, a download operation, etc., which is not limited in this embodiment.
  • the cloud-on-demand platform can send the target video to the second client.
  • the second client After receiving the target video, the second client can play the target video on its display interface.
  • the highlight moment of the object or other objects is acquired by means of cloud-on-demand, which can improve the convenience of acquiring video resources and improve the user experience.
  • a video generation method is also provided.
  • the above video generation method can be applied to the hardware environment formed by the terminal 102 and the server 104 as shown in FIG. 1 . . What has already been described will not be repeated here.
  • FIG. 5 is a schematic flowchart of an optional video generation method according to an embodiment of the present invention. As shown in FIG. 5 , the process of the method may include: The following steps:
  • target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions, and the game information record file records at least one event information ;
  • S504 generating and displaying target event display information in the interface area of the client, wherein the target event display information is used to display at least part of the target event information;
  • the target event information from the server is received.
  • the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions.
  • the bureau information record file records at least one event information; generates and displays the target event display information in the interface area of the client, in some embodiments, the target event display information is used to display at least part of the target event information; on behalf of the user triggers corresponding to the target event.
  • the target video generation instruction for displaying information so that the server side generates the target video according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the game video recording method in the related art, The resource consumption on the terminal side is reduced, and the security of the user account is improved.
  • the video generation method may further include:
  • the above preset condition may be that an object triggers a target event
  • the target event information may at least be description information of the target event, used to indicate the target event triggered by the target object, and start and end time information of the target event, used to indicate the start and end time of the target event.
  • the client can extract the event information to be displayed that meets the display conditions from the target event information, and the above display conditions are used to describe the event information that can be displayed, for example, the description information of the target event.
  • the description information of the target event may describe the target event, for example, props used in the target event, exemplary pictures of the props, and the like. If there are multiple target events triggered by the target object, the event information to be displayed may include description information of each target event.
  • the target event information may also include game information of the target game, the game information may be used to represent the game characteristics of the target game, and may include but not limited to at least one of the following: date, duration, Battle results, map types, representative images, etc.
  • the target event information may also include object information of the target object corresponding to the target game, for example, the target object's object ID (identity), rank, battle position in the target game, etc., so that the event information to be displayed can be easily extracted.
  • the accuracy of generating the target event display information and the convenience of obtaining user information can be improved, that is, it is convenient for the user to determine whether the target video needs to be generated.
  • generating target event presentation information may include:
  • S111 adding matching preset display information to the event information to be displayed to obtain target event display information, wherein the preset display information is preset description information of the target event, and different target events correspond to different preset display information .
  • the client can add preset display information matching the event information to be displayed to obtain the target event display information.
  • the above-mentioned preset presentation information may be pre-configured description information of the target event. For different target events, it may correspond to different preset display information, or may correspond to the same preset display information.
  • the event information to be displayed may be a triple-kill event, and the preset display information may be "Wonderful” (ie, display "Wonderful triple-kill")
  • the event information to be displayed may be four kills
  • the preset display information may be "perfect” (ie, "perfect four kills" are displayed), and so on.
  • the display information of the target event can be enriched, and the user's visual experience can be improved.
  • triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user may include:
  • the generation process of the highlight moment takes a certain amount of time.
  • the target video generation needs to be performed by queuing.
  • the trigger operation may be used to trigger the generation of the target video generation instruction.
  • the client may generate a target video generation instruction, and send the generated target video generation instruction to the server, or return video generation response information to the server to trigger the server to generate the target video generation instruction.
  • the server side may maintain a video generation queue, and the queue stores one or more client-triggered video generation instructions according to the receiving order.
  • the server side can sequentially extract the video generation instructions from the video generation queue, so as to perform video generation.
  • the video generation process is similar to the above, and will not be repeated here.
  • the server side may generate the target video in the same or similar manner as in the foregoing embodiment, which has already been described and will not be repeated here.
  • the video generation method may include: parsing out at least one event information recorded in the game information record file; traversing the at least one event information to obtain a target that meets preset conditions event information.
  • traversing at least one piece of event information to obtain target event information that meets a preset condition may include: traversing at least one piece of event information to obtain at least one reference event information, where the reference event information is used to indicate that a kill event is triggered The reference object and the start and end time of a killing event; traverse at least one reference event information to obtain target event information that meets preset conditions.
  • the preset condition is that an object triggers the target event, and the target event has at least two The second kill event, the target event information is used to indicate the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  • traversing at least one event information to obtain at least one reference event information may include: the target round game includes multiple small round games, and the preset condition is that an object triggers at least two hits in one small round game In the case of killing an event, traverse at least one event information to obtain a reference event information group corresponding to each small game in the plurality of small games, wherein the reference event information group includes at least a part of the events in the at least one reference event information information.
  • traversing at least one reference event information to obtain the target event information that meets the preset conditions may include: traversing the reference event information group of each round game, and obtaining corresponding to each round game and meeting the preset conditions Conditional target event information, wherein the target event information is used to indicate the target event, the target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which the target event belongs.
  • traversing at least one event information to obtain the target event information that meets the preset condition may include: in the case that the preset condition is that an object triggers the target event, and the target event includes at least two types, respectively determining and each The candidate event information corresponding to each target event, the candidate event information is used to represent the target object that triggers each target event, and the start and end time of each target event; merge the events belonging to the same object in the candidate event information corresponding to each target event information to obtain target event information.
  • the target event information is used to represent the target object, at least one target event triggered by the target object, and the start and end times of each target event.
  • the above method may further include: loading the game round information record file through the target client to play the target round game, wherein the target client The terminal is the client of the target game to which the target game belongs; video recording is performed on the played target game within the target time period to obtain the target video image.
  • the preset condition is that an object triggers the target event
  • the target The event information is used to indicate the target event, the target object that triggers the target event, and the start and end time of the target event
  • the target time period is the time period corresponding to the start and end time of the target event; the target video including the target video picture is generated.
  • generating the target video including the target video picture may include: synthesizing the target video picture into a target video file in the target format; adding target resources to the target video file to obtain the target video, wherein the target resources are based at least in part on the target video Event information is generated.
  • the above method may further include:
  • target event display information on a video display interface of the client, wherein the target event display information includes a video cover carrying an on-demand link of the target video;
  • the video display interface of the client may display one or more videos of highlight moments that have been generated or are to be generated.
  • target event display information may be displayed in the video display interface, and the target event display information includes a video cover carrying an on-demand link of the target video.
  • the video cover may be a representative picture of the game map of the aforementioned target game.
  • the client may send the above target operation request to the server to request to obtain and play the target video from the server.
  • the video display interface can also display the target video to be generated, and the target video can be on-demand through the second trigger operation, thereby triggering the generation of the target video generation instruction.
  • the server can transmit the target video to the client and play it.
  • the flexibility of video acquisition can be improved by displaying the target video on the video display interface, and performing on-demand on-demand of the target video by triggering operations.
  • the video generation method may further include:
  • buttons can be displayed, for example, share, download, etc.
  • the user can click the share button to share the target video, or the description information of the target video and the on-demand connection to his personal space (or other locations), or other applications for other users to view, comment, and like.
  • the client can obtain the target video from the server (for example, a cloud-on-demand platform), and save the target video locally.
  • the target video can be saved with a default validity period, for example, one month.
  • the client can automatically clear it, or delete it after obtaining the authorization of the user, or prompt the user to delete it.
  • the specific clearing method can be configured as required, which is not limited in this embodiment.
  • the number of times each user generates highlight moments in a time period may be limited, eg, not exceeding a target number of times threshold.
  • the number of times a highlight moment can be generated can be increased by performing specific actions, for example, a shared highlight moment is liked more than a certain number of times (for example, 30 times), and the number of times a highlight moment is shared on a specific app exceeds a certain number of times a threshold (for example, , 15 times). This is not limited in this embodiment.
  • the target game is an FPS game
  • each game contains 30 rounds
  • the target event is that the number of kills in a round game exceeds 3 people.
  • the sample file is a demo file
  • the generated video contains the video screen of the object triggering the target event. For the highlight moment.
  • the flow of the video generation method in this example may include step S602 , step S604 , step S606 , step S608 and step S610 .
  • step S602 the platform client starts and enters the room.
  • An e-sports platform can be downloaded and installed on the player's PC, that is, the platform client.
  • the platform acts as a launcher, and can start the game client from the platform and enter the room of a game, so that a game can be started.
  • step S604 the game client connects to the game server and starts the game.
  • the game client can connect to the game server, and start a game after reaching the starting conditions for a game (the number of people reaches the required number of people and all are ready).
  • step S606 after the game ends, the game server may synchronize the demo file with the parsing server.
  • a demo file will be generated, which contains all the events of each round and each player of the whole game, including the start and end of each round, damage and kills, in and out, shooting and using props and other events, is a structured document.
  • the game server can synchronize the demo file to the parsing server (dem parsing server).
  • step S608 the parsing server transmits the key event point and the data frame simultaneously to the recording and synthesis server.
  • the parsing server can parse the synchronized demo file.
  • the parsing process can be shown in Figure 3.
  • the data of each player in each round can be obtained, that is, the appearance of each player in each round of the game can be obtained. All kills, assists, deaths, etc. events, and the start and end times of these events.
  • the highlight moment event list can be for different objects, and can be sorted according to the highlight moment events of each object.
  • Each object corresponds to multiple highlight moment events and the duration of each highlight moment event.
  • the duration here refers to the entire segment from the first kill by the authorities to the end of the last kill. Since the enemy will not gather At a point, there are moves between multiple kills, so the duration is the time you are in combat.
  • the parsing server can simultaneously record key event points and data frames to the recording synthesis server according to the highlight moment event list, that is, at which event points or which data frames correspond to the highlight moment.
  • the server may send a prompt to the clients of all objects indicated in the highlight moment event list to prompt the object to generate a highlight moment.
  • the parsing of the entire demo file is completed within 1 to 2 seconds, occupying less system resources, which is conducive to concurrent execution to increase the number of perfect moments generated per unit time.
  • step S610 the recording and synthesis server generates the highlight moment video of each object according to the highlight moment event list, uploads the highlight moment video to the cloud on-demand platform, and notifies the client through the platform server to obtain the highlight moment video.
  • the recording synthesis server can start the game client through the recording program, set parameters such as frame rate, resolution and duration based on the start and end time of each exciting event, and lock the player's perspective that produces the highlight moment.
  • the recording program can record the game at a specified time period, thereby generating a set of original image frames consisting of pictures.
  • the recording and synthesis server uses ffmpeg to synthesize the picture files into video files in mp4 format, and adds the opening, ending and transition switching effects to form the highlight moment video of the player in the whole game.
  • the recording and synthesis server can notify the platform server to obtain the highlight moment video, and upload the highlight moment video to the cloud on-demand platform (cloud on-demand system) for players to download and share on various social platforms.
  • the platform server can notify the user's platform client to obtain the video of the highlight moment.
  • the platform client After receiving the notification from the platform server, the platform client can perform video-on-demand through the cloud-on-demand platform, so as to play the user's highlight moment video.
  • the recording of the highlight moment and the video synthesis process are carried out after the game is over, the acquisition of the highlight moment is based on the analysis of the game result data files, and does not use the method of recording the screen on the client side, so the game will not be recorded.
  • the generation of highlight moments is completed on the server side, instead of obtaining in-game events by injecting logic into the game client, so it will not affect the security during the game, and will not lead to the risk of account banning.
  • the recording process by separating the recording process from the game process, the game performance of the player will not be affected; the recording process is completed on the server side and will not affect the security of the game account; the recording strategy can be dynamically configured on the server side, according to user behavior. Customization can increase the flexibility of recording method configuration.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM (Read-Only Memory, ROM). Read-only memory)/RAM (Random Access Memory), magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) The method described in the various embodiments of the invention.
  • FIG. 7 is a structural block diagram of an optional video generating apparatus according to an embodiment of the present invention.
  • the apparatus may include: an acquiring unit 702 , an extracting unit 704 and a generating unit 706 .
  • the obtaining unit 702 is configured to support the video generation device to perform the operation of step S202 in the above method embodiments
  • the extraction unit 704 may be configured to support the video generation device to perform the above-mentioned operation of the step S204
  • the generation unit 706 may be configured to support the video generation device to perform the above-mentioned operation.
  • the game information record file of the target game is obtained.
  • the game information record file records at least one event information; the target event information that meets the preset conditions in the game game information record file is extracted, and sending at least part of the target event information to the client to support generating target event presentation information at the client, in some embodiments, the target event presentation information is used to present at least part of the target event information at the client; in response to The target video generation instruction corresponding to the target event display information is triggered by the client, and the target video is generated according to the target event information, which solves the problem of the game video recording method in the related art. Due to the need to run additional programs on the client, the local machine is added. The problem of resource consumption reduces resource consumption on the terminal side and improves the security of user accounts.
  • extraction unit 704 may include:
  • a parsing module for parsing out at least one event information recorded in the game information record file
  • the traversal module is used to traverse at least one event information to obtain the target event information that meets the preset conditions.
  • the traversal module may include:
  • the first traversal submodule for traversing at least one event information, obtains at least one reference event information, wherein, the reference event information is used to represent the reference object that triggers a kill event and the start and end time of a kill event;
  • the second traversal sub-module is used to traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers the target event, the target event kills events at least twice, and the target event information uses Indicates the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  • the first traversal submodule may include:
  • the first traversal subunit is used for traversing at least one event information when the target game contains multiple small games and the preset condition is that an object triggers at least two kill events in one small game, and obtains A reference event information group corresponding to each of the plurality of small round games, wherein the reference event information group includes at least part of the event information in the at least one reference event information.
  • the second traversal submodule may include:
  • the second traversal subunit is used to traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset conditions, wherein the target event information is used to represent the target event, The target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which it belongs.
  • the traversal module may include:
  • a determination submodule is used to determine the candidate event information corresponding to each type of target event when the preset condition is that one object triggers the target event and the target event includes at least two types, wherein the candidate event information is used to indicate the trigger The target object of each target event, and the start and end time of each target event;
  • the merging submodule is used for merging the event information belonging to the same object in the candidate event information corresponding to each target event to obtain the target event information, wherein the target event information is used to represent the target object and at least one target triggered by the target object events, and the start and end times of each target event.
  • the generating unit 706 may include:
  • a loading module configured to load the game information record file through the first client to play the target game, wherein the first client is the client of the target game to which the target game belongs;
  • the recording module is used for video recording of the target game being played within the target time period to obtain the target video image, wherein the preset condition is that an object triggers the target event, and the target event information is used to represent the target event and trigger the target event.
  • the target object and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event;
  • the generating module is used to generate the target video including the target video picture.
  • the video generation apparatus may further include:
  • the configuration unit is used to configure the recording parameters of the video recording before the video recording of the target game being played, wherein the recording parameters include: the recording angle of view, the start and end time of the recording, the recorded angle of view is the angle of view of the target object, the recorded angle of The start and end times are the start and end times of the target event.
  • the generation module may include:
  • the synthesis submodule is used to synthesize the target video picture into the target video file of the target format
  • the adding sub-module is used for adding target resources to the target video file to obtain the target video, wherein the target resources are generated based at least in part on the target event information.
  • the video generation apparatus may further include:
  • a receiving unit configured to receive a target operation request sent by the second client after generating the target video according to the target event information, wherein the target operation request is used to request to perform a target operation on the target video;
  • the transmission unit is configured to transmit the target video to the second client in response to the target operation request, so as to perform the target operation on the target video through the second client.
  • FIG. 8 is a structural block diagram of another optional video generating apparatus according to an embodiment of the present invention.
  • the apparatus may include: a receiving unit 802 , a first generating unit 804 , and a triggering unit 806 .
  • the receiving unit 802 is configured to support the video generation device to perform the operation of step S502 in the above method embodiments
  • the first generation unit 804 may be configured to support the video generation device to perform the operation of the above step S504
  • the trigger unit 806 may be configured to support the video generation device
  • the operations of step S506 described above are performed, and/or other processes for the techniques described herein.
  • the target event information from the server is received.
  • the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions.
  • the game information record file At least one event information is recorded; the target event display information is generated and displayed in the interface area of the client.
  • the target event display information is used to display at least part of the target event information; on behalf of the user, trigger the target corresponding to the target event display information
  • the video generation instruction enables the server to generate the target video according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the method of recording game videos in the related art, and reduces the terminal side reduce resource consumption and improve user account security.
  • the video generation apparatus may further include:
  • the extraction unit is used to extract the event information to be displayed that meets the display conditions from the target event information when the preset condition is that an object triggers the target event before generating the target event display information, wherein the target event information is used for Indicates the target event triggered by the target object and the start and end time of the target event.
  • the first generating unit 804 may include:
  • the first adding module is used to add matching preset display information to the event information to be displayed, and obtain the target event display information, wherein the preset display information is preset description information of the target event, and different target events correspond to different preset display information.
  • the trigger unit may include:
  • a detection module configured to detect a first trigger operation performed by the user on the client, wherein the first trigger operation is used to trigger the target video generation instruction
  • the triggering module is used for responding to the first triggering operation, triggering the generation of target video generation instructions on behalf of the user, and triggering the addition of the target video generation instructions to the video generation queue on the server side, so that the server side sequentially extracts the video generation instructions from the video generation queue Do video generation.
  • the video generation device may include:
  • a parsing unit configured to parse out at least one event information recorded in the game information record file before receiving the target event information from the server;
  • the traversal unit is used to traverse at least one event information to obtain target event information that meets preset conditions.
  • the traversal unit may include:
  • a first traversal module configured to traverse at least one event information to obtain at least one reference event information, wherein the reference event information is used to indicate a reference object that triggers a kill event and the start and end time of a kill event;
  • the second traversal module is used to traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event information is used for Indicates the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  • the preset condition is that an object triggers a target event
  • the target event kills events at least twice
  • the target event information is used for Indicates the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  • the first traversal module may include:
  • the first traversal submodule is used to traverse at least one event information when the target game contains multiple small games, and the preset condition is that an object triggers at least two kill events in a small game, and obtains A reference event information group corresponding to each of the plurality of small round games, wherein the reference event information group includes at least part of the event information in the at least one reference event information.
  • the second traversal module may include:
  • the second traversal submodule is used to traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset conditions, wherein the target event information is used to represent the target event, The target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which it belongs.
  • the traversal unit may include:
  • the determining module is used to determine the candidate event information corresponding to each target event when the preset condition is that one object triggers the target event and the target events include at least two types, wherein the candidate event information is used to indicate that each target event is triggered.
  • the merging module is used for merging the event information belonging to the same object in the candidate event information corresponding to each target event to obtain the target event information, wherein the target event information is used to represent the target object and at least one target event triggered by the target object , and the start and end times of each target event.
  • the video generation apparatus may further include:
  • the loading unit is used to load the game information record file through the target client after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, so as to play the target game, wherein the target client is the target game to which the target game belongs.
  • the client of the target game is the target game to which the target game belongs.
  • the recording unit is used to record the video of the target game being played within the target time period to obtain the target video image, wherein the preset condition is that an object triggers the target event, and the target event information is used to indicate the target event and trigger the target event.
  • the target object and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event;
  • the second generating unit is configured to generate a target video including a target video picture.
  • the second generating unit may include:
  • the synthesis module is used to synthesize the target video picture into the target video file of the target format
  • the second adding module is used for adding a target resource to the target video file to obtain the target video, wherein the target resource is generated based at least in part on the target event information.
  • the video generation apparatus may further include:
  • the display unit is used to display the video cover of the target video and the target event display information in the video display interface of the client after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, wherein the video screen carries the target video's information. on-demand link;
  • a first detection unit configured to detect a second trigger operation performed on the video cover, wherein the second trigger operation is used to trigger the on-demand target video
  • the first obtaining unit is configured to obtain and play the target video from the server in response to the second trigger operation.
  • the video generation apparatus may further include:
  • the second detection unit is configured to detect a third trigger operation performed on the download button in the playback interface of the target video after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, wherein the third trigger operation uses To trigger the download of the target video;
  • the second acquiring unit is used for acquiring and saving the target video from the server in response to the third triggering operation.
  • the above modules may run in the hardware environment as shown in FIG. 1 , and may be implemented by software or hardware.
  • the hardware environment includes a network environment.
  • an electronic device for implementing the above video generation method, where the electronic device may be a server, a terminal, or a combination thereof.
  • FIG. 9 is a structural block diagram of an optional electronic device according to an embodiment of the present invention. As shown in FIG. 9 , it includes a processor 902, a communication interface 904, a memory 906, and a communication bus 908. In some embodiments, the processor 902, the communication interface 904 and the memory 906 complete the mutual communication through the communication bus 908, wherein: the memory 906 is used to store the computer program; the processor 902 is used to execute the computer program stored on the memory 906, and can realize any of the above. The steps of the video generation method according to an embodiment.
  • the above-mentioned communication bus may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus, or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus or the like.
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
  • the above-mentioned processor can be a general-purpose processor, which can include but is not limited to: CPU, NP (Network Processor, network processor), etc.; can also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, Application-specific integrated circuits), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • the above electronic device further includes: a display for displaying the display interface, prompt information and highlight moment video of the client.
  • FIG. 9 is for illustration only, and the device implementing the above video generation method may be a terminal device, and the terminal device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a Handheld computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal equipment.
  • FIG. 9 does not limit the structure of the above electronic device.
  • the electronic device may also include more or fewer components than those shown in FIG. 9 (eg, network interfaces, display devices, etc.), or have a different configuration than that shown in FIG. 9 .
  • Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the video generating apparatus according to the embodiments of the present invention.
  • DSP digital signal processor
  • the present invention can also be implemented as a program/instruction (eg, computer program/instruction and computer program product) for an apparatus or apparatus for performing some or all of the methods described herein.
  • Such programs/instructions implementing the present invention may be stored on a computer readable medium, or may exist in the form of one or more signals, such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any form Available in other formats.
  • a computer-readable storage medium is also provided.
  • the above-mentioned storage medium may be used to implement the program code of any one of the above-mentioned video generation methods in the embodiments of the present invention when executed by a processor.
  • the above-mentioned storage medium may be located on at least one network device among multiple network devices in the network shown in the above-mentioned embodiments.
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase-change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Erasable Programm
  • FIG. 10 schematically shows a computer apparatus that can implement the video generation method according to the present invention, and in some embodiments, the computer apparatus includes a processor 1010 and a computer-readable medium in the form of a memory 1020 .
  • the memory 1020 is an example of a computer-readable medium having a storage space 1030 for storing the computer program 1031 .
  • the various steps in the video generation method described above can be implemented.
  • FIG. 11 schematically shows a block diagram of a computer program product implementing the method according to the invention.
  • the computer program product includes a computer program 1110 which, when executed by a processor, such as the processor 1010 shown in FIG. 10, may implement the various steps in the video generation method described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a video generation method and apparatus, an electronic device and a storage medium. Said method comprises: acquiring a round of gaming information record file of a target round of gaming, wherein the round of gaming information record file records at least one piece of event information; extracting target event information meeting a preset condition from the round of gaming information record file, and sending at least part of the target event information to a client to support the generation of target event display information at the client, wherein the target event display information is used to display at least part of the target event information at the client; in response to a target video generation instruction triggered at the client and corresponding to the target event display information, generating a target video according to the target event information. The present invention solves the problem in the related art that the method for recording gaming videos has increased consumption of native resources due to the need to run additional programs on the client.

Description

视频生成方法和装置、电子设备和存储介质Video generation method and apparatus, electronic device and storage medium
交叉引用cross reference
本申请要求2020年12月14日递交的、申请号为202011475521.4且名称为“视频生成方法和装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 14, 2020 with the application number 202011475521.4 and the title of "video generation method and device, electronic device and storage medium", the entire content of which is incorporated into this application by reference .
技术领域technical field
本发明涉及数据处理领域,尤其涉及一种视频生成方法和装置、电子设备和存储介质。The present invention relates to the field of data processing, and in particular, to a video generation method and apparatus, electronic equipment and storage medium.
背景技术Background technique
目前,玩家可以通过客户端登录多人对战游戏,多人对战游戏可以是多人同时在线的第一人称射击游戏,也可以是其他类型的对战游戏。在启动一局游戏(比赛)之后,在激烈的对抗中,往往会产生一些令人难忘的时刻,可以包括但不限于:走位掩护,击杀敌方,道具使用等等。At present, players can log in to a multiplayer battle game through a client, and the multiplayer battle game can be a first-person shooter game in which multiple people are online at the same time, or other types of battle games. After starting a game (match), in the fierce confrontation, there are often some unforgettable moments, which can include but are not limited to: taking cover, killing the enemy, using props and so on.
为了记录这些精彩瞬间,相关技术中一般通过在游戏客户端中注入一个功能模块来截取关键事件时间点,然后启动本地录制进程进行录制并合成。In order to record these wonderful moments, in the related art, a function module is generally injected into the game client to intercept key event time points, and then a local recording process is started to record and synthesize.
例如,可以在游戏APP(Application,应用)上注入反外挂模块DLL(Dynamic Link Library,动态链接库),反外挂模块是一个独立dll,可以使用远端线程技术将dll加载到游戏进程内,从而获得对游戏内部函数和数据地址的操作权限。这里的反外挂功能模块可以是Inline hook(内联钩子),通过修改游戏内部函数的函数头部代码,从而实现接管游戏内部函数的调用,可监视调用者信息。For example, the anti-plug-in module DLL (Dynamic Link Library) can be injected into the game APP (Application, application). The anti-plug-in module is an independent dll, and the dll can be loaded into the game process using the remote thread technology, thereby Gain access to in-game functions and data addresses. The anti-plug-in function module here can be an inline hook. By modifying the function header code of the internal function of the game, it can take over the call of the internal function of the game and monitor the caller information.
然而,对于上述进行游戏视频录制的方式,在玩家客户端录制需要运行额外程序,对本机CPU(Central Processing Unit,中央处理器)和内存资源有一定消耗;并且,截取关键事件需要分析游戏客户端的代码,在游戏过程中的账号有被封禁(VAC,Valve Anti-Cheat,阀门防作弊)的风险。However, for the above-mentioned method of recording game video, additional programs need to be run for recording on the player client, which consumes the local CPU (Central Processing Unit, central processing unit) and memory resources to a certain extent; and, intercepting key events requires analyzing the game client's code, the account during the game is at risk of being banned (VAC, Valve Anti-Cheat, Valve Anti-Cheat).
因此,相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题。Therefore, the game video recording method in the related art has the problem of increasing local resource consumption due to the need to run additional programs on the client.
发明内容SUMMARY OF THE INVENTION
根据本发明的实施方式,提供了一种视频生成方法和装置、电子设备和存储介质,以至少解决相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题。According to an embodiment of the present invention, a video generation method and apparatus, electronic device and storage medium are provided, which can at least solve the problem of increasing local resource consumption due to the need to run additional programs on the client side in the way of game video recording in the related art. The problem.
根据本发明的一个方面,提供了一种视频生成方法,包括:获取目标局游戏的游戏局信息记录文件,其中,所述游戏局信息记录文件记录有至少一个事件信息;提取所述游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分所述目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,其中,所述目标事件展示信息用以在所述客户端处展示至少部分所述目标事件信息;响应于所述客户端处触发的对应于所述目标事件展示信息的目标视频生成指令,根据所述目标事件信息,生成目标视频。According to an aspect of the present invention, a video generation method is provided, which includes: acquiring a game game information record file of a target game game, wherein the game game information record file records at least one event information; extracting the game game information Record the target event information that meets the preset conditions in the file, and send at least part of the target event information to the client to support generating target event display information at the client, wherein the target event display information is used to At least part of the target event information is displayed at the client; in response to a target video generation instruction corresponding to the target event presentation information triggered at the client, a target video is generated according to the target event information.
根据本发明的另一个方面,还提供了一种视频生成方法,包括:接收来自服务器端的目标事件信息,其中,所述目标事件信息为所述服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,所述游戏局信息记录文件记录有至少一个事件信息;生成并在客户端的界面区域显示目标事件展示信息,其中,所述目标事件展示信息用以展示至少部分所述目标事件信息;代表用户触发对应于所述目标事件展示信息的目标视频生成指令,以使所述服务器端根据所述目标事件信息,生成目标视频。According to another aspect of the present invention, a video generation method is also provided, comprising: receiving target event information from a server, wherein the target event information is extracted by the server from a game round information record file of a target round game The event information that meets the preset conditions, the game information record file records at least one event information; Generate and display target event display information in the interface area of the client, wherein the target event display information is used to display at least part of The target event information; triggering a target video generation instruction corresponding to the target event display information on behalf of the user, so that the server side generates a target video according to the target event information.
根据本发明的又一个方面,还提供了一种视频生成装置,包括:获取单元,用于获取目标局游戏的游戏局信息记录文件,其中,所述游戏局信息记录文件记录有至少一个事件信息;提取单元,用于提取所述游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分所述目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,其中,所述目标事件展示信息用以在所述客户端处展示至少部分所述目标事件信息;生成单元,用于响应于所述客户端处触发的对应于所述目标事件展示信息的目标视频生成指令,根据所述目标事件信息,生成目标视频。According to another aspect of the present invention, there is also provided a video generation device, comprising: an acquisition unit configured to acquire a game information record file of a target game, wherein the game information record file records at least one event information The extraction unit is used to extract the target event information that meets the preset conditions in the game information record file, and send at least part of the target event information to the client to support generating the target event display at the client information, wherein the target event display information is used to display at least part of the target event information at the client; a generating unit is configured to respond to a trigger at the client corresponding to the target event display information The target video generation instruction generates a target video according to the target event information.
根据本发明的再一个方面,还提供了一种视频生成装置,包括:接收单元,用于接收来自服务器端的目标事件信息,其中,所述目标事件信息为所述服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,所述游戏局信息记录文件记录有至少一个事件信息;第一生成单元,用于生成并在客户端的界面区域显示目标事件展示信息,其中,所述目标事件展示信息用以展示至少部分所述目标事件信息;触发单元,用于代表用户触发对应于所述目标事件展示信息的目标视频生成指令,以使所述服务器端根据所述目标事件信息,生成目标视频。According to a further aspect of the present invention, a video generating apparatus is also provided, comprising: a receiving unit configured to receive target event information from a server, wherein the target event information is the game round of the target round game played by the server from the server Event information extracted from the information record file that meets the preset conditions, the game information record file records at least one event information; the first generating unit is used to generate and display the target event display information in the interface area of the client, wherein , the target event display information is used to display at least part of the target event information; a triggering unit is used to trigger, on behalf of the user, a target video generation instruction corresponding to the target event display information, so that the server can Event information to generate target video.
根据本发明的再一个方面,还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器、通信接口和存储器通过通信总线完成相互间的通信;其中,存储器,用于存储计算机程序;处理器,用于通过执行所述存储器上所存储的所述计算机程序来实现上述任一实施例中的方法的步骤。According to another aspect of the present invention, an electronic device is also provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein the memory, For storing a computer program; a processor for implementing the steps of the method in any of the above embodiments by executing the computer program stored on the memory.
根据本发明的再一个方面,还提供了一种计算机可读的存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被处理器执行时实现上述任一实施例中的方法的步骤。According to yet another aspect of the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the storage medium, wherein when the computer program is executed by a processor, the steps of the method in any of the foregoing embodiments are implemented .
根据本发明的再一个方面,还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任一实施例中的方法的步骤。According to yet another aspect of the present invention, there is also provided a computer program product, comprising a computer program, which implements the steps of the method in any of the above embodiments when the computer program is executed by a processor.
本发明的有益效果为:在本发明实施例中,采用在游戏结束后使用游戏局信息记录文件进行视频生成的方式,通过获取目标局游戏的游戏局信息记录文件,其中,游戏局信息记录文件记录有至少一个事件信息;提取游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,其中,目标事件展示信息用以在客户端处展示至少部分目标事件信息;响应于客户端处触发的对应于目标事件展示信息的目标视频生成指令,根据目标事件信息,生成目标视频,由于视频是在游戏结束后根据从游戏局信息记录文件中提取的目标事件信息生成,而没有采用在游戏的运行过程中进行客户端录屏的方式,不会对游戏体验产生性能损耗;此外,视频生成是由服务器执行的,而不是通过注入逻辑到游戏客户端的方式来获取游戏内事件,不会影响游戏过程的安全性,不会导致账号被封禁的风险,达到了减少终端侧的资源消耗、提高用户账号安全性的技术效果,进而解决了相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题。The beneficial effects of the present invention are as follows: in the embodiment of the present invention, the method of using the game information record file to generate video after the game is over is adopted, and the game information record file of the target game is obtained by obtaining the game information record file, wherein the game information record file At least one event information is recorded; the target event information that meets the preset conditions in the game information record file is extracted, and at least part of the target event information is sent to the client to support generating target event display information at the client, wherein , the target event display information is used to display at least part of the target event information at the client; in response to the target video generation instruction corresponding to the target event display information triggered at the client, the target video is generated according to the target event information, because the video is in the After the game is over, it is generated based on the target event information extracted from the game information record file, instead of using the client-side screen recording method during the running of the game, which will not cause performance loss to the game experience; in addition, the video generation is performed by The server executes, rather than injecting logic into the game client to obtain in-game events, which will not affect the security of the game process, and will not lead to the risk of account bans, thus reducing resource consumption on the terminal side and improving user accounts. The technical effect of security further solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the way of recording game videos in the related art.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1示意性地示出了根据本发明一个实施例的一种可选的视频生成方法的硬件环境的示意图;1 schematically shows a schematic diagram of a hardware environment of an optional video generation method according to an embodiment of the present invention;
图2示意性地示出了根据本发明一个实施例的一种可选的视频生成方法的流程示意图;FIG. 2 schematically shows a schematic flowchart of an optional video generation method according to an embodiment of the present invention;
图3示意性地示出了根据本发明一个实施例的一种可选的解析demo文件的流程示意图;FIG. 3 schematically shows a schematic flowchart of an optional parsing demo file according to an embodiment of the present invention;
图4示意性地示出了根据本发明一个实施例的一种可选的生成高光时刻的流程示意图;FIG. 4 schematically shows a schematic flowchart of an optional highlight moment generation according to an embodiment of the present invention;
图5示意性地示出了根据本发明一个实施例的另一种可选的视频生成方法的流程示意图;FIG. 5 schematically shows a schematic flowchart of another optional video generation method according to an embodiment of the present invention;
图6示意性地示出了根据本发明一个实施例的另一种可选的视频生成方法的流程示意图;FIG. 6 schematically shows a schematic flowchart of another optional video generation method according to an embodiment of the present invention;
图7示意性地示出了根据本发明一个实施例的一种可选的视频生成装置的结构框图;FIG. 7 schematically shows a structural block diagram of an optional video generation apparatus according to an embodiment of the present invention;
图8示意性地示出了根据本发明一个实施例的一种可选的视频生成装置的结构框图;FIG. 8 schematically shows a structural block diagram of an optional video generation apparatus according to an embodiment of the present invention;
图9示意性地示出了根据本发明一个实施例的一种可选的电子设备的结构框图;FIG. 9 schematically shows a structural block diagram of an optional electronic device according to an embodiment of the present invention;
图10示意性地示出了用于实现根据本发明的方法的计算机装置的框图;以及Figure 10 schematically shows a block diagram of a computer apparatus for implementing the method according to the invention; and
图11示意性地示出了实现根据本发明的方法的计算机程序产品的框图。Figure 11 schematically shows a block diagram of a computer program product implementing the method according to the invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。以下描述仅为说明本发明的基本原理而并非对其进行限制。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described implementation Examples are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention. The following description is merely illustrative of the basic principles of the present invention and is not intended to limit it.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
根据本发明实施例的一个方面,提供了一种视频生成方法。在一些实施方式中,上述视频生成方法可以应用于如图1所示的由终端102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端102进行连接,可用于为终端或终端上安装的客户端提供服务(如游戏服务、应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器104提供数据存储服务。According to an aspect of the embodiments of the present invention, a video generation method is provided. In some embodiments, the above video generation method can be applied to the hardware environment composed of the terminal 102 and the server 104 as shown in FIG. 1 . As shown in FIG. 1 , the server 104 is connected with the terminal 102 through the network, and can be used to provide services (such as game services, application services, etc.) for the terminal or the client installed on the terminal, and a database can be set on the server or independently of the server, Used to provide data storage services for the server 104 .
上述网络104包括但不限于以下至少之一:有线网络,无线网络,该有线网络可以包括但不限于以下至少之一:广域网、城域网或局域网,该无线网络可以包括但不限于以下至少之一:蓝牙、WIFI(Wireless Fidelity,无线保真)及其他实现无线通信的网络。上述终端102可以是计算数据的终端,如移动终端(例如手机、平板电脑)、笔记本电脑、PC(Personal Computer,个人计算机)机等终端上。上述服务器可以包括但不限于任何可以进行计算的硬件设备。The above-mentioned network 104 includes but is not limited to at least one of the following: wired network, wireless network, the wired network may include but not limited to at least one of the following: a wide area network, a metropolitan area network or a local area network, the wireless network may include but not limited to at least one of the following One: Bluetooth, WIFI (Wireless Fidelity, wireless fidelity) and other networks that realize wireless communication. The above-mentioned terminal 102 may be a terminal for computing data, such as a mobile terminal (such as a mobile phone, a tablet computer), a notebook computer, a PC (Personal Computer, personal computer) and other terminals. The above-mentioned server may include, but is not limited to, any hardware device that can perform computing.
依据本发明实施例的视频生成方法可以由服务器104来执行,也可以由终端102来执行,还可以是由服务器104和终端102共同执行。其中,终端102执行本发明实施例的视频生成方法也可以是由安装在其上的客户端来执行。The video generation method according to the embodiment of the present invention may be executed by the server 104 , may also be executed by the terminal 102 , or may be executed jointly by the server 104 and the terminal 102 . Wherein, when the terminal 102 executes the video generation method of the embodiment of the present invention, it may also be executed by a client installed on the terminal 102 .
以由服务器104来执行依据本发明实施例的视频生成方法为例,图2是根据本发明实施例的一种可选的视频生成方法的流程示意图,如图2所示,该方法的流程可以包括步骤S202,步骤S204和步骤S206。Taking the server 104 executing the video generation method according to the embodiment of the present invention as an example, FIG. 2 is a schematic flowchart of an optional video generation method according to the embodiment of the present invention. As shown in FIG. 2 , the process of the method can be It includes step S202, step S204 and step S206.
在步骤S202中,获取目标局游戏的游戏局信息记录文件,其中,游戏局信息记录文件记录有至少一个事件信息。In step S202, a game game information record file of the target game game is acquired, wherein the game game information record file records at least one event information.
本实施例中的视频生成方法可以应用于为用户生成一局游戏的高光时刻视频的场景,高光时刻视频可以包含一局游戏中发生的特定事件的时间段(可以是一小段时间)内的视频画面。对于其他需要针对一局游戏中的特定事件生成视频的场景,本实施例中的视频生成方法同样适用。The video generation method in this embodiment can be applied to a scene where a video of a highlight moment of a game is generated for a user, and the highlight moment video may include a video within a time period (which may be a short period of time) of a specific event that occurs in a game screen. For other scenarios in which a video needs to be generated for a specific event in a game, the video generation method in this embodiment is also applicable.
上述一局游戏可以是目标游戏的一局游戏(即,一局比赛)。按照所应用的终端类型,目标游戏可以是端游,手游,VR(Virtual Reality,虚拟现实)游戏,AR(Augmented Reality,增 强现实)游戏,或者其他类型的游戏。按照游戏类型不同,目标游戏可以是多人对战游戏,例如,可以是FPS(First-person shooting game,第一人称射击游戏),FTG(Fighting Game,格斗游戏),MMORPG(Massive Multiplayer Online Role-Playing Game,大型多人在线角色扮演游戏),或者其他游戏类型。本实施例中对于目标游戏的类型不作限定。The above-mentioned one game may be one game (ie, one game) of the target game. According to the type of terminal used, the target game can be a terminal game, a mobile game, a VR (Virtual Reality, virtual reality) game, an AR (Augmented Reality, augmented reality) game, or other types of games. According to different game types, the target game can be a multiplayer battle game, for example, it can be FPS (First-person shooting game, first-person shooting game), FTG (Fighting Game, fighting game), MMORPG (Massive Multiplayer Online Role-Playing Game) , MMORPGs), or other game types. In this embodiment, the type of the target game is not limited.
本实施例中以PC端多人同时在线的FPS游戏为例进行说明,对于非PC端的多人对战游戏、非第一人称射击游戏等,本实施例中的视频生成方法同样适用。In this embodiment, a multiplayer online FPS game on the PC side is used as an example for description. For non-PC side multiplayer battle games, non-first-person shooter games, etc., the video generation method in this embodiment is also applicable.
用户的终端设备上可以运行有目标游戏的游戏客户端。该游戏客户端可以与服务器进行通信连接,上述服务器为目标游戏的后台服务器。用户可以使用帐号和密码、动态密码、关联应用(第三方应用)登录等方式登录到其终端设备上运行游戏客户端,并通过操作游戏客户端进入到一局游戏(一局比赛)。The game client with the target game can be run on the user's terminal device. The game client can communicate with the server, and the above server is the background server of the target game. Users can use account and password, dynamic password, associated application (third-party application) login, etc. to log in to their terminal device to run the game client, and enter a game (a game) by operating the game client.
在一些实施方式中,用户的终端设备上也可以下载并安装有平台客户端(游戏平台),平台客户端可以作为一个或多个游戏(包括目标游戏)的启动器,从而可以从该游戏平台启动目标游戏(启动目标游戏的游戏客户端),进入到游戏房间,从而可以开启目标游戏的一局游戏,即,目标局游戏,目标局游戏的参与对象可以有一个或多个。In some embodiments, a platform client (game platform) may also be downloaded and installed on the user's terminal device, and the platform client may serve as a launcher for one or more games (including target games), so that the game platform can be downloaded and installed on the user's terminal device. Start the target game (the game client that starts the target game), enter the game room, and start a game of the target game, that is, the target game. There may be one or more participating objects in the target game.
本实施例中以用户的终端设备上运行平台客户端,并通过平台客户端启动目标游戏的方式为例进行说明,对于终端设备上直接运行游戏客户端的场景,本实施例中的视频生成方法同样适用。In this embodiment, the platform client is run on the user's terminal device, and the target game is started through the platform client as an example. For the scenario where the game client is directly run on the terminal device, the video generation method in this embodiment is the same. Be applicable.
目标局游戏可以是一个整局游戏(不划分小局),也可以包含多个小局游戏(例如,30个小局)。目标游戏可以是一款MvM(M为大于1的正整数,例如,5v5)的FPS游戏,目标局游戏可以为目标游戏的一局游戏(或者说一局比赛)。The target round game may be a whole round game (not divided into small rounds), or may include multiple round games (eg, 30 rounds). The target game may be an FPS game with MvM (M is a positive integer greater than 1, for example, 5v5), and the target game may be a game (or a game) of the target game.
在目标局游戏结束之后,游戏服务器可以生成该目标局游戏的游戏局信息记录文件。游戏局信息记录文件是用于记录目标局游戏的游戏局信息的文件,可以记录有至少一个事件信息,每个事件信息可以用于表示目标局游戏中发生的一个或多个事件。在一些实施方式中,游戏局信息记录文件可以是一个结构化文件,用于记录目标局游戏中发生的全部事件。After the target round game ends, the game server may generate a game round information record file of the target round game. The game information record file is a file used to record game information of the target game, at least one event information can be recorded, and each event information can be used to represent one or more events that occurred in the target game. In some embodiments, the game information record file may be a structured file for recording all events that occur in the target game.
例如,在一局比赛结束后,游戏服务器可以生成一个扩展名为.dem的demo(demonstration,示例)文件,该文件包含了整场比赛的每一小局、每位玩家的所有事件,是一个结构化文件。For example, after a game is over, the game server can generate a demo (demonstration, example) file with a .dem extension, which contains all events for each small game and each player of the entire game, which is a structured document.
服务器端可以保存有整局游戏的游戏局信息记录文件(例如,demo文件),游戏局信息记录文件是游戏直接输出的文件。服务器端可以通过解析游戏局信息记录文件,生成目标视频,生成的视频是有时间限制的,比如15s,类似于短视频,整个过程可以在云端服务器上完成。目标视频可以是高光时刻视频,可简称为高光时刻、完美时刻或者精彩时刻等。The server side may save a game information record file (for example, a demo file) of the entire game, and the game information record file is a file directly output by the game. The server side can generate the target video by parsing the game information record file. The generated video has a time limit, such as 15s, which is similar to a short video. The whole process can be completed on the cloud server. The target video may be a highlight moment video, which may be simply referred to as a highlight moment, a perfect moment, or a wonderful moment.
云端服务器可以包含多种服务器,可以包括但不限于以下至少之一:游戏服务器,解析服务器(例如,demo解析服务器),录制合成服务器,平台服务器,云点播(云点播平台)。The cloud server may include multiple servers, including but not limited to at least one of the following: a game server, a parsing server (eg, a demo parsing server), a recording and synthesis server, a platform server, and a cloud-on-demand (cloud-on-demand platform).
在目标局游戏结束之后,游戏服务器可以将游戏局信息记录文件同步到解析服务器。解析服务器可以获取目标局游戏的游戏局信息记录文件,该游戏局信息记录文件记录有至少一个事件信息。至少一个事件信息可以用于表示在目标局游戏中的每个参与对象的所有事件。After the target round ends, the game server may synchronize the game round information record file to the parsing server. The parsing server may acquire a game game information record file of the target game game, and the game game information record file records at least one event information. At least one event information may be used to represent all events of each participating object in the target round game.
对于FPS游戏,至少一个事件信息可以包括但不限于以下至少之一的事件:目标局游戏的开始和结束,每小局的开始和结束,伤害和击杀,连入连出,开枪和使用道具等。For FPS games, at least one event information may include, but is not limited to, at least one of the following events: start and end of the target round, start and end of each round, damage and kills, in and out, shooting and use props etc.
在步骤S204中,提取游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,其中,目标事件展示信息用以在客户端处展示至少部分目标事件信息。In step S204, the target event information that meets the preset conditions in the game information record file is extracted, and at least part of the target event information is sent to the client to support the generation of target event display information at the client, wherein the target The event display information is used to display at least part of the target event information at the client.
解析服务器可以解析游戏局信息记录文件,从中提取出游戏局信息记录文件中符合预置条件的目标事件信息。预置条件为预先配置的事件条件,用于筛选或者提取出对象触发的哪些事件,可以是:一个对象触发目标事件。预置条件可以描述一个对象(用户)在目标局游戏中所触发的目标事件,目标事件可以根据需要生成视频的事件进行配置。The parsing server can parse the game information record file, and extract the target event information in the game game information record file that meets the preset conditions. The preset condition is a pre-configured event condition, which is used to filter or extract which events triggered by the object, which may be: an object triggers the target event. The preset condition can describe the target event triggered by an object (user) in the target game, and the target event can be configured according to the event that generates the video.
例如,对于FPS游戏,预置条件可以是一个用户触发了以下事件中的全部或者部分:击杀事件,连续击杀事件,累计击杀事件,累计助攻事件等等。For example, for an FPS game, the preset condition may be that a user triggers all or part of the following events: a kill event, a continuous kill event, a cumulative kill event, a cumulative assist event, and so on.
在提取出目标事件信息之后,解析服务器可以从目标事件信息中提取出其中的至少部分信息,即,至少部分目标事件信息,并将至少部分目标事件信息向客户端进行发送,以支持在客户端处生成用于展示至少部分目标事件信息的目标事件展示信息。在一些实施方式中,解析服务器也可以直接将目标事件信息直接发送给客户端,由客户端提取其中的至少部分信息,并生成目标事件展示信息。After extracting the target event information, the parsing server may extract at least part of the information from the target event information, that is, at least part of the target event information, and send at least part of the target event information to the client, so as to support the client and generating target event presentation information for presenting at least part of the target event information. In some embodiments, the parsing server may also directly send the target event information to the client, and the client extracts at least part of the information, and generates target event display information.
客户端可以直接接收来自服务器端的至少部分目标事件信息,或者,接收来自服务器端的目标事件信息,从中提取出特定部分的信息,得到至少部分目标事件信息。The client can directly receive at least part of the target event information from the server, or receive the target event information from the server, extract a specific part of the information from the server, and obtain at least part of the target event information.
在得到至少部分目标事件信息之后,客户端可以生成目标事件展示信息,并在客户端的界面区域显示目标事件展示信息,目标事件展示信息可以包含以下全部或者部分:用于描述目标事件的事件画面、文字、目标视频的链接。After obtaining at least part of the target event information, the client can generate target event display information, and display the target event display information in the interface area of the client. The target event display information may include all or part of the following: an event screen for describing the target event, Text, link to target video.
在客户端侧,客户端可以通过弹窗等方式显示目标提示信息(例如,显示“有高光时刻待生成”,或者,其他提示信息)。用户在看到客户端上显示的目标提示信息之后,可以通过操作客户端,进入到个人中心或者其他显示界面。在个人中心的某个界面区域内可以显示有目标事件展示信息。On the client side, the client can display target prompt information (for example, displaying "there is a highlight moment to be generated", or other prompt information) through a pop-up window or the like. After seeing the target prompt information displayed on the client, the user can enter the personal center or other display interface by operating the client. The target event display information can be displayed in a certain interface area of the personal center.
例如,在用户的客户端的主界面的头像框的下方或者其他位置可以显示有提示信息,提示用户有高光时刻待生成,用户可以通过点击头像框,并进入到个人战绩中心,在高光时刻的显示区域显示可生成高光时刻的一局或多局游戏的视频区域,并在视频区域上显示“待生成”等提示字样。For example, a prompt message may be displayed below the avatar frame on the main interface of the user's client or at other positions, prompting the user that there is a highlight moment to be generated. The user can click on the avatar frame and enter the personal record center, which will be displayed at the highlight moment. The area displays the video area of one or more games that can generate highlight moments, and displays prompts such as "to be generated" on the video area.
在步骤S206中,响应于客户端处触发的对应于目标事件展示信息的目标视频生成指令,根据目标事件信息,生成目标视频。In step S206, in response to the target video generation instruction corresponding to the target event presentation information triggered by the client, the target video is generated according to the target event information.
客户端可以在检测用户对于目标事件展示信息执行的操作、或者、对与目标展示信息关联的按钮等执行的操作之后,代表用户触发对应于目标事件展示信息的目标视频生成指令,以发明生成上述目标视频。目标视频生成指令可以是在客户端基于用户的操作直接生成的,也可以是客户端向服务器侧返回视频生成响应信息,以触发服务器端生成目标视频生成指令。After detecting the operation performed by the user on the target event display information, or the operation performed on the button associated with the target display information, the client can trigger the target video generation instruction corresponding to the target event display information on behalf of the user to generate the above target video. The target video generation instruction may be directly generated on the client side based on the user's operation, or the client side may return video generation response information to the server side to trigger the server side to generate the target video generation instruction.
目标视频生成指令中可以携带有目标游戏的标识、目标局游戏的标识、以及用户的用户标识(对象的对象标识),以指示发明的是哪个对象在哪局游戏的高光时刻。The target video generation instruction may carry the target game's logo, the target game's logo, and the user's user logo (object logo of the object) to indicate which object was invented at the highlight moment of which game.
服务器端(例如,视频合成服务器)可以接收客户端处触发的上述目标视频生成指令,响应该目标视频生成指令,根据目标事件信息,生成目标视频。生成的目标视频可以是目标局游戏的一个参与对象的高光时刻视频。由于游戏局信息记录文件用于记录目标局游戏的游戏局信息,可以用于回溯目标局游戏的过程;而按照目标事件信息,服务器端可以确定回溯目标局游戏中的哪一部分的过程,从而可以生成目标视频。The server side (eg, a video synthesis server) may receive the above-mentioned target video generation instruction triggered by the client, and in response to the target video generation instruction, generate the target video according to the target event information. The generated target video may be a highlight moment video of a participating object in the target game. Because the game information record file is used to record the game information of the target game, it can be used to trace the process of the target game; and according to the target event information, the server can determine which part of the process to trace back to the target game, so that it can Generate the target video.
需要说明的是,符合预置条件的目标事件信息可以为多个,如果多个目标事件信息对应于不同的参与对象。对于多个目标事件信息中的每个目标事件信息,服务器可以分别将至少部分该目标事件信息发送到对应的参与对象的客户端,以生成与该参与对象对应的目标视频,目标视频的生成过程与前述类似,在此不做赘述。It should be noted that the target event information that meets the preset condition may be multiple, if the multiple target event information corresponds to different participating objects. For each target event information in the plurality of target event information, the server may respectively send at least part of the target event information to the client of the corresponding participating object, so as to generate a target video corresponding to the participating object. The generation process of the target video Similar to the above, it is not repeated here.
在一些实施方式中,在目标局游戏结束之后,服务器端也可以基于提取的目标事件信息,直接生成目标视频,而无需用户触发视频生成指令,根据视频生成指令再生成目标视频,上述过程相对于此方式可以节省服务器端的计算资源。In some embodiments, after the target game ends, the server can also directly generate the target video based on the extracted target event information, without the need for the user to trigger the video generation instruction, and regenerate the target video according to the video generation instruction. This method can save computing resources on the server side.
此外,在目标局游戏结束之后,可以在客户端上显示的游戏结算界面上显示提示按钮,例如,生成高光时刻的提示按钮。用户可以对提示按钮执行的触发操作,以触发向服务器发送视频生成发明,服务器端可以响应视频生成发明,执行获取目标局游戏的游戏局信息记录文件、提取游戏局信息记录文件中符合预置条件的目标事件信息、以及根据目标事件信息生成目标视频的 步骤。In addition, after the end of the target round of the game, a prompt button may be displayed on the game settlement interface displayed on the client, for example, a prompt button for generating a highlight moment. The user can perform the triggering operation on the prompt button to trigger the sending of the video generation invention to the server, and the server can respond to the video generation invention, execute the acquisition of the game information record file of the target game, and extract the game information record file that meets the preset conditions. and the step of generating a target video according to the target event information.
考虑到解析游戏局信息记录文件占用的资源较小,以及由于某些原因预生成高光时刻的用户可能不会触发视频生成发明,本实施中提供的视频生成方案可以减少资源占用,提高用户使用体验。Considering that the resources occupied by parsing game information record files are small, and users who pre-generate highlight moments for some reasons may not trigger the video generation invention, the video generation solution provided in this implementation can reduce resource occupancy and improve user experience. .
需要说明的是,上述视频生成方法也可以是由客户端执行的,例如,在目标局游戏结束之后由本客户端完成上述视频生成过程,或者,由其他客户端完成上述视频生成过程;或者,上述视频生成方法也可以是由服务器端和客户端共同执行的,两者分别执行上述视频生成过程的部分步骤,本实施例中对此不作具体限定。It should be noted that the above-mentioned video generation method can also be executed by the client, for example, after the end of the target game, the client completes the above-mentioned video generation process, or another client completes the above-mentioned video generation process; The video generation method may also be jointly executed by the server and the client, both of which respectively execute some steps of the above video generation process, which are not specifically limited in this embodiment.
需要说明的是,目标事件是指游戏过程中的特定事件,不同的对象所触发的特定事件、同一对象在同一局游戏或者不同局游戏中所触发的特定事件可以是不同的。目标视频可以是目标对象的高光时刻,包含目标对象触发目标事件的视频画面的视频,不同局游戏对应的目标视频可以是不同的,本实施例中对此不作限定。It should be noted that the target event refers to a specific event in the game process, and the specific events triggered by different objects and the specific events triggered by the same object in the same game or in different games may be different. The target video may be the highlight moment of the target object, including the video of the video screen where the target object triggers the target event, and the target video corresponding to different games may be different, which is not limited in this embodiment.
通过上述步骤S202至步骤S206,获取目标局游戏的游戏局信息记录文件,其中,游戏局信息记录文件记录有至少一个事件信息;提取游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,其中,目标事件展示信息用以在客户端处展示至少部分目标事件信息;响应于客户端处触发的对应于目标事件展示信息的目标视频生成指令,根据目标事件信息,生成目标视频,解决了相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题,减少了终端侧的资源消耗,提高了用户账号安全性。Through the above steps S202 to S206, the game information record file of the target game is obtained, wherein the game information record file records at least one event information; the target event information that meets the preset conditions in the game game information record file is extracted, and Sending at least part of the target event information to the client to support generating target event display information at the client, wherein the target event display information is used to display at least part of the target event information at the client; in response to triggering at the client The target video generation instruction corresponding to the target event display information, and the target video is generated according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the related art method of recording game videos. , which reduces resource consumption on the terminal side and improves user account security.
在一些实施方式中,提取游戏局信息记录文件中符合预置条件的目标事件信息可包括:In some embodiments, extracting target event information that meets preset conditions in the game information record file may include:
S11,解析出游戏局信息记录文件中记录的至少一个事件信息;S11, parse out at least one event information recorded in the game information record file;
S12,遍历至少一个事件信息,得到符合预置条件的目标事件信息。S12, traverse at least one event information to obtain target event information that meets a preset condition.
解析服务器可以读取游戏局信息记录文件(demo文件),遍历该游戏局信息记录文件,按照遍历的顺序依次获取游戏局信息记录文件中的事件信息,得到目标事件流,目标事件流为至少一个事件信息按照发生的先后顺序进行排序所得到的事件流。The parsing server can read the game information record file (demo file), traverse the game information record file, obtain the event information in the game information record file in turn in the order of traversal, and obtain the target event stream, and the target event stream is at least one The event stream is obtained by sorting the event information according to the order of occurrence.
对于目标事件流,解析服务器可以遍历目标事件流(至少一个事件信息),得到符合预置条件的目标事件信息。目标事件信息与目标事件对应,可以是目标事件流中的事件信息,也可以是根据目标事件流中的事件信息所确定的事件信息。目标事件信息的确定方式可以根据需要进行配置,本实施例中对此不作限定。For the target event stream, the parsing server may traverse the target event stream (at least one event information) to obtain target event information that meets preset conditions. The target event information corresponds to the target event, and may be event information in the target event stream, or event information determined according to the event information in the target event stream. The manner of determining the target event information may be configured as required, which is not limited in this embodiment.
需要说明的是,先遍历游戏局信息记录文件得到目标事件流是为了解析出游戏局信息记录文件中包含的事件信息,再遍历目标事件流是为了得到符合预置条件的目标事件信息。对于其他解析游戏局信息记录文件得到目标事件信息的方式,上述实施例中的视频生成方法同样适用。It should be noted that the purpose of first traversing the game information record file to obtain the target event stream is to parse out the event information contained in the game game information record file, and then traversing the target event stream is to obtain the target event information that meets the preset conditions. For other methods of parsing the game information record file to obtain the target event information, the video generation method in the above-mentioned embodiment is also applicable.
通过本实施例,通过读取游戏局信息记录文件得到目标局游戏的事件流,遍历事件流来确定目标事件信息,可以提高视频生成的适用性(适用于目标事件信息是目标事件流中的事件信息的场景,也可适用于目标事件信息为根据目标事件流中的事件信息所确定的事件信息的场景)。Through this embodiment, the event stream of the target game is obtained by reading the game information record file, and the target event information is determined by traversing the event stream, which can improve the applicability of video generation (applicable when the target event information is an event in the target event stream). Information scenarios can also be applied to scenarios in which the target event information is event information determined according to the event information in the target event stream).
在一些实施方式中,遍历至少一个事件信息,得到符合预置条件的目标事件信息可包括:In some embodiments, traversing at least one event information to obtain target event information that meets preset conditions may include:
S21,遍历至少一个事件信息,得到至少一个参考事件信息,其中,参考事件信息用于表示触发一次击杀事件的参考对象、以及一次击杀事件的起止时间;S21, traverse at least one event information to obtain at least one reference event information, wherein the reference event information is used to represent a reference object that triggers a kill event and the start and end time of a kill event;
S22,遍历至少一个参考事件信息,得到符合预置条件的目标事件信息,其中,预置条件为一个对象触发目标事件,目标事件至少两次击杀事件,目标事件信息用于表示目标事件、参考对象中触发了目标事件的目标对象、以及目标事件的起止时间。S22, traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event information is used to represent the target event, reference The target object that triggered the target event in the object, and the start and end time of the target event.
预置条件可以是一个对象触发目标事件,目标事件可以是对应于整局游戏的事件,也可以是对应于整局游戏中的一个小局游戏的事件(对应于目标局游戏包含多个小局游戏的场景)。The preset condition can be an object triggering a target event, and the target event can be an event corresponding to the entire game, or an event corresponding to a small game in the entire game (corresponding to the target game containing multiple small games. game scene).
目标事件的类型可以根据需要进行配置,例如,可以是一次击杀事件,可以是至少两次 击杀事件。上述至少两次击杀事件可以是连续的击杀事件,例如,相邻两次击杀的间隔不超过目标时间间隔,或者,完成整个击杀的过程中该对象未脱过战,上述至少两次击杀事件可以是累计击杀事件,例如,在整局游戏的累计击杀事件,或者,在一个小局游戏中的累计击杀事件。The type of target event can be configured as desired, for example, it can be a one-kill event or at least two kill events. The above-mentioned at least two killing events may be consecutive killing events. For example, the interval between two consecutive killings does not exceed the target time interval, or, the object has not left the battle during the entire killing process. The secondary kill event may be a cumulative kill event, for example, a cumulative kill event in the entire game, or a cumulative kill event in a small game.
在一些实施方式中,目标事件也可以是其他类型的事件,例如,一个玩家单独对战对家的多个玩家,取胜或者顺利逃脱,即,1vn。In some implementations, the target event may also be other types of events, eg, a player playing alone against multiple players of an opponent, winning or escaping successfully, ie, 1vn.
例如,目标事件可以包括以下至少之一:1v3,3杀(连续击杀或者累计击杀),4杀(连续击杀或者累计击杀),5杀(连续击杀或者累计击杀)等。For example, the target event may include at least one of the following: 1v3, 3 kills (consecutive kills or accumulative kills), 4 kills (consecutive kills or accumulative kills), 5 kills (consecutive kills or accumulative kills), and the like.
如果目标事件为至少两次击杀事件,在得到目标事件流后,解析服务器可以遍历目标事件流,得到至少一个参考事件信息,参考事件信息用于表示触发一次击杀事件的参考对象、以及一次击杀事件的起止时间。If the target event is at least two kill events, after obtaining the target event stream, the parsing server can traverse the target event stream to obtain at least one reference event information. The reference event information is used to indicate the reference object that triggers a kill event, and a The start and end time of the kill event.
例如,解析服务器可以遍历目标事件流中的各个事件信息,确定该事件信息是否是一个参考事件信息,即,判断该事件信息是否是击杀信息,如果是,解析服务器可以将其确定为一个参考事件信息,从而得到至少一个参考事件信息。For example, the parsing server can traverse each event information in the target event stream to determine whether the event information is a reference event information, that is, determine whether the event information is kill information, and if so, the parsing server can determine it as a reference event information event information, thereby obtaining at least one reference event information.
需要说明的是,击杀事件的起止时间可以为与击杀事件对应的、参与对象处于战斗状态的起止时间;或者,也可以为击杀事件的击杀时刻前后一段时间(例如,向前3s,向后3s),或者,还可以是用户操作场景道具并使用该道具触发击杀到更换道具的一段时间,还可以是其他类型的起止时间,本实施例中对此不作限定。It should be noted that the start and end time of the killing event may be the start and end time corresponding to the killing event and the participating objects are in a combat state; , back 3s), or, it can also be a period of time from when the user operates a scene prop and uses the prop to trigger a kill until the prop is replaced, or other types of start and end time, which are not limited in this embodiment.
遍历至少一个参考事件信息,解析服务器可以得到符合预置条件的目标事件信息,目标事件信息可以用于表示:目标事件(比如,3杀)、参考对象中触发了目标事件的目标对象(例如,对应某一用户的用户标识)、以及目标事件的起止时间。Traversing at least one reference event information, the parsing server can obtain target event information that meets preset conditions, and the target event information can be used to represent: the target event (for example, 3 kills), the target object that triggered the target event in the reference object (for example, corresponding to the user ID of a user), and the start and end time of the target event.
需要说明的是,在遍历得到至少一个参考事件信息和遍历得到目标事件信息时,也可以直接针对特定对象进行信息提取。对应地,参考事件信息用于表示特定对象触发的一次击杀事件以及一次击杀事件的起止时间,目标事件信息用于表示目标事件、目标对象、以及目标事件的起止时间。信息提取过程与前述类似,在此不作赘述。It should be noted that when at least one reference event information is obtained through traversal and target event information is obtained through traversal, information extraction may also be performed directly for a specific object. Correspondingly, the reference event information is used to indicate a kill event triggered by a specific object and the start and end time of a kill event, and the target event information is used to indicate the target event, the target object, and the start and end time of the target event. The information extraction process is similar to that described above and will not be repeated here.
通过本实施例,通过先获取击杀信息再获取多次击杀信息的方式,可以提高信息获取的准确性。Through this embodiment, the accuracy of information acquisition can be improved by acquiring the killing information first and then acquiring the killing information for multiple times.
在一些实施方式中,遍历至少一个事件信息,得到至少一个参考事件信息可包括:In some embodiments, traversing at least one event information to obtain at least one reference event information may include:
S31,在目标局游戏包含多个小局游戏、且预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历至少一个事件信息,得到与多个小局游戏中的每个小局游戏对应的参考事件信息组,在一些实施方式中,参考事件信息组可包含至少一个参考事件信息中的至少部分事件信息。S31, in the case that the target round game includes a plurality of small round games, and the preset condition is that an object triggers at least two kill events in a small round game, traverse at least one event information, and obtain information related to the plurality of small round games A reference event information group corresponding to each small game in the . In some embodiments, the reference event information group may include at least part of the event information in at least one reference event information.
如果目标局游戏包含了多个小局游戏、并且目标事件是在一个小局游戏中触发至少两次击杀事件,那么,解析服务器可以按照小局游戏进行目标事件流遍历。例如,可以遍历至少一个事件信息,得到与每个小局游戏对应的参考事件信息组,每个参考事件信息组包含了本小局游戏内的参考事件信息。而上述至少一个参考事件信息包括与各个小局游戏对应的参考事件信息组。If the target round game includes multiple round games, and the target event is to trigger at least two kill events in one round game, the parsing server may traverse the target event flow according to the round game. For example, at least one event information can be traversed to obtain a reference event information group corresponding to each round game, and each reference event information group includes reference event information in this round game. The above at least one reference event information includes a reference event information group corresponding to each small round game.
通过本实施例,若目标事件是针对一个小局游戏内的事件,按照各个小局游戏进行目标事件流的遍历,可以方便进行目标事件信息的提取。With this embodiment, if the target event is for an event in a small game, the traversal of the target event stream is performed according to each small game, which can facilitate the extraction of target event information.
在一些实施方式中,遍历至少一个参考事件信息,得到符合预置条件的目标事件信息可包括:In some embodiments, traversing at least one reference event information to obtain target event information that meets preset conditions may include:
S51,遍历每个小局游戏的参考事件信息组,得到与每个小局游戏对应的、符合预置条件的目标事件信息,其中,目标事件信息可用于表示目标事件、目标对象、以及目标事件所属的小局游戏、以及目标事件在所属的小局游戏内的起止时间。S51, traverse the reference event information group of each small game to obtain target event information corresponding to each small game and meeting the preset conditions, wherein the target event information can be used to represent the target event, the target object, and the target event The game it belongs to, and the start and end time of the target event in the game it belongs to.
对于每个小局游戏的参考事件信息组,解析服务器可以分别进行遍历,得到与每个小局游戏对应的、符合预置条件的目标事件信息。得到的目标事件信息可以用于表示目标事件以及触 发该目标事件的目标对象。为了便于定位目标事件,目标事件信息还可以用于表示目标事件所属的小局游戏、以及目标事件在所属的小局游戏内的起止时间。For the reference event information group of each round game, the parsing server may traverse separately to obtain target event information corresponding to each round game and meeting the preset conditions. The obtained target event information can be used to represent the target event and the target object that triggers the target event. In order to facilitate locating the target event, the target event information may also be used to indicate the round game to which the target event belongs, and the start and end times of the target event in the round game to which the target event belongs.
需要说明的是,触发目标事件的对象可以有多个,可以将不同对象的目标事件信息放入到高光时刻事件列表。高光时刻事件列表包含不同对象可生成高光时刻的一个或多个目标事件信息。服务器可以接收各个对象的客户端返回的视频生成指令,得到视频生成指令列表,并从中取出视频生成指令,按照对应的目标事件信息进行目标视频生成。It should be noted that there can be multiple objects that trigger the target event, and the target event information of different objects can be put into the highlight moment event list. The highlight moment event list contains information on one or more target events for which different objects can generate a highlight moment. The server can receive the video generation instruction returned by the client of each object, obtain the video generation instruction list, and extract the video generation instruction from it, and perform target video generation according to the corresponding target event information.
例如,在一局比赛结束后,demo解析服务器可以分析本局游戏的demo文件,得到比赛中出现的所有击杀、助攻、死亡等事件;基于这些事件进行统计,可以得出每位玩家的高光表现(例如,一局比赛击杀超过3人并获取胜利),然后记录包含这些事件的起止时间。For example, after a game is over, the demo parsing server can analyze the demo file of the game to get all the kills, assists, deaths and other events that occurred in the game; statistics based on these events can be used to get the highlights of each player. (For example, kill more than 3 people in a game and win), then record the start and end times that include these events.
如图3所示,上述记录不同对象所包含的目标事件的起止时间可以包括以下步骤:As shown in Figure 3, the above-mentioned recording of the start and end times of the target events contained in different objects may include the following steps:
步骤1,读取demo文件;Step 1, read the demo file;
步骤2,遍历得到事件流序列,即,事件流;Step 2, traversing to obtain an event stream sequence, that is, an event stream;
步骤3,解析事件流序列,确定是否是一局(一个小局)比赛的开始,如果是,执行步骤4,否则,执行步骤8;Step 3, analyze the event flow sequence to determine whether it is the beginning of a game (a small game), if so, execute step 4, otherwise, execute step 8;
步骤4,记录当局(本小局)信息,遍历事件流;Step 4, record the information of the authority (this small bureau), and traverse the event flow;
步骤5,判断是否是当局结束,如果是,执行步骤2,否则,执行步骤6;Step 5, judge whether it is the end of the authority, if so, go to step 2, otherwise, go to step 6;
步骤6,判断是否是玩家连入或者击杀,如果是,执行步骤7,否则,执行步骤4;Step 6, determine whether the player is connected or killed, if so, go to Step 7, otherwise, go to Step 4;
步骤7,记录击杀信息和开始结束时间(击杀信息的起止时间);Step 7, record kill information and start and end time (start and end time of kill information);
步骤8,判断是否是文件尾,如果是,执行步骤9,否则,执行步骤2;Step 8, judge whether it is the end of the file, if so, go to step 9, otherwise, go to step 2;
步骤9,将每局信息按序组成数组,遍历该数组;Step 9: Form each round of information into an array in sequence, and traverse the array;
步骤10,判断是否完成遍历,如果是,执行步骤14,否则,执行步骤11;Step 10, judge whether the traversal is completed, if yes, go to step 14, otherwise, go to step 11;
步骤11,获取一局数据;Step 11, obtain a round of data;
步骤12,判断是否包含3杀、4杀或5杀,如果是执行步骤13,否则,执行步骤10;Step 12, judge whether it contains 3 kills, 4 kills or 5 kills, if it is, go to step 13, otherwise, go to step 10;
步骤13,记录当局击杀信息和录制起止时间,再返回执行步骤10;Step 13, record the killing information of the authorities and the start and end time of the recording, and then return to step 10;
步骤14,将比赛记录加入可生成精彩时刻队列。Step 14, adding the game record to the queue for generating wonderful moments.
整个demo文件的解析在1~2秒内完成,占用系统资源较少,有利于并发执行,以提升单位时间内生成的精彩时刻(完美时刻)数量,在一些实施方式中,精彩时刻队列可以是高光时刻事件列表。The parsing of the entire demo file is completed within 1 to 2 seconds, occupying less system resources, which is conducive to concurrent execution, so as to increase the number of wonderful moments (perfect moments) generated per unit time. In some embodiments, the wonderful moment queue can be Highlight moment event list.
通过本实施例,按照小局游戏进行事件信息提取,同时在目标事件信息中包含事件信息、对象信息、小局信息以及事件起止事件信息,可以视频生成的准确性。With this embodiment, the event information is extracted according to the small game, and the target event information includes event information, object information, small game information and event start and end event information, so that the accuracy of video generation can be achieved.
在一些实施方式中,遍历至少一个事件信息,得到符合预置条件的目标事件信息可包括:In some embodiments, traversing at least one event information to obtain target event information that meets the preset conditions may include:
S51,在预置条件为一个对象触发目标事件、且目标事件包含至少两种的情况下,分别确定与每种目标事件对应的候选事件信息,其中,候选事件信息用于表示触发每种目标事件的目标对象、以及每种目标事件的起止时间;S51, when the preset condition is that one object triggers the target event and the target events include at least two types, determine the candidate event information corresponding to each target event, wherein the candidate event information is used to indicate that each target event is triggered target object, and the start and end time of each target event;
S52,合并与每种目标事件对应的候选事件信息中属于同一对象的事件信息,得到目标事件信息,其中,目标事件信息用于表示目标对象、由目标对象触发的至少一种目标事件、以及每种目标事件的起止时间。S52, merge the event information belonging to the same object in the candidate event information corresponding to each target event to obtain target event information, wherein the target event information is used to represent the target object, at least one target event triggered by the target object, and each The start and end time of the target event.
如果目标事件有多种,解析服务器可以按照前述方式针对每种目标事件生成对应的候选事件信息,候选事件信息用于表示触发每种目标事件的目标对象、以及每种目标事件的起止时间。If there are multiple target events, the parsing server can generate corresponding candidate event information for each target event in the aforementioned manner, where the candidate event information is used to indicate the target object that triggers each target event and the start and end time of each target event.
在得到每种目标事件对应的候选事件信息之后,解析服务器可以进行信息合并,从而得到目标事件信息,目标事件信息用于表示目标对象、由目标对象触发的至少一种目标事件、以及每种目标事件的起止时间。After obtaining candidate event information corresponding to each target event, the parsing server may combine information to obtain target event information, where the target event information is used to represent the target object, at least one target event triggered by the target object, and each target event The start and end times of the event.
例如,目标事件包括:1v3,3杀,4杀,5杀,对于每个事件,解析服务器可以得到对应的候选事件信息可以包括以下信息:For example, the target event includes: 1v3, 3 kills, 4 kills, and 5 kills. For each event, the corresponding candidate event information that can be obtained by the parsing server can include the following information:
1v3;玩家A,时间段1;1v3; player A, time period 1;
3杀;玩家A,时间段2;玩家B,时间段3;玩家C,时间段4;3 kills; player A, time period 2; player B, time period 3; player C, time period 4;
4杀;玩家A,时间段5;玩家B,时间段6;4 kills; player A, time period 5; player B, time period 6;
5杀;玩家A,时间段7。5 kills; player A, time slot 7.
通过事件信息合并,得到的目标事件信息可以包括以下信息:Through event information merging, the obtained target event information can include the following information:
玩家A;1v3,时间段1;3杀,时间段2;4杀,时间段5;5杀,时间段7;Player A; 1v3, time period 1; 3 kills, time period 2; 4 kills, time period 5; 5 kills, time period 7;
玩家B;3杀,时间段3;4杀,时间段6;Player B; 3 kills, time period 3; 4 kills, time period 6;
玩家C;3杀,时间段4。Player C; 3 kills, time slot 4.
通过本实施例,按照不同的事件进行事件信息获取,并合并同一对象的事件信息,可以提高视频生成的便捷性,避免多次生成过程中存在的资源浪费(例如,无需针对每个事件均回放一遍目标游戏)。With this embodiment, the event information is acquired according to different events, and the event information of the same object is combined, which can improve the convenience of video generation and avoid the waste of resources in the multiple generation process (for example, there is no need to play back each event for each event). one target game).
在一些实施方式中,根据目标事件信息,生成目标视频可包括:In some embodiments, according to the target event information, generating the target video may include:
S61,通过第一客户端加载游戏局信息记录文件,以播放目标局游戏,其中,第一客户端为目标局游戏所属的目标游戏的客户端;S61, loading the game information record file through the first client to play the target game, wherein the first client is the client of the target game to which the target game belongs;
S62,在目标时间段内对播放的目标局游戏进行视频录制,得到目标视频画面,其中,预置条件为一个对象触发目标事件,目标事件信息用于表示目标事件、触发目标事件的目标对象、以及目标事件的起止时间,目标时间段为与目标事件的起止时间对应的时间段;S62, video recording is performed on the played target game in the target time period to obtain a target video image, wherein the preset condition is that an object triggers the target event, and the target event information is used to represent the target event, the target object that triggers the target event, and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event;
S63,生成包含目标视频画面的目标视频。S63: Generate a target video including the target video picture.
解析服务器可以将游戏局信息记录文件和目标事件信息发送给录制合成服务器进行视频生成。The parsing server can send the game information record file and target event information to the recording and synthesis server for video generation.
录制合成服务器(也可以是其他服务器)上可以运行有目标游戏的客户端,通过第一客户端可以加载游戏局信息记录文件,从而播放目标局游戏,或者说,目标局游戏的回放。播放的目标局游戏是根据游戏局信息记录文件还原的目标局游戏。The recording and synthesis server (or other servers) can run a client of the target game, and the first client can load the game information record file, thereby playing the target game, or in other words, the playback of the target game. The played target round game is the target round game restored according to the game round information record file.
在启动第一客户端的同时,或者,在第一客户端播放目标局游戏的过程中,录制合成服务器可以启动视频录制程序,以控制视频录制程序在与目标事件的起止时间对应的时间段(即,目标时间段)内对第一客户端播放的目标局游戏进行录制,得到一组游戏画面,即,目标视频画面。While starting the first client, or during the first client playing the target game, the recording composition server may start the video recording program to control the video recording program in the time period corresponding to the start and end times of the target event (that is, , the target time period) to record the target game played by the first client to obtain a set of game pictures, that is, target video pictures.
在得到目标视频画面之后,录制合成服务器可以基于目标视频画面进行目标视频生成,从而得到包含目标视频画面的目标视频。After obtaining the target video picture, the recording and synthesis server may generate the target video based on the target video picture, so as to obtain the target video including the target video picture.
通过本实施例,通过游戏客户端加载demo文件,并在指定时间段对游戏进行录制,可以提高高光时刻视频生成的准确性。With this embodiment, the demo file is loaded through the game client, and the game is recorded in a specified time period, which can improve the accuracy of video generation at the highlight moment.
在一些实施方式中,在对播放的目标局游戏进行视频录制之前,视频生成方法还可包括:In some embodiments, before video recording is performed on the played target game, the video generation method may further include:
S71,配置视频录制的录制参数,其中,录制参数包括:录制的视角,录制的起止时间,录制的视角为目标对象的视角,录制的起止时间为目标事件的起止时间。S71: Configure recording parameters for video recording, where the recording parameters include: a recording angle of view, a recording start and end time, the recording angle of view is the angle of view of the target object, and the recording start and end time is the start and end time of the target event.
在进行视频录制之前,录制合成服务器或者其他服务器可以将视频录制程序的录制参数配置为目标录制参数,录制参数可以包括:视角和起止时间。对应地,目标录制参数可以包含:录制的视角和录制的起止时间,录制的视角为目标对象的视角,录制的起止时间为目标事件的起止时间(目标对象触发的目标事件的起止时间)。Before performing video recording, the recording synthesis server or other servers may configure the recording parameters of the video recording program as target recording parameters, and the recording parameters may include: angle of view and start and end time. Correspondingly, the target recording parameters may include: the recording angle of view and the recording start and end time, the recording angle of view is the angle of view of the target object, and the recording start and end time is the start and end time of the target event (the start and end time of the target event triggered by the target object).
在一些实施方式中,录制参数还可以包括:帧率,分辨率,其中,帧率和分辨率可以采用默认值,也可以基于demo文件中的信息进行配置,本实施例中对此不作限定。In some embodiments, the recording parameters may further include: frame rate and resolution, where the frame rate and resolution may adopt default values, or may be configured based on information in the demo file, which is not limited in this embodiment.
通过本实施例,基于目标事件信息为视频录制程序配置录制参数,可以提高视频录制的灵活性。With this embodiment, recording parameters are configured for the video recording program based on the target event information, which can improve the flexibility of video recording.
在一些实施方式中,生成包含目标视频画面的目标视频可包括:In some embodiments, generating the target video including the target video frame may include:
S81,将目标视频画面合成为目标格式的目标视频文件;S81, synthesizing the target video picture into a target video file of the target format;
S82,为目标视频文件添加目标资源,得到目标视频,其中,目标资源至少部分基于目标事件信息生成。S82: Add a target resource to the target video file to obtain a target video, where the target resource is generated based at least in part on target event information.
在得到目标视频画面之后,录制合成服务器可以将目标视频画面合成为目标格式的目标视频文件,例如,录制合成服务器可以利用ffmpeg(Fast Forward Moving Pictures Experts Group,快速向前动态图像专家组)将目标对象触发目标事件的视频画面(目标视频画面)合成为视频格式的文件,例如,mp4(Mobile Pentium 4,视频播放器)格式的文件,其中,ffmpeg为用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。After obtaining the target video picture, the recording and synthesis server can synthesize the target video picture into a target video file in the target format. For example, the recording and synthesis server can use ffmpeg (Fast Forward Moving Pictures Experts Group) to combine the target video The video picture (target video picture) of the target event triggered by the object is synthesized into a file in video format, for example, a file in mp4 (Mobile Pentium 4, video player) format, where ffmpeg is used to record and convert digital audio, video, and An open-source computer program that turns it into a stream.
得到的视频文件可以直接作为目标视频,也可以对得到的视频文件进行特定处理。在一些实施方式中,在得到目标视频文件之后,录制合成服务器可以至少部分基于目标事件信息生成目标资源,例如,视频封面、片头、片尾等,还可以添加背景音乐等。The obtained video file can be directly used as the target video, or specific processing can be performed on the obtained video file. In some embodiments, after obtaining the target video file, the recording and synthesis server may generate target resources based at least in part on the target event information, such as video cover, title, title, etc., and may also add background music and the like.
此外,如果目标对象触发了多个目标事件,或者,一个目标事件包含了多个击杀事件的起止时间,录制合成服务器可以在不同的目标事件的视频画面之间、或者不同的击杀事件的视频画面之间添加过渡画面,也就是,转场片段,得到与目标局游戏对应的目标视频。In addition, if the target object triggers multiple target events, or, one target event includes the start and end times of multiple kill events, the recording and synthesis server can record between the video frames of different target events or between different kill events. A transition picture, that is, a transition segment, is added between the video pictures to obtain a target video corresponding to the target game.
例如,为了生成完美时刻,如图4所示,录制合成服务器生成完美时刻的方式可以包括以下步骤:For example, in order to generate the perfect moment, as shown in Figure 4, the way the recording composition server generates the perfect moment may include the following steps:
步骤1,从可生成队列中(可以是基于视频生成指令得到的可生成队列,包含了与每个视频生成指令对应的目标事件信息等)获取一条记录;Step 1, obtain a record from the producible queue (which can be the producible queue obtained based on the video generation instruction, including the target event information corresponding to each video generation instruction, etc.);
步骤2,下载demo文件并获取录制起止时间;Step 2, download the demo file and get the recording start and end time;
步骤3,设置录制程序的录制参数,可以包括:视角,帧率,分辨率,起止时间;Step 3, set the recording parameters of the recording program, which can include: angle of view, frame rate, resolution, start and end time;
步骤4,启动录制程序及游戏客户端,开始录制;Step 4, start the recording program and the game client, and start recording;
步骤5,完成录制,获取每帧图片文件;Step 5, complete the recording, and obtain each frame of picture file;
步骤6,将每帧图片按序合成mp4格式视频文件;Step 6, synthesizing each frame of pictures into mp4 format video files in sequence;
步骤7,为视频添加片头和片尾以及转场切换效果;Step 7, add opening and ending and transition effects to the video;
步骤8,上传视频并返回结果。Step 8, upload the video and return the result.
可生成队列中可以保存有响应于多个对象的生成高光时刻的申请所得到的多条可生成记录,每条可生成记录可以对应于一个视频生成指令。服务器按照申请的先后顺序从可生成队列中获取记录并进行处理。A plurality of producible records obtained in response to an application for generating a highlight moment of multiple objects may be stored in the producible queue, and each producible record may correspond to a video generation instruction. The server obtains records from the queue that can be generated and processes them according to the order of applications.
需要说明的是,整个视频录制和合成需要3~5分钟内完成,较为耗时,可以根据可生成队列中可生成的记录条数,动态申请和回收云服务器(录制合成服务器),对视频生成过程进行并发执行,从而提升单位时间内生成的完美时刻数量,保证用户体验。It should be noted that the entire video recording and synthesis needs to be completed within 3 to 5 minutes, which is relatively time-consuming. You can dynamically apply for and recover the cloud server (recording synthesis server) according to the number of records that can be generated in the generation queue. The process is executed concurrently, thereby increasing the number of perfect moments generated per unit time and ensuring user experience.
通过本实施例,通过添加片头、片尾、转场片段和背景音频,可以提高高光时刻包含信息的丰富性,通过提高用户的视觉和听觉体验。With this embodiment, by adding titles, endings, transition clips, and background audio, the richness of information contained in highlight moments can be improved, and the user's visual and auditory experience can be improved.
在一些实施方式中,在根据目标事件信息,生成目标视频之后,视频生成方法还可包括:In some embodiments, after generating the target video according to the target event information, the video generation method may further include:
S91,接收第二客户端发送的目标操作请求,其中,目标操作请求用于请求对目标视频执行目标操作;S91, receiving a target operation request sent by a second client, wherein the target operation request is used to request to perform a target operation on the target video;
S92,响应目标操作请求,向第二客户端传输目标视频,以通过第二客户端对目标视频执行目标操作。S92, in response to the target operation request, transmit the target video to the second client, so as to perform the target operation on the target video through the second client.
目标视频可以存储在云点播平台中,以方便目标对象的客户端或者其他对象(可能需要目标对象的分享等)的客户端可以通过执行目标操作的方式从云点播平台获取目标视频,从而可以观看该视频。The target video can be stored in the cloud on-demand platform, so that the client of the target object or the client of other objects (may require the sharing of the target object, etc.) can obtain the target video from the cloud on-demand platform by performing the target operation, so that they can watch it. the video.
云点播平台可以接收第二客户端发送的目标操作请求,以请求对目标视频执行目标操作。第二客户端可以是目标对象的客户端,或者是,其他对象的客户端。上述目标操作可以是点播操作,下载操作等,本实施例中对此不限定。The cloud-on-demand platform may receive the target operation request sent by the second client to request to perform the target operation on the target video. The second client may be a client of the target object, or a client of other objects. The above-mentioned target operation may be an on-demand operation, a download operation, etc., which is not limited in this embodiment.
响应该目标操作请求,云点播平台可以将目标视频发送给第二客户端。第二客户端可以 在接收与目标视频之后,在其显示界面上播放该目标视频。In response to the target operation request, the cloud-on-demand platform can send the target video to the second client. After receiving the target video, the second client can play the target video on its display interface.
通过本实施例,通过云点播的方式获取本对象或者其他对象的高光时刻,可以提高视频资源获取的便捷性,提高用户的使用体验。Through this embodiment, the highlight moment of the object or other objects is acquired by means of cloud-on-demand, which can improve the convenience of acquiring video resources and improve the user experience.
根据本发明实施例的另一个方面,还提供了一种视频生成方法,在一些实施方式中,上述视频生成方法可以应用于如图1所示的由终端102和服务器104所构成的硬件环境中。已经进行过说明的,在此不做赘述。According to another aspect of the embodiments of the present invention, a video generation method is also provided. In some embodiments, the above video generation method can be applied to the hardware environment formed by the terminal 102 and the server 104 as shown in FIG. 1 . . What has already been described will not be repeated here.
以由终端102来执行本实施例中的视频生成方法为例,图5是根据本发明实施例的一种可选的视频生成方法的流程示意图,如图5所示,该方法的流程可以包括以下步骤:Taking the terminal 102 to perform the video generation method in this embodiment as an example, FIG. 5 is a schematic flowchart of an optional video generation method according to an embodiment of the present invention. As shown in FIG. 5 , the process of the method may include: The following steps:
S502,接收来自服务器端的目标事件信息,其中,目标事件信息为服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,游戏局信息记录文件记录有至少一个事件信息;S502, receiving target event information from the server, wherein the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions, and the game information record file records at least one event information ;
S504,生成并在客户端的界面区域显示目标事件展示信息,其中,目标事件展示信息用以展示至少部分目标事件信息;S504, generating and displaying target event display information in the interface area of the client, wherein the target event display information is used to display at least part of the target event information;
S506,代表用户触发对应于目标事件展示信息的目标视频生成指令,以使服务器端根据目标事件信息,生成目标视频。S506 , on behalf of the user, trigger a target video generation instruction corresponding to the target event display information, so that the server side generates the target video according to the target event information.
在本实施例中,客户端执行的操作在前述实施例中已经进行过描述,在此不做赘述。In this embodiment, the operations performed by the client have been described in the foregoing embodiments, and are not repeated here.
通过上述步骤S502至步骤S506,接收来自服务器端的目标事件信息,在一些实施方式中,目标事件信息为服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,游戏局信息记录文件记录有至少一个事件信息;生成并在客户端的界面区域显示目标事件展示信息,在一些实施方式中,目标事件展示信息用以展示至少部分目标事件信息;代表用户触发对应于目标事件展示信息的目标视频生成指令,以使服务器端根据目标事件信息,生成目标视频,解决了相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题,减少了终端侧的资源消耗,提高了用户账号安全性。Through the above steps S502 to S506, the target event information from the server is received. In some embodiments, the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions. The bureau information record file records at least one event information; generates and displays the target event display information in the interface area of the client, in some embodiments, the target event display information is used to display at least part of the target event information; on behalf of the user triggers corresponding to the target event The target video generation instruction for displaying information, so that the server side generates the target video according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the game video recording method in the related art, The resource consumption on the terminal side is reduced, and the security of the user account is improved.
在一些实施方式中,在生成目标事件展示信息之前,视频生成方法还可包括:In some embodiments, before generating the target event presentation information, the video generation method may further include:
S101,在预置条件为一个对象触发目标事件的情况下,从目标事件信息中提取出符合展示条件的待展示事件信息,其中,目标事件信息用于表示目标对象触发的目标事件、以及目标事件的起止时间。S101, when the preset condition is that an object triggers the target event, extract the event information to be displayed that meets the display condition from the target event information, wherein the target event information is used to represent the target event triggered by the target object and the target event start and end time.
上述预置条件可以为一个对象触发目标事件,目标事件信息至少可以目标事件的描述信息,用于表示目标对象触发的目标事件,以及目标事件的起止时间信息,用于表示目标事件的起止时间。The above preset condition may be that an object triggers a target event, and the target event information may at least be description information of the target event, used to indicate the target event triggered by the target object, and start and end time information of the target event, used to indicate the start and end time of the target event.
客户端可以从目标事件信息中提取出符合展示条件的待展示事件信息,上述展示条件用于描述可以进行展示的事件信息,例如,目标事件的描述信息。目标事件的描述信息可以描述目标事件,例如,目标事件中所使用的道具,道具的示例性图片等。如果目标对象触发的目标事件有多种,则待展示事件信息可以包含各个目标事件的描述信息。The client can extract the event information to be displayed that meets the display conditions from the target event information, and the above display conditions are used to describe the event information that can be displayed, for example, the description information of the target event. The description information of the target event may describe the target event, for example, props used in the target event, exemplary pictures of the props, and the like. If there are multiple target events triggered by the target object, the event information to be displayed may include description information of each target event.
在一些实施方式中,目标事件信息还可以包含目标局游戏的游戏局信息,该游戏局信息可以用于表示目标局游戏的游戏局特征,可以包含但不限于以下至少之一:日期,时长,对战结果,地图类型,代表性图片等。目标事件信息也可以包含与目标局游戏对应的目标对象的对象信息,例如,目标对象的对象ID(identity),段位,在目标局游戏中的对战位置等,从而可以方便提取待展示事件信息。In some embodiments, the target event information may also include game information of the target game, the game information may be used to represent the game characteristics of the target game, and may include but not limited to at least one of the following: date, duration, Battle results, map types, representative images, etc. The target event information may also include object information of the target object corresponding to the target game, for example, the target object's object ID (identity), rank, battle position in the target game, etc., so that the event information to be displayed can be easily extracted.
通过本实施例,通过提取符合展示条件的待展示事件信息,可以提高目标事件展示信息生成的准确性,以及用户信息获取的便捷性,即,方便用户确定是否需要生成目标视频。With this embodiment, by extracting the event information to be displayed that meets the display conditions, the accuracy of generating the target event display information and the convenience of obtaining user information can be improved, that is, it is convenient for the user to determine whether the target video needs to be generated.
在一些实施方式中,生成目标事件展示信息可包括:In some embodiments, generating target event presentation information may include:
S111,为待展示事件信息添加匹配的预置展示信息,得到目标事件展示信息,其中,预置展 示信息为预置的、目标事件的描述信息,不同的目标事件对应于不同的预置展示信息。S111 , adding matching preset display information to the event information to be displayed to obtain target event display information, wherein the preset display information is preset description information of the target event, and different target events correspond to different preset display information .
客户端可以为待展示事件信息添加与其匹配的预置展示信息,得到目标事件展示信息。上述预置展示信息可以是预先配置的、目标事件的描述信息。对于不同的目标事件,其可以对应于可以不同的预置展示信息,也可以对应于相同的预置展示信息。The client can add preset display information matching the event information to be displayed to obtain the target event display information. The above-mentioned preset presentation information may be pre-configured description information of the target event. For different target events, it may correspond to different preset display information, or may correspond to the same preset display information.
例如,如果目标事件是3次击杀事件,待展示事件信息可以是三杀,预置展示信息可以是“精彩”(即,显示“精彩三杀”),如果目标事件是4次击杀事件,待展示事件信息可以是四杀,预置展示信息可以是“完美”(即,显示“完美四杀”),等等。For example, if the target event is a 3-kill event, the event information to be displayed may be a triple-kill event, and the preset display information may be "Wonderful" (ie, display "Wonderful triple-kill"), if the target event is a 4-kill event , the event information to be displayed may be four kills, the preset display information may be "perfect" (ie, "perfect four kills" are displayed), and so on.
通过本实施例,通过为不同事件添加不同的展示信息,可以丰富目标事件展示信息,提高用户的视觉体验。Through this embodiment, by adding different display information for different events, the display information of the target event can be enriched, and the user's visual experience can be improved.
在一些实施方式中,代表用户触发对应于目标事件展示信息的目标视频生成指令可包括:In some embodiments, triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user may include:
S121,检测到用户对客户端执行的第一触发操作,其中,第一触发操作用于触发目标视频生成指令;S121, detecting a first trigger operation performed by the user on the client, wherein the first trigger operation is used to trigger the target video generation instruction;
S122,响应第一触发操作,代表用户触发生成目标视频生成指令,并触发将目标视频生成指令添加到服务器端的视频生成队列中,以使服务器端从视频生成队列中依次提取视频生成指令进行视频生成。S122, in response to the first triggering operation, triggering the generation of the target video generation instruction on behalf of the user, and triggering the addition of the target video generation instruction to the video generation queue on the server side, so that the server side sequentially extracts the video generation instructions from the video generation queue for video generation .
高光时刻的生成过程需要一定时间,为了保证不同玩家的游戏体验,需要通过排队的方式进行目标视频生成。The generation process of the highlight moment takes a certain amount of time. In order to ensure the game experience of different players, the target video generation needs to be performed by queuing.
如果客户端检测到用户对客户端执行的第一触发操作,该触发操作可以用于触发生成目标视频生成指令。响应第一触发操作,客户端可以生成目标视频生成指令,并将生成的目标视频生成指令发送给服务器端,或者,向服务器端返回视频生成响应信息,以触发服务器端生成目标视频生成指令。If the client detects the first trigger operation performed by the user on the client, the trigger operation may be used to trigger the generation of the target video generation instruction. In response to the first trigger operation, the client may generate a target video generation instruction, and send the generated target video generation instruction to the server, or return video generation response information to the server to trigger the server to generate the target video generation instruction.
服务器端可以维护有视频生成队列中,该队列中按照接收的先后顺序保存有一个或多个客户端触发生成视频生成指令。服务器端可以从视频生成队列中依次提取视频生成指令,从而进行视频生成。视频生成过程与前述类似,在此不做赘述。The server side may maintain a video generation queue, and the queue stores one or more client-triggered video generation instructions according to the receiving order. The server side can sequentially extract the video generation instructions from the video generation queue, so as to perform video generation. The video generation process is similar to the above, and will not be repeated here.
通过本实施例,通过在服务器端维护视频生成队列,并从中依次提取视频生成指令进行视频生成,可以提高视频生成效率,避免由于遗漏视频生成指令导致的无法进行视频生成。With this embodiment, by maintaining a video generation queue on the server side, and sequentially extracting video generation instructions from it for video generation, the video generation efficiency can be improved, and the failure of video generation due to missing video generation instructions can be avoided.
在一些实施方式中,服务器端可以采用与前述实施例相同或者类似的方式生成目标视频,已经进行过描述的,在此不做赘述。In some implementation manners, the server side may generate the target video in the same or similar manner as in the foregoing embodiment, which has already been described and will not be repeated here.
在一些实施方式中,在接收来自服务器端的目标事件信息之前,视频生成方法可包括:解析出游戏局信息记录文件中记录的至少一个事件信息;遍历至少一个事件信息,得到符合预置条件的目标事件信息。In some embodiments, before receiving the target event information from the server, the video generation method may include: parsing out at least one event information recorded in the game information record file; traversing the at least one event information to obtain a target that meets preset conditions event information.
在一些实施方式中,遍历至少一个事件信息,得到符合预置条件的目标事件信息可包括:遍历至少一个事件信息,得到至少一个参考事件信息,其中,参考事件信息用于表示触发一次击杀事件的参考对象、以及一次击杀事件的起止时间;遍历至少一个参考事件信息,得到符合预置条件的目标事件信息,在一些实施方式中,预置条件为一个对象触发目标事件,目标事件至少两次击杀事件,目标事件信息用于表示目标事件、参考对象中触发了目标事件的目标对象、以及目标事件的起止时间。In some embodiments, traversing at least one piece of event information to obtain target event information that meets a preset condition may include: traversing at least one piece of event information to obtain at least one reference event information, where the reference event information is used to indicate that a kill event is triggered The reference object and the start and end time of a killing event; traverse at least one reference event information to obtain target event information that meets preset conditions. In some embodiments, the preset condition is that an object triggers the target event, and the target event has at least two The second kill event, the target event information is used to indicate the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
在一些实施方式中,遍历至少一个事件信息,得到至少一个参考事件信息可包括:在目标局游戏包含多个小局游戏、且预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历至少一个事件信息,得到与多个小局游戏中的每个小局游戏对应的参考事件信息组,其中,参考事件信息组包含至少一个参考事件信息中的至少部分事件信息。In some embodiments, traversing at least one event information to obtain at least one reference event information may include: the target round game includes multiple small round games, and the preset condition is that an object triggers at least two hits in one small round game In the case of killing an event, traverse at least one event information to obtain a reference event information group corresponding to each small game in the plurality of small games, wherein the reference event information group includes at least a part of the events in the at least one reference event information information.
在一些实施方式中,遍历至少一个参考事件信息,得到符合预置条件的目标事件信息可包括:遍历每个小局游戏的参考事件信息组,得到与每个小局游戏对应的、符合预置条件的目标事件信息,其中,目标事件信息用于表示目标事件、目标对象、以及目标事件所属的小局游戏、 以及目标事件在所属的小局游戏内的起止时间。In some embodiments, traversing at least one reference event information to obtain the target event information that meets the preset conditions may include: traversing the reference event information group of each round game, and obtaining corresponding to each round game and meeting the preset conditions Conditional target event information, wherein the target event information is used to indicate the target event, the target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which the target event belongs.
在一些实施方式中,遍历至少一个事件信息,得到符合预置条件的目标事件信息可包括:在预置条件为一个对象触发目标事件、且目标事件包含至少两种的情况下,分别确定与每种目标事件对应的候选事件信息,候选事件信息用于表示触发每种目标事件的目标对象、以及每种目标事件的起止时间;合并与每种目标事件对应的候选事件信息中属于同一对象的事件信息,得到目标事件信息,在一些实施方式中,目标事件信息用于表示目标对象、由目标对象触发的至少一种目标事件、以及每种目标事件的起止时间。In some embodiments, traversing at least one event information to obtain the target event information that meets the preset condition may include: in the case that the preset condition is that an object triggers the target event, and the target event includes at least two types, respectively determining and each The candidate event information corresponding to each target event, the candidate event information is used to represent the target object that triggers each target event, and the start and end time of each target event; merge the events belonging to the same object in the candidate event information corresponding to each target event information to obtain target event information. In some embodiments, the target event information is used to represent the target object, at least one target event triggered by the target object, and the start and end times of each target event.
在一些实施方式中,在代表用户触发对应于目标事件展示信息的目标视频生成指令之后,上述方法还可包括:通过目标客户端加载游戏局信息记录文件,以播放目标局游戏,其中,目标客户端为目标局游戏所属的目标游戏的客户端;在目标时间段内对播放的目标局游戏进行视频录制,得到目标视频画面,在一些实施方式中,预置条件为一个对象触发目标事件,目标事件信息用于表示目标事件、触发目标事件的目标对象、以及目标事件的起止时间,目标时间段为与目标事件的起止时间对应的时间段;生成包含目标视频画面的目标视频。In some embodiments, after triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user, the above method may further include: loading the game round information record file through the target client to play the target round game, wherein the target client The terminal is the client of the target game to which the target game belongs; video recording is performed on the played target game within the target time period to obtain the target video image. In some embodiments, the preset condition is that an object triggers the target event, and the target The event information is used to indicate the target event, the target object that triggers the target event, and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event; the target video including the target video picture is generated.
在一些实施方式中,生成包含目标视频画面的目标视频可包括:将目标视频画面合成为目标格式的目标视频文件;为目标视频文件添加目标资源,得到目标视频,其中,目标资源至少部分基于目标事件信息生成。In some embodiments, generating the target video including the target video picture may include: synthesizing the target video picture into a target video file in the target format; adding target resources to the target video file to obtain the target video, wherein the target resources are based at least in part on the target video Event information is generated.
在一些实施方式中,在代表用户触发对应于目标事件展示信息的目标视频生成指令之后,上述方法还可包括:In some embodiments, after triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user, the above method may further include:
S131,在客户端的视频展示界面中显示目标事件展示信息,其中,目标事件展示信息包括携带有目标视频的点播链接的视频封面;S131, displaying target event display information on a video display interface of the client, wherein the target event display information includes a video cover carrying an on-demand link of the target video;
S132,检测到对视频封面执行的第二触发操作,其中,第二触发操作用于触发点播目标视频;S132, detecting a second trigger operation performed on the video cover, wherein the second trigger operation is used to trigger the on-demand target video;
S133,响应于第二触发操作,从服务器端获取并播放目标视频。S133, in response to the second trigger operation, acquire and play the target video from the server.
客户端的视频展示界面可以展示有一个或多个已生成或者待生成的高光时刻视频。对于已生成的目标视频,在视频展示界面中可以显示有目标事件展示信息,目标事件展示信息包括携带有目标视频的点播链接的视频封面。视频封面可以是前述目标局游戏的游戏地图的代表性图片。The video display interface of the client may display one or more videos of highlight moments that have been generated or are to be generated. For the generated target video, target event display information may be displayed in the video display interface, and the target event display information includes a video cover carrying an on-demand link of the target video. The video cover may be a representative picture of the game map of the aforementioned target game.
如果检测到对视频封面执行的第二触发操作,客户端可以向服务器端发送上述目标操作请求,以请求从服务器端获取并播放目标视频。If the second trigger operation performed on the video cover is detected, the client may send the above target operation request to the server to request to obtain and play the target video from the server.
需要说明的是,视频展示界面也可以展示有待生成的目标视频,通过第二触发操作可以点播目标视频,从而可以触发生成目标视频生成指令。在生成目标视频之后,服务器端可以将目标视频传输给客户端并进行播放。It should be noted that, the video display interface can also display the target video to be generated, and the target video can be on-demand through the second trigger operation, thereby triggering the generation of the target video generation instruction. After generating the target video, the server can transmit the target video to the client and play it.
通过本实施例,通过在视频展示界面进行目标视频展示,并通过触发操作进行目标视频的点播,可以提高视频获取的灵活性。With this embodiment, the flexibility of video acquisition can be improved by displaying the target video on the video display interface, and performing on-demand on-demand of the target video by triggering operations.
在一些实施方式中,视频生成方法还可包括:In some embodiments, the video generation method may further include:
S141,检测到对目标视频的播放界面中的下载按钮执行的第三触发操作,其中,第三触发操作用于触发下载目标视频;S141, detecting a third trigger operation performed on the download button in the playback interface of the target video, wherein the third trigger operation is used to trigger downloading of the target video;
S151,响应与第三触发操作,从服务器端获取并保存目标视频。S151, in response to the third trigger operation, acquire and save the target video from the server.
在目标视频的播放界面上,可以显示有多个功能按钮,例如,分享、下载等,用户可以通过点击分享按钮将目标视频、或者目标视频的描述信息以及点播连接分享到其个人空间(也可以是其他位置)、或者其他应用中,以供其他用户进行观看、评价及点赞。On the playback interface of the target video, multiple function buttons can be displayed, for example, share, download, etc. The user can click the share button to share the target video, or the description information of the target video and the on-demand connection to his personal space (or other locations), or other applications for other users to view, comment, and like.
用户也可以通过点击下载按钮将目标视频下载到本地。如果检测到下载按钮执行的第三触发操作,客户端可以从服务器端(例如,云点播平台)获取目标视频,并将目标视频保存到本地。为了节省存储空间,目标视频的保存可以具有一个默认的有效期,例如,一个月,对于超过期限的目标视频,客户端可以自动清除,或者,得到用户的授权之后进行删除,或者,提示用户进行删除,具体的清除方式可以根据需要进行配置,本实施例中对此不作限定。Users can also download the target video locally by clicking the download button. If the third trigger operation performed by the download button is detected, the client can obtain the target video from the server (for example, a cloud-on-demand platform), and save the target video locally. In order to save storage space, the target video can be saved with a default validity period, for example, one month. For the target video that exceeds the time limit, the client can automatically clear it, or delete it after obtaining the authorization of the user, or prompt the user to delete it. , and the specific clearing method can be configured as required, which is not limited in this embodiment.
通过本实施例,通过在目标视频的播放界面上配置下载按钮,可以方便用户在需要时进行视频下载(例如,观看之后希望保存到本地进行反复观看),提高用户的使用体验,提高了视频处理的灵活性,减少对客户端侧的存储空间的占用。Through this embodiment, by configuring the download button on the playback interface of the target video, it is convenient for the user to download the video when needed (for example, after watching, it is desirable to save it locally for repeated viewing), which improves the user experience and improves the video processing. flexibility, reducing the storage space occupation on the client side.
此外,每个用户在一个时间周期(例如,一周)生成高光时刻的次数可以有一定限制,例如,不超过目标次数阈值。可以通过执行特定操作来增加可生成高光时刻的次数,例如,分享的高光时刻被点赞的次数超过一定次数(例如,30次),在特定应用上分享高光时刻的次数超过一定次数阈值(例如,15次)。本实施例中对此不作限定。In addition, the number of times each user generates highlight moments in a time period (eg, a week) may be limited, eg, not exceeding a target number of times threshold. The number of times a highlight moment can be generated can be increased by performing specific actions, for example, a shared highlight moment is liked more than a certain number of times (for example, 30 times), and the number of times a highlight moment is shared on a specific app exceeds a certain number of times a threshold (for example, , 15 times). This is not limited in this embodiment.
下面结合可选示例对本发明实施例中的视频生成方法进行解释说明。在本示例中,目标游戏为FPS游戏,每场比赛包含30小局,目标事件为小局游戏击杀数超过3人,示例文件为demo文件,生成的包含对象触发目标事件的视频画面的视频为高光时刻。The video generation method in the embodiment of the present invention is explained below with reference to optional examples. In this example, the target game is an FPS game, each game contains 30 rounds, and the target event is that the number of kills in a round game exceeds 3 people. The sample file is a demo file, and the generated video contains the video screen of the object triggering the target event. For the highlight moment.
如图6所示,本示例中的视频生成方法的流程可以包括步骤S602,步骤S604,步骤S606,步骤S608和步骤S610。As shown in FIG. 6 , the flow of the video generation method in this example may include step S602 , step S604 , step S606 , step S608 and step S610 .
在步骤S602中,平台客户端启动并进入到房间。In step S602, the platform client starts and enters the room.
在玩家的PC上可以下载并安装有电竞平台,即,平台客户端,平台作为启动器,可以从平台启动游戏客户端,进入到一局游戏的房间,从而可以开启一局游戏。An e-sports platform can be downloaded and installed on the player's PC, that is, the platform client. The platform acts as a launcher, and can start the game client from the platform and enter the room of a game, so that a game can be started.
在步骤S604中,游戏客户端连接游戏服务器,并开始游戏。In step S604, the game client connects to the game server and starts the game.
游戏客户端可以连接游戏服务器,在达到一局游戏的启动条件(人数到达人数要求且均已准备)之后,开始一局游戏。The game client can connect to the game server, and start a game after reaching the starting conditions for a game (the number of people reaches the required number of people and all are ready).
在步骤S606中,比赛结束之后,游戏服务器可以向解析服务器同步demo文件。In step S606, after the game ends, the game server may synchronize the demo file with the parsing server.
比赛结束后会生成一个demo文件,该文件包含了整场比赛每一小局、每位玩家的所有事件,包括每局开始和结束、伤害和击杀、连入连出、开枪和使用道具等事件,是一个结构化文件。游戏服务器可以向解析服务器(dem解析服务器)同步demo文件。After the game is over, a demo file will be generated, which contains all the events of each round and each player of the whole game, including the start and end of each round, damage and kills, in and out, shooting and using props and other events, is a structured document. The game server can synchronize the demo file to the parsing server (dem parsing server).
在步骤S608中,解析服务器向录制合成服务器同时关键事件点和数据帧。In step S608, the parsing server transmits the key event point and the data frame simultaneously to the recording and synthesis server.
解析服务器可以对同步来的demo文件进行解析,解析过程可以如图3所示,通过分析该demo文件,可以获取每位玩家在每一小局的数据,即,得到比赛的每一局中出现的所有击杀、助攻、死亡等事件以及这些事件产生的起止时间。The parsing server can parse the synchronized demo file. The parsing process can be shown in Figure 3. By analyzing the demo file, the data of each player in each round can be obtained, that is, the appearance of each player in each round of the game can be obtained. All kills, assists, deaths, etc. events, and the start and end times of these events.
基于这些事件进行统计,从中筛选出击杀数大于3的玩家在当局比赛中所有击杀事件的时间点和持续时长,可以得出每位玩家的高光表现(例如,一局比赛击杀超过3人并获取胜利),然后记录包含这些事件的起止时间,为后续录制奠定数据基础。以此类推,通过遍历所有玩家在每一小局的数据,即可形成整场比赛的高光时刻事件列表。Based on these events, we can screen out the time points and durations of all kills in official matches by players with more than 3 kills, and then we can get the highlight performance of each player (for example, kill more than 3 players in one game) and win), and then record the start and end times including these events to lay the data foundation for subsequent recordings. By analogy, by traversing the data of all players in each round, the highlight moment event list of the whole game can be formed.
高光时刻事件列表可以是针对不同对象的,可以按照每个对象的高光时刻事件进行排序。每个对象对应与多个高光时刻事件以及每个高光时刻事件的持续时间,这里的持续时间是指当局第一次击杀开始到最后一次击杀结束的整个片段,由于敌方不会都聚集在一个点位,多次击杀中间会有走位,因此,持续时间是处于战斗状态的时间。The highlight moment event list can be for different objects, and can be sorted according to the highlight moment events of each object. Each object corresponds to multiple highlight moment events and the duration of each highlight moment event. The duration here refers to the entire segment from the first kill by the authorities to the end of the last kill. Since the enemy will not gather At a point, there are moves between multiple kills, so the duration is the time you are in combat.
解析服务器可以按照高光时刻事件列表向录制合成服务器同时关键事件点和数据帧,即,在哪些事件点或者有哪些数据帧与高光时刻对应。在一些实施方式中,在得到整场比赛的完美时刻事件列表之后,服务器可以向该高光时刻事件列表中所指示的所有对象的客户端发送提示,以提示该对象有待生成的高光时刻。The parsing server can simultaneously record key event points and data frames to the recording synthesis server according to the highlight moment event list, that is, at which event points or which data frames correspond to the highlight moment. In some embodiments, after obtaining the perfect moment event list for the entire game, the server may send a prompt to the clients of all objects indicated in the highlight moment event list to prompt the object to generate a highlight moment.
整个demo文件的解析在1~2秒内完成,占用系统资源较少,有利于并发执行以提升单位时间内生成的完美时刻数量。The parsing of the entire demo file is completed within 1 to 2 seconds, occupying less system resources, which is conducive to concurrent execution to increase the number of perfect moments generated per unit time.
在步骤S610中,录制合成服务器按照高光时刻事件列表生成各个对象的高光时刻视频,将高光时刻视频上传到云点播平台,并通过平台服务器通知客户端获取高光时刻视频。In step S610, the recording and synthesis server generates the highlight moment video of each object according to the highlight moment event list, uploads the highlight moment video to the cloud on-demand platform, and notifies the client through the platform server to obtain the highlight moment video.
获取整场比赛的事件列表后,录制合成服务器可以通过录制程序启动游戏客户端,基于各个精彩事件的起止时间设置帧率、分辨率和时长等参数,并锁定产生高光时刻的玩家视角。录 制程序可以在指定时间段对游戏进行录制,从而生成一组由一张张图片组成的原始图像帧。录制合成服务器再利用ffmpeg将图片文件合成为mp4格式的视频文件,并添加片头、片尾以及转场切换效果,即可形成玩家在整场比赛的高光时刻视频。After obtaining the event list of the entire game, the recording synthesis server can start the game client through the recording program, set parameters such as frame rate, resolution and duration based on the start and end time of each exciting event, and lock the player's perspective that produces the highlight moment. The recording program can record the game at a specified time period, thereby generating a set of original image frames consisting of pictures. The recording and synthesis server uses ffmpeg to synthesize the picture files into video files in mp4 format, and adds the opening, ending and transition switching effects to form the highlight moment video of the player in the whole game.
在得到高光时刻视频之后,录制合成服务器可以通知平台服务器获取高光时刻视频,并将高光时刻视频上传到云点播平台(云点播系统),以供玩家下载并分享至各个社交平台。在接收到录制合成服务器的通知后,平台服务器可以通知用户的平台客户端获取高光时刻视频。After obtaining the highlight moment video, the recording and synthesis server can notify the platform server to obtain the highlight moment video, and upload the highlight moment video to the cloud on-demand platform (cloud on-demand system) for players to download and share on various social platforms. After receiving the notification from the recording composition server, the platform server can notify the user's platform client to obtain the video of the highlight moment.
接收到平台服务器的通知之后,平台客户端可以通过云点播平台进行视频点播,从而播放用户的高光时刻视频。After receiving the notification from the platform server, the platform client can perform video-on-demand through the cloud-on-demand platform, so as to play the user's highlight moment video.
由于整个demo文件的分析、高光时刻的录制以及视频合成过程在游戏结束后进行,高光时刻的获取是基于对比赛结果数据文件对解析,没有采用在客户端录屏的方式,故不会对游戏体验产生性能损耗。此外,高光时刻的生成在服务器端完成,而不是通过注入逻辑到游戏客户端的方式来获取游戏内事件,所以不会影响游戏过程中对安全性,不会导致账号被封禁的风险。Since the analysis of the entire demo file, the recording of the highlight moment and the video synthesis process are carried out after the game is over, the acquisition of the highlight moment is based on the analysis of the game result data files, and does not use the method of recording the screen on the client side, so the game will not be recorded. Experience incurs a performance penalty. In addition, the generation of highlight moments is completed on the server side, instead of obtaining in-game events by injecting logic into the game client, so it will not affect the security during the game, and will not lead to the risk of account banning.
通过本示例,通过将录制过程和游戏过程分离,对玩家游戏性能不会产生影响;录制过程在服务端完成,不会影响游戏账号安全性;录制策略可以在服务端动态配置,根据用户行为进行定制,可以提高录制方式配置的灵活性。Through this example, by separating the recording process from the game process, the game performance of the player will not be affected; the recording process is completed on the server side and will not affect the security of the game account; the recording strategy can be dynamically configured on the server side, according to user behavior. Customization can increase the flexibility of recording method configuration.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM(Read-Only Memory,只读存储器)/RAM(Random Access Memory,随机存取存储器)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM (Read-Only Memory, ROM). Read-only memory)/RAM (Random Access Memory), magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) The method described in the various embodiments of the invention.
根据本发明实施例的另一个方面,还提供了一种用于实施上述视频生成方法的视频生成装置。图7是根据本发明实施例的一种可选的视频生成装置的结构框图,如图7所示,该装置可以包括:获取单元702,提取单元704和生成单元706。获取单元702用于支持视频生成装置执行上述方法实施例中的步骤S202的操作,提取单元704可以用于支持视频生成装置执行上述步骤S204的操作,生成单元706可以用于支持视频生成装置执行上述步骤S206的操作,和/或用于本文所描述的技术的其它过程。According to another aspect of the embodiments of the present invention, a video generation apparatus for implementing the above video generation method is also provided. FIG. 7 is a structural block diagram of an optional video generating apparatus according to an embodiment of the present invention. As shown in FIG. 7 , the apparatus may include: an acquiring unit 702 , an extracting unit 704 and a generating unit 706 . The obtaining unit 702 is configured to support the video generation device to perform the operation of step S202 in the above method embodiments, the extraction unit 704 may be configured to support the video generation device to perform the above-mentioned operation of the step S204, and the generation unit 706 may be configured to support the video generation device to perform the above-mentioned operation. The operations of step S206, and/or other processes for the techniques described herein.
通过上述模块,获取目标局游戏的游戏局信息记录文件,在一些实施方式中,游戏局信息记录文件记录有至少一个事件信息;提取游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,在一些实施方式中,目标事件展示信息用以在客户端处展示至少部分目标事件信息;响应于客户端处触发的对应于目标事件展示信息的目标视频生成指令,根据目标事件信息,生成目标视频,解决了相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题,减少了终端侧的资源消耗,提高了用户账号安全性。Through the above modules, the game information record file of the target game is obtained. In some embodiments, the game information record file records at least one event information; the target event information that meets the preset conditions in the game game information record file is extracted, and sending at least part of the target event information to the client to support generating target event presentation information at the client, in some embodiments, the target event presentation information is used to present at least part of the target event information at the client; in response to The target video generation instruction corresponding to the target event display information is triggered by the client, and the target video is generated according to the target event information, which solves the problem of the game video recording method in the related art. Due to the need to run additional programs on the client, the local machine is added. The problem of resource consumption reduces resource consumption on the terminal side and improves the security of user accounts.
在一些实施方式中,提取单元704可包括:In some embodiments, extraction unit 704 may include:
解析模块,用于解析出游戏局信息记录文件中记录的至少一个事件信息;A parsing module for parsing out at least one event information recorded in the game information record file;
遍历模块,用于遍历至少一个事件信息,得到符合预置条件的目标事件信息。The traversal module is used to traverse at least one event information to obtain the target event information that meets the preset conditions.
在一些实施方式中,遍历模块可包括:In some implementations, the traversal module may include:
第一遍历子模块,用于遍历至少一个事件信息,得到至少一个参考事件信息,其中,参考事件信息 用于表示触发一次击杀事件的参考对象、以及一次击杀事件的起止时间;The first traversal submodule, for traversing at least one event information, obtains at least one reference event information, wherein, the reference event information is used to represent the reference object that triggers a kill event and the start and end time of a kill event;
第二遍历子模块,用于遍历至少一个参考事件信息,得到符合预置条件的目标事件信息,其中,预置条件为一个对象触发目标事件,目标事件至少两次击杀事件,目标事件信息用于表示目标事件、参考对象中触发了目标事件的目标对象、以及目标事件的起止时间。The second traversal sub-module is used to traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers the target event, the target event kills events at least twice, and the target event information uses Indicates the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
在一些实施方式中,第一遍历子模块可包括:In some embodiments, the first traversal submodule may include:
第一遍历子单元,用于在目标局游戏包含多个小局游戏、且预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历至少一个事件信息,得到与多个小局游戏中的每个小局游戏对应的参考事件信息组,其中,参考事件信息组包含至少一个参考事件信息中的至少部分事件信息。The first traversal subunit is used for traversing at least one event information when the target game contains multiple small games and the preset condition is that an object triggers at least two kill events in one small game, and obtains A reference event information group corresponding to each of the plurality of small round games, wherein the reference event information group includes at least part of the event information in the at least one reference event information.
在一些实施方式中,第二遍历子模块可包括:In some embodiments, the second traversal submodule may include:
第二遍历子单元,用于遍历每个小局游戏的参考事件信息组,得到与每个小局游戏对应的、符合预置条件的目标事件信息,其中,目标事件信息用于表示目标事件、目标对象、以及目标事件所属的小局游戏、以及目标事件在所属的小局游戏内的起止时间。The second traversal subunit is used to traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset conditions, wherein the target event information is used to represent the target event, The target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which it belongs.
在一些实施方式中,遍历模块可包括:In some implementations, the traversal module may include:
确定子模块,用于在预置条件为一个对象触发目标事件、且目标事件包含至少两种的情况下,分别确定与每种目标事件对应的候选事件信息,其中,候选事件信息用于表示触发每种目标事件的目标对象、以及每种目标事件的起止时间;A determination submodule is used to determine the candidate event information corresponding to each type of target event when the preset condition is that one object triggers the target event and the target event includes at least two types, wherein the candidate event information is used to indicate the trigger The target object of each target event, and the start and end time of each target event;
合并子模块,用于合并与每种目标事件对应的候选事件信息中属于同一对象的事件信息,得到目标事件信息,其中,目标事件信息用于表示目标对象、由目标对象触发的至少一种目标事件、以及每种目标事件的起止时间。The merging submodule is used for merging the event information belonging to the same object in the candidate event information corresponding to each target event to obtain the target event information, wherein the target event information is used to represent the target object and at least one target triggered by the target object events, and the start and end times of each target event.
在一些实施方式中,生成单元706可包括:In some embodiments, the generating unit 706 may include:
加载模块,用于通过第一客户端加载游戏局信息记录文件,以播放目标局游戏,其中,第一客户端为目标局游戏所属的目标游戏的客户端;a loading module, configured to load the game information record file through the first client to play the target game, wherein the first client is the client of the target game to which the target game belongs;
录制模块,用于在目标时间段内对播放的目标局游戏进行视频录制,得到目标视频画面,其中,预置条件为一个对象触发目标事件,目标事件信息用于表示目标事件、触发目标事件的目标对象、以及目标事件的起止时间,目标时间段为与目标事件的起止时间对应的时间段;The recording module is used for video recording of the target game being played within the target time period to obtain the target video image, wherein the preset condition is that an object triggers the target event, and the target event information is used to represent the target event and trigger the target event. The target object and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event;
生成模块,用于生成包含目标视频画面的目标视频。The generating module is used to generate the target video including the target video picture.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
配置单元,用于在对播放的目标局游戏进行视频录制之前,配置视频录制的录制参数,其中,录制参数包括:录制的视角,录制的起止时间,录制的视角为目标对象的视角,录制的起止时间为目标事件的起止时间。The configuration unit is used to configure the recording parameters of the video recording before the video recording of the target game being played, wherein the recording parameters include: the recording angle of view, the start and end time of the recording, the recorded angle of view is the angle of view of the target object, the recorded angle of The start and end times are the start and end times of the target event.
在一些实施方式中,生成模块可包括:In some embodiments, the generation module may include:
合成子模块,用于将目标视频画面合成为目标格式的目标视频文件;The synthesis submodule is used to synthesize the target video picture into the target video file of the target format;
添加子模块,用于为目标视频文件添加目标资源,得到目标视频,其中,目标资源至少部分基于目标事件信息生成。The adding sub-module is used for adding target resources to the target video file to obtain the target video, wherein the target resources are generated based at least in part on the target event information.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
接收单元,用于在根据目标事件信息,生成目标视频之后,接收第二客户端发送的目标操作请求,其中,目标操作请求用于请求对目标视频执行目标操作;a receiving unit, configured to receive a target operation request sent by the second client after generating the target video according to the target event information, wherein the target operation request is used to request to perform a target operation on the target video;
传输单元,用于响应目标操作请求,向第二客户端传输目标视频,以通过第二客户端对目标视频执行目标操作。The transmission unit is configured to transmit the target video to the second client in response to the target operation request, so as to perform the target operation on the target video through the second client.
根据本发明实施例的又一个方面,还提供了一种用于实施上述视频生成方法的视频生成装置。图8是根据本发明实施例的另一种可选的视频生成装置的结构框图,如图8所示,该装置可以包括:接收单元802,第一生成单元804,触发单元806。接收单元802用于支持视频生成装置执行上述方法实施例中的步骤S502的操作,第一生成单元804可以用于支持视频生成装置执行上述步骤S504的操作,触发单元806可以用于支持视频生成装置执行上述步骤S506的操作,和/或用于本文所描 述的技术的其它过程。According to yet another aspect of the embodiments of the present invention, a video generation apparatus for implementing the above video generation method is also provided. FIG. 8 is a structural block diagram of another optional video generating apparatus according to an embodiment of the present invention. As shown in FIG. 8 , the apparatus may include: a receiving unit 802 , a first generating unit 804 , and a triggering unit 806 . The receiving unit 802 is configured to support the video generation device to perform the operation of step S502 in the above method embodiments, the first generation unit 804 may be configured to support the video generation device to perform the operation of the above step S504, and the trigger unit 806 may be configured to support the video generation device The operations of step S506 described above are performed, and/or other processes for the techniques described herein.
通过上述模块,接收来自服务器端的目标事件信息,在一些实施方式中,目标事件信息为服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,游戏局信息记录文件记录有至少一个事件信息;生成并在客户端的界面区域显示目标事件展示信息,在一些实施方式中,目标事件展示信息用以展示至少部分目标事件信息;代表用户触发对应于目标事件展示信息的目标视频生成指令,以使服务器端根据目标事件信息,生成目标视频,解决了相关技术中进行游戏视频录制的方式存在由于需要在客户端运行额外程序导致增加本机资源消耗的问题,减少了终端侧的资源消耗,提高了用户账号安全性。Through the above module, the target event information from the server is received. In some embodiments, the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions. The game information record file At least one event information is recorded; the target event display information is generated and displayed in the interface area of the client. In some embodiments, the target event display information is used to display at least part of the target event information; on behalf of the user, trigger the target corresponding to the target event display information The video generation instruction enables the server to generate the target video according to the target event information, which solves the problem of increasing the resource consumption of the local machine due to the need to run additional programs on the client side in the method of recording game videos in the related art, and reduces the terminal side reduce resource consumption and improve user account security.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
提取单元,用于在生成目标事件展示信息之前,在预置条件为一个对象触发目标事件的情况下,从目标事件信息中提取出符合展示条件的待展示事件信息,其中,目标事件信息用于表示目标对象触发的目标事件、以及目标事件的起止时间。The extraction unit is used to extract the event information to be displayed that meets the display conditions from the target event information when the preset condition is that an object triggers the target event before generating the target event display information, wherein the target event information is used for Indicates the target event triggered by the target object and the start and end time of the target event.
在一些实施方式中,第一生成单元804可包括:In some embodiments, the first generating unit 804 may include:
第一添加模块,用于为待展示事件信息添加匹配的预置展示信息,得到目标事件展示信息,其中,预置展示信息为预置的、目标事件的描述信息,不同的目标事件对应于不同的预置展示信息。The first adding module is used to add matching preset display information to the event information to be displayed, and obtain the target event display information, wherein the preset display information is preset description information of the target event, and different target events correspond to different preset display information.
在一些实施方式中,触发单元可包括:In some embodiments, the trigger unit may include:
检测模块,用于检测到用户对客户端执行的第一触发操作,其中,第一触发操作用于触发目标视频生成指令;a detection module, configured to detect a first trigger operation performed by the user on the client, wherein the first trigger operation is used to trigger the target video generation instruction;
触发模块,用于响应第一触发操作,代表用户触发生成目标视频生成指令,并触发将目标视频生成指令添加到服务器端的视频生成队列中,以使服务器端从视频生成队列中依次提取视频生成指令进行视频生成。The triggering module is used for responding to the first triggering operation, triggering the generation of target video generation instructions on behalf of the user, and triggering the addition of the target video generation instructions to the video generation queue on the server side, so that the server side sequentially extracts the video generation instructions from the video generation queue Do video generation.
在一些实施方式中,视频生成装置可包括:In some embodiments, the video generation device may include:
解析单元,用于在接收来自服务器端的目标事件信息之前,解析出游戏局信息记录文件中记录的至少一个事件信息;a parsing unit, configured to parse out at least one event information recorded in the game information record file before receiving the target event information from the server;
遍历单元,用于遍历至少一个事件信息,得到符合预置条件的目标事件信息。The traversal unit is used to traverse at least one event information to obtain target event information that meets preset conditions.
在一些实施方式中,遍历单元可包括:In some embodiments, the traversal unit may include:
第一遍历模块,用于遍历至少一个事件信息,得到至少一个参考事件信息,其中,参考事件信息用于表示触发一次击杀事件的参考对象、以及一次击杀事件的起止时间;a first traversal module, configured to traverse at least one event information to obtain at least one reference event information, wherein the reference event information is used to indicate a reference object that triggers a kill event and the start and end time of a kill event;
第二遍历模块,用于遍历至少一个参考事件信息,得到符合预置条件的目标事件信息,其中,预置条件为一个对象触发目标事件,目标事件至少两次击杀事件,目标事件信息用于表示目标事件、参考对象中触发了目标事件的目标对象、以及目标事件的起止时间。The second traversal module is used to traverse at least one reference event information to obtain target event information that meets a preset condition, wherein the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event information is used for Indicates the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
在一些实施方式中,第一遍历模块可包括:In some embodiments, the first traversal module may include:
第一遍历子模块,用于在目标局游戏包含多个小局游戏、且预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历至少一个事件信息,得到与多个小局游戏中的每个小局游戏对应的参考事件信息组,其中,参考事件信息组包含至少一个参考事件信息中的至少部分事件信息。The first traversal submodule is used to traverse at least one event information when the target game contains multiple small games, and the preset condition is that an object triggers at least two kill events in a small game, and obtains A reference event information group corresponding to each of the plurality of small round games, wherein the reference event information group includes at least part of the event information in the at least one reference event information.
在一些实施方式中,第二遍历模块可包括:In some embodiments, the second traversal module may include:
第二遍历子模块,用于遍历每个小局游戏的参考事件信息组,得到与每个小局游戏对应的、符合预置条件的目标事件信息,其中,目标事件信息用于表示目标事件、目标对象、以及目标事件所属的小局游戏、以及目标事件在所属的小局游戏内的起止时间。The second traversal submodule is used to traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset conditions, wherein the target event information is used to represent the target event, The target object, the round game to which the target event belongs, and the start and end time of the target event in the round game to which it belongs.
在一些实施方式中,遍历单元可包括:In some implementations, the traversal unit may include:
确定模块,用于在预置条件为一个对象触发目标事件、且目标事件包含至少两种的情况下,分别确定与每种目标事件对应的候选事件信息,其中,候选事件信息用于表示触发每种目标事件的目标对象、以及每种目标事件的起止时间;The determining module is used to determine the candidate event information corresponding to each target event when the preset condition is that one object triggers the target event and the target events include at least two types, wherein the candidate event information is used to indicate that each target event is triggered. The target object of each target event, and the start and end time of each target event;
合并模块,用于合并与每种目标事件对应的候选事件信息中属于同一对象的事件信息,得到目标事 件信息,其中,目标事件信息用于表示目标对象、由目标对象触发的至少一种目标事件、以及每种目标事件的起止时间。The merging module is used for merging the event information belonging to the same object in the candidate event information corresponding to each target event to obtain the target event information, wherein the target event information is used to represent the target object and at least one target event triggered by the target object , and the start and end times of each target event.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
加载单元,用于在代表用户触发对应于目标事件展示信息的目标视频生成指令之后,通过目标客户端加载游戏局信息记录文件,以播放目标局游戏,其中,目标客户端为目标局游戏所属的目标游戏的客户端;The loading unit is used to load the game information record file through the target client after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, so as to play the target game, wherein the target client is the target game to which the target game belongs. The client of the target game;
录制单元,用于在目标时间段内对播放的目标局游戏进行视频录制,得到目标视频画面,其中,预置条件为一个对象触发目标事件,目标事件信息用于表示目标事件、触发目标事件的目标对象、以及目标事件的起止时间,目标时间段为与目标事件的起止时间对应的时间段;The recording unit is used to record the video of the target game being played within the target time period to obtain the target video image, wherein the preset condition is that an object triggers the target event, and the target event information is used to indicate the target event and trigger the target event. The target object and the start and end time of the target event, and the target time period is the time period corresponding to the start and end time of the target event;
第二生成单元,用于生成包含目标视频画面的目标视频。The second generating unit is configured to generate a target video including a target video picture.
在一些实施方式中,第二生成单元可包括:In some embodiments, the second generating unit may include:
合成模块,用于将目标视频画面合成为目标格式的目标视频文件;The synthesis module is used to synthesize the target video picture into the target video file of the target format;
第二添加模块,用于为目标视频文件添加目标资源,得到目标视频,其中,目标资源至少部分基于目标事件信息生成。The second adding module is used for adding a target resource to the target video file to obtain the target video, wherein the target resource is generated based at least in part on the target event information.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
显示单元,用于在代表用户触发对应于目标事件展示信息的目标视频生成指令之后,在客户端的视频展示界面中显示目标视频的视频封面以及目标事件展示信息,其中,视频画面携带有目标视频的点播链接;The display unit is used to display the video cover of the target video and the target event display information in the video display interface of the client after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, wherein the video screen carries the target video's information. on-demand link;
第一检测单元,用于检测到对视频封面执行的第二触发操作,其中,第二触发操作用于触发点播目标视频;a first detection unit, configured to detect a second trigger operation performed on the video cover, wherein the second trigger operation is used to trigger the on-demand target video;
第一获取单元,用于响应于第二触发操作,从服务器端获取并播放目标视频。The first obtaining unit is configured to obtain and play the target video from the server in response to the second trigger operation.
在一些实施方式中,视频生成装置还可包括:In some embodiments, the video generation apparatus may further include:
第二检测单元,用于在代表用户触发对应于目标事件展示信息的目标视频生成指令之后,检测到对目标视频的播放界面中的下载按钮执行的第三触发操作,其中,第三触发操作用于触发下载目标视频;The second detection unit is configured to detect a third trigger operation performed on the download button in the playback interface of the target video after triggering the target video generation instruction corresponding to the target event display information on behalf of the user, wherein the third trigger operation uses To trigger the download of the target video;
第二获取单元,用于响应与第三触发操作,从服务器端获取并保存目标视频。The second acquiring unit is used for acquiring and saving the target video from the server in response to the third triggering operation.
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,在一些实施方式中,硬件环境包括网络环境。It should be noted here that the examples and application scenarios implemented by the foregoing modules and corresponding steps are the same, but are not limited to the contents disclosed in the foregoing embodiments. It should be noted that, as a part of the apparatus, the above modules may run in the hardware environment as shown in FIG. 1 , and may be implemented by software or hardware. In some embodiments, the hardware environment includes a network environment.
根据本发明实施例的又一个方面,还提供了一种用于实施上述视频生成方法的电子设备,该电子设备可以是服务器、终端、或者其组合。According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above video generation method, where the electronic device may be a server, a terminal, or a combination thereof.
图9是根据本发明实施例的一种可选的电子设备的结构框图,如图9所示,包括处理器902、通信接口904、存储器906和通信总线908,在一些实施方式中,处理器902、通信接口904和存储器906通过通信总线908完成相互间的通信,其中:存储器906,用于存储计算机程序;处理器902,用于执行存储器906上所存放的计算机程序时,可实现上述任一实施例所述的视频生成方法的步骤。FIG. 9 is a structural block diagram of an optional electronic device according to an embodiment of the present invention. As shown in FIG. 9 , it includes a processor 902, a communication interface 904, a memory 906, and a communication bus 908. In some embodiments, the processor 902, the communication interface 904 and the memory 906 complete the mutual communication through the communication bus 908, wherein: the memory 906 is used to store the computer program; the processor 902 is used to execute the computer program stored on the memory 906, and can realize any of the above. The steps of the video generation method according to an embodiment.
在一些实施方式中,上述的通信总线可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线、或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In some embodiments, the above-mentioned communication bus may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus, or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
上述处理器可以是通用处理器,可以包含但不限于:CPU、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。此外,上述电子设备还包括:显示器,用于显示客户端的显示界面、提示信息以及高光时刻视频。The above-mentioned processor can be a general-purpose processor, which can include but is not limited to: CPU, NP (Network Processor, network processor), etc.; can also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, Application-specific integrated circuits), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. In addition, the above electronic device further includes: a display for displaying the display interface, prompt information and highlight moment video of the client.
本领域普通技术人员可以理解,图9所示的结构仅为示意,实施上述视频生成方法的设备可以 是终端设备,该终端设备可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图9其并不对上述电子设备的结构造成限定。例如,电子设备还可包括比图9中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图9所示的不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 9 is for illustration only, and the device implementing the above video generation method may be a terminal device, and the terminal device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a Handheld computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal equipment. FIG. 9 does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than those shown in FIG. 9 (eg, network interfaces, display devices, etc.), or have a different configuration than that shown in FIG. 9 .
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的视频生成装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置的程序/指令(例如,计算机程序/指令和计算机程序产品)。这样的实现本发明的程序/指令可以存储在计算机可读介质上,或者可以一个或者多个信号的形式存在,这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the video generating apparatus according to the embodiments of the present invention. The present invention can also be implemented as a program/instruction (eg, computer program/instruction and computer program product) for an apparatus or apparatus for performing some or all of the methods described herein. Such programs/instructions implementing the present invention may be stored on a computer readable medium, or may exist in the form of one or more signals, such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any form Available in other formats.
根据本发明实施例的又一个方面,还提供了一种计算机可读的存储介质。在一些实施方式中,上述存储介质可以在被处理器执行时用于实现本发明实施例中上述任一项视频生成方法的程序代码。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided. In some embodiments, the above-mentioned storage medium may be used to implement the program code of any one of the above-mentioned video generation methods in the embodiments of the present invention when executed by a processor.
在一些实施方式中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。In some implementations, the above-mentioned storage medium may be located on at least one network device among multiple network devices in the network shown in the above-mentioned embodiments.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
根据本发明实施例的再一个方面,还提供了一种计算机装置。图10示意性地示出了可以实现根据本发明的视频生成方法的计算机装置,在一些实施方式中,该计算机装置包括处理器1010和以存储器1020形式的计算机可读介质。存储器1020是计算机可读介质的一个示例,其具有用于存储计算机程序1031的存储空间1030。当所述计算机程序1031由处理器1010执行时,可实现上文所描述的视频生成方法中的各个步骤。According to yet another aspect of the embodiments of the present invention, a computer apparatus is also provided. FIG. 10 schematically shows a computer apparatus that can implement the video generation method according to the present invention, and in some embodiments, the computer apparatus includes a processor 1010 and a computer-readable medium in the form of a memory 1020 . The memory 1020 is an example of a computer-readable medium having a storage space 1030 for storing the computer program 1031 . When the computer program 1031 is executed by the processor 1010, the various steps in the video generation method described above can be implemented.
根据本发明实施例的再一个方面,还提供了一种计算机程序产品。图11示意性地示出了实现根据本发明的方法的计算机程序产品的框图。所述计算机程序产品包括计算机程序1110,当所述计算机程序1110被诸如图10所示的处理器1010之类的处理器执行时,可实现上文所描述的视频生成方法中的各个步骤。According to yet another aspect of the embodiments of the present invention, a computer program product is also provided. Figure 11 schematically shows a block diagram of a computer program product implementing the method according to the invention. The computer program product includes a computer program 1110 which, when executed by a processor, such as the processor 1010 shown in FIG. 10, may implement the various steps in the video generation method described above.
上文对本说明书特定实施例进行了描述,其与其它实施例一并涵盖于所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定遵循示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可行的或者有利的。Specific embodiments of this specification have been described above, and other embodiments are intended to be included within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily follow the specific order shown, or sequential order, to achieve desirable results. In certain embodiments, multitasking and parallel processing are also possible or advantageous.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
应可理解,以上所述实施例仅为举例说明本发明之目的而并非对本发明进行限制。在不脱离本发明基本精神及特性的前提下,本领域技术人员还可以通过其他方式来实施本发明。本发明的范围当以后附的权利要求为准,凡在本说明书一个或多个实施例的精神和原则之内所做的任何修改、等同替换、改进等,皆应涵盖其中。It should be understood that the above-mentioned embodiments are only for the purpose of illustrating the present invention and not for limiting the present invention. Those skilled in the art can also implement the present invention in other ways without departing from the basic spirit and characteristics of the present invention. The scope of the present invention shall be determined by the appended claims, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification shall be covered therein.

Claims (28)

  1. 一种视频生成方法,包括:A video generation method, comprising:
    获取目标局游戏的游戏局信息记录文件,所述游戏局信息记录文件记录有至少一个事件信息;Obtain a game information record file of the target game, where the game information record file records at least one event information;
    提取所述游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分所述目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,所述目标事件展示信息用以在所述客户端处展示至少部分所述目标事件信息;Extract the target event information that meets the preset conditions in the game information record file, and send at least part of the target event information to the client, so as to support generating target event display information at the client, the target event display information is used to display at least part of the target event information at the client;
    响应于所述客户端处触发的对应于所述目标事件展示信息的目标视频生成指令,根据所述目标事件信息,生成目标视频。In response to a target video generation instruction corresponding to the target event presentation information triggered by the client, a target video is generated according to the target event information.
  2. 根据权利要求1所述的方法,提取所述游戏局信息记录文件中符合所述预置条件的所述目标事件信息包括:The method according to claim 1, extracting the target event information that meets the preset condition in the game information record file comprises:
    解析出所述游戏局信息记录文件中记录的所述至少一个事件信息;Parse out the at least one event information recorded in the game information record file;
    遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息。Traverse the at least one event information to obtain the target event information that meets the preset condition.
  3. 根据权利要求2所述的方法,遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 2, traversing the at least one event information to obtain the target event information that meets the preset condition comprises:
    遍历所述至少一个事件信息,得到至少一个参考事件信息,所述参考事件信息用于表示触发一次击杀事件的参考对象、以及所述一次击杀事件的起止时间;Traverse the at least one event information to obtain at least one reference event information, where the reference event information is used to represent the reference object that triggers a kill event and the start and end time of the kill event;
    遍历所述至少一个参考事件信息,得到符合所述预置条件的所述目标事件信息,所述预置条件为一个对象触发目标事件,所述目标事件至少两次击杀事件,所述目标事件信息用于表示所述目标事件、所述参考对象中触发了所述目标事件的目标对象、以及所述目标事件的起止时间。Traverse the at least one reference event information to obtain the target event information that meets the preset condition, where the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event The information is used to indicate the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  4. 根据权利要求3所述的方法,遍历所述至少一个事件信息,得到所述至少一个参考事件信息包括:The method according to claim 3, traversing the at least one event information to obtain the at least one reference event information comprising:
    在所述目标局游戏包含多个小局游戏、且所述预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历所述至少一个事件信息,得到与所述多个小局游戏中的每个小局游戏对应的参考事件信息组,所述参考事件信息组包含所述至少一个参考事件信息中的至少部分事件信息。In the case that the target round game includes multiple small round games, and the preset condition is that an object triggers at least two kill events in one small round game, traverse the at least one event information, and obtain the information related to all the small round games. A reference event information group corresponding to each small round game in the plurality of small round games, the reference event information group including at least part of the event information in the at least one reference event information.
  5. 根据权利要求4所述的方法,遍历所述至少一个参考事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 4, traversing the at least one reference event information to obtain the target event information that meets the preset condition comprises:
    遍历所述每个小局游戏的所述参考事件信息组,得到与所述每个小局游戏对应的、符合所述预置条件的所述目标事件信息,所述目标事件信息用于表示所述目标事件、所述目标对象、以及所述目标事件所属的小局游戏、以及所述目标事件在所属的小局游戏内的起止时间。Traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset condition, and the target event information is used to represent all The target event, the target object, the round game to which the target event belongs, and the start and end times of the target event in the round game to which the target event belongs.
  6. 根据权利要求2所述的方法,遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 2, traversing the at least one event information to obtain the target event information that meets the preset condition comprises:
    在所述预置条件为一个对象触发目标事件、且所述目标事件包含至少两种的情况下,分别确定与每种所述目标事件对应的候选事件信息,所述候选事件信息用于表示触发每种所述目标事 件的目标对象、以及每种所述目标事件的起止时间;When the preset condition is that one object triggers a target event, and the target events include at least two kinds, determine the candidate event information corresponding to each type of target event, and the candidate event information is used to indicate the trigger The target object of each of the target events, and the start and end time of each of the target events;
    合并与每种所述目标事件对应的所述候选事件信息中属于同一对象的事件信息,得到所述目标事件信息,所述目标事件信息用于表示所述目标对象、由所述目标对象触发的至少一种所述目标事件、以及每种所述目标事件的起止时间。Merge the event information belonging to the same object in the candidate event information corresponding to each type of target event to obtain the target event information, and the target event information is used to represent the target object, the event information triggered by the target object At least one of the target events, and the start and end times of each of the target events.
  7. 根据权利要求1所述的方法,根据所述目标事件信息,生成目标视频包括:The method according to claim 1, wherein generating a target video according to the target event information comprises:
    通过第一客户端加载所述游戏局信息记录文件,以播放所述目标局游戏,所述第一客户端为所述目标局游戏所属的目标游戏的客户端;Load the game information record file through a first client to play the target game, and the first client is the client of the target game to which the target game belongs;
    在目标时间段内对播放的所述目标局游戏进行视频录制,得到目标视频画面,所述预置条件为一个对象触发所述目标事件,所述目标事件信息用于表示所述目标事件、触发所述目标事件的目标对象、以及所述目标事件的起止时间,所述目标时间段为与所述目标事件的起止时间对应的时间段;Video recording is performed on the target game being played within the target time period to obtain a target video image. The preset condition is that an object triggers the target event, and the target event information is used to represent the target event, triggering The target object of the target event and the start and end time of the target event, and the target time period is a time period corresponding to the start and end time of the target event;
    生成包含所述目标视频画面的所述目标视频。The target video including the target video picture is generated.
  8. 根据权利要求7所述的方法,在对播放的所述目标局游戏进行视频录制之前,所述方法还包括:The method according to claim 7, before the video recording of the played target round game, the method further comprises:
    配置视频录制的录制参数,所述录制参数包括:录制的视角,录制的起止时间,所述录制的视角为所述目标对象的视角,所述录制的起止时间为所述目标事件的起止时间。Configure the recording parameters of video recording, the recording parameters include: the viewing angle of recording, the starting and ending time of recording, the viewing angle of recording is the viewing angle of the target object, and the starting and ending time of recording is the starting and ending time of the target event.
  9. 根据权利要求7所述的方法,生成包含所述目标视频画面的所述目标视频包括:The method according to claim 7, generating the target video including the target video picture comprises:
    将所述目标视频画面合成为目标格式的目标视频文件;Synthesizing the target video picture into a target video file of the target format;
    为所述目标视频文件添加目标资源,得到所述目标视频,所述目标资源至少部分基于所述目标事件信息生成。A target resource is added to the target video file to obtain the target video, and the target resource is generated based at least in part on the target event information.
  10. 根据权利要求1至9中任一项所述的方法,在根据所述目标事件信息,生成所述目标视频之后,所述方法还包括:The method according to any one of claims 1 to 9, after generating the target video according to the target event information, the method further comprises:
    接收第二客户端发送的目标操作请求,所述目标操作请求用于请求对所述目标视频执行目标操作;receiving a target operation request sent by a second client, where the target operation request is used to request to perform a target operation on the target video;
    响应所述目标操作请求,向所述第二客户端传输所述目标视频,以通过所述第二客户端对所述目标视频执行所述目标操作。In response to the target operation request, the target video is transmitted to the second client to perform the target operation on the target video by the second client.
  11. 一种视频生成方法,包括:A video generation method, comprising:
    接收来自服务器端的目标事件信息,所述目标事件信息为所述服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,所述游戏局信息记录文件记录有至少一个事件信息;Receive the target event information from the server, the target event information is the event information that the server extracts from the game information record file of the target game and meets the preset conditions, and the game information record file records at least one event information;
    生成并在客户端的界面区域显示目标事件展示信息,所述目标事件展示信息用以展示至少部分所述目标事件信息;generating and displaying target event display information in the interface area of the client, where the target event display information is used to display at least part of the target event information;
    代表用户触发对应于所述目标事件展示信息的目标视频生成指令,以使所述服务器端根据所述目标事件信息,生成目标视频。Triggering, on behalf of the user, a target video generation instruction corresponding to the target event display information, so that the server side generates a target video according to the target event information.
  12. 根据权利要求11所述的方法,在生成所述目标事件展示信息之前,所述方法还包括:The method according to claim 11, before generating the target event presentation information, the method further comprises:
    在所述预置条件为一个对象触发目标事件的情况下,从所述目标事件信息中提取出符合展示条件的待展示事件信息,所述目标事件信息用于表示目标对象触发的所述目标事件、以及所述 目标事件的起止时间。When the preset condition is that an object triggers a target event, extract event information to be displayed that meets the display condition from the target event information, where the target event information is used to represent the target event triggered by the target object , and the start and end time of the target event.
  13. 根据权利要求12所述的方法,生成所述目标事件展示信息包括:The method according to claim 12, generating the target event presentation information comprising:
    为所述待展示事件信息添加匹配的预置展示信息,得到所述目标事件展示信息,所述预置展示信息为预置的、所述目标事件的描述信息,不同的所述目标事件对应于不同的所述预置展示信息。Add matching preset display information to the to-be-displayed event information to obtain the target event display information, where the preset display information is preset description information of the target event, and different target events correspond to Different said preset display information.
  14. 根据权利要求11所述的方法,代表所述用户触发对应于所述目标事件展示信息的所述目标视频生成指令包括:The method according to claim 11 , triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user comprises:
    检测到所述用户对所述客户端执行的第一触发操作,所述第一触发操作用于触发所述目标视频生成指令;Detecting a first trigger operation performed by the user on the client, where the first trigger operation is used to trigger the target video generation instruction;
    响应所述第一触发操作,代表所述用户触发生成所述目标视频生成指令,并触发将所述目标视频生成指令添加到所述服务器端的视频生成队列中,以使所述服务器端从所述视频生成队列中依次提取视频生成指令进行视频生成。In response to the first trigger operation, trigger the generation of the target video generation instruction on behalf of the user, and trigger the addition of the target video generation instruction to the video generation queue on the server side, so that the server side can generate the target video from the Video generation instructions are sequentially extracted from the video generation queue for video generation.
  15. 根据权利要求11所述的方法,在接收来自所述服务器端的所述目标事件信息之前,所述方法包括:The method according to claim 11, before receiving the target event information from the server, the method comprising:
    解析出所述游戏局信息记录文件中记录的所述至少一个事件信息;Parse out the at least one event information recorded in the game information record file;
    遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息。Traverse the at least one event information to obtain the target event information that meets the preset condition.
  16. 根据权利要求15所述的方法,遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 15, traversing the at least one event information, and obtaining the target event information that meets the preset condition comprises:
    遍历所述至少一个事件信息,得到至少一个参考事件信息,所述参考事件信息用于表示触发一次击杀事件的参考对象、以及所述一次击杀事件的起止时间;Traverse the at least one event information to obtain at least one reference event information, where the reference event information is used to represent the reference object that triggers a kill event and the start and end time of the kill event;
    遍历所述至少一个参考事件信息,得到符合所述预置条件的所述目标事件信息,所述预置条件为一个对象触发目标事件,所述目标事件至少两次击杀事件,所述目标事件信息用于表示所述目标事件、所述参考对象中触发了所述目标事件的目标对象、以及所述目标事件的起止时间。Traverse the at least one reference event information to obtain the target event information that meets the preset condition, where the preset condition is that an object triggers a target event, the target event kills events at least twice, and the target event The information is used to indicate the target event, the target object that triggered the target event in the reference object, and the start and end time of the target event.
  17. 根据权利要求16所述的方法,遍历所述至少一个事件信息,得到所述至少一个参考事件信息包括:The method according to claim 16, traversing the at least one event information to obtain the at least one reference event information comprising:
    在所述目标局游戏包含多个小局游戏、且所述预置条件为一个对象在一个小局游戏中触发至少两次击杀事件的情况下,遍历所述至少一个事件信息,得到与所述多个小局游戏中的每个小局游戏对应的参考事件信息组,所述参考事件信息组包含所述至少一个参考事件信息中的至少部分事件信息。In the case that the target round game includes multiple small round games, and the preset condition is that an object triggers at least two kill events in one small round game, traverse the at least one event information, and obtain the information related to all the small round games. A reference event information group corresponding to each small round game in the plurality of small round games, the reference event information group including at least part of the event information in the at least one reference event information.
  18. 根据权利要求17所述的方法,遍历所述至少一个参考事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 17, traversing the at least one reference event information, and obtaining the target event information that meets the preset condition comprises:
    遍历所述每个小局游戏的所述参考事件信息组,得到与所述每个小局游戏对应的、符合所述预置条件的所述目标事件信息,所述目标事件信息用于表示所述目标事件、所述目标对象、以及所述目标事件所属的小局游戏、以及所述目标事件在所属的小局游戏内的起止时间。Traverse the reference event information group of each small game, and obtain the target event information corresponding to each small game that meets the preset condition, and the target event information is used to represent all The target event, the target object, the round game to which the target event belongs, and the start and end times of the target event in the round game to which the target event belongs.
  19. 根据权利要求15所述的方法,遍历所述至少一个事件信息,得到符合所述预置条件的所述目标事件信息包括:The method according to claim 15, traversing the at least one event information, and obtaining the target event information that meets the preset condition comprises:
    在所述预置条件为一个对象触发目标事件、且所述目标事件包含至少两种的情况下,分别 确定与每种所述目标事件对应的候选事件信息,所述候选事件信息用于表示触发每种所述目标事件的目标对象、以及每种所述目标事件的起止时间;When the preset condition is that one object triggers a target event, and the target events include at least two kinds, determine the candidate event information corresponding to each type of target event, and the candidate event information is used to indicate the trigger The target object of each of the target events, and the start and end time of each of the target events;
    合并与每种所述目标事件对应的所述候选事件信息中属于同一对象的事件信息,得到所述目标事件信息,所述目标事件信息用于表示所述目标对象、由所述目标对象触发的至少一种所述目标事件、以及每种所述目标事件的起止时间。Merge the event information belonging to the same object in the candidate event information corresponding to each type of target event to obtain the target event information, and the target event information is used to represent the target object, the event information triggered by the target object At least one of the target events, and the start and end times of each of the target events.
  20. 根据权利要求11所述的方法,在代表用户触发对应于所述目标事件展示信息的所述目标视频生成指令之后,所述方法还包括:The method according to claim 11, after triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user, the method further comprises:
    通过目标客户端加载所述游戏局信息记录文件,以播放所述目标局游戏,所述目标客户端为所述目标局游戏所属的目标游戏的客户端;Load the game information record file through the target client to play the target game, and the target client is the client of the target game to which the target game belongs;
    在目标时间段内对播放的所述目标局游戏进行视频录制,得到目标视频画面,所述预置条件为一个对象触发所述目标事件,所述目标事件信息用于表示所述目标事件、触发所述目标事件的目标对象、以及所述目标事件的起止时间,所述目标时间段为与所述目标事件的起止时间对应的时间段;Video recording is performed on the target game being played within the target time period to obtain a target video image. The preset condition is that an object triggers the target event, and the target event information is used to represent the target event, triggering The target object of the target event and the start and end time of the target event, and the target time period is a time period corresponding to the start and end time of the target event;
    生成包含所述目标视频画面的所述目标视频。The target video including the target video picture is generated.
  21. 根据权利要求20所述的方法,生成包含所述目标视频画面的所述目标视频包括:The method according to claim 20, generating the target video including the target video picture comprises:
    将所述目标视频画面合成为目标格式的目标视频文件;Synthesizing the target video picture into a target video file of the target format;
    为所述目标视频文件添加目标资源,得到所述目标视频,所述目标资源至少部分基于所述目标事件信息生成。A target resource is added to the target video file to obtain the target video, and the target resource is generated based at least in part on the target event information.
  22. 根据权利要求11至21中任一项所述的方法,在代表用户触发对应于所述目标事件展示信息的所述目标视频生成指令之后,所述方法还包括:The method according to any one of claims 11 to 21, after triggering the target video generation instruction corresponding to the target event presentation information on behalf of the user, the method further comprises:
    在所述客户端的视频展示界面中显示所述目标事件展示信息,所述目标事件展示信息包括携带有所述目标视频的点播链接的视频封面;Displaying the target event display information in the video display interface of the client, where the target event display information includes a video cover carrying an on-demand link of the target video;
    检测到对所述视频封面执行的第二触发操作,所述第二触发操作用于触发点播所述目标视频;Detecting a second trigger operation performed on the video cover, where the second trigger operation is used to trigger the on-demand video of the target;
    响应于所述第二触发操作,从所述服务器端获取并播放所述目标视频。Acquire and play the target video from the server in response to the second trigger operation.
  23. 根据权利要求22所述的方法,所述方法还包括:The method of claim 22, further comprising:
    检测到对所述目标视频的播放界面中的下载按钮执行的第三触发操作,所述第三触发操作用于触发下载所述目标视频;Detecting a third trigger operation performed on the download button in the playback interface of the target video, where the third trigger operation is used to trigger downloading of the target video;
    响应与所述第三触发操作,从所述服务器端获取并保存所述目标视频。Acquire and save the target video from the server in response to the third trigger operation.
  24. 一种视频生成装置,包括:A video generation device, comprising:
    获取单元,用于获取目标局游戏的游戏局信息记录文件,所述游戏局信息记录文件记录有至少一个事件信息;an acquisition unit, configured to acquire the game information record file of the target game game, the game information record file records at least one event information;
    提取单元,用于提取所述游戏局信息记录文件中符合预置条件的目标事件信息,并将至少部分所述目标事件信息向客户端进行发送,用以支持在客户端处生成目标事件展示信息,所述目标事件展示信息用以在所述客户端处展示至少部分所述目标事件信息;The extraction unit is used to extract the target event information that meets the preset conditions in the game information record file, and send at least part of the target event information to the client, so as to support the generation of target event display information at the client , the target event display information is used to display at least part of the target event information at the client;
    生成单元,用于响应于所述客户端处触发的对应于所述目标事件展示信息的目标视频生成指令,根据所述目标事件信息,生成目标视频。A generating unit, configured to generate a target video according to the target event information in response to a target video generation instruction corresponding to the target event presentation information triggered by the client.
  25. 一种视频生成装置,包括:A video generation device, comprising:
    接收单元,用于接收来自服务器端的目标事件信息,所述目标事件信息为所述服务器从目标局游戏的游戏局信息记录文件中提取的、符合预置条件的事件信息,所述游戏局信息记录文件记录有至少一个事件信息;a receiving unit, configured to receive target event information from the server, where the target event information is the event information that the server extracts from the game information record file of the target game and meets preset conditions, and the game information records The file records at least one event information;
    第一生成单元,用于生成并在客户端的界面区域显示目标事件展示信息,所述目标事件展示信息用以展示至少部分所述目标事件信息;a first generating unit, configured to generate and display target event display information in the interface area of the client, where the target event display information is used to display at least part of the target event information;
    触发单元,用于代表用户触发对应于所述目标事件展示信息的目标视频生成指令,以使所述服务器端根据所述目标事件信息,生成目标视频。A triggering unit, configured to trigger a target video generation instruction corresponding to the target event display information on behalf of the user, so that the server side generates a target video according to the target event information.
  26. 一种电子设备,包括处理器、通信接口、存储器和通信总线,所述处理器、所述通信接口和所述存储器通过所述通信总线完成相互间的通信,An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus,
    所述存储器,用于存储计算机程序;the memory for storing computer programs;
    所述处理器,用于通过执行所述存储器上所存储的所述计算机程序来实现权利要求1至23中任一项所述的方法的步骤。The processor is configured to implement the steps of the method of any one of claims 1 to 23 by executing the computer program stored on the memory.
  27. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现根据权利要求1至23中任一项中所述的方法的步骤。A computer-readable storage medium in which a computer program is stored, the computer program implementing the steps of the method according to any one of claims 1 to 23 when executed by a processor.
  28. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1至23中任一项中所述的方法的步骤。A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 23.
PCT/CN2021/121100 2020-12-14 2021-09-27 Video generation method and apparatus, electronic device and storage medium WO2022127272A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011475521.4 2020-12-14
CN202011475521.4A CN112672200B (en) 2020-12-14 2020-12-14 Video generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022127272A1 true WO2022127272A1 (en) 2022-06-23

Family

ID=75404542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121100 WO2022127272A1 (en) 2020-12-14 2021-09-27 Video generation method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112672200B (en)
WO (1) WO2022127272A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672200B (en) * 2020-12-14 2023-10-24 完美世界征奇(上海)多媒体科技有限公司 Video generation method and device, electronic equipment and storage medium
CN113423000B (en) * 2021-06-11 2024-01-09 完美世界征奇(上海)多媒体科技有限公司 Video generation method and device, storage medium and electronic device
CN113908539A (en) * 2021-09-15 2022-01-11 完美世界征奇(上海)多媒体科技有限公司 Game fighting data display method, device, equipment and medium
CN115317897A (en) * 2022-07-06 2022-11-11 完美世界征奇(上海)多媒体科技有限公司 Method, device and equipment for generating game playback video
CN115904168A (en) * 2022-11-18 2023-04-04 Oppo广东移动通信有限公司 Multi-device-based image material processing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090131177A1 (en) * 2007-01-29 2009-05-21 Sony Online Entertainment Llc System and method for creating, editing, and sharing video content relating to video game events
CN104796448A (en) * 2014-01-22 2015-07-22 腾讯科技(深圳)有限公司 Network system data processing method and device
CN107213641A (en) * 2016-03-21 2017-09-29 电子技术公司 The video synchronous with remote measurement in game
CN108295468A (en) * 2018-02-28 2018-07-20 网易(杭州)网络有限公司 Information processing method, equipment and the storage medium of game
CN111556363A (en) * 2020-05-21 2020-08-18 腾讯科技(深圳)有限公司 Video special effect processing method, device and equipment and computer readable storage medium
CN112672200A (en) * 2020-12-14 2021-04-16 完美世界征奇(上海)多媒体科技有限公司 Video generation method and device, electronic equipment and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7437472B2 (en) * 2001-11-28 2008-10-14 Interactive Content Engines, Llc. Interactive broadband server system
US20050097593A1 (en) * 2003-11-05 2005-05-05 Michael Raley System, method and device for selected content distribution
US20130227416A1 (en) * 2011-01-06 2013-08-29 Edward Massena Device for logging, editing and production of video programs for activities of local interest
WO2017058951A1 (en) * 2015-09-30 2017-04-06 Sony Interactive Entertainment America Llc Systems and methods for providing time-shifted intelligently synchronized game video
CN106507180B (en) * 2016-11-24 2018-10-19 腾讯科技(深圳)有限公司 A kind of method and terminal of video processing
CN106998494B (en) * 2017-04-24 2021-02-05 腾讯科技(深圳)有限公司 Video recording method and related device
GB2571306A (en) * 2018-02-23 2019-08-28 Sony Interactive Entertainment Europe Ltd Video recording and playback systems and methods
GB2579603A (en) * 2018-12-05 2020-07-01 Sony Interactive Entertainment Inc Method and system for generating a recording of video game gameplay
CN111346377A (en) * 2018-12-20 2020-06-30 赛韵网络科技(上海)有限公司 Recording and playback method and device for online game, server and terminal
CN109862433A (en) * 2019-03-27 2019-06-07 努比亚技术有限公司 Generation method, device, terminal and the computer readable storage medium of game video
CN111773684A (en) * 2020-08-14 2020-10-16 网易(杭州)网络有限公司 Game data processing method and device, electronic equipment and storage medium
CN112023383A (en) * 2020-08-31 2020-12-04 重庆五诶科技有限公司 Intelligent automatic settlement system
CN112057874A (en) * 2020-09-10 2020-12-11 重庆五诶科技有限公司 Game auxiliary system and method with privacy protection function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090131177A1 (en) * 2007-01-29 2009-05-21 Sony Online Entertainment Llc System and method for creating, editing, and sharing video content relating to video game events
CN104796448A (en) * 2014-01-22 2015-07-22 腾讯科技(深圳)有限公司 Network system data processing method and device
CN107213641A (en) * 2016-03-21 2017-09-29 电子技术公司 The video synchronous with remote measurement in game
CN108295468A (en) * 2018-02-28 2018-07-20 网易(杭州)网络有限公司 Information processing method, equipment and the storage medium of game
CN111556363A (en) * 2020-05-21 2020-08-18 腾讯科技(深圳)有限公司 Video special effect processing method, device and equipment and computer readable storage medium
CN112672200A (en) * 2020-12-14 2021-04-16 完美世界征奇(上海)多媒体科技有限公司 Video generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112672200A (en) 2021-04-16
CN112672200B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
WO2022127272A1 (en) Video generation method and apparatus, electronic device and storage medium
US20210316214A1 (en) Multi-user demo streaming service for cloud gaming
US11541314B2 (en) Personalized user interface based on in-application behavior
US11596861B2 (en) Add-on management methods
JP7158858B2 (en) Capturing asynchronous comments on pre-recorded gameplay
CN113384879B (en) Game data display method and device
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN108848082B (en) Data processing method, data processing device, storage medium and computer equipment
US20150321097A1 (en) Cloud-based Multi-player Gameplay Video Rendering and Encoding
CN112619130B (en) Multi-scene playback method and device for game
WO2022257365A1 (en) Video generation method and apparatus, storage medium, and electronic apparatus
CN113274727B (en) Live interaction method and device, storage medium and electronic equipment
CN111355990A (en) Video acquisition method and device, computer readable storage medium and electronic equipment
CN116980706A (en) Video playing method and device, storage medium and electronic equipment
CN114422809A (en) Resource recommendation method, device, terminal and storage medium
CN108452528B (en) Data display method and device and computer readable storage medium
KR101870256B1 (en) Apparatus and method of authoring multimedia contents using play data of online game
CN116433404A (en) Information processing method and related equipment
CN112492377A (en) Video recording method, device, equipment and storage medium
Nag et al. Cloud-Based Gaming Services

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905202

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905202

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.11.2023)