CN111212316B - Video generation method and electronic equipment - Google Patents
Video generation method and electronic equipment Download PDFInfo
- Publication number
- CN111212316B CN111212316B CN201911260317.8A CN201911260317A CN111212316B CN 111212316 B CN111212316 B CN 111212316B CN 201911260317 A CN201911260317 A CN 201911260317A CN 111212316 B CN111212316 B CN 111212316B
- Authority
- CN
- China
- Prior art keywords
- video
- time point
- time
- preset
- screen recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/23—Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a video generation method and electronic equipment, wherein the method comprises the following steps: in the running process of an application program, receiving a receiving and recording screen instruction through a screen recording operation input interface in the electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from the first video; and sequencing the video clips according to the time sequence to generate a target video. According to the video generation method disclosed by the embodiment of the invention, on one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function is applicable to a plurality of application programs and has strong universality; on the other hand, in the embodiment of the invention, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments can be managed conveniently.
Description
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to a video generation method and electronic equipment.
Background
With the increasing variety of applications, the experience demand of the electronic device user for the applications is higher and higher. Besides the requirements for the basic functions of the application program, the user also has the recording requirements for the segments in the running process of the application program, such as: the method is used for recording the wonderful segment in the process of the electronic competitive game.
At present, aiming at the recording of segments in the running process of an application program, a screen recording function, a highlight moment clipping function and the like are built in the application program. The prior method has the following disadvantages: on one hand, the screen recording function and the highlight moment clipping function are both arranged in the application program, so that the method is only suitable for a single application program and has no universality. If the same application program developer needs to set the functions of screen recording and highlight moment editing in various application programs, the application program loading packages need to be developed one by one, and a large amount of manpower and material resources need to be consumed. On the other hand, the highlight time clipping function can only clip in segments, and it is inconvenient for the user to manage the clipped scattered segment video.
Disclosure of Invention
The embodiment of the invention provides a video generation method and electronic equipment, and aims to solve the problems of poor universality and inconvenience for a user to manage fragmented videos obtained by clipping in the existing scheme of setting a screen recording function and a highlight moment clipping function in an application program.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a video generation method, where the method is applied to an electronic device, and the method includes: in the running process of an application program, receiving a receiving and recording screen instruction through a screen recording operation input interface in the electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from the first video; and sequencing the video clips according to the time sequence to generate a target video.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the instruction receiving module is used for receiving a screen recording instruction through a screen recording operation input interface in the electronic equipment in the running process of an application program; the first generation module is used for recording a screen to generate a first video under the condition of receiving a screen recording instruction; the extraction module is used for extracting a video clip of a preset type from the first video; and the second generation module is used for sequencing all the video clips according to the time sequence to generate the target video.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of any one of the video generation methods described in the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of any one of the video generation methods described in the embodiments of the present invention.
In the embodiment of the invention, in the running process of the application program, a recording screen command is received through a recording screen operation input interface in the electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from a first video; and sequencing the video clips according to the time sequence to generate the target video. On one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function can be suitable for a plurality of application programs and has strong universality; on the other hand, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments are convenient to manage.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a video generation method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of the steps of a video generation method according to a second embodiment of the invention;
fig. 3 is a block diagram of an electronic device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a video generation method according to a first embodiment of the present invention is shown.
The video generation method of the embodiment of the invention comprises the following steps:
step 101: and in the running process of the application program, receiving a screen recording instruction through a screen recording operation input interface in the electronic equipment.
The screen recording operation input interface exists independently of the running application program, for example: when the running application is a game application, the screen recording operation input interface can be arranged in the game assistant, and the game assistant is installed in the electronic equipment as a plug-in and can provide screen recording operation for a plurality of different game applications. The screen recording command can be used for selecting the screen recording operation input interface. In the running process of the game application program, a user can execute preset operation in the game assistant to call out a function menu, select a screen recording function option in the menu, namely a screen recording operation input interface, select the screen recording function option, and trigger the electronic equipment to record a screen.
Step 102: and under the condition of receiving a screen recording instruction, screen recording generates a first video.
The screen recording duration can be preset, the screen recording can be stopped when a screen recording stopping instruction of a user is received, and the screen recording can be automatically stopped after the application program is operated.
Step 103: video clips of a preset type are extracted from the first video.
The preset types can be set by those skilled in the art according to actual requirements, and the preset types corresponding to different application programs are different. For example: the preset type corresponding to the game application program can be killing or continuous killing; the preset type corresponding to the multimedia application program can be music climax or specific plot, etc.
Step 104: and sequencing the video clips according to the time sequence to generate the target video.
The video clips can be separated by preset time length, so that the video clips can be distinguished conveniently during playing. Of course, the method is not limited to this, and cut scenes, preset images, and the like may be added between adjacent video clips.
According to the video generation method provided by the embodiment of the invention, in the running process of an application program, a receiving and recording screen command is received through a screen recording operation input interface in electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from a first video; and sequencing the video clips according to the time sequence to generate the target video. On one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function can be suitable for a plurality of application programs and has strong universality; on the other hand, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments are convenient to manage.
Example two
Referring to fig. 2, a flowchart illustrating steps of a video generation method according to a second embodiment of the present invention is shown.
The video generation method of the embodiment of the invention comprises the following steps:
step 201: and in the running process of the application program, receiving a screen recording instruction through a screen recording operation input interface in the electronic equipment.
A manner of receiving a radio screen command, preferably through a radio screen operation input interface in an electronic device, is:
firstly, receiving a first input of a user in a preset plug-in the running process of an application program;
the application run may be any suitable application, such as: game applications, multimedia-like applications, and the like. When the running application is a game application, the preset plug-in may be a game assistant, and the first input may be to draw a function menu to the right in a game assistant interface.
Secondly, responding to the first input and displaying a function menu;
the function menu comprises a screen recording operation input interface;
the screen recording operation input interface can be a game recording function option set in the function menu.
And thirdly, receiving the selection operation of the user on the screen recording operation input interface to generate a screen recording instruction.
Step 202: and under the condition of receiving a screen recording instruction, screen recording generates a first video.
When the screen is recorded, the electronic equipment determines the screen recording code rate according to the configuration of the electronic equipment, the screen recording code rate is the maximum code rate which can be borne under the condition that the electronic equipment simultaneously runs games and records the screen and the screen is not blocked, and the first video recording is carried out according to the determined screen recording code rate in the whole screen recording process. The method includes the steps that after selection operation of the screen recording operation input interface is received, a screen recording code rate setting interface is displayed, the screen recording code rate setting interface comprises a plurality of selectable screen recording code rates, and a user can select a target screen recording code rate according to actual requirements. Screen recording rates may include, but are not limited to: 480P or 720P.
And temporarily storing the recorded and generated first video in the electronic equipment so as to process the first video in the following process and finally generate the target video.
Step 203: and determining each time point for triggering the preset event in the running process of the application program according to the running log of the application program.
The log records the occurrence time and the occurrence time of each event in the running process of the application program, taking the running log of the game application program as an example, wherein the running log comprises the time of the killing event, and the time point when the user starts killing can be identified through the user name, namely the time point when the user triggers the preset event.
Step 204: and intercepting a video clip of a preset type corresponding to each preset event from the first video according to each time point.
The preset type of video segment may be a video segment containing only one preset event, or a video segment containing a plurality of preset events. Taking the running application as a game application as an example, if the preset event is a killing event, the preset type of video clip may be a single-killing clip or a multi-killing clip.
A manner of preferably intercepting, from the first video, a segment of a preset type corresponding to each preset event according to each time point is as follows:
firstly, screening from all time points to obtain a first time point and a second time point;
the time interval between two adjacent first time points is greater than a first preset time length, and the time interval between two adjacent second time points is less than or equal to the first preset time length; the first preset duration may be set by a person skilled in the art according to a specific application scenario, which is not specifically limited in the implementation of the present invention.
Secondly, intercepting a first video clip corresponding to each first time point from the first video;
each first time point corresponds to one first video clip, the starting point of each first video clip is positioned before the corresponding first time point, the time interval between the starting point of each first video clip and the corresponding first time point is a second preset time length, the end point of each first video clip is positioned behind the corresponding first time point, and the time interval between the end point of each first video clip and the corresponding first time point is a third preset time length; the first video segment is a video segment containing a single preset event. The specific values of the second preset duration and the third preset duration may be set by a person skilled in the art according to a specific application scenario, which is not specifically limited in the embodiment of the present invention.
Thirdly, dividing each second time point into a time point set respectively, namely dividing each second time point which is continuous in time point sequencing into the same time point set; for each time point set, determining a first time point ordered at the first bit and a last time point ordered at the last bit in the time point set; and respectively intercepting a second video clip corresponding to each time point set from the first video according to a first time point and a last time point corresponding to each time point set. Wherein there is no first time point between successive second time points in the time point sequence.
For example: determining that five time points triggering a preset event in the movement process of the application program are A, B, C, D and E respectively through the running log of the application program, wherein C is a first time point, A, B, D and E are second time points, A and B are continuous second time points, A and B are divided into a second time point set, D and F are continuous second time points, and D and F are divided into the second time point set.
The second video segment is a video segment containing a plurality of preset events.
Taking the first video as the game video as an example, after the killing time is locked, video clips 10 seconds before and 3 seconds after the killing time point identified by the running log in the recorded video are intercepted, the series of video clips are called as 'killing clips' and 'the recording of the killing clips', the purpose is only to record the operation generated at the moment of killing, the whole killing process does not need to be completely recorded, and therefore, the recording of 10 seconds before the moment of killing is enough to represent the killing process. The setting of the '10 seconds before the killing moment' is related to 'multi-killing judgment' of the game, the 'multi-killing judgment' of the game requires that the time interval between two times of killing is not more than 10 seconds, so that if the distance between 1-5 recognized killing moments is within 10 seconds, the user can understand that the multi-killing is finished, under the condition, 1-5 recognized killing moments with the distance within 10 seconds are sequenced according to time sequence, and the video from the 10 seconds before the first killing moment to the 3 seconds after the last killing moment is intercepted and recorded as 'multi-killing fragments'.
Step 205: and sequencing the video clips according to the time sequence.
After the first video clip and the second video clip are intercepted, the first video clip and the second video clip are sequentially arranged according to a time sequence, and a preset time interval is used for inserting the first target object.
Step 206: a first target object to be inserted is determined.
The first target object may be an animation or an image, etc., and the image first target object may be one or more.
Objects of various themes are preset in the electronic equipment, and a user can select the object of the corresponding theme according to the content of the first video and select a first target object to be inserted from the objects of the corresponding theme. For example: when the first video is an NBA ball game video, the object of the corresponding theme may be an animation of "team logo" or "NBA logo" for switching when NBA plays back at the moment of goal, or an image containing a specific element, or the like. After the user sets the first target object to be inserted, the playing time length of each first target object can be set respectively.
Step 207: and inserting the first target object in the interval of the sequenced video fragments to generate a target video.
When there is one first target object, the first target object may be repeatedly inserted into each video clip gap, or the user may select a target gap into which the first target object is inserted, and insert the first target object only in the target gap. When the number of the first target objects is multiple, the user can set which first target object is specifically inserted into which video clip gap, and the electronic device inserts each first target object into the sorted video clip gap according to the user setting.
Preferably, in addition to inserting the first target object in the video segment gap, the first target object may be inserted at the beginning and/or end of the target video. This way, the attention of the target video viewer to the first target object can be improved.
After the video clips are sequenced according to the time sequence to form the target video, the generated target video can be shared, and a preferred sharing mode is as follows:
firstly, uploading a target video to a preset platform;
secondly, generating a sharing link corresponding to the target video according to the storage position of the target video on the preset platform;
and finally, sharing the link to the second target object.
The content to be advertised can be set in the first target object, and the content to be advertised can be shared to a preset platform along with the target video, so that the attention of a user to the content to be advertised is improved.
According to the video generation method provided by the embodiment of the invention, in the running process of an application program, a receiving and recording screen command is received through a screen recording operation input interface in electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from a first video; and sequencing the video clips according to the time sequence to generate the target video. On one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function can be suitable for a plurality of application programs and has strong universality; on the other hand, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments are convenient to manage. In addition, the video generation method provided by the embodiment of the invention can also share the target video to the preset platform, and the first target object inserted in the target video can also be released to the preset platform along with the target video, so that the attention of people to the contents to be advertised in the first target object can be improved.
EXAMPLE III
Referring to fig. 3, a block diagram of an electronic device according to a third embodiment of the present invention is shown.
The electronic device of the embodiment of the invention comprises: the instruction receiving module 301 is configured to receive a record screen instruction through a record screen operation input interface in the electronic device in an application program running process; the first generating module 302 is configured to record a screen and generate a first video in the case that a screen recording instruction is received; an extracting module 303, configured to extract a video segment of a preset type from the first video; the second generating module 304 is configured to sort the video segments according to a time sequence to generate a target video.
Preferably, the instruction receiving module includes: the first submodule is used for receiving first input of a user in a preset plug-in the running process of an application program; the second submodule is used for responding to the first input and displaying a function menu, wherein the function menu comprises the screen recording operation input interface; and the third sub-module is used for receiving the selection operation of the user on the screen recording operation input interface and generating a screen recording instruction.
Preferably, the extraction module comprises a time point determination submodule and a time point determination submodule, wherein the time point determination submodule is used for determining each time point for triggering a preset event in the running process of the application program according to the running log of the application program; and the intercepting submodule is used for intercepting the video clips of the preset types corresponding to the preset events from the first video according to the time points.
Preferably, the truncation sub-module comprises: the first unit is used for screening the time points to obtain a first time point and a second time point, wherein the time interval between two adjacent first time points is greater than a first preset time length, and the time interval between two adjacent second time points is less than or equal to the first preset time length; a second unit, configured to intercept, from the first video, a first video segment corresponding to each first time point; the starting point of the first video segment is located before the corresponding first time point, and the time interval between the starting point of the first video segment and the corresponding first time point is a second preset time length, the ending point of the first video segment is located after the corresponding first time point, and the time interval between the ending point of the first video segment and the corresponding first time point is a third preset time length; a third unit, configured to divide each second time point that is consecutive in a time point sequence into a same time point set, where the first time point does not exist between each second time that is consecutive in the time point sequence; a fourth unit, configured to determine, for each time point set, a first time point ordered at a first bit and a last time point ordered at a last bit in the time point sets; a fifth unit, configured to intercept, from the first video, a second video segment corresponding to each time point set according to a first time point and a last time point corresponding to each time point set, respectively.
Preferably, the second generating module comprises: the sequencing submodule is used for sequencing the video clips according to the time sequence; the inserting sub-module is used for determining a first target object to be inserted; and the target video generation submodule is used for inserting the first target object into the sequenced video clip to generate a target video.
Preferably, the electronic device further includes: the uploading module is used for sequencing the video clips according to the time sequence in the second generation module to form a target video, and then uploading the target video to a preset platform; the sharing link generation module is used for generating a sharing link corresponding to the target video according to the storage position of the target video on the preset platform; and the sharing module is used for sharing the link to the second target object.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
According to the electronic equipment provided by the embodiment of the invention, in the running process of the application program, a recording screen command is received through a recording screen operation input interface in the electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from a first video; and sequencing the video clips according to the time sequence to generate the target video. On one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function can be suitable for a plurality of application programs and has strong universality; on the other hand, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments are convenient to manage.
Example four
Referring to fig. 4, a block diagram of an electronic device according to a fourth embodiment of the present invention is shown.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device 400 for implementing various embodiments of the present invention, where the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 407 is configured to receive a record screen instruction through a record screen operation input interface in the running process of the application program; the processor 410 is used for recording a screen to generate a first video under the condition that a screen recording instruction is received; extracting a video clip of a preset type from the first video; and sequencing the video clips according to the time sequence to generate a target video.
According to the electronic equipment provided by the embodiment of the invention, in the running process of the application program, a recording screen command is received through a recording screen operation input interface in the electronic equipment; under the condition that a screen recording instruction is received, screen recording generates a first video; extracting a video clip of a preset type from a first video; and sequencing the video clips according to the time sequence to generate the target video. On one hand, the screen recording function is preset in the electronic equipment but not in a certain application program, so that the screen recording function can be suitable for a plurality of application programs and has strong universality; on the other hand, the extracted scattered video segments are sequenced to generate a whole target video, so that the video segments are convenient to manage.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. Display panel 401 is the flexible display screen, and the flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned video generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (7)
1. A video generation method applied to electronic equipment is characterized by comprising the following steps:
in the running process of an application program, receiving a receiving and recording screen instruction through a screen recording operation input interface in the electronic equipment;
under the condition that a screen recording instruction is received, screen recording generates a first video;
extracting a video clip of a preset type from the first video;
sequencing the video clips according to the time sequence to generate a target video;
the step of extracting a preset type of video clip from the first video comprises:
determining each time point for triggering a preset event in the running process of the application program according to the running log of the application program;
screening the time points to obtain a first time point and a second time point, wherein the time point with the time interval between two adjacent time points being greater than a first preset time is taken as the first time point, and the time point with the time interval between two adjacent time points being less than or equal to the first preset time is taken as the second time point;
intercepting a first video clip corresponding to each first time point from the first video; the starting point of the first video segment is located before the corresponding first time point, and the time interval between the starting point of the first video segment and the corresponding first time point is a second preset time length, the ending point of the first video segment is located after the corresponding first time point, and the time interval between the ending point of the first video segment and the corresponding first time point is a third preset time length;
dividing each second time point continuous in the time point sequence into the same time point set, wherein the first time point does not exist between each second time point continuous in the time point sequence;
for each time point set, determining a first time point ordered at the first bit and a last time point ordered at the last bit in the time point sets;
and respectively intercepting a second video clip corresponding to each time point set from the first video according to a first time point and a last time point corresponding to each time point set.
2. The method according to claim 1, wherein the step of receiving a record screen command through a record screen operation input interface in the electronic device during the running of the application program comprises:
receiving a first input of a user in a preset plug-in the running process of an application program;
responding to the first input, and displaying a function menu, wherein the function menu comprises the screen recording operation input interface;
and receiving the selection operation of the user on the screen recording operation input interface to generate a screen recording instruction.
3. The method according to claim 1, wherein the step of generating the target video by sequencing the video segments in chronological order comprises:
sequencing the video clips according to the time sequence;
determining a first target object to be inserted;
and inserting the first target object in the interval of the sequenced video clips to generate a target video.
4. An electronic device, characterized in that the electronic device comprises:
the instruction receiving module is used for receiving a screen recording instruction through a screen recording operation input interface in the electronic equipment in the running process of an application program;
the first generation module is used for recording a screen to generate a first video under the condition of receiving a screen recording instruction;
the extraction module is used for extracting a video clip of a preset type from the first video;
the second generation module is used for sequencing all the video clips according to the time sequence to generate a target video;
the extraction module comprises:
the time point determining submodule is used for determining each time point for triggering a preset event in the running process of the application program according to the running log of the application program;
the capturing submodule is configured to capture, from the first video, a video segment of a preset type corresponding to each preset event according to each time point, and includes:
the first unit is used for screening the time points to obtain a first time point and a second time point, wherein the time point with the time interval between two adjacent time points being greater than a first preset time length is taken as the first time point, and the time point with the time interval between two adjacent time points being less than or equal to the first preset time length is taken as the second time point;
a second unit, configured to intercept, from the first video, a first video segment corresponding to each first time point; the starting point of the first video segment is located before the corresponding first time point, and the time interval between the starting point of the first video segment and the corresponding first time point is a second preset time length, the ending point of the first video segment is located after the corresponding first time point, and the time interval between the ending point of the first video segment and the corresponding first time point is a third preset time length;
a third unit, configured to divide each second time point that is consecutive in the time point sorting into the same time point set, where the first time point does not exist between each second time point that is consecutive in the time point sorting;
a fourth unit, configured to determine, for each time point set, a first time point ordered at a first position and a last time point ordered at a last position in the time point sets;
a fifth unit, configured to intercept, from the first video, a second video segment corresponding to each time point set according to a first time point and a last time point corresponding to each time point set, respectively.
5. The electronic device of claim 4, wherein the instruction receiving module comprises:
the first submodule is used for receiving first input of a user in a preset plug-in the running process of an application program;
the second submodule is used for responding to the first input and displaying a function menu, wherein the function menu comprises the screen recording operation input interface;
and the third sub-module is used for receiving the selection operation of the user on the screen recording operation input interface and generating a screen recording instruction.
6. The electronic device of claim 4, wherein the second generating module comprises:
the sequencing submodule is used for sequencing the video clips according to the time sequence;
the inserting sub-module is used for determining a first target object to be inserted;
and the target video generation submodule is used for inserting the first target object into the sequenced video clip to generate a target video.
7. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the video generation method of any of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911260317.8A CN111212316B (en) | 2019-12-10 | 2019-12-10 | Video generation method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911260317.8A CN111212316B (en) | 2019-12-10 | 2019-12-10 | Video generation method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111212316A CN111212316A (en) | 2020-05-29 |
CN111212316B true CN111212316B (en) | 2022-02-08 |
Family
ID=70788082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911260317.8A Active CN111212316B (en) | 2019-12-10 | 2019-12-10 | Video generation method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111212316B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866577B (en) * | 2020-07-20 | 2022-07-22 | 上海连尚网络科技有限公司 | Screen recording method, electronic device and computer readable storage medium |
CN112148163B (en) * | 2020-09-25 | 2022-07-15 | 维沃移动通信有限公司 | Screen recording method and device and electronic equipment |
CN113473224B (en) * | 2021-06-29 | 2023-05-23 | 北京达佳互联信息技术有限公司 | Video processing method, video processing device, electronic equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507180A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of Video processing and terminal |
CN106998494A (en) * | 2017-04-24 | 2017-08-01 | 腾讯科技(深圳)有限公司 | A kind of video recording method and relevant apparatus |
CN108540854A (en) * | 2018-03-29 | 2018-09-14 | 努比亚技术有限公司 | Live video clipping method, terminal and computer readable storage medium |
CN110324698A (en) * | 2018-03-28 | 2019-10-11 | 努比亚技术有限公司 | A kind of video recording method, terminal and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030093790A1 (en) * | 2000-03-28 | 2003-05-15 | Logan James D. | Audio and video program recording, editing and playback systems using metadata |
US9583149B2 (en) * | 2014-04-23 | 2017-02-28 | Daniel Stieglitz | Automated video logging methods and systems |
CN105657498B (en) * | 2016-02-17 | 2018-11-06 | 腾讯科技(深圳)有限公司 | The video recording method and device of mobile terminal |
US20180330756A1 (en) * | 2016-11-19 | 2018-11-15 | James MacDonald | Method and apparatus for creating and automating new video works |
-
2019
- 2019-12-10 CN CN201911260317.8A patent/CN111212316B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507180A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of Video processing and terminal |
CN106998494A (en) * | 2017-04-24 | 2017-08-01 | 腾讯科技(深圳)有限公司 | A kind of video recording method and relevant apparatus |
CN110324698A (en) * | 2018-03-28 | 2019-10-11 | 努比亚技术有限公司 | A kind of video recording method, terminal and computer readable storage medium |
CN108540854A (en) * | 2018-03-29 | 2018-09-14 | 努比亚技术有限公司 | Live video clipping method, terminal and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
基于内容的电影视频检索和精彩视频剪辑系统研究;程远;《中国优秀硕士学位论文全文数据库》;20070228;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111212316A (en) | 2020-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110891144B (en) | Image display method and electronic equipment | |
CN110087117B (en) | Video playing method and terminal | |
CN111314784B (en) | Video playing method and electronic equipment | |
CN110673913B (en) | Notification message display method and mobile terminal | |
CN109525874B (en) | Screen capturing method and terminal equipment | |
CN110933511B (en) | Video sharing method, electronic device and medium | |
CN108763316B (en) | Audio list management method and mobile terminal | |
CN111212316B (en) | Video generation method and electronic equipment | |
CN109814786B (en) | Image storage method and terminal equipment | |
CN111050070B (en) | Video shooting method and device, electronic equipment and medium | |
CN111491211B (en) | Video processing method, video processing device and electronic equipment | |
CN109246474B (en) | Video file editing method and mobile terminal | |
CN110087149A (en) | A kind of video image sharing method, device and mobile terminal | |
CN109166164B (en) | Expression picture generation method and terminal | |
CN110913261A (en) | Multimedia file generation method and electronic equipment | |
CN111770374B (en) | Video playing method and device | |
CN108287644B (en) | Information display method of application program and mobile terminal | |
CN111049977B (en) | Alarm clock reminding method and electronic equipment | |
CN110213437B (en) | Editing method and mobile terminal | |
CN111445929A (en) | Voice information processing method and electronic equipment | |
CN111050223A (en) | Bullet screen information processing method and electronic equipment | |
CN110888572A (en) | Message display method and terminal equipment | |
CN108549807B (en) | Screen unlocking method and mobile terminal | |
CN108319409B (en) | Application program control method and mobile terminal | |
CN110928616A (en) | Shortcut icon management method and electronic equipment |
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 |