CN113852767B - Video editing method, device, equipment and medium - Google Patents

Video editing method, device, equipment and medium Download PDF

Info

Publication number
CN113852767B
CN113852767B CN202111117225.1A CN202111117225A CN113852767B CN 113852767 B CN113852767 B CN 113852767B CN 202111117225 A CN202111117225 A CN 202111117225A CN 113852767 B CN113852767 B CN 113852767B
Authority
CN
China
Prior art keywords
video
game
target
preset
editing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111117225.1A
Other languages
Chinese (zh)
Other versions
CN113852767A (en
Inventor
郭剑霞
魏一明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111117225.1A priority Critical patent/CN113852767B/en
Publication of CN113852767A publication Critical patent/CN113852767A/en
Application granted granted Critical
Publication of CN113852767B publication Critical patent/CN113852767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • 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
    • H04N21/4334Recording 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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • 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
    • H04N21/4781Games
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The present disclosure relates to a video editing method, apparatus, device, and medium. The video editing method comprises the following steps: responding to the starting of the target game, and acquiring at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips; displaying at least one video clip in response to the target game play ending; when video editing operation on at least one video clip is detected, obtaining a video clip to be edited and a video editing template corresponding to the video editing operation; and performing video editing on the video clips to be edited based on the video editing template to obtain target videos. According to the embodiment of the disclosure, the video style shared by the user is not single any more, and the diversified requirements of the user on the video effect and the video sharing requirement can be met.

Description

Video editing method, device, equipment and medium
Technical Field
The disclosure relates to the technical field of video processing, and in particular relates to a video editing method, device, equipment and medium.
Background
With the popularization and the promotion of the configuration of mobile terminals, more and more users play games through the mobile terminals.
In order to meet the requirement of a user on keeping the wonderful moment in the game process, many games have a video recording function, are used for recording video clips of the wonderful game moment of the user and generating a wonderful game moment gathering video according to the recorded video clips, however, each game can only generate the wonderful game moment gathering video with uniform style, and cannot meet the diversified requirement of the user on video effects.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a video editing method, apparatus, device, and medium.
In a first aspect, the present disclosure provides a video editing method, including:
responding to the starting of a target game, and acquiring at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
displaying the at least one video clip in response to the target game play ending;
when video editing operation on the at least one video clip is detected, obtaining a video clip to be edited and a video editing template corresponding to the video editing operation;
And performing video editing on the video clip to be edited based on the video editing template to obtain a target video.
In a second aspect, the present disclosure provides a video editing apparatus comprising:
the video acquisition unit is configured to respond to the start of a target game, and acquire at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
a video editing unit configured to display the at least one video clip in response to the target game play ending;
the first editing unit is configured to acquire a video clip to be edited and a video editing template corresponding to the video editing operation when the video editing operation of the at least one video clip is detected;
and the second editing unit is configured to perform video editing on the video clip to be edited based on the video editing template to obtain a target video.
In a third aspect, the present disclosure provides a video editing apparatus comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the video editing method of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the video editing method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the video editing method, device, equipment and medium, the beginning of the target game can be responded, at least one video clip corresponding to the target game can be obtained in the process of the target game, the video clip can comprise an automatically recorded game clip and/or a manually recorded game clip, the recorded at least one video clip can be displayed in response to the ending of the target game, further after the video editing operation of the at least one video clip is detected, the video clip to be edited and the video editing template corresponding to the video editing operation can be obtained, video editing is carried out on the video clip to be edited based on the video editing template, and the target video for video sharing is obtained, so that different video effects can be generated based on the different video clips to be edited and the different video editing templates in a combined mode, the video style shared by a user is not single any more, and the diversified requirements of the video effects and the video sharing requirements of the user can be met.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a video editing method according to an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a settlement interface for a target game pair provided in an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of an automatic recording of video clips corresponding to a game of objective game according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a target game play interface provided by an embodiment of the present disclosure;
FIG. 5 is a flowchart of a method for manually recording game pieces according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a target game play interface provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a video editing interface for a target game pair provided in an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a video editing interface for another target game play provided in an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a video editing interface for a further target game play provided by an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of a video editing interface for a further target game play provided in an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a video editing apparatus according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a video editing apparatus according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
With the popularization and the promotion of the configuration of mobile terminals, more and more users play games through the mobile terminals.
In order to meet the requirement of a user on keeping the wonderful moment in the game process, many games have a video recording function, are used for recording video clips of the wonderful game moment of the user and generating a wonderful game moment gathering video according to the recorded video clips, however, each game can only generate the wonderful game moment gathering video with uniform style, and cannot meet the diversified requirement of the user on video effects.
However, the current video recording function often has the following problems:
1. the game can only generate highlight game moment gathering videos with unified styles;
2. the wonderful time in the game running process can not be collected by user definition, and the individuation is not strong;
3. the acquired video clips are not editable and have low degree of freedom;
4. the game is not compatible with short video application programs or other application programs with video playing functions, and the propagation coverage capability is poor;
5. the video recording function belongs to the built-in function of games, and the universality of products is poor.
Therefore, due to the problems, the generated highlight video with uniform style can not meet the diversified requirements of users on video effects; in addition, the recorded game fragments often have video fragments which are not interested by the user, the video fragments which are not interested by the user cannot be freely edited, and the recorded video fragments cannot be shared externally, so that the watching requirement, editing requirement and sharing requirement of the user on the video fragments cannot be met, and the user experience is reduced.
In order to solve the above-mentioned problems, embodiments of the present disclosure provide a video editing method, apparatus, device, and storage medium capable of obtaining a video of a highlight that can be synthesized to be of interest to a user.
In the embodiment of the disclosure, when a user wants to start a game, a start operation of the game may be input to the electronic device. After the electronic device detects the starting operation, the game play can be started, then at least one video clip corresponding to the game play can be obtained in response to the starting of the game play, and the video clip can comprise a game clip corresponding to the automatically recorded user wonderful game time and/or a game clip corresponding to the manually recorded user wonderful game time in the running process of the game play. When the game is finished, at least one recorded video clip can be displayed, and then after video editing operation on the at least one video clip is detected, the video clip to be edited and the video editing template corresponding to the video editing operation are obtained, so that video editing is carried out on the video clip to be edited based on the video editing template, a target video for video sharing is obtained, different video effects can be generated based on different video clips to be edited and different video editing templates in a combined mode, the video style shared by a user is not single any more, and the diversified requirements of the user on the video effects and the video sharing requirements can be met.
In view of the above-described scenario, a video editing method provided by an embodiment of the present disclosure is described below with reference to fig. 1 to 9. In the embodiment of the disclosure, the video editing method may be performed by an electronic device. In this embodiment, the electronic device may include a device having a communication function, such as a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable device, an integrated machine, and an intelligent home device, and may also include a device simulated by a virtual machine or a simulator.
Fig. 1 shows a flowchart of a video editing method according to an embodiment of the disclosure.
As shown in fig. 1, the video editing method may include the following steps.
S110, responding to the starting of the target game, and acquiring at least one video clip corresponding to the target game in the process of the target game.
Specifically, when the user wants to play the target game play, a start operation of the target game play may be input to the electronic device. After the electronic equipment detects the starting operation, starting the target game to be played, and then responding to the starting of the target game to be played, and acquiring at least one video clip corresponding to the target game to be played in the process of playing the target game to be played.
Optionally, the game types to which the target game pair belongs may include: the types of athletic, action, adventure, simulation, role playing, stand-alone, multi-machine, etc. are not limited herein.
In the embodiment of the present disclosure, the start operation may be an operation for triggering the target game pair to start running.
In some embodiments, the launch operation may include a gesture control operation (e.g., click, long press, double click, etc.), a voice control operation, or an expression control operation on an application icon of the target game application to which the target game pair belongs, without limitation.
Taking the starting operation as the clicking operation of the application icon of the target game for example, when the user wants to start running the target game, the user can click the application icon of the target game, and after the electronic device detects that the user clicks the application icon of the target game, the target game can be started.
In other embodiments, the launch operation may include, without limitation, a gesture control operation (e.g., click, long press, double click, etc.), a voice control operation, or an expression control operation on a run control corresponding to a target game play within an application interface of the target game application.
Alternatively, the play control may be any button or picture used to trigger the target game play to begin, without limitation.
Taking the starting operation as the clicking operation of the running button of the target game for example, when the user wants to start the target game, the user can click the game icon of the target game, so that the electronic device starts the target game, and loads the starting interface of the target game, and the running button of the target game can be displayed on the starting interface. The user may click a run button of the target game play, and after the electronic device detects that the user clicks the run button of the target game play, the target game play may be started.
Alternatively, the operation control may be located at any position of the activation interface, such as, but not limited to, located at a middle position of the activation interface and directly below the activation interface.
In the disclosed embodiments, the video clips may optionally include automatically recorded game clips and/or manually recorded game clips.
Wherein the recorded game pieces may be pieces containing the user's highlight reel.
Wherein, the user wonderful game time may include: the user excitation time, user stress time, user frustration time, user surprise time, etc., are not limited herein.
In some embodiments, the electronic device may automatically record the game pieces during the progress of the target game play.
In other embodiments, the electronic device may manually record the game pieces during the progress of the target game play.
Thus, in the embodiments of the present disclosure, multiple video recording modes may be utilized during the progress of the target game, to record the highlight moment of the user during the game.
And S120, displaying at least one video clip in response to the end of the target game play.
Specifically, the electronic device may display at least one video clip recorded during game play in response to the end of the target game play session, such that the user edits the game instants of interest.
In the embodiment of the disclosure, whether the target game is ended or not can be monitored in real time in the process of running the target game by the electronic equipment.
In some embodiments, the electronic device may monitor in real time whether an end triggering operation of the target game by the user is received, and if the end triggering operation of the target game by the user is received, determine that the target game ends.
The user may be a user who is controlling the target game play, i.e., a player whose user is the target game play. During the running of the target game pair, the user can control the game mode of the target game pair, the game state of the game character, and the like, without limitation.
In the embodiment of the present disclosure, the end triggering operation may be an operation for triggering the end of the target game pair.
Alternatively, the end triggering operation may include a gesture control operation (e.g., click, long press, double click, etc.), a voice control operation, or an expression control operation for a return control on the electronic device or an end control on a running interface of the target game pair, etc., without limitation.
The return control may be any button or icon for triggering a start interface for returning to the target game, and is not limited herein. The end control may be any button or icon for triggering the end of running the target game play, without limitation.
Taking the ending triggering operation as an example of clicking operation on the ending control on the running page of the target game, if the user wants to end the game in the running process of the target game, the ending control on the running page of the target game can be clicked, and the electronic device can determine that the target game ends after detecting that the user clicks the ending control.
In other embodiments, the electronic device may monitor the game outcome data of the target game play in real-time and determine that the target game play is over if the game outcome data is monitored.
Wherein the game result data may be data indicating a result of control of the target game by the user.
For example, the target game pair is a jaywalked game, and the game result data may include game jaywalked results. As another example, the target game pair is a game of the athletic type, and the game outcome data may include game athletic outcomes.
In the embodiment of the disclosure, the electronic device may display the video clip based on the display mode of the video clip in response to the target game ending.
In some embodiments, the electronic device may jump directly to the video editing interface and display at least one video clip within the video editing interface in response to the target game play ending.
In other embodiments, the electronic device may jump to the checkout interface and display a video editing control within the checkout interface in response to the target game play ending, and the user may click on the video editing control to cause the electronic device to jump from the checkout interface to the video editing interface and display at least one video clip within the video editing interface.
Alternatively, the video editing control may be any button or icon for triggering a jump to the video editing interface, without limitation.
Alternatively, the video editing control may have a program identification feature of an application to which the video editing interface belongs, e.g., the video editing control may contain a graphical element or a color element in the program identification feature, without limitation.
Alternatively, the video editing interface may be a video playing interface for playing a game clip, or may be a video editing interface for editing a game clip, which is not limited herein.
Fig. 2 is a schematic diagram of a settlement interface for a target game pair provided in an embodiment of the present disclosure.
As shown in fig. 2, the electronic device 201 may display a settlement interface 202 of the target game play in response to the end of the target game play, a settlement result of the target game play and a video presentation button 203 may be displayed in the settlement page, and the user may click on the video presentation button 203 to cause the electronic device 201 to jump from the settlement interface 202 to the video presentation interface to display a video clip in the video presentation interface.
Thus, in embodiments of the present disclosure, the game instants at which the user highlights the game may be displayed in response to the target game session ending, such that the user edits the game instants of interest.
S130, when video editing operation on at least one video clip is detected, the video clip to be edited and the video editing template corresponding to the video editing operation are obtained.
Specifically, if the user wants to edit the video clip during the process of displaying the video clip by the electronic device, a video editing operation of at least one video clip is transmitted to the electronic device. When the electronic equipment detects video editing operation, responding to the video editing operation to obtain a video clip to be edited and a video editing template.
In an embodiment of the present disclosure, the video editing operation may be an operation for selecting and adjusting at least one video clip to obtain a video clip to be edited for synthesizing the target video.
In the embodiment of the disclosure, the video clip to be edited may be a video clip for synthesizing the target video obtained based on the video editing operation.
In the embodiment of the disclosure, the video editing template may be an editing template of a video clip to be edited selected by a user, or may be an editing template obtained after feature analysis is performed on video features of the video clip to be edited.
In some embodiments, the video editing templates may be divided into a horizontal screen template and a vertical screen template according to the video slates to be synthesized.
Specifically, the cross screen template may be used to generate a target video for cross screen playback. The vertical screen template may be used to generate a target video for vertical screen playback.
In other embodiments, the video editing templates may be divided into a global game-play template and a local game-play template based on the degree of interest in the target game character.
Specifically, the frames of the complete game fragments are reserved in the frames of the target video generated based on the global templates of the game. The frames of the target video generated based on the game local template retain the frames of the target game characters in the game piece and delete the frames of the other game characters in the game piece.
Specifically, each video editing template can correspond to at least one sticker material, text material, special effect material, filter material and the like.
Alternatively, the sticker material may include: the sticker materials corresponding to the game types, the sticker materials corresponding to the game characters, and the sticker materials corresponding to the game scenes are not limited herein.
Taking the sticker material as an example of the sticker material corresponding to the game character, after the electronic device acquires the video editing template, determining the sticker material corresponding to the video editing template as the sticker material corresponding to the game character, so that the edited target video obtained based on the sticker material corresponding to the game character can display the characteristics of the game character.
Alternatively, the text material may include: the text material corresponding to the game type, the text material corresponding to the game character, and the text material corresponding to the game scene are not limited herein.
Taking the text material as an example of the text material corresponding to the game scene, after the electronic equipment acquires the video editing template, determining the text material corresponding to the video editing template as the text material corresponding to the game character, so that the edited target video obtained based on the text material corresponding to the game scene can display the game scene information.
Optionally, the special effects material may include: specific details corresponding to the game type, specific details corresponding to the game character, sticker details corresponding to the game scene, and the like are not limited herein.
Taking special effect materials as examples corresponding to game types, after the electronic equipment acquires the video editing template, determining the special effect materials corresponding to the video editing template as special effect materials corresponding to the game types, so that the edited target video obtained based on the special effect materials corresponding to the game types can show the characteristics of the game types.
Optionally, the filter material may include: the filter material corresponding to the game type, the filter material corresponding to the game character, the filter material corresponding to the game scene, and the like are not limited herein.
Taking the special effect material as the filter material corresponding to the game character as an example, after the electronic equipment acquires the video editing template, determining the special effect material corresponding to the video editing template as the filter material corresponding to the game character, so that the edited target video obtained based on the filter material corresponding to the game character can display the filter effect.
And S140, video editing is carried out on the video clips to be edited based on the video editing template, and the target video is obtained.
Specifically, after the electronic device obtains the video clip to be edited and the video editing template, the video clip to be edited is synthesized into the target video based on the video board to be synthesized, the attention degree of the target game character, the sticker material, the text material, the special effect material, the filter material and the like of the video editing template.
In the embodiment of the disclosure, at least one video clip corresponding to the target game can be obtained in response to the start of the target game, in the process of the target game, the video clip can include an automatically recorded game clip and/or a manually recorded game clip, the recorded at least one video clip can be displayed in response to the end of the target game, and then after the video editing operation on the at least one video clip is detected, the video clip to be edited and the video editing template corresponding to the video editing operation can be obtained, so that video editing is performed on the video clip to be edited based on the video editing template, and a target video for video sharing is obtained, so that different video effects can be generated based on different video clips to be edited and different video editing templates in a combined way, the video style shared by a user is not single any more, and the diversified requirements of the user on the video effects and the video sharing requirements can be met.
In another embodiment of the present disclosure, the game pieces may be automatically recorded when a preset game event is detected, to obtain video pieces including a user's highlight game moment.
In an embodiment of the present disclosure, optionally, the obtaining at least one video clip corresponding to the target game in S110 may include:
s1, responding to detection of a preset game event, and automatically recording a game segment corresponding to the preset game event to obtain a video segment.
In the disclosed embodiments, the preset game event may be a game event for triggering automatic recording of video clips.
Alternatively, the preset game event may be a game event including a user highlight game time.
Specifically, the electronic device detects a preset game event in real time in the process of running the target game, if the preset game event is detected, determines that the user wonderful game moment is detected, and responds to the detection of the preset game event, executes the operation of automatically recording the game segment corresponding to the preset game event to obtain the game segment.
Specifically, after the preset game event is detected, a game segment in a preset time period taking the game time to which the preset game event belongs as a time midpoint may be recorded. The preset time period may be a preset time period set as required, for example, 5s,15, etc.
In some embodiments, the video editing method may further include, prior to detecting the preset game event:
s01, predicting the probability of occurrence of a target game event in the target game based on a pre-trained detection model.
S02, determining that the preset game event is detected under the condition that the probability is larger than or equal to a preset probability threshold value.
The pre-trained detection model can be obtained based on sample video clips. The sample video clip may have a sample mark, which may be a first mark indicating that it is a target game event or a second mark of a non-target game event.
Alternatively, the target game event may include a kill event, a tie-kill event, a shoot event, a warfare event, etc., without limitation.
Alternatively, the non-target game event may be a game event other than a target game event.
The preset probability threshold may be a probability threshold for determining whether the user highlight requirement is met.
Specifically, in the process of running the target game for game, the electronic device inputs a game segment with preset duration to a pre-trained detection model to obtain the probability of a target game for game event in the process of target game for game, compares the probability with a preset probability threshold, determines that a preset game event is detected if the probability is greater than or equal to the preset probability threshold, further responds to the detection of the preset game event, automatically records the game segment corresponding to the preset game event to obtain a video segment, otherwise, determines that the preset game event is not detected, continuously detects the game segment with preset duration until the preset game event is detected, and automatically records the game segment corresponding to the detected preset game event to obtain the video segment.
Therefore, in the embodiment of the disclosure, the preset game event can be detected based on the pre-trained detection model, and after the preset game event is detected, the preset game event is automatically recorded, so that the video clip is obtained.
In other embodiments, the video editing method may further comprise, prior to detecting the preset game event:
s03, monitoring the times of occurrence of the target game operation event in a preset time window.
S04, determining that a preset game event is detected under the condition that the times are larger than or equal to a preset times threshold value.
The preset time window may be a preset time window for detecting the number of times the target game operation event is transmitted within the specified time.
Optionally, the target game operation event may include: the continuous click operation, the long press operation, the continuous slide operation, an event in which the continuous click operation is combined with the continuous slide operation, and the like are not limited herein.
The preset time threshold may be a time threshold for judging whether the requirement of detecting the user wonderful time is met.
Specifically, in the process of running the target game for game, the electronic device detects the times of occurrence of the target game operation event in a preset time window, compares the times of occurrence of the target game operation event with a preset times threshold, if the times of occurrence of the target game operation event is greater than the preset times threshold, determines that the preset game event is detected, further responds to the detection of the preset game event, automatically records the game segment corresponding to the preset game event to obtain a video segment, otherwise, determines that the preset game event is not detected, continuously detects the preset game event until the preset game event is detected, and detects the times of occurrence of the target game operation event in the preset time window, so that the game segment corresponding to the preset game event is automatically recorded when the preset game event is detected to obtain the video segment.
Therefore, in the embodiment of the present disclosure, the number of times of the target game operation event may occur within the preset time window, the preset game event may be detected, and after the preset game event is detected, the preset game event may be automatically recorded, so as to obtain the video clip.
In still other embodiments, the video editing method may further include, prior to detecting the preset game event:
s05, under the condition that the user has voice acquisition permission, monitoring whether a target voice event occurs in the user real-time voice.
S06, under the condition that the occurrence of the target voice event is detected, determining that the preset game event is detected.
In the embodiment of the disclosure, the voice acquisition permission may be an instruction that allows the user voice information to be acquired.
Specifically, when starting game play, the electronic equipment judges whether voice acquisition permission is detected, if so, monitors whether a target voice event occurs in real-time voice of a user, and if not, does not execute the operation of monitoring the real-time voice; in the process of detecting the real-time voice of the user, if the occurrence of the target voice event is detected, determining that the preset game event is detected, and if the occurrence of the target voice event is not detected, continuing to detect the preset game event until the occurrence of the target voice event is detected, and determining that the preset game event is detected.
Wherein, monitoring whether the target voice event occurs in the user real-time voice may include:
s051, extracting real-time voice characteristics from the real-time voice of the user; wherein the real-time speech features include at least one of keywords, utterances, and sound rays.
S052, comparing the real-time voice characteristics with the target voice characteristics to obtain a comparison result.
S053, judging whether the target voice event occurs according to the comparison result.
In the embodiment of the disclosure, the user real-time voice may be sound content uttered by the user in real-time.
In the embodiments of the present disclosure, the real-time speech feature may be a sound feature of the user's real-time speech.
Alternatively, the real-time speech features may include at least one of keywords, utterances, and sound rays.
The keywords may be target words in sentences spoken by the target user.
Alternatively, the keywords may include: "yarrowia", "Java" and the like are not limiting herein.
The intonation may be, among other things, a accent of the utterance spoken by the target user.
Wherein the sound ray may be a timbre of the target user's utterance.
The target voice feature may be a voice feature for determining whether the user's wonderful time requirement is satisfied.
In an embodiment of the present disclosure, S1 may include: and carrying out voice characteristic analysis on the real-time voice to obtain real-time voice characteristics.
Alternatively, the voice feature analysis may include: keyword parsing, intonation analysis, and voice line analysis.
Specifically, when the electronic device runs the target game, judging whether an instruction for allowing to acquire the user voice information is acquired, if the instruction for allowing to acquire the user voice information is acquired, determining that the user voice information is monitored, analyzing the acquired user real-time voice to extract real-time voice characteristics, and if the instruction for allowing to acquire the user voice information is not detected, not executing the operation for analyzing the acquired user real-time voice; in the process of extracting the real-time voice, if the real-time voice characteristics are consistent with the target voice characteristics, determining that the target voice event occurs, so that the detection of the preset game event can be determined, further responding to the detection of the preset game event, automatically recording the game segment corresponding to the preset game event to obtain the video segment, if the real-time voice characteristics are inconsistent with the target voice characteristics, determining that the target voice event does not occur, continuously analyzing the acquired user real-time voice until the real-time voice characteristics are consistent with the target voice characteristics, and determining that the detection of the preset game event is performed, further automatically recording the game segment corresponding to the preset game event to obtain the video segment.
Therefore, in the embodiment of the disclosure, the preset game event can be automatically detected based on the real-time voice characteristics in the real-time voice under the condition that the voice acquisition permission is detected, and the preset game event is automatically recorded after the preset game event is detected, so that the video clip is obtained.
Fig. 3 is a schematic flow chart of a video clip corresponding to an automatic recording target game according to an embodiment of the disclosure.
As shown in fig. 3, the process of automatically recording the video clip corresponding to the game play of the target game may include the following steps.
S301, the electronic equipment detects a game event.
S302, the electronic equipment determines whether a preset game event is detected.
In the embodiment of the present disclosure, the electronic device may predict a probability of occurrence of a target game event in a target game based on a detection model trained in advance, determine that the preset game event is detected if the probability is greater than or equal to a preset probability threshold, and execute S303, otherwise, return to executing S301; or, monitoring the times of the target game operation events in the preset time window, if the times are greater than or equal to the preset times threshold, determining that the preset game events are detected, and executing S303, if not, returning to executing S301; or, in the case where it is detected that the voice acquisition authority is present and the target voice event is detected, if it is detected that the target voice event occurs, it is determined that the preset game event is detected and S303 is performed, otherwise, S301 is performed back.
S303, responding to a preset game event by the electronic equipment, and automatically recording a game fragment corresponding to the preset game event to obtain a video fragment.
In the embodiment of the present disclosure, after the electronic device has recorded the video clip, the electronic device may further display a prompt message for prompting the user to record the video clip corresponding to the preset game event.
In order to enhance the user's interactive experience when recording video clips, fig. 4 is a schematic diagram of a target game play interface according to an embodiment of the present disclosure.
As shown in fig. 4, in the process of running the target game, the electronic device 401 may display a running interface 402 of the target game, a game screen of the target game may be displayed in the running interface 402, if it is determined that a preset game event is detected, in response to the detection of the preset game event, a game segment corresponding to the preset game event is automatically recorded, so as to obtain a video segment, and a prompt message of "the video segment is recorded" is displayed in a display area 403, so as to remind the user that the video segment corresponding to the preset game event has been automatically recorded.
In yet another embodiment of the present disclosure, when a preset game event is detected, a video clip may be manually recorded based on a video recording operation to obtain a video clip including a user highlight game time.
In an embodiment of the present disclosure, optionally, the obtaining at least one video clip corresponding to the target game in S110 may include:
s2, in response to detection of a preset game event, prompt information is displayed on a game interface, and the prompt information is used for prompting a user to record a game segment corresponding to the preset game event.
And S3, responding to the detection of video recording operation, and recording the game fragments corresponding to the preset game event to obtain video fragments.
The game interface may be an interface on the electronic device for running a target game for a game.
The video recording operation may be an operation for triggering recording of a game piece, among other things.
Optionally, the video recording operation may be a gesture control operation (such as clicking, long pressing, double clicking, etc.), a voice control operation, or an expression control operation for displaying the control where the prompt information is located, which is not limited herein.
Specifically, in the process of running the target game for game, the electronic device monitors the user wonderful game time in real time, if the user wonderful game time is detected, the preset game event is determined to be detected, and prompt information is displayed on the game interface in response to the preset game event, so that the user sends video recording operation to the electronic device based on the prompt information, and the electronic device can record the game segment corresponding to the preset game event in response to the video recording operation to obtain the video segment.
In some embodiments, the video editing method may further include, prior to detecting the preset game event:
s07, predicting the probability of occurrence of the target game event in the target game based on a pre-trained detection model.
And S08, determining that the preset game event is detected under the condition that the probability is greater than or equal to a preset probability threshold value.
Wherein, S07-S08 are similar to S01-S02, and are not described herein.
Therefore, in the embodiment of the present disclosure, a preset game event may be detected based on a pre-trained detection model, and after the preset game event is detected, a game segment corresponding to the preset game event is recorded based on a video recording operation sent by a user, so as to obtain a video segment.
In other embodiments, the video editing method may further comprise, prior to detecting the preset game event:
s09, monitoring the times of occurrence of target game operation events in a preset time window;
s10, determining that a preset game event is detected under the condition that the times are larger than or equal to a preset times threshold value.
Wherein, S09-S10 are similar to S03-S04, and are not described herein.
Therefore, in the embodiment of the present disclosure, the number of times of the target game operation event may occur within the preset time window, the preset game event may be detected, and after the preset game event is detected, the game segment corresponding to the preset game event may be recorded based on the video recording operation sent by the user, so as to obtain the video segment.
In embodiments of the present disclosure, the preset game event may be detected and determined according to a pre-trained detection model.
In order to improve the detection accuracy of the detection model, in the embodiment of the present disclosure, after S2, that is, after displaying the prompt information on the game interface, the video editing method may further include:
if the video recording operation is not detected when the display time of the prompt message reaches the preset time, recording real-time detection data corresponding to the preset game event.
The real-time detection data is taken as a negative sample of the detection model.
And carrying out optimization training on the detection model by using the negative sample to obtain an optimized detection model.
The real-time detection data may include real-time voice features, target game operation events, etc., without limitation.
The preset duration may be a duration for determining whether the user is interested in the moment.
Alternatively, the preset duration may be 2s, 3s, or 5s, which is not limited herein.
Specifically, after the prompt information is displayed on the game interface by the electronic device, if the video recording operation is not detected when the display time length of the prompt information reaches the preset time length, recording real-time detection data corresponding to the preset game event, taking the real-time detection data as a negative sample of the detection model, performing optimization training on the detection model by using the negative sample to obtain an optimized detection model, further, after the detection of the preset game event based on the same or similar real-time detection data is performed next time, automatically recording a game segment corresponding to the preset game event, enabling the acquisition process of the game segment to be more personalized, and if the video recording operation is detected when the display time length of the prompt information reaches the preset time length, recording the game segment corresponding to the preset game event, and obtaining the video segment.
Therefore, in the embodiment of the disclosure, when it is determined that the preset game event is detected, the electronic device can manually trigger to record the video clip corresponding to the preset game event in a mode of interacting with the target user, so that the interaction experience of the target user when recording the video clip is improved, and the recording requirement of the user on the video clip is met.
Fig. 5 is a flowchart of a method for manually recording a game piece according to an embodiment of the disclosure.
As shown in fig. 5, the manual recording game piece method may include the following steps.
S501, the electronic equipment detects a preset game event, and responds to the preset game event, and prompt information is displayed on a game interface.
In the embodiment of the disclosure, the electronic device may predict a probability of occurrence of a target game event in a target game based on a pre-trained detection model, and if the probability is greater than or equal to a preset probability threshold, determine that a preset game event is detected, and continue to detect the preset game event; or monitoring the times of the target game operation events in the preset time window, if the times are greater than or equal to a preset times threshold value, determining that the preset game events are detected, and continuing to detect the preset game events; or in the case that the voice acquisition permission is detected and the target voice event is detected, if the occurrence of the target voice event is detected, determining that the preset game event is detected, and continuing to detect the preset game event.
The prompt information is used for prompting a user to record a game fragment corresponding to a preset game event.
S502, the electronic equipment displays a video recording control.
The video recording control may be a control for acquiring a video recording operation.
S503, the electronic device determines whether a video recording operation is detected.
In the embodiment of the present disclosure, after detecting the preset game event, the electronic device may display a prompt message on the game interface, and determine whether a video recording operation is detected, if so, execute S504, otherwise, return to execute S505.
S504, the electronic equipment responds to the video recording operation to record the game fragments corresponding to the preset game event, so as to obtain the video fragments.
In the embodiment of the disclosure, when the electronic device detects the video recording operation, recording the game segment corresponding to the preset game event to obtain the video segment.
S505, the electronic device determines whether the video recording control displays a preset duration.
In the embodiment of the present disclosure, if the electronic device does not detect the video recording operation for the preset duration and the video recording control does not display the preset duration, the process returns to S502, otherwise S506 is performed.
S506, the electronic equipment records real-time detection data corresponding to a preset game event, takes the real-time detection data as a negative sample of the detection model, and performs optimization training on the detection model by using the negative sample to obtain an optimized detection model.
In the embodiment of the present disclosure, after the electronic device has recorded the video clip, the electronic device may also change the display state of the video recording control for detecting the video recording operation, so as to remind the user that the video clip corresponding to the preset game event has been recorded.
Alternatively, the video recording control may be an icon or button for detecting a video recording operation.
In order to enhance the user's interactive experience when recording video clips, fig. 6 is a schematic diagram of a target game play interface according to an embodiment of the present disclosure.
As shown in fig. 6, in the process of running the target game, the electronic device 601 may display a running interface 602 of the target game, a game screen corresponding to the target game in the running interface 602, if it is determined that a preset game event is detected, an icon 603 corresponding to a video recording control for triggering and confirming to record the preset game event may be displayed on the running interface 602 of the electronic device 601, if the user clicks the icon 603 within a preset duration, the icon 603 may be displayed as a selected state to prompt the user that a game segment corresponding to the preset game event has been recorded, if the user does not click the icon 603 within the preset duration, the icon 603 disappears on the running interface 602, and the electronic device 601 may record real-time detection data corresponding to the preset game event, take the real-time detection data as a negative sample of a detection model, and perform optimization training on the detection model by using the negative sample, thereby obtaining an optimized detection model.
In yet another embodiment of the present disclosure, the electronic device may automatically acquire the video editing template after displaying the video clip, and may determine the video editing template based on the detected application selection operation, so that the user edits the game clip based on the video editing template.
In some embodiments of the present disclosure, acquiring the video editing template in S130 may include:
s1301, obtaining video characteristics of the video clip to be edited.
S1303, a video editing template corresponding to the video features is obtained.
Wherein the video features may be used to characterize the game features of the video clip to be edited.
Alternatively, the video features may include character features, scene features, game features, rank features, and the like, without limitation.
Alternatively, character features may include gender, clothing, and class of game characters, among others, without limitation.
Alternatively, the scene features may include a play scene, a combat scene, and an end scene, without limitation.
Alternatively, the interoffice features may include double interoffice, multi-person interoffice, etc., without limitation. Specifically, the electronic device may perform feature extraction on at least one of character features, scene features and game features in the video clip to be edited to obtain video features of the video clip to be edited, and screen a video editing template corresponding to the video features from the pre-stored editing templates based on the video features, so as to edit the video clip based on the video editing template.
Taking the example of extracting the character features, the electronic device may analyze the grade of the character in the video segment to be edited to extract the grade features of the character features, and if the grade features are the highest grade, select the video editing template corresponding to the highest grade from the pre-stored editing templates, so as to edit the video segment based on the video editing template, and generate the target video of the target game character.
Taking the scene feature extraction as an example, the electronic device may analyze the game scene in the video clip to be edited to extract the scene feature, and if the scene feature is a battle scene, screen the video editing template corresponding to the battle scene from the pre-stored editing templates to edit the video clip based on the video editing template, so as to generate the target video of the game scene.
Taking the feature extraction of the game as an example, the electronic device can analyze the game situation in the video clips to be edited to extract the game feature, and if the game feature is a multi-person game, the video editing templates corresponding to the multi-person game are screened out from the pre-stored editing templates so as to edit the video clips based on the video editing templates and generate the target video of the game scene.
Thus, in the embodiment of the disclosure, a video editing template corresponding to the video feature can be automatically obtained based on the video feature of the video clip to be edited, so as to edit the video to be edited based on the video editing template.
In other embodiments of the present disclosure, acquiring the video editing template in S130 may include:
s1302, in response to detection of the application selection operation, determining a video sharing application corresponding to the application selection operation.
S1304, acquiring a video editing template corresponding to the video sharing application.
The application selection operation may be a trigger operation for selecting an application program to be shared.
Alternatively, the application selection operation may include a gesture control operation (such as clicking, long pressing, double clicking, etc.), a voice control operation, or an expression control operation of an application icon or an application identifier of the application program to be shared, which is not limited herein.
The video sharing application may be an application program to be shared.
Alternatively, the application to be shared may be a short video application or other application with video playing function.
Alternatively, the application to be shared may be a first type of application for horizontal-screen playing of the target video or a second type of application for vertical-screen playing of the target video.
Alternatively, the first type of application may include, without limitation, an audiovisual playback application, a short video playback application, a game, and the like.
Alternatively, the second type of application may include a social application or the like, without limitation.
Specifically, after the electronic device displays the video clip, the electronic device may monitor the detected application selection operation in real time, if the detected application selection operation, determine the video sharing application corresponding to the application selection operation in response to the detected application selection operation, analyze the display mode of the video sharing application, and screen the video editing template corresponding to the application to be shared from the editing templates corresponding to the pre-stored applications according to the display mode, so as to edit the video clip based on the video editing template.
Taking the video sharing application as an audio-video playing application program as an example, after the electronic device displays the video clips, the electronic device can monitor and detect the application selection operation in real time, if the application selection operation is detected, the video sharing application corresponding to the application selection operation is determined to be the audio-video playing application program in response to the detection of the application selection operation, the display mode of the audio-video playing application program is analyzed, the display mode is determined to be a horizontal screen display mode, and then the video editing templates corresponding to the audio-video playing application program are screened out from the editing templates corresponding to the pre-stored application programs according to the horizontal screen display mode so as to edit the video clips based on the video editing templates.
Taking the video sharing application as a social application program as an example, after the electronic device displays the video clip, the electronic device can monitor and detect the application selection operation in real time, if the application selection operation is detected, the video sharing application corresponding to the application selection operation is determined to be the social application program in response to the detection of the application selection operation, the display mode of the social application program is analyzed, the display mode is determined to be a vertical screen display mode, and then the video editing templates corresponding to the social application program are screened out from the editing templates corresponding to the pre-stored application programs according to the vertical screen display mode so as to edit the video clip based on the video editing templates.
Thus, in the embodiment of the present disclosure, based on the detected application selection operation, the video sharing application corresponding to the application selection operation may be determined, so as to obtain the video editing template corresponding to the video sharing application.
In still another embodiment of the present disclosure, in order to improve the editability of the game clip, the video clip to be edited may be flexibly edited based on different video editing operations, so as to meet the personalized requirements of the target user.
In some embodiments of the present disclosure, to obtain a video clip to be edited, the electronic device may determine a target video clip from the displayed at least one video clip to further determine the video clip to be edited based on the target video clip.
In an embodiment of the present disclosure, optionally, displaying at least one video clip in S120 may include:
and displaying the video preview window and the first control corresponding to each video clip.
In the embodiment of the disclosure, the video preview window may be used to display a video clip to which the first control whose control state is the selected state belongs.
In the disclosed embodiments, the first control may be any button or icon for selecting a target game piece displayed within the video preview window, without limitation.
In the disclosed embodiments, the first control may be used to indicate a user highlight moment.
Optionally, the control states of the first control may include a selected state and an unselected state.
Alternatively, the first control may be displayed in the middle, upper left, upper right, or any other display location of the video editing interface of the target game pair, without limitation.
Alternatively, the first control may have a program identification feature of the video sharing application, for example, the first control may include a graphical element or a color element in the program identification feature, which is not limited herein.
In the embodiment of the disclosure, the target video clip is a video clip displayed in a video preview window.
In order to improve viewing or editing experience of a user on video clips, before the user edits the video clips to be edited, a target video clip can be selected through a first control displayed on a video editing interface, so that the user can select the video clips to be edited according to will, and the user is prompted to switch the target video clips by changing the control states of the first controls.
In an embodiment of the present disclosure, optionally, before detecting the video editing operation of the at least one video clip, the video editing method may further include:
when a first triggering operation of a target first control in the plurality of first controls is detected, updating the control state of each first control according to the control state of the target first control;
and updating the video clips displayed in the video preview window according to the control states of the first controls.
The target first control may be the first control that receives the first trigger operation.
Wherein the first trigger operation may be a trigger operation for selecting a target video clip.
Specifically, when the video editing interface of the electronic device displays at least one segment, a first trigger operation on a target first control in the plurality of first controls can be monitored in real time, the control state of the target first control is updated to a selected state in response to the first trigger operation, the control states of other first controls are updated to an unselected state, and at the same time, the target game segment selected by the target first control is displayed in the video preview window, so that the video segment displayed in the video preview window is updated.
FIG. 7 illustrates a schematic diagram of a video editing interface for a target game pair provided by an embodiment of the present disclosure.
As shown in fig. 7, the electronic device 701 may display a video editing interface 702, a video preview window 710 and a first control 720 may be displayed within the video editing interface 702, the first control 720 may display a first preset icon 7201, a second preset icon 7202, a third preset icon 7203, and each first preset may be used to indicate a user highlight moment.
When the video editing interface 702 is in the initial display state, the colors of the first preset icon 7201, the second preset icon 7202 and the third preset icon 7203 are all white, which indicates that the first preset icon 7201, the second preset icon 7202 and the third preset icon 7203 are all in an unselected state, and no video is displayed in the video preview window 710. If the user wants to display the target video clip corresponding to the first preset icon 7201, clicking the first preset icon 7201, at this time, the color of the first preset icon 7201 is gray, which indicates that the display state of the first preset icon 7201 is the selected state, and the target video clip corresponding to the first preset icon 7201 may be displayed in the video preview window 710. When the user wants to view or edit the target video clip corresponding to the second preset icon 7202, the second preset icon 7202 may be clicked, so that the electronic device 701 may display the target video clip corresponding to the second preset icon 7202 in the video preview window 710, at this time, the color of the second preset icon 7202 is gray, which indicates that the display state of the second preset icon 7202 is the selected state, and the display state of the first preset icon 7201 is converted into white, which indicates that the first preset icon 7201 is converted from the selected state into the unselected state.
Thus, in the embodiment of the disclosure, the target user can change the target video clips displayed in the video preview frame based on the first control, so that the target user can flexibly switch to view and edit different target video clips.
In other embodiments of the present disclosure, in order to further improve the video editing experience of the user, the electronic device may flexibly edit the video clip to be edited according to different video editing operations.
In some embodiments, the video editing operation may include an add operation to a target video clip in the at least one video clip.
The obtaining the video clip to be edited corresponding to the video editing operation in S130 may include:
responding to the detection of the adding operation, and taking the target video clip as a video clip to be edited;
and updating the edited duration of the target video according to the segment duration of the target video segment.
Wherein the adding operation may be an operation for triggering the target game piece as a video piece to be edited.
Optionally, the adding operation may include a gesture control operation (such as clicking, long pressing, double clicking, etc.), a voice control operation, or an expression control operation of the adding control corresponding to the target video clip.
The adding control may be any button or icon for triggering adding the target video clip to the target video, which is not limited herein.
Taking the adding operation as an example of the clicking operation on the adding control, the adding control can be displayed in a video editing interface of the electronic device, and if the electronic device detects that the user clicks the adding control in the process of displaying the target game segment in the video preview window, the electronic device can take the target game segment as the video segment to be edited so as to edit the video segment to be edited.
The segment duration of the target video segment may be a playing duration of the target video segment.
Wherein the edited duration may be a length of time of the edited game piece.
Alternatively, the edited duration may be any length of time less than or equal to the total duration of the video of the target video.
Wherein, updating the edited duration of the target video according to the segment duration of the target video segment may include: and adding the segment duration of the target video segment and the edited duration before updating to obtain the updated edited duration.
With continued reference to FIG. 7, a duration display control 730 and an add control 750 may also be displayed within the video editing interface 702. Duration display control 730 may display the total duration of the video, e.g., 60s, and the edited duration, e.g., 0s.
After the electronic device 701 detects the adding operation, taking the target video clip as the video clip to be edited, if the edited duration before updating is 0s and the clip duration of the target video clip is 15s, adding the clip duration of the target video clip and the edited duration before updating, and obtaining the edited duration after updating is 15s.
In other embodiments, the video editing operations further comprise an adjustment operation on the target video clip.
Wherein, before detecting the adding operation to the target video clip, the video editing method may further include:
in response to detecting the adjustment operation, adjusting the game time range corresponding to the target video clip to a target time range corresponding to the adjustment operation; the range duration of the target time range is smaller than or equal to the editable duration of the target video;
and updating the segment duration of the target video segment according to the target time range.
The adjustment operation may be an operation for adjusting a game time range corresponding to the target video clip.
Optionally, a duration selection control may also be displayed in the video editing interface, where the duration selection control may be used to select a start time and an end time of the video clip.
Optionally, the adjustment operation on the target video clip may include a gesture control operation (e.g., drag, click, etc.), a voice control operation, or an expression control operation on the duration selection control on at least one of the selectable start time, the selectable end time, the start time node of the target time range, and the end time node of the target time range.
Wherein the selectable start time may be an earliest start time of the selectable target time range and the selectable end time may be a latest end time of the selectable target time range.
Further, the target time range may be an adjusted game time range corresponding to a target game segment that the target user wants to adjust.
Optionally, the range duration of the target time range is less than or equal to the editable duration of the target video, so as to ensure that the duration of the target video is less than or equal to the total duration of the video when the target video clip is added to the target video.
Optionally, the editable duration is determined according to the total duration of the video and the edited duration.
Wherein the editable duration may be the difference between the total duration of the video and the edited duration. I.e., the target time range is less than or equal to the difference between the total duration of the video and the edited duration.
The total video duration may be the maximum editable duration of the target video. The total duration of the video may be any duration preset according to needs, and may be 15 seconds, 60 seconds, 150 seconds, etc., which is not limited herein.
Wherein the edited duration may be a length of time of the edited game piece. The edited duration may be any length of time less than or equal to the total duration of the video.
With continued reference to fig. 7, a duration selection control 740 may be displayed within the video editing interface 702, and the duration selection control 740 may include a start control 7401, an end control 7402, a start slider 7403, and an end slider 7404. When the user wants to adjust the game time range corresponding to the video clip displayed in the video preview window 710, the selectable start time may be adjusted through the slide start control 7401, or the selectable end time may be adjusted through the slide end control 7402, or the start time of the target time range to be intercepted may be adjusted through the slide start slider 7403, or the end time of the target time range to be intercepted may be adjusted through the slide end slider 7404.
Therefore, in the embodiment of the disclosure, the user can flexibly adjust the game time range corresponding to the target video clip, so that the editability of the game at the wonderful moment is improved, the video editing requirement of the user is met, and the video editing experience of the user is improved.
In still other embodiments, the video editing operation may include a delete operation of a target video clip of the at least one video clip.
The obtaining the video clip to be edited corresponding to the video editing operation in S130 may include:
deleting the target game piece from the target video in response to detecting the deletion operation;
and updating the edited duration of the target video according to the segment duration of the target video segment.
In the embodiment of the present disclosure, the deletion operation of the target game piece may be an operation for triggering deletion of the target game piece from the target video.
Alternatively, the delete operation may include a gesture control operation (e.g., click, long press, double click, etc.), a voice control operation, or an expression control operation on the delete control.
The deletion control may be any button or icon for triggering the deletion of the target game segment from the target video, and is not limited herein.
Taking the deleting operation as an example of clicking operation on the deleting control, the deleting control can be further displayed in the video editing interface, and if the electronic equipment detects that the target user clicks the deleting control in the process of displaying the target game segment in the video preview window, the electronic equipment can delete the target game segment from the target video.
After deleting the target game segment from the target video, the electronic device may subtract the time length of the target game segment from the edited time length before deleting the target game segment to obtain an updated edited time length, and replace the edited time length displayed by the third control with the updated edited time length.
FIG. 8 illustrates a schematic diagram of a video editing interface for another target game pair provided by an embodiment of the present disclosure.
As shown in fig. 8, the electronic device 801 displays a video editing interface 802, a target video clip at a game time corresponding to a first preset icon 804 is displayed in a video preview window 803 in the video editing interface 802, and a deletion control 805 is displayed. After the user clicks the delete control 805, the game segment at the game time corresponding to the first preset icon 804 is deleted from the target video, where the first preset icon 804 is restored to be white, which indicates that the display state of the preset icon 804 is an unselected state, and the duration display control 806 may be displayed as "0s/60s" so as to prompt the target user that the total duration of the video of the target video is 60s and the edited duration is 0s.
In the embodiment of the disclosure, the user can delete the target game video to meet the video editing requirement of the target user.
Thus, in the disclosed embodiments, the user may delete the target game piece to meet the video editing needs of the target user.
In still other embodiments of the present disclosure, to further enhance the target user's experience of video editing, the target user may also alter the total duration of video of the target video to be shared based on the video clip composition.
In an embodiment of the present disclosure, after ending the game in response to the target game, the video editing method may further include:
displaying the total video duration and the edited duration of the target video;
when the time length modification operation on the target video is detected, the total time length of the video is updated by using the target time length selected by the time length modification operation.
The total video duration may be the maximum editable duration of the target video. The total duration of the video may be any duration preset according to needs, and may be 15 seconds, 60 seconds, 150 seconds, etc., which is not limited herein.
Wherein the edited duration may be a length of time of the edited game piece. The edited duration may be any length of time less than or equal to the total duration of the video.
FIG. 9 illustrates a schematic diagram of a video editing interface for a further target game pair provided by an embodiment of the present disclosure.
Referring to fig. 9, the electronic device 901 displays a video editing interface 902, and a target video clip corresponding to a first preset icon 904 is displayed in a video preview window 903 in the video editing interface 902. A pull-up menu button 906 may be displayed in the duration display control 905 in the video editing interface 902, and when the user clicks the pull-up menu button 906, a plurality of selectable total durations may be displayed in the pull-up menu, and the user may click on a target total duration, for example, 15s, so that the total duration of the target video displayed by the third control 905 is updated from 60s to 15s in fig. 7.
Therefore, in the embodiment of the disclosure, the electronic device may display the total video duration and the edited duration of the target video to be shared, so that the user can intuitively know the editable total duration and the editing progress of the target video to be shared, further assist the user in video editing, and also update the total video duration by using the target duration selected by the duration modification operation.
In still other embodiments of the present disclosure, to satisfy the user's sharing experience of the target video, a second control may also be displayed within the video editing interface, and the target video is published based on detecting a second trigger operation on the second control.
In an embodiment of the present disclosure, optionally, after ending in response to the target game play, the video editing method may further include:
displaying a second control, wherein the second control displays the editing progress of the target video;
wherein, after obtaining the target video, the video editing method further comprises:
and when the second triggering operation on the second control is detected, releasing the target video.
The second control can be used for prompting the editing progress of the target video and triggering video sharing of the target video.
In the embodiment of the disclosure, the second control may be any button or icon for prompting the editing progress of the target video and triggering the video sharing of the target video, which is not limited herein.
Alternatively, the second control may have a program identification feature of an application to which the video presentation interface belongs, for example, the second control may include a graphical element or a color element in the program identification feature, which is not limited herein.
In the embodiment of the disclosure, the editing progress of the target video can be determined according to the edited duration and the total video duration. Specifically, the editing progress of the target video may be the ratio of the edited duration to the total duration of the video. The second control may be displayed with a progress bar indicating the duty cycle to prompt the editing progress of the target video.
Further, the user may input a sharing operation for triggering video sharing of the target video to the second control.
The sharing operation may be a gesture control operation (such as clicking, long pressing, etc.) on the second control, a voice control operation, or an expression control operation.
FIG. 10 illustrates a schematic diagram of a video editing interface for a further target game pair provided by an embodiment of the present disclosure.
Referring to fig. 10, the electronic device 1001 displays a video editing interface 1002, a target video clip corresponding to a first preset icon 1004 is displayed in a video preview window 1003 in the video editing interface 1002, a second control 1005 is also displayed in the video editing interface 1002, a game clip at a game time corresponding to the first preset icon 1004 displayed in the video preview window 1003 in the video editing interface 1002 has been added to the target video, a display state of the first preset icon 1004 is adjusted to be in a "v" state, and at this time, a progress bar for prompting that 1/4 has been edited is displayed on an outer ring of the second control 1005.
In addition, when the target user is satisfied with the target video that has been currently edited, the second control 1005 may be clicked to share it. Such as publishing the target video within an application to which the video editing interface 1002 belongs, or publishing the target video in other applications than the application, or sending the target video to at least one user desiring to share.
In an embodiment of the present disclosure, optionally, special effects buttons and filter buttons may also be displayed within the video editing interface. Wherein, special effects button can be used to add special effects for target video, and filter button can be used to add the filter for target video.
Therefore, in the embodiment of the disclosure, the editing progress of the target video can be displayed on the second control in real time, so that the user edits the target video with different time lengths according to will, and the video editing experience of the target user is improved; furthermore, the target user can realize the rapid sharing of the target video through the fourth control, thereby meeting the sharing experience of the user and improving the spreading coverage capability of the game fragments.
The embodiment of the disclosure further provides a video editing apparatus for implementing the video editing method, and the description is below with reference to fig. 11. In an embodiment of the present disclosure, the video editing apparatus may be an electronic device. The electronic device may include a mobile terminal, a tablet computer, a vehicle-mounted terminal, a wearable electronic device, a Virtual Reality (VR) integrated machine, an intelligent home device, and other devices with communication functions.
Fig. 11 shows a schematic structural diagram of a video editing apparatus provided in an embodiment of the present disclosure.
As shown in fig. 11, the video editing apparatus 1100 may include: a video acquisition unit 1110, a video display unit 1120, a first editing unit 1130, and a second editing unit 1140.
The video acquisition unit 1110 may be configured to acquire at least one video clip corresponding to a target game play in the course of the target game play in response to the start of the target game play; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
the video display unit 1120 may be configured to display the at least one video clip in response to the target game play ending;
the first editing unit 1130 may be configured to, when detecting a video editing operation on the at least one video clip, obtain a video clip to be edited and a video editing template corresponding to the video editing operation;
the second editing unit 1140 may be configured to perform video editing on the video clip to be edited based on the video editing template, to obtain a target video.
In the embodiment of the disclosure, at least one video clip corresponding to the target game can be obtained in response to the start of the target game, in the process of the target game, the video clip can include an automatically recorded game clip and/or a manually recorded game clip, the recorded at least one video clip can be displayed in response to the end of the target game, and then after the video editing operation on the at least one video clip is detected, the video clip to be edited and the video editing template corresponding to the video editing operation can be obtained, so that video editing is performed on the video clip to be edited based on the video editing template, and a target video for video sharing is obtained, so that different video effects can be generated based on different video clips to be edited and different video editing templates in a combined way, the video style shared by a user is not single any more, and the diversified requirements of the user on the video effects and the video sharing requirements can be met.
In some embodiments of the present disclosure, the video obtaining unit may be further configured to, in response to detecting a preset game event, automatically record a game segment corresponding to the preset game event, so as to obtain the video segment.
In some embodiments of the present disclosure, the video obtaining unit may be further configured to, in response to detecting a preset game event, display a prompt message on the game interface, where the prompt message is used to prompt a user to record a game segment corresponding to the preset game event;
and responding to the detection of video recording operation, recording the game fragments corresponding to the preset game event, and obtaining the video fragments.
In some embodiments of the present disclosure, the apparatus further comprises: presetting a game event detection unit;
the preset game event detection unit can be configured to predict the probability of occurrence of a target game event in the target game based on a pre-trained detection model;
and determining that the preset game event is detected under the condition that the probability is greater than or equal to a preset probability threshold value.
In some embodiments of the present disclosure, the preset game event detection unit may be further configured to monitor the number of times the target game operation event occurs within the preset time window;
And determining that the preset game event is detected under the condition that the times are larger than or equal to a preset times threshold value.
In some embodiments of the present disclosure, the preset game event detection unit may be further configured to monitor whether a target voice event occurs in the real-time voice of the user in case that the voice acquisition authority is detected;
and under the condition that the occurrence of the target voice event is detected, determining that a preset game event is detected.
In some embodiments of the present disclosure, the preset game event detection unit may be further configured to extract real-time voice features from the user real-time voice; wherein the real-time speech features include at least one of keywords, utterances, and sound rays;
comparing the real-time voice characteristics with target voice characteristics to obtain a comparison result;
and judging whether the target voice event occurs according to the comparison result.
In some embodiments of the present disclosure, the preset game event is detected and determined according to a pre-trained detection model; wherein the apparatus may further comprise: optimizing the training subunit;
the optimizing training subunit may be configured to record real-time detection data corresponding to the preset game event if the video recording operation is not detected when the display duration of the prompt message reaches a preset duration;
Taking the real-time detection data as a negative sample of the detection model;
and carrying out optimization training on the detection model by using the negative sample to obtain an optimized detection model.
In some embodiments of the present disclosure, the video obtaining unit may be further configured to obtain video features of the video clip to be edited;
and acquiring a video editing template corresponding to the video features.
In some embodiments of the present disclosure, the video obtaining unit may be further configured to determine, in response to detecting an application selection operation, a video sharing application corresponding to the application selection operation;
and acquiring a video editing template corresponding to the video sharing application.
In some embodiments of the present disclosure, the video editing operation includes an adding operation to a target video clip of the at least one video clip;
wherein the first editing unit may be further configured to, in response to detecting the adding operation, regard the target video clip as the video clip to be edited;
and updating the edited duration of the target video according to the segment duration of the target video segment.
In some embodiments of the present disclosure, the video editing operation further includes an adjustment operation on the target video clip; the apparatus may further include: a segment duration updating unit;
The segment duration updating unit may be configured to adjust the game time range corresponding to the target video segment to the target time range corresponding to the adjustment operation in response to detecting the adjustment operation; the range duration of the target time range is smaller than or equal to the editable duration of the target video;
and updating the segment duration of the target video segment according to the target time range.
In some embodiments of the present disclosure, the video display unit may be further configured to display a video preview window and a first control corresponding to each video clip, where a control state of the first control includes a selected state and an unselected state, and the video preview window is configured to display a video clip to which the first control whose control state is the selected state belongs;
the target video clip is a video clip displayed in the video preview window.
In some embodiments of the present disclosure, the apparatus may include: a control state updating unit and a video clip updating unit;
the control state updating unit may be configured to update the control states of the first controls according to the control states of the target first controls when a first trigger operation on the target first controls in the plurality of first controls is detected;
The video clip updating unit may be configured to update the video clip displayed in the video preview window according to the control state of each first control.
In some embodiments of the present disclosure, the apparatus may include: a duration display unit and a video total duration update unit;
the duration display unit may be configured to display a total duration of the video of the target video and the edited duration;
the video total duration updating unit may be configured to update the video total duration with the target duration selected by the duration modification operation when the duration modification operation on the target video is detected.
In some embodiments of the present disclosure, the apparatus may include: an editing progress display unit and a video publishing unit;
the editing progress display unit may be configured to display a second control, where the second control displays the editing progress of the target video.
The video publishing unit may be configured to publish the target video when a second trigger operation on the second control is detected.
It should be noted that, the video editing apparatus 1100 shown in fig. 11 may perform the steps in the method embodiments shown in fig. 2 to 10, and implement the processes and effects in the method embodiments shown in fig. 1 to 10, which are not described herein.
The disclosed embodiments also provide a video editing device that may include a processor and a memory that may be used to store executable instructions. Wherein the processor may be configured to read the executable instructions from the memory and execute the executable instructions to implement the video editing method in the above embodiments.
Fig. 12 shows a schematic structural diagram of a video editing apparatus provided by an embodiment of the present disclosure. Referring now in particular to fig. 12, a schematic diagram of a configuration of a video editing apparatus 1200 suitable for use in implementing embodiments of the present disclosure is shown.
The video editing apparatus 1200 in the embodiment of the present disclosure may be an electronic apparatus. Among them, the electronic devices may include, but are not limited to, video editing devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable devices, and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, and the like.
It should be noted that the video editing apparatus 1200 shown in fig. 12 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 12, the video editing apparatus 1200 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1201, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage device 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data necessary for the operation of the video editing apparatus 1200 are also stored. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other through a bus 1204. An input/output (I/O) interface 1205 is also connected to the bus 1204.
In general, the following devices may be connected to the I/O interface 1205: input devices 1206 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 1207 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 1208 including, for example, magnetic tape, hard disk, etc.; and a communication device 1209. The communication means 1209 may allow the video editing device 1200 to communicate wirelessly or by wire with other devices to exchange data. While fig. 12 shows a video editing apparatus 1200 having various devices, it is to be understood that not all of the illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The present disclosure also provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the video editing method in the above embodiments.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. When the computer program is executed by the processing apparatus 1201, the above-described functions defined in the video editing method of the embodiment of the present disclosure are performed.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the video editing apparatus; or may exist alone without being assembled into the video editing apparatus.
The above computer-readable medium carries one or more programs which, when executed by the video editing apparatus, cause the video editing apparatus to perform:
responding to the starting of a target game, and acquiring at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
displaying the at least one video clip in response to the target game play ending;
When video editing operation on the at least one video clip is detected, obtaining a video clip to be edited and a video editing template corresponding to the video editing operation;
and performing video editing on the video clip to be edited based on the video editing template to obtain a target video.
In an embodiment of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (17)

1. A video editing method, comprising:
responding to the starting of a target game, and acquiring at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
displaying the at least one video clip in response to the target game play ending;
when video editing operation on the at least one video clip is detected, obtaining a video clip to be edited and a video editing template corresponding to the video editing operation;
performing video editing on the video clip to be edited based on the video editing template to obtain a target video;
obtaining a video editing template, comprising:
in response to detection of an application selection operation, determining a video sharing application corresponding to the application selection operation;
And acquiring a video editing template corresponding to the video sharing application.
2. The method of claim 1, wherein the obtaining at least one video clip corresponding to the target game pair comprises:
and responding to the detection of a preset game event, and automatically recording the game segment corresponding to the preset game event to obtain the video segment.
3. The method of claim 1, wherein the obtaining at least one video clip corresponding to the target game pair comprises:
in response to detecting a preset game event, displaying prompt information on a game interface, wherein the prompt information is used for prompting a user to record a game segment corresponding to the preset game event;
and responding to the detection of video recording operation, recording the game fragments corresponding to the preset game event, and obtaining the video fragments.
4. A method according to claim 2 or 3, wherein prior to said detecting a preset game event, the method further comprises:
predicting the probability of occurrence of a target game play event in the target game play based on a pre-trained detection model;
and determining that the preset game event is detected under the condition that the probability is greater than or equal to a preset probability threshold value.
5. A method according to claim 2 or 3, wherein prior to said detecting a preset game event, the method further comprises:
monitoring the times of occurrence of a target game operation event in a preset time window;
and determining that the preset game event is detected under the condition that the times are larger than or equal to a preset times threshold value.
6. The method of claim 2, wherein prior to the detecting the preset game event, the method further comprises:
under the condition that the user has voice acquisition permission, monitoring whether a target voice event occurs in the real-time voice of the user;
and under the condition that the occurrence of the target voice event is detected, determining that a preset game event is detected.
7. The method of claim 6, wherein monitoring whether a target voice event occurs in the user's real-time voice comprises:
extracting real-time voice characteristics from the user real-time voice; wherein the real-time speech features include at least one of keywords, utterances, and sound rays;
comparing the real-time voice characteristics with target voice characteristics to obtain a comparison result;
and judging whether the target voice event occurs according to the comparison result.
8. A method according to claim 3, wherein the predetermined game event is detected and determined according to a pre-trained detection model;
wherein after the prompt message is displayed on the game interface, the method further comprises:
if the video recording operation is not detected when the display time of the prompt message reaches the preset time, recording real-time detection data corresponding to the preset game event;
taking the real-time detection data as a negative sample of the detection model;
and carrying out optimization training on the detection model by using the negative sample to obtain an optimized detection model.
9. The method of claim 1, wherein the video editing operation comprises an add operation to a target video clip of the at least one video clip;
the obtaining the video clip to be edited corresponding to the video editing operation includes:
responding to the detection of the adding operation, and taking the target video segment as the video segment to be edited;
and updating the edited duration of the target video according to the segment duration of the target video segment.
10. The method of claim 9, wherein the video editing operation further comprises an adjustment operation on the target video clip;
Wherein, before the detecting the adding operation to the target video clip, the method further comprises:
in response to detecting the adjustment operation, adjusting the game time range corresponding to the target video clip to a target time range corresponding to the adjustment operation; the range duration of the target time range is smaller than or equal to the editable duration of the target video;
and updating the segment duration of the target video segment according to the target time range.
11. The method according to claim 9 or 10, wherein said displaying said at least one video clip comprises:
displaying a video preview window and a first control corresponding to each video clip, wherein the control states of the first control comprise a selected state and an unselected state, and the video preview window is used for displaying the video clip to which the first control with the control state being the selected state belongs;
the target video clip is a video clip displayed in the video preview window.
12. The method of claim 11, wherein prior to the detecting a video editing operation on the at least one video clip, the method further comprises:
When first triggering operation of a target first control in a plurality of first controls is detected, updating the control state of each first control according to the control state of the target first control;
and updating the video clips displayed in the video preview window according to the control states of the first controls.
13. The method of claim 9, wherein after the ending of the game in response to the target game, the method further comprises:
displaying the total video duration and the edited duration of the target video;
and when the time length modification operation of the target video is detected, updating the total time length of the video by using the target time length selected by the time length modification operation.
14. The method of claim 1, wherein after the ending of the game in response to the target game, the method further comprises:
displaying a second control, wherein the second control displays the editing progress of the target video;
wherein, after the obtaining the target video, the method further comprises:
and when the second triggering operation of the second control is detected, releasing the target video.
15. A video editing apparatus, comprising:
the video acquisition unit is configured to respond to the start of a target game, and acquire at least one video clip corresponding to the target game in the process of the target game; wherein the video clips include automatically recorded game clips and/or manually recorded game clips;
a video editing unit configured to display the at least one video clip in response to the target game play ending;
the first editing unit is configured to acquire a video clip to be edited and a video editing template corresponding to the video editing operation when the video editing operation of the at least one video clip is detected;
the second editing unit is configured to carry out video editing on the video clip to be edited based on the video editing template to obtain a target video;
the video acquisition unit is further configured to respond to detection of application selection operation, and determine a video sharing application corresponding to the application selection operation;
and acquiring a video editing template corresponding to the video sharing application.
16. A video editing apparatus, comprising:
A processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the video editing method of any of the preceding claims 1-14.
17. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the video editing method of any of the preceding claims 1-14.
CN202111117225.1A 2021-09-23 2021-09-23 Video editing method, device, equipment and medium Active CN113852767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111117225.1A CN113852767B (en) 2021-09-23 2021-09-23 Video editing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111117225.1A CN113852767B (en) 2021-09-23 2021-09-23 Video editing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113852767A CN113852767A (en) 2021-12-28
CN113852767B true CN113852767B (en) 2024-02-13

Family

ID=78979405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111117225.1A Active CN113852767B (en) 2021-09-23 2021-09-23 Video editing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113852767B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584599B (en) * 2022-03-18 2023-05-16 北京字跳网络技术有限公司 Game data processing method and device, electronic equipment and storage medium
CN117319728A (en) * 2022-06-21 2023-12-29 北京字跳网络技术有限公司 Method, apparatus, device and storage medium for audio-visual content sharing

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101981589A (en) * 2008-01-25 2011-02-23 索尼在线娱乐有限公司 System and method for creating, editing, and sharing video content relating to video game events
CN103701909A (en) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 Rapid generation method and system for video application
WO2019213809A1 (en) * 2018-05-07 2019-11-14 深圳市大疆创新科技有限公司 Video processing method and system, terminal device and system of mobile device
CN110536177A (en) * 2019-09-23 2019-12-03 北京达佳互联信息技术有限公司 Video generation method, device, electronic equipment and storage medium
CN110868631A (en) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 Video editing method, device, terminal and storage medium
US10645356B1 (en) * 2018-08-30 2020-05-05 Amazon Technologies, Inc. Targeted video streaming post-production effects
US10741213B1 (en) * 2018-03-01 2020-08-11 Gopro, Inc. Systems and methods for modifying video edits
CN111866587A (en) * 2020-07-30 2020-10-30 口碑(上海)信息技术有限公司 Short video generation method and device
CN112291484A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Video synthesis method and device, electronic equipment and storage medium
CN112866798A (en) * 2020-12-31 2021-05-28 北京字跳网络技术有限公司 Video generation method, device, equipment and storage medium
WO2021134240A1 (en) * 2019-12-30 2021-07-08 深圳市欢太科技有限公司 Game screen recording method and apparatus, and computer-readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117472A1 (en) * 2010-11-10 2012-05-10 Cyberlink Corp. Systems and Methods for Application of Special Effects to a Captured Video Stream
US20130294751A1 (en) * 2012-05-07 2013-11-07 Toshitsugu Maeda Method and Computer-Readable Medium for Creating and Editing Video Package Using Mobile Communications Device
US9452354B2 (en) * 2013-06-07 2016-09-27 Sony Interactive Entertainment Inc. Sharing three-dimensional gameplay
MY190933A (en) * 2016-09-08 2022-05-20 Goh Soo Siah Video ingestion framework for visual search platform
US20180330756A1 (en) * 2016-11-19 2018-11-15 James MacDonald Method and apparatus for creating and automating new video works
US11224804B2 (en) * 2018-07-17 2022-01-18 Roblox Corporation Personalized remote game update capture and recording system for multi-player online games
US11071914B2 (en) * 2018-11-09 2021-07-27 Steelseries Aps Methods, systems, and devices of providing portions of recorded game content in response to a trigger
US20200152237A1 (en) * 2018-11-13 2020-05-14 Zuoliang Chen System and Method of AI Powered Combined Video Production
CN109819179B (en) * 2019-03-21 2022-02-01 腾讯科技(深圳)有限公司 Video editing method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101981589A (en) * 2008-01-25 2011-02-23 索尼在线娱乐有限公司 System and method for creating, editing, and sharing video content relating to video game events
CN103701909A (en) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 Rapid generation method and system for video application
US10741213B1 (en) * 2018-03-01 2020-08-11 Gopro, Inc. Systems and methods for modifying video edits
WO2019213809A1 (en) * 2018-05-07 2019-11-14 深圳市大疆创新科技有限公司 Video processing method and system, terminal device and system of mobile device
CN110868631A (en) * 2018-08-28 2020-03-06 腾讯科技(深圳)有限公司 Video editing method, device, terminal and storage medium
US10645356B1 (en) * 2018-08-30 2020-05-05 Amazon Technologies, Inc. Targeted video streaming post-production effects
CN112291484A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Video synthesis method and device, electronic equipment and storage medium
CN110536177A (en) * 2019-09-23 2019-12-03 北京达佳互联信息技术有限公司 Video generation method, device, electronic equipment and storage medium
WO2021134240A1 (en) * 2019-12-30 2021-07-08 深圳市欢太科技有限公司 Game screen recording method and apparatus, and computer-readable storage medium
CN111866587A (en) * 2020-07-30 2020-10-30 口碑(上海)信息技术有限公司 Short video generation method and device
CN112866798A (en) * 2020-12-31 2021-05-28 北京字跳网络技术有限公司 Video generation method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
UGC视域下的网络视频内容模式创新研究;董紫薇;;传媒经济与管理研究(00);全文 *
使用手机剪映APP快速制作微课初探;卢保琅;王毅;;科技经济市场;20200715(07);全文 *

Also Published As

Publication number Publication date
CN113852767A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
US11206448B2 (en) Method and apparatus for selecting background music for video shooting, terminal device and medium
CN109413483B (en) Live content preview method, device, equipment and medium
CN110012339B (en) Video playing and displaying method, device, equipment and storage medium
CN111294663B (en) Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN111970577B (en) Subtitle editing method and device and electronic equipment
CN112911379B (en) Video generation method, device, electronic equipment and storage medium
KR20220103110A (en) Video generating apparatus and method, electronic device, and computer readable medium
WO2022143924A1 (en) Video generation method and apparatus, electronic device, and storage medium
WO2018157631A1 (en) Method and device for processing multimedia resource
CN109640129B (en) Video recommendation method and device, client device, server and storage medium
CN113852767B (en) Video editing method, device, equipment and medium
CN109660873B (en) Video-based interaction method, interaction device and computer-readable storage medium
EP4344223A1 (en) Video playing method and apparatus, and device and storage medium
CN113010698B (en) Multimedia interaction method, information interaction method, device, equipment and medium
WO2023051294A1 (en) Prop processing method and apparatus, and device and medium
CN112445395A (en) Music fragment selection method, device, equipment and storage medium
CN110958470A (en) Multimedia content processing method, device, medium and electronic equipment
CN113038236A (en) Video processing method and device, electronic equipment and storage medium
CN112188230A (en) Virtual resource processing method and device, terminal equipment and server
CN113157181B (en) Operation guiding method and device
CN113918522A (en) File generation method and device and electronic equipment
CN113111220A (en) Video processing method, device, equipment, server and storage medium
CN112380362A (en) Music playing method, device and equipment based on user interaction and storage medium
CN109960444B (en) Method, device and equipment for presenting shortcut of application program
CN115994266A (en) Resource recommendation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant