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

Video editing method, device, equipment and medium Download PDF

Info

Publication number
CN113852767A
CN113852767A CN202111117225.1A CN202111117225A CN113852767A CN 113852767 A CN113852767 A CN 113852767A CN 202111117225 A CN202111117225 A CN 202111117225A CN 113852767 A CN113852767 A CN 113852767A
Authority
CN
China
Prior art keywords
video
target
game
segment
preset
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.)
Granted
Application number
CN202111117225.1A
Other languages
Chinese (zh)
Other versions
CN113852767B (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

Images

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 start of the target game play, and acquiring at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments; displaying at least one video clip in response to the end of the target game play; when video editing operation on at least one video clip is detected, acquiring a video clip to be edited and a video editing template corresponding to the video editing operation; and performing video editing on the video segment to be edited based on the video editing template to obtain the target video. 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 requirements can be met.

Description

Video editing method, device, equipment and medium
Technical Field
The present disclosure relates to the field of video processing technologies, and in particular, to a method, an apparatus, a device, and a medium for video editing.
Background
With the popularization and the increase 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 retaining the wonderful moment in the game process, a plurality of games have video recording functions and are used for recording video segments of the wonderful game moment of the user and generating wonderful game moment collection videos according to the recorded video segments, however, each game can only generate wonderful game moment collection videos with uniform styles, and the requirement of the user on diversification of video effects cannot be met.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, 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 start of a target game play, and acquiring at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
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, acquiring 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 play and acquire at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
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 segment to be edited and a video editing template corresponding to the video editing operation when the video editing operation on the at least one video segment 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:
the video editing method, device, equipment and medium of the disclosed embodiment can respond to the start of the game of the target game, can acquire at least one video clip corresponding to the game of the target game in the process of the game of the target game, wherein the video clip can comprise an automatically recorded game clip and/or a manually recorded game clip, can display the recorded at least one video clip in response to the end of the game of the target game, can further acquire a video clip to be edited and a video editing template corresponding to the video editing operation after detecting the video editing operation on the at least one video clip, and can perform video editing on the video clip to be edited based on the video editing template to acquire a target video for video sharing, so that different video effects can be generated by combining different video clips to be edited and different video editing templates, 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 requirements can be met.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a video editing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a settlement interface for a target game match according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of automatically recording a video clip corresponding to a target game play according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a running interface of a target game match according to an embodiment of the disclosure;
fig. 5 is a schematic flowchart of a method for manually recording game segments according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a running interface of a target game match according to an embodiment of the disclosure;
FIG. 7 is a schematic diagram of a video editing interface of a target game match according to an embodiment of the disclosure;
FIG. 8 is a schematic view of a video editing interface for another target game play provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a video editing interface for a target game play according to an embodiment of the present disclosure;
FIG. 10 is a schematic view of a video editing interface for a further game pair provided by 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 are shown in the 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 rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the 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. Moreover, 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 "include" and variations thereof as used herein are 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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
With the popularization and the increase 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 retaining the wonderful moment in the game process, a plurality of games have video recording functions and are used for recording video segments of the wonderful game moment of the user and generating wonderful game moment collection videos according to the recorded video segments, however, each game can only generate wonderful game moment collection videos with uniform styles, and the requirement of the user on diversification of video effects cannot be met.
However, the current video recording function often has the following problems:
1. the game can only generate the highlight video with uniform style at the moment of the wonderful game;
2. the wonderful moment in the game running process can not be collected by self-definition, and the individuation is not strong;
3. the collected video clips are not editable and have low degree of freedom;
4. games are incompatible with short video applications or other applications with video playing capabilities, and have poor transmission coverage;
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 the uniform style at the moment cannot meet the diversified requirements of the user on the video effect; moreover, the recorded game segments often have video segments which are not interesting to the user, the video segments which are not interesting to the user cannot be freely edited, and the recorded video segments cannot be shared externally, so that the watching requirement, the editing requirement and the sharing requirement of the user on the video segments cannot be met, and the user experience is reduced.
In order to solve the above problem, embodiments of the present disclosure provide a video editing method, apparatus, device, and storage medium capable of obtaining a highlight video that can be synthesized to be of interest to a user.
In the disclosed embodiment, when a user wants to start a game match, a start operation for the game match can be input to the electronic device. The electronic device may start a game match after detecting a start operation, and then may obtain at least one video clip corresponding to the game match in a running process of the game match in response to the start of the game match, where the video clip may include a game clip corresponding to an automatically recorded user highlight game time and/or a game clip corresponding to a manually recorded user highlight game time. When the game is monitored to be over, at least one recorded video clip can be displayed, and then the video editing operation on the at least one video clip can be detected, the video clip to be edited and the video editing template corresponding to the video editing operation are obtained, so that the video editing on the video clip to be edited is carried out based on the video editing template, and a target video for video sharing is obtained, and therefore 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 and the video sharing requirements of the user on the video effects can be met.
According to the above scenario, a video editing method provided by the embodiment of the present disclosure is described below with reference to fig. 1 to 9. In the disclosed embodiments, 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 all-in-one machine, and a smart 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 provided by an embodiment of the present disclosure.
As shown in fig. 1, the video editing method may include the following steps.
S110, responding to the start of the target game play, and acquiring at least one video clip corresponding to the target game play in the process of the target game play.
Specifically, when the user wants to play the target game play, the start operation of the target game play may be input to the electronic device. The electronic equipment starts the target game play after detecting the starting operation, and then responds to the starting of the target game play to acquire at least one video clip corresponding to the target game play in the process of the target game play.
Optionally, the game type to which the target game pair belongs may include: a sports type, an action type, an adventure type, a simulation type, a role-playing type, a single machine type, a multiple machine type, etc., without limitation.
In the disclosed embodiment, the start operation may be an operation for triggering the start of the play of the target game pair.
In some embodiments, the launch operation may include, without limitation, a gesture control operation (e.g., a click, a long press, a double click, etc.), a voice control operation, or an emoticon control operation on an application icon of a target game application to which the target game play belongs.
Taking the starting operation as the clicking operation of the application icon of the target game play as an example, when the user wants to start and run the target game play, the user may click the application icon of the target game play, and after detecting that the user clicks the application icon of the target game play, the electronic device may start the target game play.
In other embodiments, the start operation may include, without limitation, a gesture control operation (e.g., a click, a long press, a double click, etc.), a voice control operation, or an expression control operation on a target game play-to-play corresponding launch control within an application interface of the target game application.
Alternatively, the run control may be any button or picture for triggering the target game to start running, and is not limited herein.
Taking the starting operation as the clicking operation of the running button of the target game play, when the user wants to start the target game play, the user can click the game icon of the target game play, so that the electronic device starts the target game play, and loads the starting interface of the target game play, and the running button of the target game play can be displayed on the starting interface. The user may click on the run button of the target game play and the target game play may be initiated after the electronic device detects that the user clicks on the run button of the target game play.
Optionally, the running control may be located at any position of the start interface, such as in the middle of the start interface and directly below the start interface, which is not limited herein.
In the disclosed embodiment, the video segments may optionally include automatically recorded game segments and/or manually recorded game segments.
Wherein the recorded game segment may be a segment containing a user's highlight game moment.
Wherein, the user's wonderful game moment can include: without limitation, a moment of excitement of the user, a moment of strain of the user, a moment of chagrin of the user, and a moment of surprise of the user.
In some embodiments, the electronic device may automatically record the game pieces during play of the target game play.
In other embodiments, the electronic device may manually record the game pieces during play of the target game play.
Therefore, in the embodiment of the disclosure, in the process of game match of the target game, the wonderful moment of the user in the process of game match can be recorded by using a plurality of video recording modes.
And S120, responding to the game alignment end of the target game, and displaying at least one video clip.
Specifically, the electronic device may display at least one video clip recorded during the game playing process in response to the game-play-to-game ending of the target game, so that the user edits the game instant of interest.
In the embodiment of the disclosure, in the process of running the target game play by the electronic device, whether the target game play is finished or not can be monitored in real time.
In some embodiments, the electronic device may monitor whether an end triggering operation of the target game play by the user is received in real time, and determine that the target game play is ended if the end triggering operation of the target game play by the user is received.
Wherein the user may be the user who is controlling the target game play, i.e. the user is a player of the target game play. During the operation of the target game play, the user can control the game mode of the target game play, the game state of the game character, and the like, and the control is not limited herein.
In the disclosed embodiment, the ending trigger operation may be an operation for triggering ending of the target game play.
Optionally, the ending trigger operation may include a gesture control operation (such as clicking, long pressing, double clicking, and the like), a voice control operation, or an expression control operation for a return control on the electronic device or an ending control on a running interface of the target game session, and is not limited herein.
The return control may be any button or icon for triggering the start interface for returning to the target game pair, which is not limited herein. The ending control may be any button or icon for triggering ending of running the target game pair, and is not limited herein.
Taking the ending trigger operation as the click operation on the ending control on the running page of the target game play, in the running process of the target game play, if the user wants to end the game, the ending control on the running page of the target game play can be clicked, and after detecting that the user clicks the ending control, the electronic device can determine that the target game play is ended.
In other embodiments, the electronic device may monitor the game result data of the target game play in real time, and determine that the target game play is over if the game result data is monitored.
Wherein the game result data may be data indicating a result of control of the target game play by the user.
For example, the target game play is a breakthrough game, and the game result data may include a game breakthrough result. As another example, the target game play may be an athletic game and the game outcome data may include game play outcomes.
In the disclosed embodiment, the electronic device may display the video clip based on the display mode of the video clip in response to the end of the target game play.
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 a settlement interface and display a video editing control within the settlement interface in response to the target game play ending, and the user may click on the video editing control, cause the electronic device to jump from the settlement interface to the video editing interface, and display at least one video clip within the video editing interface.
Optionally, the video editing control may be any button or icon for triggering a jump to the video editing interface, which is not limited herein.
Optionally, the video editing control may have a program identification feature of an application to which the video editing interface belongs, for example, the video editing control may include a graphic element or a color element in the program identification feature, which is not limited herein.
Optionally, the video editing interface may be a video playing interface for playing the game segment, and may also be a video editing interface for editing the game segment, which is not limited herein.
Fig. 2 is a schematic diagram illustrating a settlement interface of a target game match according to an embodiment of the 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 target game play ending, a settlement result of the target game play and a video display button 203 may be displayed in a settlement page, and a user may click the video display button 203 to jump the electronic device 201 from the settlement interface 202 to the video display interface to display a video clip in the video display interface.
Therefore, in the embodiment of the disclosure, in response to the end of the game match of the target game, the game moments of the user's wonderful game moments can be displayed, so that the user edits the game moments of interest.
S130, when the 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, in the process of displaying the video segments by the electronic device, if the user wants to edit the video segments, a video editing operation of at least one video segment is sent to the electronic device. When the electronic equipment detects the video editing operation, responding to the video editing operation to obtain a video segment to be edited and a video editing template.
In the 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 present disclosure, the video clip to be edited may be a video clip for synthesizing the target video, which is obtained based on the video editing operation.
In the embodiment of the present disclosure, the video editing template may be an editing template of a video segment to be edited selected by a user, or an editing template obtained by performing feature analysis on video features of the video segment to be edited.
In some embodiments, the video editing templates may be divided into landscape screen templates and portrait screen templates according to the video slates to be composited.
Specifically, the landscape template may be used to generate a target video for landscape playback. The vertical screen template can be used for generating a target video played in a vertical screen mode.
In other embodiments, the video editing template may be divided into a game-play global template and a game-play local template according to the degree of interest in the target game character.
Specifically, the complete game segment is retained in the target video frame generated based on the game global template. The picture of the target game character in the game segment is retained and the pictures of the other game characters in the game segment are deleted within the picture of the target video generated based on the game segment template.
Specifically, each video editing template can correspond to at least one sticker material, a text material, a special effect material, a filter material and the like.
Optionally, 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 materials as the sticker materials corresponding to the game characters as an example, after the electronic device acquires the video editing template, the sticker materials corresponding to the video editing template are determined to be the sticker materials corresponding to the game characters, so that the edited target video obtained based on the sticker materials corresponding to the game characters can display the characteristics of the game characters.
Optionally, 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 the text material corresponding to the game scene as an example, after the electronic device acquires the video editing template, the text material corresponding to the video editing template is determined to be 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: the specific materials corresponding to the game types, specific materials corresponding to the game characters, sticker materials corresponding to the game scenes, and the like, which are not limited herein.
Taking the special effect material as the special effect material corresponding to the game type as an example, after the electronic equipment acquires the video editing template, the electronic equipment determines that the special effect material corresponding to the video editing template is the special effect material corresponding to the game type, so that the edited target video obtained based on the special effect material corresponding to the game type can show the characteristics of the game type.
Optionally, the filter material may include: the filter materials corresponding to the game type, the filter materials corresponding to the game character, the filter materials corresponding to the game scene, etc., are not limited herein.
Taking the special effect material as the filter material corresponding to the game character as an example, after the electronic device acquires the video editing template, the electronic device determines that the special effect material corresponding to the video editing template is 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 show the filter effect.
And S140, video editing is carried out on the video clip to be edited based on the video editing template to obtain the target video.
Specifically, after the electronic device acquires 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 plate type to be synthesized of the video editing template, the attention degree to the target game character, the sticker material, the text material, the special effect material, the filter material and the like.
In the embodiment of the disclosure, at least one video segment corresponding to a target game play can be acquired in the process of the target game play in response to the start of the target game play, the video segment may include an automatically recorded game segment and/or a manually recorded game segment, and in response to the end of the target game play, the at least one recorded video segment can be displayed, and further, after a video editing operation on the at least one video segment is detected, a to-be-edited video segment and a video editing template corresponding to the video editing operation are acquired, so as to perform video editing on the to-be-edited video segment based on the video editing template, and obtain a target video for video sharing, so that different video effects can be generated by combining different to-be-edited video segments and different video editing templates, and the style of the video shared by a user is no longer single, the video sharing method and the video sharing device can meet the diversified requirements of users on video effects and the video sharing requirements.
In another embodiment of the present disclosure, when a preset game event is detected, a game segment may be automatically recorded to obtain a video segment including a user's highlight game moment.
In this embodiment of the present disclosure, optionally, the obtaining at least one video clip corresponding to the target game play in S110 may include:
and S1, responding to the detected preset game event, and automatically recording the game segment corresponding to the preset game event to obtain a video segment.
In the disclosed embodiment, the preset game event may be a game event for triggering automatic recording of a video clip.
Alternatively, the preset game event may be a game event including a user's highlight game time.
Specifically, the electronic device detects a preset game event in real time in the process of running the target game, determines the moment when the user wonderful game is detected if the preset game event is detected, and executes an operation of automatically recording a game segment corresponding to the preset game event in response to the detection of the preset game event to obtain the game segment.
Specifically, after the preset game event is detected, the game segment within the preset time period with the game time to which the preset game event belongs as the time midpoint may be recorded. The preset time period may be a preset time period set as required, for example, 5s, 15, and the like.
In some embodiments, prior to detecting the preset game event, the video editing method may further include:
and S01, predicting the probability of the target game match event in the target game match based on the pre-trained detection model.
And S02, determining that the preset game event is detected under the condition that the probability is greater than or equal to the preset probability threshold value.
Wherein, the pre-trained detection model can be obtained based on the sample video clip training. The sample video clip may have a sample marker, which may be a first marker indicating that it is a target game event or a second marker indicating that it is a non-target game event.
Alternatively, the target game event may include a killing event, a consecutive killing event, a shooting event, a group battle event, etc., without limitation.
Alternatively, the non-target game event may be a game event other than the 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, the electronic device inputs a game segment with a preset duration into a pre-trained detection model to obtain the probability of a target game match event in the target game match process, compares the probability with a preset probability threshold, determines that the 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, continues to detect the game segment with the 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 present disclosure, the preset game event may be detected based on a pre-trained detection model, and after the preset game event is detected, the preset game event is automatically recorded, so as to obtain the video clip.
In further embodiments, prior to detecting the predetermined game event, the video editing method may further comprise:
and S03, monitoring the frequency of the target game operation events in the preset time window.
And S04, determining that the preset game event is detected under the condition that the number is larger than or equal to the preset number threshold.
Wherein, the preset time window may be a preset time window for detecting the number of times the target game operation event is transmitted within a specified time.
Optionally, the target game operation event may include: a continuous click operation, a long press operation, a continuous slide operation, an event combining a continuous click operation and a continuous slide operation, and the like, which are not limited herein.
The preset time threshold may be a time threshold for determining whether the user highlight detection requirement is met.
Specifically, in the process of running the target game match, the electronic device detects the number of times of occurrence of the target game operation event in a preset time window, compares the number of times of the target game operation event with a preset number threshold, determines that the preset game event is detected if the number of times of the target game operation event is greater than the preset number threshold, further automatically records a game segment corresponding to the preset game event in response to the detection of the preset game event, and obtains a video segment, otherwise, determines that the preset game event is not detected, continues to detect the preset game event until the preset game event is detected, and detects the number of times of occurrence of the target game operation event in the preset time window, so that when the preset game event is detected, automatically records the game segment corresponding to the preset game event, and obtains the video segment.
Therefore, in the embodiment of the present disclosure, the preset game event may be detected by the number of times that the target game operation event occurs within the preset time window, and after the preset game event is detected, the preset game event is automatically recorded, so as to obtain the video clip.
In still other embodiments, before detecting the predetermined game event, the video editing method may further include:
and S05, monitoring whether a target voice event occurs in the real-time voice of the user under the condition that the voice acquisition authority is detected.
And S06, determining that the preset game event is detected under the condition that the target voice event is detected to occur.
In the embodiment of the present disclosure, the voice acquisition authority may be an instruction that allows acquisition of user voice information.
Specifically, when starting game match, the electronic equipment judges whether a voice acquisition permission is detected, if the voice acquisition permission is detected, monitors whether a target voice event occurs in real-time voice of a user, and if the voice acquisition permission is not detected, 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 target voice event is detected to occur, the preset game event is determined to be detected, if the target voice event is not detected, the preset game event is continuously detected until the target voice event is detected to occur, and the preset game event is determined to be detected.
The monitoring whether a target voice event occurs in the real-time voice of the user may include:
s051, extracting real-time voice features from the real-time voice of the user; wherein the real-time speech features include at least one of keywords, tones, and sound rays.
And S052, comparing the real-time voice characteristic with the target voice characteristic to obtain a comparison result.
And S053, judging whether the target voice event occurs according to the comparison result.
In the disclosed embodiment, the real-time voice of the user can be the sound content sent by the user in real time.
In embodiments of the present disclosure, the real-time speech feature may be an acoustic feature of the user's real-time speech.
Optionally, the real-time speech features may include at least one of keywords, tones, and sound lines.
Wherein the keyword may be a target word in a sentence spoken by a target user.
Optionally, the keywords may include: "Ye", "Ouyi", "Wa", "Wasse", etc., without limitation.
Where the intonation may be a luminal intonation of the utterance spoken by the target user.
Wherein the sound ray may be the timbre of the sound produced by the target user.
The target voice feature may be a voice feature for determining whether the user's highlight requirement is satisfied.
In the disclosed embodiment, S1 may include: and carrying out voice feature analysis on the real-time voice to obtain real-time voice features.
Optionally, the speech feature analysis may include: keyword parsing, intonation analysis and sound line analysis.
Specifically, when the target game is played, the electronic device judges whether an instruction allowing the user voice information to be acquired is acquired, if the instruction allowing the user voice information to be acquired is acquired, the electronic device determines that the electronic device has the voice acquisition permission, analyzes the acquired real-time voice of the user to extract real-time voice features, and if the instruction allowing the user voice information to be acquired is not detected, does not execute the operation of analyzing the acquired real-time voice of the user; in the process of extracting the real-time voice, if the real-time voice feature is consistent with the target voice feature, determining that the target voice event occurs, and therefore determining that the preset game event is detected, further responding to the detection of the preset game event, automatically recording the game segment corresponding to the preset game event to obtain a video segment, if the real-time voice feature is inconsistent with the target voice feature, determining that the target voice event does not occur, continuing to analyze the obtained real-time voice of the user until the real-time voice feature is consistent with the target voice feature, determining that the preset game event is detected, and further automatically recording the game segment corresponding to the preset game event to obtain the video segment.
Therefore, in the embodiment of the disclosure, when it is detected that the game has the voice acquisition permission, the preset game event can be automatically detected based on the real-time voice feature in the real-time voice, and after the preset game event is detected, the preset game event is automatically recorded to obtain the video clip.
Fig. 3 is a schematic flow chart illustrating a process of automatically recording a video segment corresponding to a target game play according to an embodiment of the present disclosure.
As shown in fig. 3, the process of automatically recording the video segment corresponding to the target game play may include the following steps.
S301, the electronic device 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, based on a pre-trained detection model, a probability of occurrence of a target game match event in the target game match, and if the probability is greater than or equal to a preset probability threshold, determine that the preset game event is detected, and perform S303, otherwise, return to perform S301; or, monitoring the frequency of the target game operation event occurring in the preset time window, if the frequency is greater than or equal to the preset frequency threshold, and the frequency of the target game operation event occurring in the preset time window is greater than or equal to the preset frequency threshold, determining that the preset game event is detected, and executing S303, otherwise, returning to execute S301; or, in the case that the target voice event is detected while having the voice acquisition authority, if the target voice event is detected to occur, it is determined that the preset game event is detected, and S303 is performed, otherwise, S301 is returned to.
S303, the electronic equipment responds to the preset game event, automatically records the game segment corresponding to the preset game event, and obtains the video segment.
In this embodiment of the disclosure, after the electronic device has recorded the video segment, the electronic device may further display a prompt message for prompting that the video segment corresponding to the preset game event has been recorded, so as to prompt the user that the video segment corresponding to the preset game event has been recorded.
In order to improve the interaction experience of the user when recording the video segment, in the embodiment of the present disclosure, fig. 4 shows a schematic diagram of a running interface of a target game match provided by the embodiment of the present disclosure.
As shown in fig. 4, in the running process of 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 detecting the preset game event, automatically record a game segment corresponding to the preset game event to obtain a video segment, and display a prompt message "the video segment is recorded" in the display area 403 to prompt a 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's highlight moment.
In this embodiment of the present disclosure, optionally, the obtaining at least one video clip corresponding to the target game play in S110 may include:
and S2, responding to the detection of the preset game event, displaying prompt information on the game interface, wherein the prompt information is used for prompting the user to record the game segment corresponding to the preset game event.
And S3, responding to the detected video recording operation, recording the game segment corresponding to the preset game event to obtain the video segment.
The game interface can be an interface for running a target game on the electronic equipment.
Wherein the video recording operation may be an operation for triggering recording of a game segment.
Optionally, the video recording operation may be a gesture control operation (such as clicking, long-time pressing, double-click, and the like), a voice control operation, or an expression control operation on a control where the prompt information is displayed, which is not limited herein.
Specifically, the electronic device monitors the user's wonderful game time in real time during the game-play of the target game, determines that a preset game event is detected if the user's wonderful game time is detected, and displays a prompt message on the game interface in response to the preset game event, so that the user sends a video recording operation to the electronic device based on the prompt message, and the electronic device can record a game segment corresponding to the preset game event in response to the video recording operation, thereby obtaining the video segment.
In some embodiments, prior to detecting the preset game event, the video editing method may further include:
and S07, predicting the probability of the target game match event in the target game match based on the 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 the preset probability threshold value.
S07-S08 are similar to S01-S02, and are not described herein.
Therefore, in the embodiment of the present disclosure, the preset game event may be detected based on a pre-trained detection model, and after the preset game event is detected, the game segment corresponding to the preset game event is recorded based on a video recording operation sent by a user, so as to obtain the video segment.
In further embodiments, prior to detecting the predetermined game event, the video editing method may further comprise:
s09, monitoring the frequency of the target game operation event in a preset time window;
and S10, determining that the preset game event is detected under the condition that the number is larger than or equal to the preset number threshold.
S09-S10 are similar to S03-S04, and are not described herein.
Therefore, in the embodiment of the present disclosure, the preset game event may be detected by the number of times that the target game operation event occurs within the preset time window, and after the preset game event is detected, the game segment corresponding to the preset game event is recorded based on the video recording operation sent by the user, so as to obtain the video segment.
In the embodiment 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 the prompt information is displayed on the game interface, the video editing method may further include:
and if the video recording operation is not detected when the display duration of the prompt message reaches the preset duration, recording real-time detection data corresponding to the preset game event.
And 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 the optimized detection model.
The real-time detection data may include, but is not limited to, real-time voice features, target game operation events, and the like.
The preset duration may be a duration used for determining whether the user is interested in the moment.
Optionally, the preset time period may be 2s, 3s, 5s, which is not limited herein.
Specifically, after the electronic device displays the prompt information on the game interface, if the display duration of the prompt information reaches the preset duration and no video recording operation is detected, real-time detection data corresponding to the preset game event is recorded, the real-time detection data is used as a negative sample of the detection model, the detection model is optimized and trained by using the negative sample to obtain the optimized detection model, further, after the preset game event is detected based on the same or similar real-time detection data next time, the game segment corresponding to the preset game event is not automatically recorded any more, the collection process of the game segment is more personalized, and if the display duration of the prompt information reaches the preset duration and the video recording operation is detected, the game segment corresponding to the preset game event is recorded, and the video segment is obtained.
Therefore, in the embodiment of the disclosure, when it is determined that the preset game event is detected, the electronic device may manually trigger and record the video clip corresponding to the preset game event in an interactive manner with the target user, so as to improve the interactive experience of the target user when recording the video clip, and meet the recording requirement of the user on the video clip.
Fig. 5 shows a flowchart of a method for manually recording game segments according to an embodiment of the present disclosure.
As shown in fig. 5, the method of manually recording game pieces may include the following steps.
S501, the electronic equipment detects a preset game event and responds to the preset game event to display prompt information on a game interface.
In the embodiment of the disclosure, the electronic device may predict, based on a pre-trained detection model, a probability of occurrence of a target game match event in a target game match, and if the probability is greater than or equal to a preset probability threshold, determine that the preset game event is detected, and continue to detect the preset game event; or, monitoring the frequency of the target game operation event occurring in the preset time window, if the frequency is greater than or equal to the preset frequency threshold, and the frequency of the target game operation event occurring in the preset time window is greater than or equal to the preset frequency threshold, determining that the preset game event is detected, and continuing to detect the preset game event; or, under the condition that the target voice event is detected while the voice acquisition permission is detected, if 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 segment corresponding to a preset game event.
And S502, displaying a video recording control by the electronic equipment.
The video recording control may be a control for acquiring a video recording operation.
S503, the electronic equipment determines whether the 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, records the game segment corresponding to the preset game event, and obtains the video segment.
In the embodiment of the present disclosure, when the electronic device detects a video recording operation, a game segment corresponding to a preset game event is recorded to obtain a video segment.
And S505, the electronic equipment determines whether the video recording control displays preset time.
In the embodiment of the present disclosure, if the electronic device does not detect the video recording operation in the preset time length, and the video recording control does not display the preset time length, the process returns to execute S502, otherwise, the process executes S506.
S506, the electronic equipment records real-time detection data corresponding to the preset game event, the real-time detection data are used as negative samples of the detection model, and the negative samples are used for carrying out optimization training on the detection model to obtain the optimized detection model.
In this disclosure, after the electronic device has recorded the video segment, the electronic device may further change a display state of a video recording control that detects the video recording operation, so as to remind the user that the video segment corresponding to the preset game event has been recorded.
Alternatively, the video recording control may be an icon or a button for detecting a video recording operation.
In order to improve the interaction experience of the user when recording the video segment, in the embodiment of the present disclosure, fig. 6 shows a schematic diagram of a running interface of a target game match provided by the embodiment of the present disclosure.
As shown in fig. 6, during the running of the target game, the electronic device 601 may display a running interface 602 of the target game, a game screen of the game play of the target game may be displayed in the running interface 602, if it is determined that the preset game event is detected, an icon 603 corresponding to a video recording control for triggering and confirming recording of 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 the preset time period, the icon 603 may be displayed in 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 time period, 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, use the real-time detection data as a negative sample of the detection model, and perform optimization training on the detection model by using the negative sample, and obtaining the optimized detection model.
In yet another embodiment of the present disclosure, after displaying the video clip, the electronic device may automatically acquire the video editing template, and may also 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, the acquiring of the video editing template in S130 may include:
s1301, acquiring video characteristics of the video clip to be edited.
And S1303, acquiring a video editing template corresponding to the video characteristics.
The video features can be used for representing game features of the video clip to be edited.
Optionally, the video features may include character features, scene features, game features, level features, and the like, which are not limited herein.
Optionally, the character characteristics may include, without limitation, the gender, clothing, and rating of the game character.
Optionally, the scene characteristics may include a battle scene, and an ending scene, which are not limited herein.
Optionally, the local features may include, without limitation, double local, multi-person local, etc. Specifically, the electronic device may perform feature extraction on at least one of character features, scene features, and opposite features in the video segment to be edited to obtain video features of the video segment to be edited, and screen out a video editing template corresponding to the video features from prestored editing templates based on the video features to edit the video segment based on the video editing template.
Taking the character extraction as an example, the electronic device may analyze the grades of characters in the video segment to be edited to extract the grade characteristics of the character characteristics, and if the grade characteristics are the highest grade, screen out the video editing template corresponding to the highest grade from the pre-stored editing templates to edit the video segment based on the video editing template, so as to generate the target video of the target game character.
Taking the extracted scene characteristics as an example, the electronic device may analyze a game scene in the video clip to be edited to extract the scene characteristics, and if the scene characteristics are a battle scene, screen out a video editing template corresponding to the battle scene from prestored editing templates to edit the video clip based on the video editing template to generate a target video of the game scene.
Taking the extraction of the match features as an example, the electronic device may analyze match conditions in the video segment to be edited to extract the match features, and if the match features are multiple-person match, screen out a video editing template corresponding to the multiple-person match from prestored editing templates to edit the video segment based on the video editing template to generate the target video of the match scene.
Therefore, in the embodiment of the disclosure, the video editing template corresponding to the video feature can be automatically obtained based on the video feature of the video segment to be edited, so that the video to be edited is edited based on the video editing template.
In other embodiments of the present disclosure, the acquiring a video editing template in S130 may include:
s1302, in response to the detection of the application selection operation, determining a video sharing application corresponding to the application selection operation.
And 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.
Optionally, the application selection operation may include a gesture control operation (such as clicking, long-pressing, double-clicking, and the like), 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.
Optionally, the application to be shared may be a short video application or another application having a video playing function.
Optionally, the application to be shared may be a first type of application for playing the target video in a landscape screen or a second type of application for playing the target video in a portrait screen.
Optionally, the first type of application program may include an audio video playing application program, a short video playing application program, a game, and the like, which is not limited herein.
Optionally, the second type of application may include a social application, and the like, without limitation.
Specifically, after the electronic device displays the video clip, the application selection operation can be monitored and detected in real time, if the application selection operation is detected, the video sharing application corresponding to the application selection operation is determined in response to the detection of the application selection operation, the display mode of the video sharing application is analyzed, and the video editing template corresponding to the application program to be shared is screened out from the pre-stored editing templates corresponding to the application programs according to the display mode, so that the video clip is edited based on the video editing template.
Taking a video sharing application as an audio-video playing application program as an example, after the electronic device displays a video clip, the electronic device may monitor and detect an application selection operation in real time, if the application selection operation is detected, respond to the detection of the application selection operation, determine that the video sharing application corresponding to the application selection operation is the audio-video playing application program, analyze a display mode of the audio-video playing application program, determine that the display mode is a landscape display mode, screen out a video editing template corresponding to the audio-video playing application program from editing templates corresponding to pre-stored application programs according to the landscape display mode, and edit the video clip based on the video editing template.
Taking a video sharing application as a social application program as an example, after the electronic device displays a video clip, the electronic device may monitor and detect an application selection operation in real time, if the application selection operation is detected, in response to the detection of the application selection operation, determine that the video sharing application corresponding to the application selection operation is the social application program, analyze a display mode of the social application program, determine that the display mode is a vertical screen display mode, and screen out a video editing template corresponding to the social application program from pre-stored editing templates corresponding to the application programs according to the vertical screen display mode, so as to edit the video clip based on the video editing template.
Therefore, in the embodiment of the disclosure, the video sharing application corresponding to the application selection operation can be determined based on the detected application selection operation, so as to obtain the video editing template corresponding to the video sharing application.
In another embodiment of the present disclosure, to improve the editability of the game segment, the video segment 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 acquire a video segment to be edited, the electronic device may determine a target video segment from the displayed at least one video segment to further determine the video segment to be edited based on the target video segment.
In this embodiment of the present disclosure, optionally, the displaying at least one video clip in S120 may include:
and displaying a video preview window and a first control corresponding to each video segment.
In an embodiment of the present disclosure, the video preview window may be used to display a video clip to which a first control whose control state is a selected state belongs.
In the disclosed embodiment, the first control may be any button or icon for selecting a target game segment displayed in the video preview window, and is not limited herein.
In embodiments of the present disclosure, the first control may be used to indicate a user highlight.
Optionally, the control states of the first control may include a selected state and an unselected state.
Optionally, the first control may be displayed in the middle, upper left, upper right, or any other display position of the video editing interface of the target game pair, which is not limited herein.
Optionally, the first control may have a program identification feature of the video sharing application, for example, the first control may contain a graphic element or a color element in the program identification feature, which is not limited herein.
In the disclosed embodiment, the target video segment is a video segment displayed within the video preview window.
In order to improve the viewing or editing experience of a user on a video clip, before the user edits a video clip to be edited, the target video clip can be selected through the first control displayed on the video editing interface, so that the user can select the video clip to be edited according to will, and the user is prompted to switch the target video clip by changing the control state of each first control.
In this embodiment of the present disclosure, optionally, before detecting a video editing operation of at least one video segment, the video editing method may further include:
when first trigger operation on 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 receiving the first trigger operation.
Wherein the first trigger operation may be a trigger operation for selecting a target video segment.
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 multiple 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 unselected states, and meanwhile, a target game segment selected by the target first control is displayed in the video preview window so as to update the video segment displayed in the video preview window.
Fig. 7 is a schematic diagram illustrating a video editing interface of a target game match according to 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 in the video editing interface 702, the first control 720 may include a first preset icon 7201, a second preset icon 7202 and 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 segment corresponding to the first preset icon 7201, the user clicks 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 segment corresponding to the first preset icon 7201 may be displayed in the video preview window 710. When a user wants to view or edit a target video clip corresponding to the second preset icon 7202, the user can click the second preset icon 7202, so that the electronic device 701 can 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, the display state of the second preset icon 7202 is a selected state, the display state of the first preset icon 7201 is converted into white, and the conversion of the selected state of the first preset icon 7201 into an unselected state is represented.
Therefore, in the embodiment of the disclosure, the target user can change the target video segment 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 segments.
In other embodiments of the present disclosure, 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 of the at least one video clip.
The obtaining of the to-be-edited video segment corresponding to the video editing operation in S130 may include:
in response to detecting the adding operation, 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 segment as the video segment to be edited.
Optionally, the adding operation may include a gesture control operation (such as clicking, long-pressing, double-clicking, and the like) on an adding control corresponding to the target video segment, a voice control operation, or an expression control operation.
The adding control may be any button or icon for triggering the addition of the target video segment to the target video, which is not limited herein.
Taking the adding operation as a clicking operation on the adding control as an example, the adding control can be displayed in a video editing interface of the electronic device, and in the process that the electronic device displays the target game segment in the video preview window, if it is detected that the user clicks the adding control, the electronic device can take the target game segment as a video segment to be edited so as to edit the video segment to be edited.
Wherein, the segment duration of the target video segment may be the playing duration of the target video segment.
Wherein the edited duration may be a time length of the edited game segment.
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.
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 time duration display control 730 and an add control 750 may also be displayed within the video editing community 702. Duration display control 730 may display the total duration of the video, e.g., 60s, and the edited duration, e.g., 0 s.
After the electronic device 701 detects the adding operation, the target video segment is taken as a video segment to be edited, and if the edited duration before updating is 0s and the segment duration of the target video segment is 15s, the updated edited duration after updating is 15s after adding the segment duration of the target video segment and the edited duration before updating.
In other embodiments, the video editing operations further comprise an adjustment operation to the target video segment.
Before the adding operation of the target video segment is detected, 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; wherein the range duration of the target time range is less 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.
Wherein, the adjusting operation may be an operation for adjusting a game time range corresponding to the target video clip.
Optionally, a time-duration selection control may be displayed in the video editing interface, and the time-duration selection control may be used to select the start time and the end time of the video clip.
Optionally, the adjusting operation on the target video segment may include a gesture control operation (e.g., dragging, clicking, 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.
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 the 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 segment is added to the target video.
Optionally, the editable time length is determined according to the total time length of the video and the edited time length.
The editable time length may be a difference between the total time length of the video and the edited time length. 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.
Wherein the total duration of the video may be a 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, and the like, which is not limited herein.
Wherein the edited duration may be a time length of the edited game segment. 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, time duration selection controls 740 may be displayed within video editing interface 702, and time duration selection controls 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 segment displayed in the video preview window 710, the selectable start time may be adjusted by sliding the start control 7401, or the selectable end time may be adjusted by sliding the end control 7402, or the start time of the target time range to be captured may be adjusted by sliding the start slider 7403, or the end time of the target time range to be captured may be adjusted by sliding the end slider 7404.
Therefore, in the embodiment of the disclosure, a user can flexibly adjust the game time range corresponding to the target video clip, and the editability of the wonderful moment of the game is improved, so that 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 segment of the at least one video segment.
The obtaining of the to-be-edited video segment 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 disclosed embodiment, the deletion operation of the target game piece may be an operation for triggering deletion of the target game piece from the target video.
Optionally, the deletion 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 deletion control.
The deletion control may be any button or icon for triggering deletion of the target game segment from the target video, which is not limited herein.
Taking the deletion operation as a click operation on the deletion control as an example, the deletion control can be displayed in the video editing interface, and in the process that the electronic device displays the target game segment in the video preview window, if the electronic device detects that the target user clicks the deletion control, the electronic device 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 edited duration before deleting the target game segment from the duration of the target game segment to obtain an updated edited duration, and replace the edited duration displayed by the third control with the updated edited duration.
Fig. 8 is a schematic diagram illustrating a video editing interface of another target game pair provided by an embodiment of the present disclosure.
As shown in fig. 8, a video editing interface 802 is displayed on the electronic device 801, a target video segment of 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 deletion control 805, the game segment at the game time corresponding to the first preset icon 804 is deleted from the target video, the first preset icon 804 is restored to be white, the display state of the preset icon 804 is an unselected state, and the duration display control 806 may be displayed as "0 s/60 s" to prompt the target user that the total video duration of the target video is 60s and the edited duration is 0 s.
In the embodiment of the disclosure, the user can delete the target game video to meet the video editing requirement of the target user.
Therefore, in the embodiment of the present disclosure, the user may delete the target game segment to meet the video editing requirement of the target user.
In still other embodiments of the present disclosure, in order to further improve the experience of the target user for video editing, the target user may further change the total video duration of the target video to be shared, which is synthesized based on the video segments.
In an embodiment of the present disclosure, after the game play is ended in response to the target game, the video editing method may further include:
displaying the total video duration and the edited video duration of the target video;
and when the time length modification operation on the target video is detected, updating the total video time length by using the target time length selected by the time length modification operation.
Wherein the total duration of the video may be a 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, and the like, which is not limited herein.
Wherein the edited duration may be a time length of the edited game segment. The edited duration may be any length of time less than or equal to the total duration of the video.
Fig. 9 is a schematic diagram illustrating a video editing interface of another target game play provided by an embodiment of the present disclosure.
Referring to fig. 9, an electronic device 901 displays a video editing interface 902, and a target video segment 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, 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 the 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 in fig. 7 to 15 s.
Therefore, in the embodiment of the disclosure, the electronic device can display the total video duration and the edited duration of the target video to be shared, so that a user can visually know the editable total duration and the editing progress of the target video to be shared, the user is further assisted in video editing, and the total video duration can be updated by using the target duration selected by the duration modification operation.
In still other embodiments of the present disclosure, in order to meet the sharing experience of the user on the target video, a second control may be further displayed in the video editing interface, and the target video is released based on detection of a second trigger operation on the second control.
In this disclosure, optionally, after responding to the end of 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;
after the target video is obtained, the video editing method further comprises the following steps:
and when a second trigger operation on the second control is detected, publishing 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 this embodiment of the disclosure, the second control may be any button or icon used to prompt the editing progress of the target video and trigger video sharing of the target video, which is not limited herein.
Optionally, 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 graphic 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 duration of the video. Specifically, the editing progress of the target video may be a ratio of the edited duration to the total duration of the video. The second control can display a progress bar indicating the proportion to prompt the editing progress of the target video.
Further, the user can 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, and the like) on the second control, a voice control operation, or an expression control operation.
Fig. 10 is a schematic diagram illustrating a video editing interface of another target game play 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 a target video, the display state of the first preset icon 1004 is adjusted to a "√" 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 currently been edited, the second control 1005 may be clicked to share it. For example, the target video is published in the application program to which the video editing interface 1002 belongs, or the target video is published in another application program other than the application program, or the target video is sent to at least one user who wants to share the target video.
In the embodiment of the present disclosure, optionally, a special effect button and a filter button may be further displayed in the video editing interface. The special effect button can be used for adding a special effect to the target video, and the filter button can be used for adding a filter to the 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 a user can edit 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 also share the target video quickly through the fourth control, the sharing experience of the user is met, and the spreading and covering capability of the game segment is improved.
The embodiment of the present disclosure further provides a video editing apparatus for implementing the above-mentioned video editing method, which is described below with reference to fig. 11. In the 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) all-in-one machine, an intelligent home device, and other devices having a communication function.
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 acquiring unit 1110 may be configured to, in response to a start of a target game play, acquire at least one video clip corresponding to the target game play during a progress of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
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 a video editing operation on the at least one video segment is detected, acquire a video segment 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 segment to be edited based on the video editing template, so as to obtain a target video.
In the embodiment of the disclosure, at least one video segment corresponding to a target game play can be acquired in the process of the target game play in response to the start of the target game play, the video segment may include an automatically recorded game segment and/or a manually recorded game segment, and in response to the end of the target game play, the at least one recorded video segment can be displayed, and further, after a video editing operation on the at least one video segment is detected, a to-be-edited video segment and a video editing template corresponding to the video editing operation are acquired, so as to perform video editing on the to-be-edited video segment based on the video editing template, and obtain a target video for video sharing, so that different video effects can be generated by combining different to-be-edited video segments and different video editing templates, and the style of the video shared by a user is no longer single, the video sharing method and the video sharing device can meet the diversified requirements of users on video effects and the video sharing requirements.
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 the user to record a game segment corresponding to the preset game event;
and responding to the detected video recording operation, recording the game segment corresponding to the preset game event to obtain the video segment.
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 match event in the target game match based on a pre-trained detection model;
determining that the preset game event is detected if the probability is greater than or equal to a preset probability threshold.
In some embodiments of the present disclosure, the preset game event detecting unit may be further configured to monitor a number of times that the target game operation event occurs within a preset time window;
determining that the preset game event is detected when the number of times is greater than or equal to a preset number of times threshold.
In some embodiments of the present disclosure, the preset game event detecting unit may be further configured to monitor whether a target voice event occurs in real-time voice of the user when detecting that the preset game event has a voice obtaining authority;
and determining that a preset game event is detected under the condition that the target voice event is detected to occur.
In some embodiments of the present disclosure, the preset game event detecting unit may be further configured to extract a real-time voice feature from the real-time voice of the user; wherein the real-time voice features comprise at least one of keywords, tones and sound rays;
comparing the real-time voice features with target voice features 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 device can also include: optimizing the training subunit;
the optimization 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 information reaches a preset duration;
taking the real-time detection data as a negative sample of the detection model;
and performing 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 characteristics of the video segment to be edited;
and acquiring a video editing template corresponding to the video characteristics.
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 comprises an add operation to a target video segment of the at least one video segment;
wherein the first editing unit may be further configured to take the target video segment as the video segment to be edited in response to detecting the adding operation;
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 comprises an adjustment operation on the target video segment; the apparatus may further include: a segment duration updating unit;
the segment duration updating unit may be configured to adjust, in response to detecting the adjustment operation, a game time range corresponding to the target video segment to a target time range corresponding to the adjustment operation; wherein the range duration of the target time range is less 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 the control states of the first controls include a selected state and an unselected state, and the video preview window is used to display the video clip to which the first control whose control state is the selected state belongs;
and 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: the control state updating unit and the video clip updating unit;
the control state updating unit may be configured to update the control state of each of the first controls according to the control state of a target first control when a first trigger operation on the target first control 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 of the first controls.
In some embodiments of the present disclosure, the apparatus may include: the device comprises a time length display unit and a video total time length updating unit;
wherein the duration display unit may be configured to display the video total duration and the edited duration of the target video;
the video total duration updating unit may be configured to update the video total duration with the target duration selected by the duration modifying operation when the duration modifying operation on the target video is detected.
In some embodiments of the present disclosure, the apparatus may include: the editing progress display unit and the 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 each step in the method embodiments shown in fig. 2 to 10, and implement each process and effect in the method embodiments shown in fig. 1 to 10, which are not described herein again.
Embodiments of the present disclosure also provide a video editing device that may include a processor and a memory that may be used to store executable instructions. 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 specifically to fig. 12, a schematic diagram of a video editing apparatus 1200 suitable for 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., car navigation terminals), wearable devices, and the like, and stationary 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 bring any limitation to the functions and the use range of the embodiment 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 graphic processor, etc.) 1201 that can perform various appropriate actions and processes in accordance with 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 apparatus 1201, the ROM 1202, and the RAM 1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
Generally, the following devices may be connected to the I/O interface 1205: input devices 1206 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 1207 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, or the like; storage devices 1208 including, for example, magnetic tape, hard disk, etc.; and a communication device 1209. The communication means 1209 may allow the video editing apparatus 1200 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 12 illustrates a video editing apparatus 1200 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
The embodiments of the present disclosure also provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, causes the processor to implement the video editing method in the above-described embodiments.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. The computer program performs the above-described functions defined in the video editing method of the embodiment of the present disclosure when executed by the processing apparatus 1201.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., 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 network.
The computer readable medium may be included in the video editing apparatus; or may exist separately without being assembled into the video editing apparatus.
The 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 start of a target game play, and acquiring at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
displaying the at least one video clip in response to the end of the target game play;
when video editing operation on the at least one video clip is detected, acquiring 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 embodiments of the present disclosure, computer program code for carrying out operations of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), 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. A 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 exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.

Claims (19)

1. A video editing method, comprising:
responding to the start of a target game play, and acquiring at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
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, acquiring 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.
2. The method of claim 1, wherein the obtaining at least one video clip corresponding to the target game play comprises:
and responding to the detection of a preset game event, and automatically recording a 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 play comprises:
responding to the detection of 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 detected video recording operation, recording the game segment corresponding to the preset game event to obtain the video segment.
4. The method of 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 match event in the target game match based on a pre-trained detection model;
determining that the preset game event is detected if the probability is greater than or equal to a preset probability threshold.
5. The method of claim 2 or 3, wherein prior to said detecting a preset game event, the method further comprises:
monitoring the frequency of occurrence of target game operation events in a preset time window;
determining that the preset game event is detected when the number of times is greater than or equal to a preset number of times threshold.
6. The method of claim 2, wherein prior to said detecting a preset game event, the method further comprises:
monitoring whether a target voice event occurs in real-time voice of a user under the condition that the voice acquisition permission is detected;
and determining that a preset game event is detected under the condition that the target voice event is detected to occur.
7. The method of claim 6, wherein the monitoring whether a target voice event occurs in the real-time voice of the user comprises:
extracting real-time voice features from the real-time voice of the user; wherein the real-time voice features comprise at least one of keywords, tones and sound rays;
comparing the real-time voice features with target voice features to obtain a comparison result;
and judging whether the target voice event occurs according to the comparison result.
8. The method of claim 3, wherein the predetermined game event is determined by detection according to a pre-trained detection model;
wherein after the displaying of the prompt message on the game interface, the method further comprises:
if the video recording operation is not detected when the display duration of the prompt message reaches a preset duration, 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 performing 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 obtaining the video editing template comprises:
acquiring video characteristics of the video clip to be edited;
and acquiring a video editing template corresponding to the video characteristics.
10. The method of claim 1, wherein the obtaining the video editing template comprises:
in response to detecting 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.
11. The method of claim 1, wherein the video editing operation comprises an add operation to a target video segment of the at least one video segment;
the acquiring the video clip to be edited corresponding to the video editing operation includes:
in response to detecting the adding operation, 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.
12. The method of claim 11, wherein the video editing operation further comprises an adjustment operation on the target video segment;
wherein, prior to the detecting the add operation to the target video segment, the method further comprises:
in response to detecting the adjustment operation, adjusting a game time range corresponding to the target video clip to a target time range corresponding to the adjustment operation; wherein the range duration of the target time range is less 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.
13. The method according to claim 11 or 12, wherein said displaying said at least one video segment comprises:
displaying a video preview window and a first control corresponding to each video clip, wherein the control states of the first controls 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;
and the target video clip is a video clip displayed in the video preview window.
14. The method of claim 13, wherein prior to said detecting a video editing operation on said at least one video segment, said method further comprises:
when a first trigger operation on 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.
15. The method of claim 11, wherein after the ending of the game play 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 on the target video is detected, updating the total video time length by using the target time length selected by the time length modification operation.
16. The method of claim 1, wherein after the ending of the game play in response to the target game, the method further comprises:
displaying a second control, wherein the editing progress of the target video is displayed on the second control;
wherein after the obtaining the target video, the method further comprises:
and when a second trigger operation on the second control is detected, the target video is published.
17. A video editing apparatus, comprising:
the video acquisition unit is configured to respond to the start of a target game play and acquire at least one video clip corresponding to the target game play in the process of the target game play; wherein the video segments comprise automatically recorded game segments and/or manually recorded game segments;
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 segment to be edited and a video editing template corresponding to the video editing operation when the video editing operation on the at least one video segment 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.
18. A video editing apparatus characterized by 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 one of claims 1 to 16.
19. 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 carry out the video editing method of any one of the preceding claims 1-16.
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 true CN113852767A (en) 2021-12-28
CN113852767B 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)

Cited By (2)

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

Citations (20)

* 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
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
CN103701909A (en) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 Rapid generation method and system for video application
US20140364228A1 (en) * 2013-06-07 2014-12-11 Sony Computer Entertainment Inc. Sharing three-dimensional gameplay
US20180330756A1 (en) * 2016-11-19 2018-11-15 James MacDonald Method and apparatus for creating and automating new video works
WO2019213809A1 (en) * 2018-05-07 2019-11-14 深圳市大疆创新科技有限公司 Video processing method and system, terminal device and system of mobile device
US20190354766A1 (en) * 2016-09-08 2019-11-21 Aiq Pte. Ltd Video ingestion framework for visual search platform
CN110536177A (en) * 2019-09-23 2019-12-03 北京达佳互联信息技术有限公司 Video generation method, device, electronic equipment and storage medium
US20200023275A1 (en) * 2018-07-17 2020-01-23 Roblox Corporation Personalized Remote Game Update Capture and Recording System for Multi-Player Online Games
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
US20200152237A1 (en) * 2018-11-13 2020-05-14 Zuoliang Chen System and Method of AI Powered Combined Video Production
US20200147489A1 (en) * 2018-11-09 2020-05-14 Steelseries Aps Methods, systems, and devices of social networking with portions of recorded game content
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
US20210264952A1 (en) * 2019-03-21 2021-08-26 Tencent Technology (Shenzhen) Company Limited Video editing method, apparatus, and device, and storage medium

Patent Citations (20)

* 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
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
US20140364228A1 (en) * 2013-06-07 2014-12-11 Sony Computer Entertainment Inc. Sharing three-dimensional gameplay
CN103701909A (en) * 2013-12-26 2014-04-02 乐视致新电子科技(天津)有限公司 Rapid generation method and system for video application
US20190354766A1 (en) * 2016-09-08 2019-11-21 Aiq Pte. Ltd 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
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
US20200023275A1 (en) * 2018-07-17 2020-01-23 Roblox Corporation Personalized Remote Game Update Capture and Recording System for Multi-Player Online Games
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
US20200147489A1 (en) * 2018-11-09 2020-05-14 Steelseries Aps Methods, systems, and devices of social networking with portions of recorded game content
US20200152237A1 (en) * 2018-11-13 2020-05-14 Zuoliang Chen System and Method of AI Powered Combined Video Production
US20210264952A1 (en) * 2019-03-21 2021-08-26 Tencent Technology (Shenzhen) Company Limited Video editing method, apparatus, and device, and storage medium
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
卢保琅;王毅;: "使用手机剪映APP快速制作微课初探", 科技经济市场, no. 07, 15 July 2020 (2020-07-15) *
董紫薇;: "UGC视域下的网络视频内容模式创新研究", 传媒经济与管理研究, no. 00 *

