CN110868633A - Video processing method and electronic equipment - Google Patents

Video processing method and electronic equipment Download PDF

Info

Publication number
CN110868633A
CN110868633A CN201911184521.6A CN201911184521A CN110868633A CN 110868633 A CN110868633 A CN 110868633A CN 201911184521 A CN201911184521 A CN 201911184521A CN 110868633 A CN110868633 A CN 110868633A
Authority
CN
China
Prior art keywords
video
input
target
background music
sub
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.)
Pending
Application number
CN201911184521.6A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911184521.6A priority Critical patent/CN110868633A/en
Publication of CN110868633A publication Critical patent/CN110868633A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/439Processing of audio elementary streams
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The embodiment of the invention discloses a video processing method and electronic equipment, relates to the technical field of communication, and aims to solve the problems that a user needs to have certain knowledge for operating professional processing software in the process of updating background music of a video clip and the operation process is complex in the traditional technology. The method comprises the following steps: receiving a first input of a user to a playing interface of a first video in the process of playing the first video; displaying N identifications on the playing interface in response to the first input, wherein each identification is used for indicating one of N first video clips in the first video, which correspond to the first input; receiving a second input of the user; updating background music of M target video clips in the N first video clips in response to a second input; n, M are positive integers, and M is less than or equal to N.

Description

Video processing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a video processing method and electronic equipment.
Background
Along with the popularization of terminal technology, the application of electronic equipment is more and more extensive.
Currently, when a user is interested in a certain video segment (hereinafter referred to as a target video segment) in a video a and needs to generate an interesting small video by updating background music of the target video segment, the user needs to trigger an electronic device to download the video a, then clip the video a through professional video processing software, and update the background music of the target video segment clipped from the video a to generate the interesting small video.
However, in the above-mentioned process of updating the background music of the video segment, the user needs to have certain knowledge of operating the professional processing software, and the operation process is complicated.
Disclosure of Invention
The embodiment of the invention provides a video processing method and electronic equipment, and aims to solve the problems that in the process of updating background music of a video clip, a user needs to have certain knowledge for operating professional processing software and the operation process is complex in the traditional technology.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a video processing method, where the method includes: receiving a first input of a user to a playing interface of a first video in the process of playing the first video; displaying N identifications on the playing interface in response to the first input, wherein each identification is used for indicating one of N first video clips in the first video, which correspond to the first input; receiving a second input of the user; updating background music of M target video clips in the N first video clips in response to a second input; n, M are positive integers, and M is less than or equal to N.
In a second aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a receiving module, a display module and an updating module; the receiving module is used for receiving a first input of a user to a playing interface of a first video in the process of playing the first video; the display module is used for responding to the first input received by the receiving module and displaying N identifications on the playing interface, wherein each identification is used for indicating one of N first video clips corresponding to the first input in the first video; the receiving module is also used for receiving a second input of the user; the updating module is used for responding to the second input received by the receiving module and updating the background music of the M target video clips in the N first video clips; n, M are positive integers, and M is less than or equal to N.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the video processing method in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the video processing method as in the first aspect.
In the embodiment of the invention, the electronic device can receive a first input of a user to a playing interface of a first video in the process of playing the first video; in response to the first input, displaying N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input (a user may trigger the electronic device to display N identifiers of the N first video segments in the first video corresponding to the first input through an input to the playing interface during the playing of the first video by the electronic device); receiving a second input of the user; updating background music of the M target video segments of the N first video segments in response to a second input (the user may trigger the electronic device to update the background music of the M target video segments of interest to the user in the N first video segments through the second input); n, M are positive integers, and M is less than or equal to N. Therefore, by the scheme, the user can update the background music of the video segment which is interested by the user by inputting the triggering electronic equipment in the process of watching the video so as to generate the interesting small video, so that the user does not need to have certain knowledge of operating professional processing software when updating the background music of the video segment, the operation process is simple, and the efficiency of processing the background music of the video segment can be improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart of a video processing method according to an embodiment of the present invention;
fig. 3 is a second flowchart of a video processing method according to an embodiment of the invention;
fig. 4 is one of schematic diagrams of an interface of a video processing method according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of an interface of a video processing method according to the embodiment of the invention;
fig. 6 is a third schematic view of an interface of a video processing method according to the embodiment of the invention;
FIG. 7 is a fourth schematic view of an interface of a video processing method according to an embodiment of the present invention;
fig. 8 is a third flowchart of a video processing method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 10 is a hardware schematic diagram of an electronic device according to an 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.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first," "second," "third," and "fourth," etc. in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input, the second input, the third input, the fourth input, etc. are used to distinguish between different inputs, rather than to describe a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units; plural elements means two or more elements, and the like.
The embodiment of the invention provides a video processing method.A piece of electronic equipment can receive a first input of a user to a playing interface of a first video in the process of playing the first video; in response to the first input, displaying N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input (a user may trigger the electronic device to display N identifiers of the N first video segments in the first video corresponding to the first input through an input to the playing interface during the playing of the first video by the electronic device); receiving a second input of the user; updating background music of the M target video segments of the N first video segments in response to a second input (the user may trigger the electronic device to update the background music of the M target video segments of interest to the user in the N first video segments through the second input); n, M are positive integers, and M is less than or equal to N. Therefore, by the scheme, the user can update the background music of the video segment which is interested by the user by inputting the triggering electronic equipment in the process of watching the video so as to generate the interesting small video, so that the user does not need to have certain knowledge of operating professional processing software when updating the background music of the video segment, the operation process is simple, and the efficiency of processing the background music of the video segment can be improved.
The following describes a software environment to which the video processing method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the video processing method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the video processing method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the video processing method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
An execution main body of the video processing method provided by the embodiment of the present invention may be the electronic device (including a mobile electronic device and a non-mobile electronic device), or may also be a functional module and/or a functional entity capable of implementing the method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the video processing method provided by the embodiment of the present invention.
Referring to fig. 2, an embodiment of the present invention provides a video processing method, which may include steps 201 to 204 described below.
Step 201, in the process of playing the first video, the electronic device receives a first input of a user to a playing interface of the first video.
Optionally, the first input may be a click input of the user on the playing interface, a slide input of the user on the playing interface, or other feasible inputs of the user on the playing interface, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Illustratively, the click input may be any number of click inputs or multi-finger click inputs, such as a single click input, a double click input, a three click input, a double-finger click input, or a three-finger click input; the slide input may be a slide input in an arbitrary direction or a multi-finger slide input, for example, an upward slide input, a downward slide input, a leftward slide input, a rightward slide input, a two-finger slide input, or a three-finger slide input.
Optionally, the first input may be an input of a user at any position on the playing interface, for example, the first input may be an input of the user on a specific control (a play/pause control, a video capture control, a time control, and the like) on the playing interface, and the first input may also be an input of the user in the video display area, which may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited.
Step 202, the electronic device responds to the first input, and displays the N identifiers on the playing interface.
Each identification is used to indicate one of N first video segments of the first video corresponding to the first input.
It will be appreciated that one identifier is used to indicate one first video segment and a different identifier indicates a different first video segment.
Optionally, in this embodiment of the present invention, the N identifiers may be numbers corresponding to the N first video segments, the N identifiers may be the N first video segments, or may be a certain frame of video picture in the N first video segments, the N identifiers may also be small video windows corresponding to the N first video segments, and the N identifiers may also be other feasible contents, which is not limited in this embodiment of the present invention.
It is understood that, in response to the first input, the electronic device displays the N identifiers in a floating manner on the play interface, or updates the play interface to a first interface, where the N identifiers are included in the first interface.
Step 203, the electronic device receives a second input of the user.
In step 204, the electronic device updates the background music of the M target video segments of the N first video segments in response to the second input.
The electronic device determines M target video segments from the N first video segments in response to the second input and updates the background music of the M target video segments (i.e., the background music replacing the M target video segments).
N, M are positive integers, and M is less than or equal to N.
Optionally, the second input may be a click input, a slide input, or a combination input of the click input and the slide input, and the like of the user, and the embodiment of the present invention is not limited.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details of the description are not repeated here.
In an embodiment of the present invention, the second input may include an input of the user selecting M target video segments from among the N first video segments, or the second input may include an input of (N-M) first video segments other than the M target video segments, which are deleted from among the N first video segments by the user.
Optionally, the second input may include an input of the user selecting M target identifiers from the N identifiers. Wherein each target identifier is used to indicate one of the M target video segments, one target identifier is used to indicate one target video segment, and different target identifiers are used to indicate different target video segments.
Optionally, in this embodiment of the present invention, the N identifiers may be sorted according to a certain rule, and the second input may include an input of a user inputting sequence numbers of the M target identifiers in the N identifiers.
Optionally, in this embodiment of the present invention, in a case that the first input is an input that the user selects at least one time point through a click input on the time control to trigger the electronic device to determine the input of at least one sub-duration according to the at least one time point, the second input may include an input that the user connects any two time points of the at least one time point through a sliding input to select one target video segment.
In the embodiment of the present invention, when the electronic device determines the M target identifiers according to the second input, the electronic device displays the selected mark on the M target identifiers, or the electronic device updates the N identifiers to the M target identifiers (i.e., deletes redundant identifiers).
In an embodiment of the present invention, the second input may further include an input that the user triggers the electronic device to update the background music of the M target video segments.
Optionally, in this embodiment of the present invention, when M is greater than 1, the M target video segments correspond to one target background music, that is, the background music of the M target video segments is replaced with the same target background music. The M target video segments correspond to a plurality of target background music, that is, some of the background music of the M target video segments are replaced by the same target background music, and some of the background music of the M target video segments are replaced by different target background music.
Optionally, in this embodiment of the present invention, the second input may further include an input that the user selects M pieces of target background music. Wherein, every two target background music in the M target background music may be the same or different, and the embodiment of the present invention is not limited.
Illustratively, the second input includes M first sub-inputs and M second sub-inputs, where the M second sub-inputs are used to determine M target background music in one-to-one correspondence with the M target video segments (specifically, one target video segment determined by one first sub-input uniquely corresponds to one target background music determined by one second sub-input (the input order in the M second sub-inputs, and the second sub-input identical to the input order of the one first sub-input in the M first sub-inputs); the steps 203 to 204 can be realized by the following steps 203a to 204a to 203b to 204 b.
Step 203a, the electronic device receives M first sub-inputs of the user.
In step 204a, the electronic device determines the M target video segments from the N first video segments in response to the M first sub-inputs.
Step 203b, the electronic device receives M second sub-inputs of the user.
Step 204b, in response to the M second sub-inputs, the electronic device updates the original background music of the target video segment determined by the pth first sub-input of the M first sub-inputs to the target background music determined by the pth second sub-input of the M second sub-inputs, so as to update the background music of the M target video segments.
Wherein P is a positive integer less than or equal to M.
It can be understood that, taking the example of updating the background music of one target video segment as an illustration, the electronic device deletes the original background music of the one target video segment, inserts the target background music corresponding to the one target video segment into the one target video segment, and synthesizes the one target video segment after updating the background music.
In the embodiment of the invention, the user can alternately input a first sub-input and a second sub-input, and the electronic equipment alternately executes the determination of a target video and the determination of a target background music (and updates the background music of a target video segment). The user may also input M first sub-inputs and then input M second sub-inputs, and the electronic device performs the step 204a first and then performs the step 204 b.
In the embodiment of the present invention, the electronic device may further update the background music of the M target video segments, instead of selecting the sequence of the M target video segments and the sequence of the M target background music by the user, but replace the background music randomly.
In the embodiment of the invention, the electronic device can update the background music of the M target video segments according to the input sequence of the M first sub-inputs and the input sequence of the M second sub-inputs input by the user. Therefore, the electronic equipment updates the background music of the target video clip according to the user requirement, and can meet the personalized requirement of the user.
Optionally, the electronic device is responsive to the M first inputs to number the M target video segments in the selected order after determining the M target video segments.
Illustratively, the step 204a may be specifically realized by the step 204a1 described below, and the step 204b may be specifically realized by the step 204b1 described below.
Step 204a1, the electronic device determines the M target video segments from the N first video segments in response to the M first sub-inputs, and displays the sequence numbers on the M target identifiers.
The M target identifiers are identifiers corresponding to the M target video segments from among the N identifiers, and the sequence number is a number corresponding to an input sequence of the M first sub-inputs.
Optionally, in the embodiment of the present invention, the electronic device may determine a target video segment, and display a number on a target identifier corresponding to the target video segment; the electronic device may also display the sequence numbers on the M object identifiers after determining the M object video segments.
In step 204b1, the electronic device responds to the M second sub-inputs to update the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the sequence number.
It can be understood that the electronic device displays the number P on the identifier corresponding to the target video segment determined by the pth first sub-input, and updates the background music of the target video segment corresponding to the number P to the target background music determined by the pth second sub-input.
In the embodiment of the invention, the sequence numbers are displayed on the M target marks, so that the corresponding relation between the M target video clips and the M target background music can be more intuitively embodied, more intuitive experience is provided for a user, the user operation is facilitated, and the operation efficiency is improved.
Optionally, in this embodiment of the present invention, after updating the background music of the M target video segments, the electronic device may display the M target video segments after updating the background music, so that the user can view the target video segments.
For example, after the step 204b1, the video processing method according to the embodiment of the present invention may further include the following step 204b2 or step 204b 3.
And step 204b2, the electronic device numbers according to the sequence, and displays the M target video clips after updating the background music in the target window in sequence.
Optionally, the target window may be a small video window, an interface, or another window, and the embodiment of the present invention is not limited.
Optionally, the electronic device may display the target window in a floating manner on the video playing interface, or update the video playing interface to the target window.
A first possible implementation: the electronic device may number the M target video segments in the order, and tile the M target video segments after updating the background music in the target window, that is, number the M target video segments in the order, and display the M target video segments after updating the background music in the target window at the same time.
A second possible implementation: the electronic device may also number according to the sequence, and display the M target video segments after updating the background music in the target window in turn, that is, number according to the sequence, display one target video segment after updating the background music in the target window each time, and a time interval between two consecutive target video segments after updating the background music is a predetermined time length, and the predetermined time length may be set according to an actual use requirement, which is not limited in the embodiment of the present invention.
In step 204b3, the electronic device displays the target video segment corresponding to the target number after updating the background music in the target window according to the input of the user to the target number in the sequence number.
It is understood that, for the first possible implementation manner in the step 204b2, the step 204b3 is specifically: and the electronic equipment updates the M target video segments after updating the background music into the target video segments after updating the background music corresponding to the target number.
It is understood that, for the first possible implementation manner in the step 204b2, the step 204b3 is specifically: and the electronic equipment updates the currently displayed target video segment with the updated background music into the target video segment with the updated background music corresponding to the target number. The currently displayed target video segment after updating the background music is the target video segment after updating the background music displayed before the target video segment after updating the background music corresponding to the target number is displayed.
In the embodiment of the invention, the electronic equipment numbers according to the sequence, the M target video segments after updating the background music are displayed in the target window, and under the condition that the target number is selected by the user, the electronic equipment can display the target video segments after updating the background music corresponding to the target number, so that the user can update the music effect of the video segments after updating the background music conveniently, and the user can update the background music again and adjust the music effect of the target video segments under the condition that the user is not satisfied with the updated music effect conveniently.
Optionally, in this embodiment of the present invention, the second input may further include an input that the user triggers the electronic device to display at least one piece of background music. The second input may include a user input on the "replace background music" option.
Illustratively, the second input further includes a third sub-input, and after the step 204a and before the step 203b, the video processing method provided by the embodiment of the present invention may further include the following steps 203c to 204 c.
And step 203c, the electronic equipment receives a third sub-input of the user.
And step 204c, the electronic equipment responds to the third sub-input and displays at least one piece of background music on the playing interface.
Wherein the M second sub-inputs are inputs that determine the M target background music from the at least one background music.
Optionally, the third sub-input may be a click input or a slide input of the user on the play interface, and may also be other feasibility inputs, which is not limited in the embodiment of the present invention.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details of the description are not repeated here.
It is to be appreciated that the electronic device is responsive to the third sub-input to hover displaying at least one background music on the playback interface. The at least one background music may be background music collected by the user, and the user may select M target background music desired by the user from the at least one background music.
In the embodiment of the invention, the electronic equipment displays the at least one piece of background music according to the third sub-input of the user, so that the user can select the needed M pieces of target background music, thereby being convenient for obtaining the M pieces of target video clips which meet the requirements of the user and replace the background music, and improving the operation efficiency.
It should be noted that, in the embodiment of the present invention, the execution sequence among the steps 203a to 204a, the steps 203b to 204b, and the steps 203c to 204c is not limited. For example, the electronic device may perform the steps 203 a-204 a-203 c-204 c-203 b-204 b in the order described above; the electronic device may also perform steps 203c to 204c first, and then perform the following steps M times in a loop with respect to steps 203a to 204a and steps 203b to 204b, where the steps include receiving a first sub-input of a user once, responding to the first sub-input of the user once, receiving a second sub-input of the user once, and responding to the second sub-input of the user once.
The embodiment of the invention provides a video processing method.A piece of electronic equipment can receive a first input of a user to a playing interface of a first video in the process of playing the first video; in response to the first input, displaying N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input (a user may trigger the electronic device to display N identifiers of the N first video segments in the first video corresponding to the first input through an input to the playing interface during the playing of the first video by the electronic device); receiving a second input of the user; updating background music of the M target video segments of the N first video segments in response to a second input (the user may trigger the electronic device to update the background music of the M target video segments of interest to the user in the N first video segments through the second input); n, M are positive integers, and M is less than or equal to N. Therefore, by the scheme, the user can update the background music of the video segment which is interested by the user by inputting the triggering electronic equipment in the process of watching the video so as to generate the interesting small video, so that the user does not need to have certain knowledge of operating professional processing software when updating the background music of the video segment, the operation process is simple, and the efficiency of processing the background music of the video segment can be improved.
Optionally, before step 202, the electronic device obtains N first video segments from the first video in response to the first input.
Illustratively, the playing interface comprises a time control, and the time control is used for indicating the duration of the first video; the first input is input to the time control; referring to fig. 2, as shown in fig. 3, before step 202, the video processing method provided by the embodiment of the present invention may further include steps 205 to 206 described below.
Optionally, the time control may be a progress bar on the playing interface, may also be a time axis on the playing interface, and may also be another feasibility control for indicating the duration of the first video, which is not limited in the embodiment of the present invention.
In step 205, the electronic device determines at least one second video segment in the first video in response to the first input.
The at least one second video segment is a video segment selected via the first input. It will be appreciated that each second video segment is a video segment selected by the user from the first video via the first input.
Alternatively, the step 205 may be implemented by the following steps 205a to 205 b.
Step 205a, the electronic device determines at least two time points in the duration of the first video according to the at least two input points selected by the first input on the time control.
One time point corresponds to one input point.
Step 205b, the electronic device determines one second video segment of the at least one second video segment based on each two consecutive time points of the at least two time points.
It is to be understood that the first input is at least two click inputs of the user on the time control, each click input determines an input point, and the electronic device determines a time point of the first video according to each input point; the electronic device then determines a second video segment in the first video from every two consecutive time points.
In the embodiment of the invention, the user can trigger the electronic equipment to determine the N second video segments by clicking input on the time control in the playing interface, the operation is simple, the user operation is convenient, the user does not need to have the knowledge of operating professional processing software, and the operation efficiency is high.
Alternatively, the step 205 may be implemented by the following steps 205c to 205 d.
Step 205c, the electronic device determines at least one sub-duration corresponding to the first input in the duration of the first video.
Optionally, the first input may be an input that a user directly selects at least one sub-duration through a sliding input on the time control; the first input can also be that the user selects at least one time point through clicking input on the time control to trigger the electronic equipment to determine the input of at least one sub-duration according to the at least one time point; the first input may be other feasible inputs, and the embodiment of the present invention is not limited thereto.
Illustratively, step 205c described above may be implemented by steps 205c 1-205 c2 described below.
Step 205c1, the electronic device determines at least one time point corresponding to the first input in the duration of the first video.
Step 205c2, the electronic device determines the at least one sub-duration from the duration of the first video according to the at least one time point.
Illustratively, the first input is one-time input, the first input is a click input of a user on a progress bar of the playing interface, the electronic device determines a time point (hereinafter referred to as a first time point) according to the click input, and then the electronic device may determine a sub-duration from the duration of the first video, that is, a sub-duration from the start time point (that is, the start time point of the second video segment) to the first time point (that is, the end time point of the second video segment) (or a sub-duration from the first time point (that is, the start time point of the second video segment) to the end time point (that is, the end time point of the second video segment)) by combining the first time point and the start time point (or the end time point) on the progress bar.
For example, the first input may be two sub-inputs, the first input is two click inputs of a user on a progress bar of the play interface, the electronic device determines two time points (hereinafter referred to as a second time point and a third time point) according to the click inputs, and then the electronic device determines one sub-duration from the duration of the first video in combination with the second time point and the third time point, that is, the sub-duration between the second time point (that is, a start time point of the second video segment) and the third time point (that is, an end time point of the second video segment).
For example, the first input may be four sub-inputs, the first input is four click inputs of a user on a progress bar of the play interface, the electronic device determines four time points (hereinafter referred to as a fourth time point, a fifth time point, a sixth time point and a seventh time point) according to the click inputs, and then the electronic device determines three sub-durations from the duration of the first video, namely, a sub-duration between the fourth time point (i.e., the starting time point of one second video segment) and the fifth time point (i.e., the ending time point of the one second video segment), a sub-duration between the fifth time point (i.e., the starting time point of another second video segment) and the sixth time point (i.e., the ending time point of the another second video segment), and a start time point (i.e., the starting time point of another second video segment) and a seventh time point (the another second video segment) according to the click inputs The ending time point of the second video segment).
Further, after step 205c1, the user may trigger the electronic device to determine the at least one sub-duration from the duration of the first video according to the at least one time point by connecting any two time points.
In the embodiment of the invention, the user triggers the electronic equipment to determine the method of the at least one time point through the first input on the time control, so that the operation of the user is facilitated, the processing process of the electronic equipment is saved, and the efficiency of updating the background music of the video clip is improved.
Step 205d, the electronic device determines the video segment corresponding to each sub-duration as a second video segment to determine the at least one second video segment.
In the embodiment of the present invention, the electronic device may intercept, from the resource of the first video, a video segment corresponding to each sub-duration as a second video segment to obtain at least one second video segment.
In the embodiment of the invention, the electronic equipment acquires at least one sub-time length corresponding to the first input from the time length of the first video according to the first input, and determines a second video segment from the first video according to each sub-time length so as to determine at least one second video segment.
Step 206, the electronic device determines the at least one second video segment as the N first video segments, or determines video segments of the first video other than the at least one second video segment as the N first video segments.
It is to be understood that the electronic device determines the at least one second video segment selected by the user from the first videos through the first input as the N first video segments; or, the electronic device determines, as the N first video segments, video segments of the first video other than the at least one second video segment selected from the first video by the user through the first input.
In the embodiment of the present invention, the electronic device determines the at least one second video segment as the N first video segments, or determines the video segments other than the at least one second video segment in the first video as the N first video segments, which increases an implementation manner for acquiring the N first video segments, thereby facilitating user operation, saving a processing process of the electronic device, and improving efficiency of updating background music of the video segments.
Illustratively, as shown in fig. 4, during the playing of the first video on the playing interface (the mark "1" indicates the playing interface), the user clicks a point a and a point B on the progress bar, the electronic device parses a video time point a and a time point B according to the positions of the point a and the point B on the progress bar, and then prompts the user whether to edit the video clip 1 from the time point a to the time point B according to the time point a and the time point B, after the user selects to confirm the editing, the electronic device intercepts the video clip 1 from the resource of the first video, and displays a small video window (the mark "2" indicates a small video window) on the playing interface in a floating manner, the small video window is used for indicating the video clip 1 (for example, the video clip 1 can be played), and at the same time, "replace background music", "pop-up screen" is displayed on the playing interface (the left side of the small video window) in a floating manner, And the option of sharing videos and the like is provided for the user to select. When the user clicks the "replace background music" option, as shown in fig. 5, the electronic device displays the background music collected by the user in a floating manner on the playing interface (in the figure, 3 background music, i.e., "background music 1", "background music 2", and "background music 3", are taken as examples). The user selects "background music 2", the electronic device automatically obtains the music length matching with the video segment 1 in the "background music 2" (i.e. the positions of the starting point and the ending point of the background music matching with the video segment 1) according to the duration of the video segment 1 (or the music length matching with the video segment 1 in the "background music 2" is set by the user), or the electronic device obtains the music length matching with the video segment 1 in a plurality of "background music 2" for the user to select, and the electronic device determines the music length finally matching with the video segment 1 according to the selection of the user, which is not limited in the embodiment of the present invention) to obtain the target background music. The electronic equipment replaces the original background music of the video clip 1 with the target background music, and stores the video clip 1 after replacing the background music for the user to preview or share the video clip 1 after replacing the background music.
Illustratively, as shown in FIG. 6, in the process of playing a first video through a playing interface (labeled "1" indicating playing interface), the user clicks on points A, B, C, and D on the progress bar, the electronic device parses the video segments A, B, C, and D according to their respective positions on the progress bar, then, according to the embodiments of "A, B, C, and D", prompts the user whether to capture the video segment 1 from point A to point B, capture the video segment 2 from point B to point C, from the first video, and capture the video segment 3 from point C to point D, and to capture the video segment 3 from the first video, and to capture the video segment 3 from point C, and to display the video segment AB, BC, and CD, respectively, which indicates that the video segment 1, 2, and 3 are selected by the user, and are displayed in a "video slide" display device "to match the video segment" and the video segment 3, and the video segment 2, and the video segment 3 are selected by the user, and displayed in a "video slide" video segment "display the video segment" and the video segment "display the video segment" through the "display the electronic device" display the video segment "and the video automatically, and the video segment" display the video segment "display the video automatically, and the video segment" display the music segment "display the video at the" display the music segment "display the video at the" display the "and the" display the "in the" display the same time, and the "display the video at the same time, and the" display the video at the "display the" and the "display the music segment at the" display the "and the" display the music segment at the "display the music segment at the" display the "at the same time, the" display the "and the" display the same time, the "display the" and the "display the" and the same time, the "and the" display the "and the" display the "at the" display the video at the "display the same time, the" display the video at the "display the video at the" display the video at the "display the.
Optionally, after replacing the background music of the M target video segments, the user may preview the M target videos after playing the replaced background music.
Illustratively, in conjunction with fig. 3, as shown in fig. 8, after step 204, the video processing method provided by the embodiment of the present invention may further include steps 207 to 208 described below.
Step 207, the electronic device receives a third input from the user.
Optionally, the third input may be a click input of the user on the identifier of the second video, or may also be a slide input of the user on the identifier of the second video, which is not limited in the embodiment of the present invention.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details of the description are not repeated here.
And step 208, the electronic equipment responds to the third input and plays the second video.
And the second video is a video segment corresponding to the third input in the M target video segments after replacing the background music, or the second video is a video synthesized according to the M target video segments after replacing the background music when M is greater than 1.
In the embodiment of the invention, under the condition that M is greater than 1, a user can update the background music of a plurality of video segments simultaneously and synthesize the plurality of video segments after updating the background music to obtain the ghost interesting small video, so that the interestingness and the selectivity of the video are further increased, and the favorite video background music style of the user is updated.
In the embodiment of the invention, after updating the background music of the M target video segments, the user can preview the music effect of the second video through the third input, and further determine whether the music style is the satisfactory video background music style of the user.
Optionally, in the case that the second video is a video segment corresponding to the third input in the M target video segments after replacing the background music, the user may not be satisfied with the effect of a certain video segment after replacing the background music, and then the user may replace the background music again, so that the satisfactory effect of the user is achieved.
Illustratively, after step 208, the video processing method provided by the embodiment of the present invention may further include steps 209 to 210 described below.
Step 209, the electronic device receives a fourth input from the user.
Optionally, the fourth input may be a click input or a slide input of the user for the identification of the second video and the target background music option for replacing the background music of the second video, and the embodiment of the present invention is not limited.
For example, reference may be made to the description of the click input and the slide input in the description of the first input in step 201, and details of the description are not repeated here.
Step 210, the electronic device replaces the background music in the second video in response to the fourth input.
Optionally, in this embodiment of the present invention, after step 204 (or step 208 or step 210), the user may share the M video clips (or the second video) obtained after replacing the background music to the friend circle or to the friend, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the user can quickly and conveniently replace the background music of the video clip in the process of watching the video, so that the interestingness and the selectivity of the video can be increased, and the satisfactory video background music style of the user can be updated.
The drawings in the embodiments of the present invention are all exemplified by the drawings in the independent embodiments, and when the embodiments of the present invention are specifically implemented, each of the drawings can also be implemented by combining any other drawings which can be combined, and the embodiments of the present invention are not limited. For example, in conjunction with fig. 2, after step 204, the video processing method provided by the embodiment of the present invention may further include steps 207 to 208.
As shown in fig. 9, an embodiment of the present invention provides an electronic device 120, where the electronic device 120 includes: a receiving module 121, a display module 122, and an updating module 123; the receiving module 121 is configured to receive a first input of a user to a playing interface of a first video in a process of playing the first video; the display module 122, configured to display, in response to the first input received by the receiving module 121, N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input; the receiving module 121 is further configured to receive a second input from the user; the updating module 123 is configured to update the background music of the M target video segments of the N first video segments in response to the second input received by the receiving module 121; n, M are positive integers, and M is less than or equal to N.
Optionally, the playing interface includes a time control, and the time control is used for indicating the duration of the first video; the first input is input to the time control; the electronic device 120 further includes: a determination module 124; the determining module 124 is configured to determine, in the first video, at least one second video segment before the displaying module 122 displays the N identifiers on the playing interface, where the at least one second video segment is a video segment selected by the first input; and determining the at least one second video segment as the N first video segments, or determining video segments of the first video except the at least one second video segment as the N first video segments.
Optionally, the determining module 124 is specifically configured to determine, according to at least two input points selected by the first input on the time control, at least two time points in the duration of the first video, where one time point corresponds to one input point; one of the at least one second video segment is determined based on each two consecutive time points of the at least two time points.
Optionally, the second input includes M first sub-inputs and M second sub-inputs, where the M second sub-inputs are used to determine M target background music in one-to-one correspondence with the M target video segments; the updating module 123 is specifically configured to determine, in response to the M first sub-inputs, the M target video segments from the N first video segments; in response to the M second sub-inputs, updating original background music of the target video segment determined by the pth first sub-input of the M first sub-inputs to target background music determined by the pth second sub-input of the M second sub-inputs to update background music of the M target video segments; wherein P is a positive integer less than or equal to M.
Optionally, the updating module 123 is specifically configured to, in response to the M first sub-inputs, determine the M target video segments from the N first video segments, and display sequence numbers on the M target identifiers, where the M target identifiers are identifiers of the N identifiers corresponding to the M target video segments, and the sequence numbers are numbers corresponding to input sequences of the M first sub-inputs; in response to the M second sub-inputs, the original background music of each target video segment is updated to the target background music determined by the second sub-input corresponding to the sequence number.
Optionally, the display module 122 is further configured to, after the update module 123 updates the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the number, sequentially display, in the target window, the M target video segments after updating the background music according to the sequence number; or, according to the input of the user to the target number in the sequence number, displaying the target video clip corresponding to the target number after updating the background music in the target window.
Optionally, the second input further comprises a third sub-input; the receiving module 121 is further configured to receive a third sub-input of the user after the M target video segments are determined from the N first video segments in response to the M first sub-inputs; the display module 122 is further configured to display at least one background music on the playing interface in response to the third sub-input received by the receiving module 121; wherein the M second sub-inputs are inputs that determine the M target background music from the at least one background music.
Optionally, the electronic device 120 further includes: a play module 125; the receiving module 121, further configured to receive a third input from the user after the updating module 123 updates the background music of the M target video segments of the N first video segments; the playing module 125, configured to play a second video in response to a third input received by the receiving module 121; and the second video is a video segment corresponding to the third input in the M target video segments after replacing the background music, or the second video is a video synthesized according to the M target video segments after replacing the background music when M is greater than 1.
It should be noted that, as shown in fig. 9, modules that are necessarily included in the electronic device 120 are indicated by solid line boxes, such as the receiving module 121, the display module 122, and the updating module 123; modules that may or may not be included in the electronic device 120 are illustrated with dashed boxes, such as the determination module 124 and the play module 125.
The electronic device provided in the embodiment of the present invention is capable of implementing each process shown in any one of fig. 2 to fig. 8 in the above method embodiments, and details are not described here again to avoid repetition.
The embodiment of the invention provides electronic equipment, which can receive first input of a user to a playing interface of a first video in the process of playing the first video; in response to the first input, displaying N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input (a user may trigger the electronic device to display N identifiers of the N first video segments in the first video corresponding to the first input through an input to the playing interface during the playing of the first video by the electronic device); receiving a second input of the user; updating background music of the M target video segments of the N first video segments in response to a second input (the user may trigger the electronic device to update the background music of the M target video segments of interest to the user in the N first video segments through the second input); n, M are positive integers, and M is less than or equal to N. Therefore, by the scheme, the user can update the background music of the video segment which is interested by the user by inputting the triggering electronic equipment in the process of watching the video so as to generate the interesting small video, so that the user does not need to have certain knowledge of operating professional processing software when updating the background music of the video segment, the operation process is simple, and the efficiency of processing the background music of the video segment can be improved.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 10, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 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 electronic device, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to receive a first input of a user to a playing interface of a first video in the process of playing the first video; a display unit 106, configured to display, in response to the first input, N identifiers on the play interface, where each identifier is used to indicate one of N first video segments corresponding to the first input in the first video; a user input unit 107 for receiving a second input from the user; a processor 110 for updating background music of M target video segments of the N first video segments in response to a second input; n, M are positive integers, and M is less than or equal to N.
According to the electronic device provided by the embodiment of the invention, the electronic device can receive the first input of a user to the playing interface of the first video in the process of playing the first video; in response to the first input, displaying N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input (a user may trigger the electronic device to display N identifiers of the N first video segments in the first video corresponding to the first input through an input to the playing interface during the playing of the first video by the electronic device); receiving a second input of the user; updating background music of the M target video segments of the N first video segments in response to a second input (the user may trigger the electronic device to update the background music of the M target video segments of interest to the user in the N first video segments through the second input); n, M are positive integers, and M is less than or equal to N. Therefore, by the scheme, the user can update the background music of the video segment which is interested by the user by inputting the triggering electronic equipment in the process of watching the video so as to generate the interesting small video, so that the user does not need to have certain knowledge of operating professional processing software when updating the background music of the video segment, the operation process is simple, and the efficiency of processing the background music of the video segment can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. In addition, the radio frequency unit 101 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 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 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 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. 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 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 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 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 10, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. 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 108 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 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 110 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 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 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 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 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 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which may include the processor 110 shown in fig. 10, the memory 109, and a computer program stored on the memory 109 and capable of being executed on the processor 110, where the computer program, when executed by the processor 110, implements each process of the video processing method shown in any one of fig. 2 to fig. 8 in the foregoing method embodiments, and can achieve the same technical effect, and details are not described here to avoid repetition.
An 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 processing method shown in any one of fig. 2 to 8 in the foregoing method embodiments, and can achieve the same technical effect, and details are not repeated here to avoid repetition. 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 an electronic device (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 (16)

1. A method of video processing, the method comprising:
receiving a first input of a user to a playing interface of a first video in the process of playing the first video;
displaying N identifiers on the playing interface in response to the first input, wherein each identifier is used for indicating one of N first video clips in the first video corresponding to the first input;
receiving a second input of the user;
updating background music of M target video clips of the N first video clips in response to the second input;
n, M are positive integers, and M is less than or equal to N.
2. The method of claim 1, wherein a time control is included in the playback interface, and the time control is used to indicate a duration of the first video; the first input is an input to the time control;
before displaying the N identifiers on the play interface, the method further includes:
determining at least one second video segment in the first video, wherein the at least one second video segment is a video segment selected through the first input;
determining the at least one second video segment as the N first video segments, or determining video segments of the first video other than the at least one second video segment as the N first video segments.
3. The method of claim 2, wherein determining at least one second video segment in the first video comprises:
determining at least two time points in the duration of the first video according to at least two input points selected by the first input on the time control, wherein one time point corresponds to one input point;
determining one of the at least one second video segment based on each two consecutive time points of the at least two time points.
4. The method of claim 1, wherein the second input comprises M first sub-inputs and M second sub-inputs, and wherein the M second sub-inputs are used for determining M target background music in one-to-one correspondence with the M target video segments;
the updating background music for M target video segments of the N first video segments in response to the second input comprises:
determining the M target video segments from the N first video segments in response to the M first sub-inputs;
in response to the M second sub-inputs, updating original background music of a target video segment determined by a pth first sub-input of the M first sub-inputs to target background music determined by a pth second sub-input of the M second sub-inputs to update background music of the M target video segments;
wherein P is a positive integer less than or equal to M.
5. The method of claim 4, wherein the determining the M target video segments from the N first video segments in response to the M first sub-inputs comprises:
in response to the M first sub-inputs, determining the M target video segments from the N first video segments, and displaying sequence numbers on M target identifiers, where the M target identifiers are identifiers of the N identifiers corresponding to the M target video segments, and the sequence numbers are identifiers corresponding to input sequences of the M first sub-inputs;
the updating, in response to the M second sub-inputs, the original background music of the target video segment determined by the pth one of the M first sub-inputs to the target background music determined by the pth one of the M second sub-inputs includes:
in response to the M second sub-inputs, updating the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the sequence number.
6. The method according to claim 5, wherein after updating the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the number, the method further comprises:
numbering according to the sequence, and displaying the M target video clips after background music is updated in a target window in sequence;
alternatively, the first and second electrodes may be,
and displaying the target video clip corresponding to the target number after updating the background music in the target window according to the input of the user to the target number in the sequence numbers.
7. The method of claim 4, wherein the second input further comprises a third sub-input;
after determining the M target video segments from the N first video segments in response to the M first sub-inputs, the method further comprises:
receiving the third sub-input of a user;
displaying at least one background music on the playing interface in response to the third sub-input;
wherein the M second sub-inputs are inputs that determine the M target background music from the at least one background music.
8. The method according to any one of claims 1 to 7, wherein after updating the background music of the M target video segments of the N first video segments, the method further comprises:
receiving a third input of the user;
in response to the third input, playing a second video;
the second video is a video segment corresponding to the third input from among the M target video segments after replacing background music, or, when M is greater than 1, the second video is a video synthesized according to the M target video segments after replacing background music.
9. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module, a display module and an updating module;
the receiving module is used for receiving a first input of a user to a playing interface of a first video in the process of playing the first video;
the display module is configured to display, in response to the first input received by the receiving module, N identifiers on the playing interface, where each identifier is used to indicate one of N first video segments in the first video corresponding to the first input;
the receiving module is further used for receiving a second input of the user;
the updating module is used for responding to the second input received by the receiving module and updating background music of M target video clips in the N first video clips;
n, M are positive integers, and M is less than or equal to N.
10. The electronic device of claim 9, wherein a time control is included in the playback interface, and the time control is configured to indicate a duration of the first video; the first input is an input to the time control; the electronic device further includes: a determination module;
the determining module is configured to determine, in the first video, at least one second video segment before the displaying module displays the N identifiers on the play interface, where the at least one second video segment is a video segment selected by the first input; determining the at least one second video segment as the N first video segments, or determining video segments of the first video other than the at least one second video segment as the N first video segments.
11. The electronic device according to claim 10, wherein the determining module is specifically configured to determine, according to at least two input points selected by the first input on the time control, at least two time points in a duration of the first video, where one time point corresponds to one input point; determining one of the at least one second video segment based on each two consecutive time points of the at least two time points.
12. The electronic device of claim 9, wherein the second input comprises M first sub-inputs and M second sub-inputs, and the M second sub-inputs are used for determining M target background music in one-to-one correspondence with the M target video segments; the update module is specifically configured to determine, in response to the M first sub-inputs, the M target video segments from the N first video segments; in response to the M second sub-inputs, updating original background music of a target video segment determined by a pth first sub-input of the M first sub-inputs to target background music determined by a pth second sub-input of the M second sub-inputs to update background music of the M target video segments;
wherein P is a positive integer less than or equal to M.
13. The electronic device according to claim 12, wherein the updating module is specifically configured to determine, in response to the M first sub-inputs, the M target video segments from the N first video segments, and display a sequence number on M target identifiers, where the M target identifiers are identifiers of the N identifiers corresponding to the M target video segments, and the sequence number is a number corresponding to an input sequence of the M first sub-inputs; in response to the M second sub-inputs, updating the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the sequence number.
14. The electronic device according to claim 13, wherein the display module is further configured to display the M target video segments after updating the background music in the target window in sequence according to the sequence numbers after the update module updates the original background music of each target video segment to the target background music determined by the second sub-input corresponding to the sequence numbers; or displaying the target video clip corresponding to the target number after updating the background music in the target window according to the input of the user to the target number in the sequence number.
15. The electronic device of claim 12, wherein the second input further comprises a third sub-input;
the receiving module is further configured to receive the third sub-input of the user after the M target video segments are determined from the N first video segments in response to the M first sub-inputs;
the display module is further configured to display at least one piece of background music on the playing interface in response to the third sub-input received by the receiving module;
wherein the M second sub-inputs are inputs that determine the M target background music from the at least one background music.
16. The electronic device of any of claims 9-15, further comprising: a playing module;
the receiving module is further configured to receive a third input of the user after the updating module updates the background music of the M target video segments of the N first video segments;
the playing module is used for responding to the third input received by the receiving module and playing a second video;
the second video is a video segment corresponding to the third input from among the M target video segments after replacing background music, or, when M is greater than 1, the second video is a video synthesized according to the M target video segments after replacing background music.
CN201911184521.6A 2019-11-27 2019-11-27 Video processing method and electronic equipment Pending CN110868633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911184521.6A CN110868633A (en) 2019-11-27 2019-11-27 Video processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911184521.6A CN110868633A (en) 2019-11-27 2019-11-27 Video processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110868633A true CN110868633A (en) 2020-03-06

Family

ID=69656797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911184521.6A Pending CN110868633A (en) 2019-11-27 2019-11-27 Video processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110868633A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800660A (en) * 2020-06-24 2020-10-20 维沃移动通信有限公司 Information display method and device
CN112887794A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Video editing method and device
CN113365134A (en) * 2021-06-02 2021-09-07 北京字跳网络技术有限公司 Audio sharing method, device, equipment and medium
WO2021197260A1 (en) * 2020-03-31 2021-10-07 维沃移动通信有限公司 Note creating method and electronic device
CN113596555A (en) * 2021-06-21 2021-11-02 维沃移动通信(杭州)有限公司 Video playing method and device and electronic equipment
CN114845171A (en) * 2022-03-21 2022-08-02 维沃移动通信有限公司 Video editing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002152698A (en) * 2000-07-19 2002-05-24 Nec Corp Communication system
CN105530440A (en) * 2014-09-29 2016-04-27 北京金山安全软件有限公司 Video production method and device
CN106534888A (en) * 2016-11-03 2017-03-22 天脉聚源(北京)传媒科技有限公司 Method and system for selecting background music based on video content
CN106572386A (en) * 2016-11-03 2017-04-19 天脉聚源(北京)传媒科技有限公司 Method and system for selecting background music based on time
CN106851394A (en) * 2017-01-18 2017-06-13 广东小天才科技有限公司 A kind of background music switching method and apparatus
CN106911900A (en) * 2017-04-06 2017-06-30 腾讯科技(深圳)有限公司 Video dubbing method and device
CN107566769A (en) * 2017-09-27 2018-01-09 维沃移动通信有限公司 A kind of video recording method and mobile terminal
CN108900902A (en) * 2018-07-06 2018-11-27 北京微播视界科技有限公司 Determine method, apparatus, terminal device and the storage medium of video background music

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002152698A (en) * 2000-07-19 2002-05-24 Nec Corp Communication system
CN105530440A (en) * 2014-09-29 2016-04-27 北京金山安全软件有限公司 Video production method and device
CN106534888A (en) * 2016-11-03 2017-03-22 天脉聚源(北京)传媒科技有限公司 Method and system for selecting background music based on video content
CN106572386A (en) * 2016-11-03 2017-04-19 天脉聚源(北京)传媒科技有限公司 Method and system for selecting background music based on time
CN106851394A (en) * 2017-01-18 2017-06-13 广东小天才科技有限公司 A kind of background music switching method and apparatus
CN106911900A (en) * 2017-04-06 2017-06-30 腾讯科技(深圳)有限公司 Video dubbing method and device
CN107566769A (en) * 2017-09-27 2018-01-09 维沃移动通信有限公司 A kind of video recording method and mobile terminal
CN108900902A (en) * 2018-07-06 2018-11-27 北京微播视界科技有限公司 Determine method, apparatus, terminal device and the storage medium of video background music

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021197260A1 (en) * 2020-03-31 2021-10-07 维沃移动通信有限公司 Note creating method and electronic device
CN111800660A (en) * 2020-06-24 2020-10-20 维沃移动通信有限公司 Information display method and device
CN112887794A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Video editing method and device
CN113365134A (en) * 2021-06-02 2021-09-07 北京字跳网络技术有限公司 Audio sharing method, device, equipment and medium
CN113365134B (en) * 2021-06-02 2022-11-01 北京字跳网络技术有限公司 Audio sharing method, device, equipment and medium
CN113596555A (en) * 2021-06-21 2021-11-02 维沃移动通信(杭州)有限公司 Video playing method and device and electronic equipment
CN113596555B (en) * 2021-06-21 2024-01-19 维沃移动通信(杭州)有限公司 Video playing method and device and electronic equipment
CN114845171A (en) * 2022-03-21 2022-08-02 维沃移动通信有限公司 Video editing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
CN109525874B (en) Screen capturing method and terminal equipment
CN110868633A (en) Video processing method and electronic equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109032486B (en) Display control method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN110099296B (en) Information display method and terminal equipment
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN109828731B (en) Searching method and terminal equipment
CN110069188B (en) Identification display method and terminal equipment
CN110225180B (en) Content input method and terminal equipment
CN111064848B (en) Picture display method and electronic equipment
CN110989896A (en) Control method and electronic equipment
CN111352547A (en) Display method and electronic equipment
CN110647277A (en) Control method and terminal equipment
CN111459349B (en) Application recommendation method and electronic equipment
CN110022445B (en) Content output method and terminal equipment
CN109766156B (en) Session creation method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal
CN108881742B (en) Video generation method and terminal equipment
CN111399715B (en) Interface display method and electronic equipment
CN111638842B (en) Display control method and device and electronic equipment
CN111049977B (en) Alarm clock reminding 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200306

RJ01 Rejection of invention patent application after publication