Cited By (3)

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

Also Published As

Publication number Publication date
CN113852767B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN110012339B (en) Video playing and displaying method, device, equipment and storage medium
CN111970577B (en) Subtitle editing method and device and electronic equipment
WO2022152064A1 (en) Video generation method and apparatus, electronic device, 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
CN111294663A (en) Bullet screen processing method and device, electronic equipment and computer readable storage medium
US11277668B2 (en) Methods, systems, and media for providing media guidance
CN109660873B (en) Video-based interaction method, interaction device and computer-readable storage medium
CN113852767B (en) Video editing method, device, equipment and medium
CN113010704B (en) Interaction method, device, equipment and medium for conference summary
WO2023051294A1 (en) Prop processing method and apparatus, and device and medium
CN113038236A (en) Video processing method and device, electronic equipment and storage medium
CN113010698A (en) Multimedia interaction method, information interaction method, device, equipment and medium
CN111935357A (en) Multimedia playing method and equipment
JP2023538943A (en) Audio data processing methods, devices, equipment and storage media
CN112188230A (en) Virtual resource processing method and device, terminal equipment and server
CN110958470A (en) Multimedia content processing method, device, medium and electronic equipment
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
KR20220135203A (en) Automatic recommendation music support system in streaming broadcasting
CN114925274A (en) Media content playing method, device, equipment, storage medium and product
CN112261470A (en) Audio processing method and device

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