CN112445395A - Music fragment selection method, device, equipment and storage medium - Google Patents

Music fragment selection method, device, equipment and storage medium Download PDF

Info

Publication number
CN112445395A
CN112445395A CN201910818780.3A CN201910818780A CN112445395A CN 112445395 A CN112445395 A CN 112445395A CN 201910818780 A CN201910818780 A CN 201910818780A CN 112445395 A CN112445395 A CN 112445395A
Authority
CN
China
Prior art keywords
music
segment
recommended
video
piece
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910818780.3A
Other languages
Chinese (zh)
Other versions
CN112445395B (en
Inventor
马学跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910818780.3A priority Critical patent/CN112445395B/en
Publication of CN112445395A publication Critical patent/CN112445395A/en
Application granted granted Critical
Publication of CN112445395B publication Critical patent/CN112445395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals

Abstract

The application discloses a music piece selection method, a device, equipment and a storage medium, which are applied to the field of multimedia processing. The method comprises the following steps: displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music; when a selection operation on the segment selection control is received, obtaining a selected music segment according to the selection operation; displaying a one-key selection control of the recommended music piece of the target music; and when receiving the triggering operation on the one-key selection control, resetting the selected music piece according to the recommended music piece. The method can select the music highlight by one key, and improve the music selection efficiency.

Description

Music fragment selection method, device, equipment and storage medium
Technical Field
The present application relates to the field of multimedia processing, and in particular, to a method, an apparatus, a device, and a storage medium for selecting music pieces.
Background
The short video program is a short video originally shot by a user and serves as a sharing platform for network transmission content. Short video programs. In short video programs, there is a need for users to select a highlight of music pieces.
The short video program is provided with a music clip interface, a music playing progress bar is displayed on the music clip interface, a segment selection control (such as a vertical line or a round-head needle-shaped indicator) is provided on the playing progress bar, a user drags the position pointed by the segment selection control on the playing progress bar, and the short video program determines the selected music segment according to the position pointed by the segment selection control.
Due to the limited length of the playing progress bar, the precision of the finger sliding operation of the user is low, and the user can hardly accurately select the music piece to be selected.
Disclosure of Invention
The embodiment of the application provides a music piece selection method, a device, equipment and a storage medium, which can solve the problems that a user cannot accurately select a music piece to be selected, and the technical scheme of the related technology lacks the usability and the efficiency of selecting a wonderful music piece. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method for selecting a music piece, the method including:
displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music;
when a selection operation on the segment selection control is received, obtaining a selected music segment according to the selection operation;
displaying a one-key selection control of the recommended music piece of the target music;
and when receiving the triggering operation on the one-key selection control, resetting the selected music piece according to the recommended music piece.
According to another aspect of the present application, there is provided an apparatus for selecting a musical piece, the apparatus comprising:
a display module to display a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music; displaying a one-key selection control of the recommended music piece of the target music;
the interaction module is used for receiving selection operation on the fragment selection control; receiving a trigger operation on the one-key selection control;
the acquisition module is used for obtaining the selected music segment according to the selection operation when the selection operation on the segment selection control is received;
and the resetting module resets the selected music segment according to the recommended music segment when receiving the triggering operation on the one-key selecting control.
According to another aspect of the present application, there is provided a computer device comprising: a processor and a memory, said memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, loaded and executed by said processor to implement a method of selecting a piece of music as described above.
According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one program, code set, or set of instructions that is loaded and executed by the processor to implement the method of selecting a piece of music as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by additionally arranging the one-key selecting control, when a user manually selects music segments on target music, the user can quickly select the selected music segments according to the recommended music segments by triggering the one-key selecting control through the terminal, the difficulty of the user in manually positioning the music segments is reduced, the selected music segments are quickly and efficiently selected, and the usability and the efficiency in selecting the music segments are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an interface schematic diagram of a music piece selection method provided in an exemplary embodiment of the present application;
FIG. 2 is a block diagram of a computer system provided in an exemplary embodiment of the present application;
fig. 3 is a block diagram of a terminal according to an exemplary embodiment of the present application;
FIG. 4 is a block diagram of a server provided in an exemplary embodiment of the present application;
fig. 5 is an interface diagram of a music piece selection method in the related art according to an exemplary embodiment of the present application;
fig. 6 is an interface diagram of a music piece selection method in the related art according to another exemplary embodiment of the present application;
FIG. 7 is a flowchart of a method for selecting music pieces according to an exemplary embodiment of the present application;
FIG. 8 is a schematic illustration of an interface for selection of a musical selection provided by another exemplary embodiment of the present application;
FIG. 9 is a schematic diagram of an interface for selection of a musical piece provided by another exemplary embodiment of the present application;
FIG. 10 is a schematic illustration of an interface for selection of a musical selection provided by another exemplary embodiment of the present application;
FIG. 11 is a schematic illustration of an interface for selection of a musical selection provided by another exemplary embodiment of the present application;
fig. 12 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 13 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 14 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 15 is a data structure diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 16 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
FIG. 17 is a schematic illustration of an interface for selection of a musical selection provided by another exemplary embodiment of the present application;
fig. 18 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 19 is a flowchart of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 20 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
fig. 21 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
fig. 22 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
fig. 23 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
fig. 24 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
FIG. 25 is a schematic interface diagram illustrating a method for selecting a musical piece according to another exemplary embodiment of the present application;
fig. 26 is an interface diagram of a music piece selection method according to another exemplary embodiment of the present application;
fig. 27 is a block diagram of a music piece selecting apparatus according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The music piece selection refers to a function of cutting out a part of music pieces from a piece of music, and the function is widely applied to various application programs. For example, in short video production or short video sharing applications, for dubbing short videos; in video editing software, the video is provided with music; in the ring tone generating software, intercepting music segments; in music playing software, music clips are intercepted and shared with friends; in singing applications, parts of the music piece are cut out for singing, etc.
The application provides a music piece selection method, which is used for simple introduction by taking the method applied to short video production software as an example.
As shown in fig. 1, when a user takes or long-transfers a short video, the user can select background music of the video on the music interface 101, and then click the music cropping control 105 to enter the music cropping interface 102 after selecting a song. The user selects a piece of music by sliding the music score 106 of the song on the music cropping interface 102. However, due to the short length of the sound spectrum, it is difficult to accurately locate a slide operation within a piece of music for a certain second or millisecond to accurately select a desired piece of music.
Therefore, the application provides a music piece selecting method. First, there is a song highlight database in which highlight data of all or part of music is contained. After a user selects a piece of music and enters the music cutting interface 102, when the user slides the sound spectrum to start to select music segments, the terminal acquires highlight segment data corresponding to the music in the database and displays the one-key selection control 103, and the user can trigger the one-key selection control to trigger the terminal to quickly select the highlight segments of the music according to the highlight segment data.
Illustratively, as shown in fig. 1, after the highlight of the song starts from 2 minutes to 23 seconds, if the user slides the music score for 2 minutes to 30 seconds, and then it is difficult to precisely control the music score for 23 seconds, a one-touch selection control 103 is displayed on the music editing interface, and the user clicks the one-touch selection control 103, which triggers the terminal to automatically select the highlight starting from 2 minutes to 23 seconds on the music score.
Because the music fragment selected by the user is the wonderful fragment of the music under most conditions, the music fragment selecting method provided by the application can enable the user to accurately select the desired music fragment, and is convenient and quick.
Fig. 2 shows a block diagram of a computer system 200 according to an exemplary embodiment of the present application. The computer system 200 includes: a first terminal 220, a server cluster 240, and a second terminal 260.
The first terminal 220 is connected to the server cluster 220 through a wireless network or a wired network. The first terminal 220 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 player, an MP4 player, and a laptop portable computer. The first device 220 is installed and running with an application that supports music clips. The application may be any one of a short video creation application, a short video sharing application, a music playing application, a ringtone creation application, and a video editing application. The first terminal 220 is a terminal used by the first user.
The first terminal 220 is connected to the server cluster 240 through a wireless network or a wired network.
The server cluster 240 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server cluster 240 is used to provide background services for applications that support music clips. Optionally, the server cluster 240 undertakes primary computational work and the first terminal 220 and the second terminal 260 undertake secondary computational work; alternatively, the server cluster 240 undertakes secondary computing, and the first terminal 220 and the second terminal 260 undertake primary computing; or, the server cluster 240, the first terminal 220 and the second terminal 260 perform cooperative computing by using a distributed computing architecture.
Optionally, the server cluster 240 includes: access server 242 and storage server 244. The access server 242 is used to provide access services and messaging services for the first terminal 220 and the second terminal 260, and forward messages (voice messages, text messages, picture messages, video messages) between the terminals and the storage server 244. The access server 242 is used for providing background services to the application programs, such as: and adding at least one of a friend service, a text message forwarding service, a sound message forwarding service and a picture message forwarding service. The storage server 244 may be one or more. When the storage servers 244 are multiple, there may be at least two storage servers 244 for providing different services and/or there may be at least two storage servers 244 for providing the same service.
The second device 260 is installed and running with an application program supporting music clips. The application may be any one of a short video creation application, a short video sharing application, a music playing application, a ringtone creation application, and a video editing application. The second terminal 260 is a terminal used by the second user.
Alternatively, the operating systems of the first terminal 220 and the second terminal 260 are arbitrary. The operating system includes: apple operating system, android operating system, Linux operating system, Windows operating system, and the like.
The first terminal 220 may generally refer to one of a plurality of terminals, and the second terminal 260 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 220 and the second terminal 260. The first terminal 220 and the second terminal 260 may have the same or different terminal types, and the terminal types include: at least one of a smartphone, a gaming console, a desktop computer, a tablet, an e-book reader, an MP3 player, an MP4 player, and a laptop portable computer. The following embodiments are illustrated with the first terminal 220 and/or the second terminal 240 being a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds, or more, and the computer system may further include other terminals 280. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Fig. 3 shows a block diagram of a terminal 300 according to an exemplary embodiment of the present application. The terminal 300 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc. The terminal 300 may be a first terminal or a second terminal.
Generally, the terminal 300 includes: a processor 301 and a memory 302.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 301 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 302 is used to store at least one instruction for execution by the processor 301 to implement the method for selecting a music piece of an application program provided by the various method embodiments of the present application.
In some embodiments, the terminal 300 may further include: a peripheral interface 303 and at least one peripheral. The processor 301, memory 302 and peripheral interface 303 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 303 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, touch display screen 305, camera 306, audio circuitry 307, positioning components 308, and power supply 309.
The peripheral interface 303 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and peripheral interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the peripheral interface 303 may be implemented on a separate chip or circuit board, which is not limited by the embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 305 may be one, providing the front panel of the terminal 300; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the terminal 300 or in a folded design; in still other embodiments, the display 305 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 300. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 306 is used to capture images or video. Optionally, camera assembly 306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 301 for processing or inputting the electric signals to the radio frequency circuit 304 to realize voice communication. The microphones may be provided in plural numbers, respectively, at different portions of the terminal 300 for the purpose of stereo sound collection or noise reduction. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 301 or the radio frequency circuitry 304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 307 may also include a headphone jack.
The positioning component 308 is used to locate the current geographic Location of the terminal 300 to implement navigation or LBS (Location Based Service). The Positioning component 308 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 309 is used to supply power to the various components in the terminal 300. The power source 309 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 309 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 300 also includes one or more sensors 310. The one or more sensors 310 include, but are not limited to: acceleration sensor 311, gyro sensor 312, pressure sensor 313, fingerprint sensor 314, optical sensor 315, and proximity sensor 316.
The acceleration sensor 311 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 300. For example, the acceleration sensor 311 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 301 may control the touch display screen 305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 311. The acceleration sensor 311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 312 may detect a body direction and a rotation angle of the terminal 300, and the gyro sensor 312 may cooperate with the acceleration sensor 311 to acquire a 3D motion of the user on the terminal 300. The processor 301 may implement the following functions according to the data collected by the gyro sensor 312: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 313 may be disposed on a side bezel of the terminal 300 and/or an underlying layer of the touch display screen 305. When the pressure sensor 313 is disposed on the side frame of the terminal 300, the holding signal of the user to the terminal 300 can be detected, and the processor 301 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 313. When the pressure sensor 313 is disposed at the lower layer of the touch display screen 305, the processor 301 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 314 is used for collecting a fingerprint of the user, and the processor 301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 314, or the fingerprint sensor 314 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, processor 301 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 314 may be disposed on the front, back, or side of the terminal 300. When a physical button or a vendor Logo is provided on the terminal 300, the fingerprint sensor 314 may be integrated with the physical button or the vendor Logo.
The optical sensor 315 is used to collect the ambient light intensity. In one embodiment, the processor 301 may control the display brightness of the touch screen display 305 based on the ambient light intensity collected by the optical sensor 315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 305 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 305 is turned down. In another embodiment, the processor 301 may also dynamically adjust the shooting parameters of the camera head assembly 306 according to the ambient light intensity collected by the optical sensor 315.
A proximity sensor 316, also known as a distance sensor, is typically provided on the front panel of the terminal 300. The proximity sensor 316 is used to collect the distance between the user and the front surface of the terminal 300. In one embodiment, when the proximity sensor 316 detects that the distance between the user and the front surface of the terminal 300 gradually decreases, the processor 301 controls the touch display screen 305 to switch from the bright screen state to the dark screen state; when the proximity sensor 316 detects that the distance between the user and the front surface of the terminal 300 gradually becomes larger, the processor 301 controls the touch display screen 305 to switch from the breath screen state to the bright screen state.
Optionally, the memory 302 may also include the following program modules (or sets of instructions), or a subset or superset thereof:
an operating system 321;
a communication module 322;
a contact/motion module 323;
a graphics module 324;
a haptic feedback module 325;
a text input module 326;
a GPS module 327;
a digital assistant client module 328;
data user and model 329;
the application 330: a contacts module 330-1, a phone module 330-2, a video conferencing module 330-3, an email module 330-4, an instant messaging module 330-5, a fitness support module 330-6, a camera module 330-7, an image management module 330-8, a multimedia player module 330-9, a notepad module 330-10, a map module 330-11, a browser module 330-12, a calendar module 330-13, a weather module 330-14, a stock market module 330-15, a computer module 330-16, an alarm clock module 330-17, a dictionary module 330-18, a search module 330-19, an online video module 330-20, …, a user-created module 330-21.
In the embodiment of the present application, applications 330-22 that support music clips are also included in memory 302. The application programs 330-22 may be used to implement the method of selecting music pieces for application programs in the method embodiments described below.
Those skilled in the art will appreciate that the configuration shown in fig. 3 is not intended to be limiting of terminal 300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for selecting music pieces in an application program provided in this application embodiment.
Fig. 4 is a schematic structural diagram of a server according to an exemplary embodiment of the present application. Which may be implemented as any of the servers in the server cluster 240 described above. Illustratively, the server 400 includes a Central Processing Unit (CPU) 401, a system Memory 404 including a Random Access Memory (RAM) 402 and a Read-Only Memory (ROM) 403, and a system bus 405 connecting the system Memory 404 and the CPU 401. The server 400 also includes a basic input/output system (I/O system) 406, which facilitates the transfer of information between devices within the computer, and a mass storage device 407 for storing an operating system 413, clients 414, and other program modules 415.
The basic input/output system 406 includes a display 408 for displaying information and an input device 409 such as a mouse, keyboard, etc. for user input of information. Wherein the display 408 and the input device 409 are connected to the central processing unit 401 through an input/output controller 410 connected to the system bus 405. The basic input/output system 406 may also include an input/output controller 410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input/output controller 410 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 407 is connected to the central processing unit 401 through a mass storage controller (not shown) connected to the system bus 405. The mass storage device 407 and its associated computer-readable media provide non-volatile storage for the server 400. That is, the mass storage device 407 may include a computer-readable medium (not shown) such as a hard disk or a Compact disk-Read-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 404 and mass storage device 407 described above may be collectively referred to as memory.
The server 400 may also operate as a remote computer connected to a network via a network, such as the internet, according to various embodiments of the present application. That is, the server 400 may be connected to the network 412 through the network interface unit 411 connected to the system bus 405, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 411.
Fig. 5 is a schematic interface diagram showing a music piece selection method in the related art. Displayed on the music selection interface 501 are: a music cropping control 105; displayed on the music cropping interface 102 are: a music piece selection control 502. After the user selects the target music, the music cropping control 105 is triggered to enter the music cropping interface 102, and the user can select the music piece by controlling the music piece selection control 502 at the music cropping interface 102. Such as dragging the sound spectrum left and right to clip music.
Fig. 6 is a schematic interface diagram illustrating a music piece selection method in another related art, and a user may directly jump to a music cutting interface after selecting target music. Displayed on the music selection interface 501 are: a music selection control 601; displayed on the music cropping interface 102 are: a music piece selection control 502. The user selects the desired target music, clicks on the trigger music selection control 601 to enter the music cropping interface 102 of the target music, and in the music cropping interface 102, the user can select a music piece by controlling the music piece selection control 502. For example, dragging the sound spectrum left and right to clip music.
In the related art, the selection of the music piece is mainly realized by controlling the music piece selection control 502, but since the length of the music piece selection control 502 is limited, it is difficult to precisely locate the music piece desired by the user through the sliding operation, and the user cannot accurately select the target music piece.
According to the music clip selection method, based on the existing highlight data in the server, the one-key selection control is additionally arranged on the music cutting interface 102, and a user can quickly and accurately select the target music clip by triggering the one-key selection control.
Fig. 7 is a flowchart illustrating a music piece selecting method according to an exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 702, displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music.
The terminal displays a music clip interface, which includes: a music display control and a segment selection control of the target music.
Music clips are the process of cutting and editing music. The music clip includes at least one of selecting, cropping, arranging, rearranging, and superimposing music. If the time axis is used to describe the original music, the music clip is at least one of clipping, adding, sequencing and overlapping the time axis. Illustratively, the music clip may be: selecting a period of time on the time axis of the original music to obtain new music, and disconnecting the time axis of the original music from a certain time point or a plurality of time points to obtain one or a plurality of sections of new music; reordering at least one of the new music, the original music, the new music and the original music obtained by the above method to combine into a new music, and exemplarily, the same new music or original music may be reordered a plurality of times; and superposing two different sections of original music or the new music obtained by the method to obtain at least one of the new music. The order of the above examples may be arbitrary.
The music-clip interface is an interface displayed on the terminal for music-clipping music. The music clip interface may be a separate interface, or an area for music clips displayed on other interfaces. Illustratively, as shown in FIG. 8, there is a separate music clip interface 801; as shown in fig. 1, there is an area for music clips on the music cropping interface 102, which is a music clip interface 801.
The music clip interface includes: a music display control and a segment selection control of the target music.
The target music is music that is a music clip made at the current music clip interface. Illustratively, the target music is music determined before the user enters the music-clip interface.
A control is any visual control or element that is visible on the user interface of an application, such as a picture, input box, text box, button, label, or the like control. Some of the controls are responsive to user manipulation, for example, sliding a segment selection control may select a musical segment.
The music display control is a control with the capability of displaying the progress of the music. Illustratively, the music display control may be at least one of a music progress bar, a music spectrogram, and a music vocabulary. The music progress bar is a control for displaying the progress of music in time sequence, and illustratively, as shown in fig. 9, there is a music progress bar 901. The music spectrogram describes music by using an audio range, and gradually fills the music spectrogram in a time sequence to display the playing progress of the music, and exemplarily, as shown in fig. 10, there is a music spectrogram 1001. The musical lyric map is used for describing music by using musical lyrics, and the playing progress of the music is displayed by gradually rolling or filling the musical lyrics in a time sequence, and the musical lyric map 1001 is exemplarily shown in fig. 11.
The section selection control is a control (such as a vertical line) for making a music section selection. The segment selection control can receive a segment selection operation of a user, and the segment selection operation can be at least one of click, double click, sliding, dragging, pressing and voice instruction. Illustratively, the music display control and the segment selection control are displayed as the same control on the music editing interface, or the music display control and the segment selection control are used in combination, as shown in fig. 8, there are a segment selection control 802 and a music display control 803, and the user can select a music segment by sliding the segment selection control 802. Illustratively, when the user slides the section selection control 802, the progress of the music selected from the frame on the music display control 803 changes, and the currently selected music section by the user may be displayed.
Illustratively, as shown in FIG. 8, the terminal displays a first state of a music clip interface 801, the music clip interface 801 including: a music display control 803 for the target music and a section selection control 802.
And step 704, when a selection operation on the segment selection control is received, obtaining the selected music segment according to the selection operation.
And the terminal receives the selection operation on the segment selection control and obtains the selected music segment according to the selection operation.
The selection operation may be at least one of a click, a double click, a slide, a drag, a press, a voice command. The clicking and double clicking can select the music fragment by clicking a sentence of lyrics, a part of sound spectrum and the like of the music. The sliding may be selecting the music segment by sliding a music spectrogram, a music progress bar, a music song word graph, or the like. The speech recognition may select a music piece corresponding to the lyrics by recognizing the lyrics of the music. Illustratively, as shown in FIG. 8, the selection operation is a slide operation 806 on the segment selection control 802.
The manner of obtaining the selected music piece according to the selection operation may be that, after receiving the piece selection operation, the music display control 803 has a highlighted portion that is the selected music piece. The highlighting may be: a selected frame is displayed on the music display control 803, the part of the music progress bar/music spectrogram/music lyric diagram in the selected frame is a selected music fragment, and the shape of the selected frame is arbitrary; distinguishing, coloring, highlighting, selecting symbols and the like on the music progress bar/music spectrogram/music song word graph; displaying at least one of the starting points of the selected music piece on the music progress bar/music spectrogram/music song word graph. Illustratively, as shown in fig. 8, a selected frame 804 is displayed on the syllable clipping interface, and the music segment corresponding to the music spectrogram in the selected frame is the selected music segment.
The selected music piece can be obtained according to the selection operation, and after the selection operation of the received piece is received, the piece selection operation can be directly identified to obtain the selected music piece. For example, the identifying segment selection operation may be: identifying the single-click or double-click position of the section selection operation, and determining the music sections within a period of time after the position as the selected music sections; identifying a range of sliding of the section selection operation, and determining the music sections in the range as selected music sections; and recognizing a voice instruction of the section selection operation, and determining the music section indicated in the voice instruction as at least one of the selected music sections.
The selected piece of music is part or all of the music selected by the user from the target music. The part or all of the music may be after music clipping: at least one of a piece of music, pieces of music, and a piece of music played repeatedly. Illustratively, the music piece selected in the short video production application is a music piece selected by the user for giving the short video as background music, or a music piece selected by the user for performing other music processing.
Illustratively, as shown in fig. 8, in the first state of the music clip interface 801, when the terminal receives a selection operation (a sliding operation 806) on the section selection control, the terminal jumps to the second state of the music clip interface 801 to obtain a selected music section, which is a music section corresponding to 2 minutes, 30 seconds and 3 minutes, 01 seconds in the target music, according to the selection operation.
Step 706, a one-key selection control of the recommended music piece of the target music is displayed.
And the terminal displays a one-key selection control of the recommended music piece of the target music.
The recommended music piece is a music piece in preset target music. There may be one or more pieces of recommended music.
The one-key selection control is a control for resetting the selected music piece according to the recommended music piece. The one-key selection control can be a picture, a pattern, a text box, a button, a label and the like displayed on the user interface; or a partial area on the user interface, which can recognize the trigger operation and has a function of resetting the selected music piece according to the recommended music piece. Illustratively, as shown in FIG. 8, there is a one-key-selection control 805. Illustratively, there may be one or more of the one-touch controls.
Illustratively, as shown in FIG. 8, in a second state of the music clipping interface 801, a one-key selection control 805 is displayed with a recommended piece of music for the target music.
And step 708, when a triggering operation on the one-key selection control is received, resetting the selected music piece according to the recommended music piece.
And the terminal receives the triggering operation on the one-key selection control and resets the selected music segment according to the recommended music segment.
Resetting the selected music piece according to the recommended music piece means: and reselecting the starting point (and the end point) of the selected music segment according to the starting point (and the end point) of the recommended music segment. For example, the start point of the selected music piece is reselected according to the start point of the recommended music piece, and the end point of the selected music piece is reselected according to the end point of the recommended music piece.
In some possible embodiments, for example, the other music pieces in the target music determined by using the recommended music piece are determined as the selected music piece, a music piece in the middle of the two recommended music pieces may be determined as the selected music piece, a music piece in the target music starting at a time point before the recommended music piece may be determined as the selected music piece, or a music piece in the target music starting at a time point after the recommended music piece may be determined as the selected music piece.
Illustratively, as shown in fig. 8, in the second state of the music clip interface 801, the terminal receives a trigger operation on the one-key selection control 805, jumps to the third state of the music clip interface 801, and resets the selected music piece to a music piece corresponding to 2 minutes 23 seconds to 2 minutes 54 seconds in the target music according to the recommended music piece.
In summary, according to the method provided in this embodiment, by adding the one-key selection control, when the user manually selects a music piece on the target music, the user can trigger the one-key selection control to quickly select the selected music piece according to the recommended music piece by the terminal, so that the difficulty of the user in manually positioning the music piece is reduced, the selection of the selected music piece is quick and efficient, and the usability and efficiency in selecting the music piece are improved.
Fig. 12 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 702, displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music.
The terminal displays a music clip interface, which includes: a music display control and a segment selection control of the target music.
And step 704, when a selection operation on the segment selection control is received, obtaining the selected music segment according to the selection operation.
And the terminal receives the selection operation on the segment selection control and obtains the selected music segment according to the selection operation.
Step 7061, a selected segment start point of the selected music segment is obtained, and a recommended segment start point of the recommended music segment is obtained.
The terminal acquires a selected segment start point of the selected music segment and acquires a recommended segment start point of the recommended music segment.
The segment start point is the first time point when the music is played in sequence. The start of a segment may also be, for example, the first note, the time point when the first audio is above a certain value, the lyrics of the first sentence when the music is played in sequence. The application takes the example that the starting point of the segment is the first time point when the music is played in sequence.
The selected segment start point is the segment start point of the selected music segment. The starting point of the selected section for the terminal to acquire the selected music section is determined by receiving the selection operation on the section selection control. And after receiving the selection operation on the segment selection control, the terminal determines the selected music segment and determines the first time point when the selected music segment is played in sequence as the starting point of the selected segment. Illustratively, when the selection operation on the segment selection control is sliding the segment selection control to determine the music segment in the selected frame as the selected music segment, the start point of the selected segment is the first time point when the music segment in the selected frame is played sequentially.
The recommended section start point is a section start point of the recommended music section. The method for the terminal to obtain the starting point of the recommended music segment may be reading the recommended music segment data stored in the terminal, or receiving the recommended music segment data sent by the server. The recommended music piece data includes a recommended piece start point of the recommended music piece. The recommended music piece data may be simply referred to as dotting data.
For example, as shown in fig. 8, after receiving the selection operation on the section selection control, the terminal obtains a music section corresponding to 2 minutes 30 seconds to 3 minutes 01 seconds in the target music, which is the selected music section, in the second state of the music clipping interface 801, and obtains 2 minutes 30 seconds of the target music which is the start point of the selected section. And acquires 2 minutes 23 seconds of the recommended section starting point of the recommended music section being the target music.
And step 7062, displaying a one-key selection control of the recommended music piece when the starting point of the selected piece is different from the starting point of the recommended piece.
And when the starting point of the selected section is different from the starting point of the recommended section, the terminal displays a one-key selection control for recommending the music section.
The method for judging whether the starting point of the selected segment is the same as the starting point of the recommended segment may be: judging whether the corresponding time of the starting point of the selected segment in the target music is consistent with the corresponding time of the starting point of the recommended segment in the target music; judging whether the lyrics corresponding to the starting point of the selected segment and the starting point of the recommended segment are consistent; and judging whether the spectrogram of the selected segment starting point is consistent with that of the recommended segment within a period of time.
For example, the determination of whether the selected segment start point and the recommended segment start point are the same may be performed by the terminal and/or the server. And when judging whether the starting point of the selected segment is the same as the starting point of the recommended segment or not is finished by the server, the server sends a judgment result to the terminal.
And when the starting point of the selected section is different from the starting point of the recommended section, the terminal displays a one-key selection control for recommending the music section. Illustratively, when the one-key selection control is the invisible control, and when the starting point of the selected section is different from the starting point of the recommended section, the terminal starts the one-key selection control of the recommended music section, so that the one-key selection control can receive the trigger operation.
Illustratively, as shown in fig. 8, if the start point of the selected segment is different from the start point of the recommended segment, a one-key selection control 805 for the recommended music segment is displayed in the second state of the music-clipping interface 801.
And step 708, when a triggering operation on the one-key selection control is received, resetting the selected music piece according to the recommended music piece.
And the terminal receives the triggering operation on the one-key selection control and resets the selected music segment according to the recommended music segment.
In summary, according to the method provided by this embodiment, by obtaining the selected segment start point of the selected music segment and obtaining the recommended segment start point of the recommended music segment, when the selected segment start point is different from the recommended segment start point, the one-key selection control is additionally provided, so that the one-key selection control is displayed only when the selected segment start point is inconsistent with the segment start point of the recommended segment, the utilization rate of the user interface is improved, the user can quickly select the music segment by triggering the one-key selection control, the music segment does not need to be manually positioned for many times, the selection of the music segment is made to be quick and efficient, and the usability and the efficiency when the music segment is selected are improved.
Illustratively, the terminal obtains the recommended segment starting point from the server.
Fig. 13 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 702, displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music.
The terminal displays a music clip interface, which includes: a music display control and a segment selection control of the target music.
And step 704, when a selection operation on the segment selection control is received, obtaining the selected music segment according to the selection operation.
And the terminal receives the selection operation on the segment selection control and obtains the selected music segment according to the selection operation.
Step 1301, acquiring a selected segment starting point of the selected music segment, and acquiring dotting data of the target music from the server, wherein the dotting data includes a recommended segment starting point of a recommended music segment corresponding to the target music.
The terminal acquires the starting point of the selected section of the selected music section and acquires dotting data of the target music from the server, wherein the dotting data comprises the starting point of the recommended section of the recommended music section corresponding to the target music.
In the field of multimedia processing, dotting refers to marking music or videos, and is generally used for marking climax parts of music or wonderful moments of videos. The dotting can be marking the time point of the music, can be marking the lyrics of the music, and can also be marking the sound spectrum of the music. As shown in fig. 9, there is a dotting 902 on the music progress bar 901. In a music playing application, the user can directly play the climax part of the music by clicking on the dotting 902.
The dotting data in the present application is data related to a recommended music piece of the target music. Illustratively, the dotting data includes a recommended piece starting point of the recommended music piece.
The method for acquiring the dotting data of the target music by the terminal is that the terminal sends an acquisition request of the dotting data of the target music to the server, and the server sends the dotting data of the target music to the terminal after receiving the acquisition request of the dotting data of the target music.
And step 7062, displaying a one-key selection control of the recommended music piece when the starting point of the selected piece is different from the starting point of the recommended piece.
And when the starting point of the selected section is different from the starting point of the recommended section, the terminal displays a one-key selection control for recommending the music section.
And step 708, when a triggering operation on the one-key selection control is received, resetting the selected music piece according to the recommended music piece.
And the terminal receives the triggering operation on the one-key selection control and resets the selected music segment according to the recommended music segment.
In summary, according to the method provided in this embodiment, the start point of the selected segment of the selected music segment is obtained, and the dotting data of the target music is obtained from the server to obtain the start point of the recommended segment of the recommended music segment, when the start point of the selected segment is different from the start point of the recommended segment, a one-key selection control is additionally provided, so that the one-key selection control is displayed only when the start points of the selected segment and the recommended segment are not consistent, the utilization rate of the user interface is improved, a user can quickly select a music segment by triggering the one-key selection control, and the music segment does not need to be manually positioned for many times, so that the selection of the music segment is quick and efficient, and the availability and the efficiency of.
Illustratively, a method of resetting a selected musical piece based on a recommended musical piece is presented.
Fig. 14 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 702, displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music.
The terminal displays a music clip interface, which includes: a music display control and a segment selection control of the target music.
And step 704, when a selection operation on the segment selection control is received, obtaining the selected music segment according to the selection operation.
And the terminal receives the selection operation on the segment selection control and obtains the selected music segment according to the selection operation.
Step 7061, a selected segment start point of the selected music segment is obtained, and a recommended segment start point of the recommended music segment is obtained.
The terminal acquires a selected segment start point of the selected music segment and acquires a recommended segment start point of the recommended music segment.
And step 7062, displaying a one-key selection control of the recommended music piece when the starting point of the selected piece is different from the starting point of the recommended piece.
And when the starting point of the selected section is different from the starting point of the recommended section, the terminal displays a one-key selection control for recommending the music section.
Step 7081, when receiving a triggering operation on the one-key selection control, resetting the selected segment start point of the selected music segment as the recommended segment start point of the recommended music segment.
And when the terminal receives the triggering operation on the one-key selection control, resetting the starting point of the selected section of the selected music section as the starting point of the recommended section of the recommended music section.
Illustratively, as shown in fig. 8, after receiving a triggering operation on the one-key selection control in the second state of the music-clipping interface 801, the terminal jumps to the third state of the music-clipping interface 801 to set the selected segment start point of the selected music segment as the recommended segment start point of the recommended music segment. That is, the selected section start point of the selected music section is set to 2 minutes 23 seconds of the target music, and the music-clip interface 801 jumps to the third state.
Illustratively, when the recommended music pieces are at least two, the selected piece start point of the selected music piece is reset to the recommended piece start point of the recommended music piece closest in temporal distance.
And when the number of the recommended music segments is at least two, judging the time distance between the starting point of the selected segment and the starting point of each recommended segment, and resetting the starting point of the selected segment of the selected music segment as the starting point of the recommended segment of the recommended music segment with the closest time distance. For example, if the selected section starts at 30 seconds of the target music, the first recommended section starts at 10 seconds of the target music, and the second recommended section starts at 35 seconds of the target music, the selected section start point is reset as the recommended section start point closest to the selected section start point, i.e., the second recommended section start point, i.e., 35 seconds of the target music.
Illustratively, when the recommended music pieces are at least two, the selected piece start point of the selected music piece is reset to the recommended piece start point of the recommended music piece closest in time to the selected piece start point. For example, if the selected section starts at 30 seconds of the target music, the first recommended section starts at 10 seconds of the target music, the second recommended section starts at 35 seconds of the target music, and the third recommended section starts at 5 seconds of the target music, the selected section start point is reset to the recommended section start point closest to the selected section start point before the selected section start point, i.e., the first recommended section start point, i.e., 10 seconds of the target music.
Illustratively, when the recommended music pieces are at least two, the selected piece start point of the selected music piece is reset to the recommended piece start point of the recommended music piece that is closest in time distance after the selected piece start point. For example, if the selected section starts at 30 seconds of the target music, the first recommended section starts at 10 seconds of the target music, the second recommended section starts at 35 seconds of the target music, and the third recommended section starts at 40 seconds of the target music, the selected section start point is reset to the recommended section start point closest to the selected section start point after the selected section start point, i.e., the second recommended section start point, i.e., 35 seconds of the target music.
In summary, in the method provided in this embodiment, by adding the one-key selection control, after the user can trigger the one-key selection control, the selected segment start point of the selected music segment is reset to the recommended segment start point of the recommended music segment, and the music segment is quickly selected without manually positioning the music segment for many times, so that the selection of the music segment is quick and efficient, and the availability and the efficiency of selecting the music segment are improved.
For example, when the music piece selection method provided by the above exemplary embodiment is applied to a video editing program (such as a short video sharing or production program), the target music is used to match the music to the video file. Since the video file has a time length and the music pieces for the soundtrack have a certain duration, the above music piece selection method further includes the following two methods of determining the recommended piece end point of the recommended music piece.
A first method of determining an end point of a recommended piece of recommended music includes:
and when the user shoots or uploads a short video, entering a music editing interface. Illustratively, the music piece selecting method provided by the present application further includes:
step 1, obtaining the video length of the short video.
The terminal acquires the video length of the short video.
The video length of the short video is the playing time of the short video.
The method for resetting the selected music piece according to the recommended music piece provided in the step 708 may further include:
and 2, determining the end point of the recommended segment according to the video length of the short video, the target music time and the dotting data.
And the terminal determines the recommended segment end point according to the video length and the dotting data of the short video.
The end of the segment is the last moment when the music segments are played in sequence. The recommended-segment end point is the last moment when the recommended music segments are played in sequence.
If the dotting data includes a recommended segment start point of the recommended music segment, the method for determining the recommended segment end point includes:
and adding the video length of the short video to the time corresponding to the starting point of the recommended segment of the recommended music segment in the target music to obtain the added time. Illustratively, the duration of the target music is 3 minutes, the video length of the short video is 1 minute, and the start point of the recommended segment is located at the 30 th second time of the target music, so that the time corresponding to the start point of the recommended segment of the recommended music segment in the target music, that is, 30 seconds, is added to the video length of the short video, that is, 1 minute, to obtain the added time 1 minute 30 seconds.
And when the added time is longer than the target music time, determining the target segment end point of the target music as the recommended segment end point of the recommended music segment. That is, for example, the added time is 4 minutes, the target music time is 3 minutes, and the added time is longer than the target music time, and the target piece end of the target music is determined as the recommended piece end of the recommended music piece, that is, the 3-minute time of the target music is set as the recommended piece end.
And when the added time is shorter than or equal to the time of the target music, determining the time point corresponding to the added time in the target music as the recommended music piece end point of the recommended music piece. For example, the added time is 1 minute and 30 seconds, the target music time is 3 minutes, the added time is shorter than the target music time, a time point corresponding to the added time in the target music is determined as a recommended segment end point of the recommended music segment, that is, the time of 1 minute and 30 seconds of the target music is set as the recommended segment end point.
Illustratively, as shown in fig. 15, the target music is a song named as "memorable to avoid missing any idea", three parts of data of the song are stored in the terminal, the first part is song data of "memorable to avoid any idea", the second part is dotting data of "memorable to avoid any idea" acquired by the terminal from the server, and the third part is recommended music section data of "memorable to avoid any idea", which is calculated by the terminal using the dotting data, the song data and the short video data, and the recommended music section data includes a recommended section end point of the recommended music section.
And 3, resetting the selected music piece according to the recommended music piece.
And the terminal resets the selected music piece according to the recommended music piece.
Illustratively, the terminal sets the selected segment end point as the recommended segment end point.
And 4, using the selected music fragment as the short video dubbing music.
And the terminal uses the selected music piece to match the short video.
When the duration of the selected music segment is shorter than the video duration of the short video, the method for dubbing the short video by using the selected music segment comprises the following steps: setting the selected music segment as a short video dubbing music after repeated playing; and setting the selected music segment as short video soundtrack after single play, wherein the part of the short video time length more than the time length of the selected music segment has no soundtrack.
When the duration of the selected music piece is equal to the duration of the video of the short video, the short video can be directly dubbed with the selected music piece.
In summary, according to the method provided in this embodiment, the recommended segment end point is determined according to the short video duration, the target music duration, and the recommended segment start point, after the user triggers the one-key selection control, the selected segment end point is reset to the recommended segment end point, the music segment is quickly selected, and the music segment does not need to be manually positioned for many times, so that the selection of the music segment is quick and efficient, and the availability and the efficiency of selecting the music segment are improved. A method for dubbing short video music using selected music pieces is also provided.
A second method of determining an end point of a recommended piece of recommended music includes:
and step 11, acquiring the video length of the short video and the recommended segment end point of the recommended music segment.
The terminal acquires the video length of the short video and the recommended segment end point of the recommended music segment.
The end of the segment is the last point in time at which the music segment is played in sequence.
The recommended-segment end point is the last point in time at which the recommended music segments are sequentially played.
The recommended-piece end point of the recommended-piece is acquired by the terminal from the dotting data. That is, the dotting data includes a recommended-segment start point and a recommended-segment end point of the recommended music segment.
The method for resetting the selected music piece according to the recommended music piece provided in the step 708 may further include:
and step 12, resetting the selected segment end point of the selected music segment according to the video length of the short video and the recommended segment end point.
And the terminal resets the selected segment end point of the selected music segment according to the video length of the short video and the recommended segment end point.
The method for the terminal to reset the selected segment end point of the selected music segment may be:
when the video length of the short video is longer than or equal to the time length of the recommended music piece, the selected piece end point of the selected music piece is reset to the recommended piece end point of the recommended music piece.
Illustratively, if the video length of the short video is two minutes, the duration of the recommended music piece is one minute, and the video length of the short video is longer than the time length of the recommended music piece, the end point of the selected music piece is set as the end point of the recommended music piece. If the starting point of the selected section is the starting point of the recommended section, the selected music section and the recommended music section are identical music sections. At this time, the video length of the short video is longer than that of the selected music piece, then, for example, the method for dubbing music for the short video by using the selected music piece may be: setting the selected music segment as a short video dubbing music after repeated playing; and setting the selected music segment as short video soundtrack after single play, wherein the part of the short video time length more than the time length of the selected music segment has no soundtrack.
When the video length of the short video is shorter than the time length of recommending the music segments, intercepting the short video from the starting point of the recommending segments of the recommending music segments according to the video length to obtain the intercepted recommending music segments; resetting the selected segment end point of the selected music segment as the truncated segment end point of the truncated recommended music segment.
Illustratively, the video length of the short video is 1 minute, the duration of the recommended music piece is 2 minutes, and the video length of the short video is shorter than the time length of the recommended music piece, so that the short video is intercepted from the start point of the recommended music piece according to the video length to obtain the intercepted recommended music piece, namely the music piece of the recommended music piece within 1 minute from the start point of the recommended music piece; the end point of the selected section of the selected music section is reset as the end point of the truncated section of the truncated recommended music section, namely the end point of the selected section of the selected music section is the time point of 1 minute of the recommended music section.
In summary, in the method provided in this embodiment, the dotting data includes both the recommended segment start point and the recommended segment end point, and after the user triggers the one-key selection control, the selected segment end point of the selected music segment is reset according to the video length of the short video and the recommended segment end point, so that the music segment is quickly selected without manually positioning the music segment many times, so that the selection of the music segment is quick and efficient, and the usability and the efficiency of selecting the music segment are improved. A method for dubbing short video music using selected music pieces is also provided.
When the above-described method of selecting a music piece is applied to a video editing program, the following method is further included before displaying a music clip interface.
Fig. 16 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 1601, displaying a video editing interface, where the video editing interface includes a video acquisition control and a music control.
And the terminal displays a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control.
The video editing interface is an interface displayed on the terminal for video editing of the video. At the video editing interface. The user can change the score of the video, beautify the picture, rearrange the sequence of the picture and the like. The video editing interface may be a separate interface, or an area for video editing displayed on another interface. Illustratively, as shown in FIG. 17, there is a separate video editing interface 1701.
The video acquisition control is a control used by the terminal to acquire the video. The video acquisition mode can be at least one of shooting one or more video segments, uploading one or more existing video segments, uploading one or more pictures and automatically generating one video segment by the terminal. Wherein the existing video is a video file stored in the terminal or a video file in the network. And according to different video acquisition modes, the video acquisition control comprises at least one of a local video uploading control, a video shooting control and an online video selection control. Illustratively, as shown in FIG. 17, there is a local video upload control 1703 and a video capture control 1702 on the video editing interface 1701.
The music control is a control used by the terminal to acquire candidate music. For example, the manner of acquiring the candidate music by the terminal may be: receiving a candidate music instruction sent by a server, and acquiring candidate music according to the candidate music instruction; at least one of the candidate music is obtained from the local music. Illustratively, as shown in FIG. 17, there is a music control 1704 on the video editing interface 1701.
In step 1602, when a video obtaining operation on the video obtaining control is received, a video file is obtained according to the video obtaining operation.
And the terminal receives the video acquisition operation on the video acquisition control and acquires the video file according to the video acquisition operation.
For example, the video acquisition operation may be selecting one or more local video files or pictures in a local video upload control, capturing one or more pieces of video in a video capture control, selecting one or more video files or pictures in an online video selection control.
For example, as shown in fig. 17, the video obtaining operation may be that the user clicks the local video upload control 1703 to enter the local video upload interface 1705, and clicks the video upload control 1706 after the user selects one or more video files on the local video upload interface, so as to complete the video obtaining operation. The terminal acquires one or more video files selected by a user.
Step 1603, upon receiving a music acquisition operation on the music control, displaying at least one candidate music.
And the terminal receives music acquisition operation on the music control and displays at least one candidate music.
Illustratively, as shown in fig. 17, when the terminal receives a music retrieval operation on the music widget 1704, at least one candidate music 1707 is displayed.
Step 1604, upon receiving a target music selection operation on the candidate music, determining the target music according to the target music selection operation.
And the terminal receives target music selection operation on the candidate music and determines the target music according to the target music selection operation.
Illustratively, as shown in fig. 17, the terminal receives a target music selection operation on the candidate music, and determines a "memorable song" as the target music according to the target music selection operation.
Step 702, displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music.
The terminal displays a music clip interface, which includes: a music display control and a segment selection control of the target music.
Illustratively, as shown in fig. 8, the terminal displays a music clip interface 801, the music clip interface 801 including: a music display control 803 for the target music and a section selection control 802.
And step 704, when a selection operation on the segment selection control is received, obtaining the selected music segment according to the selection operation.
And when the terminal receives the selection operation on the segment selection control, the selected music segment is obtained according to the selection operation.
Step 706, a one-key selection control of the recommended music piece of the target music is displayed.
And the terminal displays a one-key selection control for displaying the recommended music piece of the target music.
Illustratively, as shown in FIG. 8, a one-key-selection control 805 is displayed in a second state of the music-clip interface 801.
1605, when receiving a trigger operation on the one-key selection control, acquiring the video length of the short video and the recommended segment end point of the recommended music segment; and resetting the end point of the selected segment of the selected music segment according to the video length of the short video and the end point of the recommended segment.
The terminal receives a trigger operation on the one-key selection control, and obtains the video length of the short video and the recommended segment end point of the recommended music segment; and resetting the end point of the selected segment of the selected music segment according to the video length of the short video and the end point of the recommended segment.
The method for the terminal to obtain the recommended segment end point may be any one of the above two methods for determining the recommended segment end point. And resetting the selected segment end point of the selected music segment according to the method for resetting the selected segment end point of the selected music segment correspondingly.
In summary, the method provided in this embodiment provides method steps that the music piece selection method provided by the present application may also include when applied to a video editing program, by adding a one-key selection control, when a user selects a music piece, the user may quickly select the music piece by triggering the one-key selection control, and there is no need to manually position the music piece many times, so that the selection of the music piece is quick and efficient, and the availability and the efficiency of selecting the music piece are improved.
As an example, an exemplary embodiment in which the manner of acquiring the candidate music in step 1603 above is acquired by a server is given.
Fig. 18 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
in contrast to the exemplary embodiment shown in fig. 16, step 1603 may be replaced with the following steps:
step 1801, when receiving a music obtaining operation on the music control, sends a candidate music obtaining request to the server.
And the terminal receives music acquisition operation on the music control and sends a candidate music acquisition request to the server.
The music acquisition request includes data of the video file. The data of a video file is data that can be used to identify the content of a video picture. Illustratively, the video file data may be a picture frame of several frames in the video file.
Step 1802, receiving at least one candidate music fed back by the server, wherein the candidate music is determined according to the picture content after the server identifies the picture content of the video file.
And the terminal receives at least one candidate music fed back by the server, wherein the candidate music is determined according to the picture content after the server identifies the picture content of the video file.
After receiving a music acquisition request sent by the terminal, the server identifies video picture content according to the video file data, and determines candidate music according to the picture content.
For example, the manner in which the server identifies the content of the video frame may include, but is not limited to: firstly, identifying the tone of a video picture, and determining candidate music according to the tone of the picture, for example, determining the easy-to-love music as the candidate music when the tone of the video picture is identified as a pink color system; secondly, identifying the foreground of the video picture, and determining candidate music according to the foreground of the video picture, wherein the foreground of the video picture can be girl, children and gourmet, and determining favorite and relaxing music as the candidate music when the foreground of the video picture is identified as the children; thirdly, the background of the video picture is identified, candidate music is determined according to the background of the video picture, for example, the background of the video picture can be ancient wind buildings, grasslands and seas, and when the background of the video picture is identified as the ancient wind buildings, the Chinese wind music is determined as the candidate music.
And after determining the candidate music, the server sends a candidate music instruction to the terminal, wherein the candidate music instruction comprises candidate music data. The candidate music is one or more, such as 8 at a time.
And after receiving the candidate music instruction, the terminal determines candidate music according to the candidate music data.
Step 1803, displaying at least one candidate music corresponding to the screen content.
The terminal displays at least one candidate music corresponding to the screen content.
In summary, in the method provided in this embodiment, the candidate music is determined by identifying the video frame, so that the candidate music is closer to the current video scene, and is convenient for the user to directly select.
Fig. 19 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which may be applied to the first terminal 220 or the second terminal 260 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
step 1601, the terminal displays a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control.
In step 1602, when receiving a video acquisition operation on a video acquisition control, the terminal acquires a video file according to the video acquisition operation.
In step 1903, the terminal receives a music obtaining operation on the music widget.
In step 1904, the terminal sends a music acquisition request to the server.
In step 1905, the server receives the music retrieval command and identifies the frame content of the video file.
In step 1906, the server sends a candidate music instruction to the terminal.
Step 1907, the terminal receives the candidate music instruction, and receives at least one candidate music fed back by the server, where the candidate music is determined by the server according to the picture content after identifying the picture content of the video file.
In step 1803, the terminal displays at least one candidate music corresponding to the screen content.
And step 1604, when the terminal receives the target music selection operation on the candidate music, determining the target music according to the target music selection control.
Step 702, the terminal displays a music clip interface, wherein the music clip interface comprises: a music display control and a segment selection control of the target music.
Step 704, when the terminal receives the selection operation on the segment selection control, the selected music segment is obtained according to the selection operation.
In step 1912, the terminal sends a dotting data request to the server.
In step 1913, the server receives the dotting data request and determines whether the selected music piece matches the starting point of the dotting data.
Step 1914, the server sends a dotting data instruction to the terminal.
Step 1915, the terminal receives the dotting data instruction, obtains the starting point of the selected segment of the selected music segment, and obtains the dotting data of the target music from the server, wherein the dotting data includes the starting point of the recommended segment of the recommended music segment corresponding to the target music.
Step 7062, when the starting point of the selected section is different from the starting point of the recommended section, the terminal displays a one-key selection control for recommending the music section.
And step 708, when the terminal receives the triggering operation on the one-key selection control, resetting the selected music piece according to the recommended music piece.
In step 1918, the terminal selects the recommended music piece.
At step 1919, the terminal does not display a one-key-selection control.
If the terminal does not receive a selection operation on the segment selection control, then step 1919 is performed, and the terminal does not display the one-key selection control.
In summary, the method provided in this embodiment provides an actual complete method flow for applying the music piece selection method provided in this application. By additionally arranging the one-key selection control, when the user selects the music piece, the user can quickly select the music piece by triggering the one-key selection control without manually positioning the music piece for many times, so that the music piece is quickly and efficiently selected, and the usability and the efficiency of selecting the music piece are improved.
Illustratively, a short video production application is described that employs any of the music piece selection methods described above.
As shown in fig. 20, there is a main interface 2001 of the short video production application, and a short video production start control 2002 is provided on the main interface 2001. When a user wants to publish a short video, the user may trigger the short video production launch control to enter a local video upload interface 1705, or as shown in fig. 21, a video capture interface 2101. A user may select to upload a video file at the local video upload interface 1705 or the video capture interface 2101.
The local video uploading interface 1705 comprises a video selection control 2003, a video uploading control 1706, a shooting video control 2009 and a music library control 2204. The user may select one or more target videos within the video selection control 2003, and then click on the video upload control 1706, upload the videos, and enter the video preview interface 2004. A user-triggered take video control 2009 may enter the video take interface 2101. User-triggered music library control 2204 may enter the music library interface.
The video shooting interface 2101 is provided with a video shooting control 1702 and a local video uploading control 1703. The user can shoot and upload the video file by triggering the video shooting control. And enters the video preview interface 2004. User activation of the local video upload control 1703 may enter the local video upload interface 1705.
In the video preview interface 2004, the user can edit the uploaded video, and the editable content includes, but is not limited to, setting background music for the video, beautifying the video screen, adding animation effect, and the like. The user adds background music to the short video by triggering the music control 2005 on the video preview interface 2004, and after the user triggers the music control 2005, the interface jumps to the music interface 101. At music interface 101 the user may click or click on a piece of music to make a selection of the target music, and clicking or clicking on the piece of music again may deselect. Upon entering the music interface 101, the music of the short video may be edited with reference to the exemplary embodiment shown in fig. 1. Illustratively, when the user triggers the music cropping control to enter the music cropping interface 102 shown in fig. 1, the selected music segment defaults to a recommended music segment, and the recommended music segment is played in a loop, where the recommended music segment is obtained by the terminal through calculating the dotting data and the video duration. The user can also quickly select the playing progress by sliding the spectrogram. And when the user slides the spectrogram and the starting point of the selected segment is inconsistent with the starting point of the recommended segment, displaying a key to return to the control of the wonderful segment of the song.
The style of the video preview interface may also be, for example, a second video preview interface 2001 as shown in fig. 22, which has similar functionality as the video preview interface 2004. Before the user triggers the music control 2005 to enter the music interface 101, a music matching interface 2203 is further provided, the server identifies the content of the short video frame and determines candidate music on the music matching interface 2203, and after the terminal receives a candidate music instruction, the terminal jumps to the music interface 101.
Candidate music is displayed on the music interface 101, and exemplarily, the candidate music has a certain display sequence, wherein the music library control 2204 is fixedly displayed at the leftmost side, and then the music corresponding to the one-click play effect after the one-click play effect is selected by the user, the music selected by the user when the video is edited last time, and the candidate music determined by the user through the video frame recognition by the server are sequentially displayed by the server. If the user has not performed the relevant operation, the music display sequence is sequentially delayed in the music sequence. For example, if the user has not selected the one-touch out effect, the music ranked first is the music that was selected by the user when editing the video last time. User-triggered music library control 2204 may enter music library interface 2205.
The one-key ejection method comprises the following steps:
step a, displaying a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control.
And the terminal displays a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control.
And b, when receiving the video acquisition operation on the video acquisition control, acquiring a video file according to the video acquisition operation.
And when the terminal receives the video acquisition operation on the video acquisition control, acquiring the video file according to the video acquisition operation.
Step c, displaying a template selection interface, wherein the template selection interface comprises: at least one candidate template and a one-touch clip control.
The terminal displays a template selection interface, wherein the template selection interface comprises: at least one candidate template and a one-touch clip control.
The template selection interface is an interface for selecting a video editing template. The template is a result of fixing and standardizing the structural rule of an object, and the template embodies the standardization of the structural form. The template applied to video editing refers to the fixation of the processing process of video editing. Illustratively, the video editing comprises modifying at least one parameter of a leader, a trailer, a score, a filter, a special effect and an interaction of the video. The modifying of the dubbing music of the video may be to change the background music of the video, add a music effect to the video at a certain time, dub the video, and the like. The modification of the picture display can be adjusting the brightness and tone of the video picture, automatically beautifying the face after automatically identifying the face, adding dynamic effect on the video picture, and the like. The modification interaction mode may be that a control capable of receiving a trigger operation is added on the video picture, and a user clicks the control appearing on the video to trigger a corresponding response, for example, the user clicks the corresponding control on the video picture to obtain a red packet, the user clicks the corresponding control on the video picture to make the picture shake, and the user clicks the corresponding control on the video picture to jump to other videos or webpages, etc. Illustratively, there is a template applied to video editing, and the video picture can be dimmed by editing the video using the template. A plurality of candidate templates are provided at the template selection interface.
The one-touch film-out control is a control used for rapidly editing and processing videos according to the template. The one-touch shooting control can receive the triggering operation of the user.
Step d, determining a target template after receiving the template selection operation on at least one candidate template; the target template includes: at least one of a leader material, a trailer material, a special effect material, a filter material and a dubbing music material.
The terminal receives template selection operation on at least one candidate template and determines a target template; the target template includes: at least one of a leader material, a trailer material, a special effect material, a filter material and a dubbing music material.
The template includes at least one way of editing the video, and illustratively, the template includes: : at least one of a leader material, a trailer material, a special effect material, a filter material and a dubbing music material. The title material is a section of title video added in front of the video file, wherein the title video is a video preset in the template or a section of video automatically generated according to a title generation method in the template. Illustratively, the method of generating the slice header video may be to play the first three frames of pictures in the video file at a slow speed. The film end material is a section of film end video added behind the video file. Illustratively, the generation method of the trailer video is similar to the generation method of the leader video. Special effects material can be used to change video pictures. For example, the special effect material may be a small rabbit additionally displayed on a local part of a video frame, or another frame inserted in the middle of each frame of the video frame to make the video play have a flickering effect, or may be an effect of processing each frame of the video in a fixed manner, for example, stretching each frame of the video frame to make a haar-like mirror. The filter material creates a specific video atmosphere by adjusting the color and brightness of the picture or increasing the special effect of display on the whole video picture, for example, a love filter can brighten the picture and display a love special effect on the picture. The soundtrack material is used to adjust the soundtrack of the video, for example, the soundtrack is made by using the sound of the forest blown by wind, a section of soundtrack material is added to a certain frame of the video, and the soundtrack material is played when the frame is played.
The target template may have at least one of the above-described manners of editing the video.
And e, processing the video file according to the target template to generate a new video file when the triggering operation on the one-key film-out control is received.
And the terminal receives the triggering operation on the one-key film-out control, processes the video file according to the target template and generates a new video file.
Illustratively, the target template includes a dubbing music material of "small stars", and after the terminal receives a trigger operation on the one-key picture-out control, the "small stars" is set as background music of the video file to generate a new video file.
Illustratively, one-click film is a unique video processing function provided by the application. The one-key film-out function provides a video production template for a user in advance, wherein the video production template comprises at least one of video editing modes such as the beautification of a video picture, background music, animation effect and the like. Before uploading or shooting the video file, the user may pre-select one of the video production templates, and after shooting the video file or uploading the video file, the terminal or the server performs video editing on the video file according to a video editing mode preset in the video editing template, and jumps to the video preview interface 2004.
The music library interface 2205 is provided with a second music selection control 2206, and a user can select a piece of music on the second music selection control 2206 through music selection operation and enter a music selection interface.
As shown in fig. 23, there is a music selection interface 2301, where the music selection interface highlights the music according to the music selected by the user triggering the second music selection control 2206, and the highlighting may be by displaying a floating window 2305 of the music on the interface. A music collection control 2302, a music cropping control 105, and a music use control 2303 corresponding to the music are displayed on the illustration floating window 2305. The user triggers the music collection control 2302 to collect the music, while the music collection control 2303 is highlighted to indicate that the music has been collected by the user. The user again triggering the music collection control 2303 may cancel the collection of the music while the music collection control is de-highlighted. The user triggering the music cropping control 105 may enter the music cropping interface 102. User activation of the music usage control 2303 may determine the currently selected music as the target music and enter the target music preview interface 2304. The target music preview interface 2304 will match the selected music piece for the video segment and play the video after matching. For example, if the user enters a music library to select a piece of music as the target music without uploading a video, a picture corresponding to the piece of music is displayed on the target music preview interface 2304, that is, a picture 2306 in the music selection interface 2301. For example, the user may enter the target music preview interface 2304 without uploading video by directly triggering the music library control 2204 to enter the music library interface 2205 without uploading video on the local video upload interface 1705.
A music lyric control 2007 and a change of voice control 2008 are also displayed on the music interface 101, and a user triggering the music lyric control 2007 can enter a music lyric selection interface, as shown in fig. 24, which has a music lyric selection interface 2401, where the user can select not to display or display different styles of song lyrics. After the terminal selects the target music, the terminal searches the lyric use history of the user and judges the lyric use tendency of the user, including whether the lyric is used or not, the lyric style use frequency and the like. The most frequently used lyric display mode is automatically displayed for the user through the user use tendency. Or the terminal reads the setting of the lyric display when the user edits the video last time, and automatically displays the lyrics in the lyric display mode set by the user last time when the user selects the target music to enter the music preview interface or the video preview interface next time. For example, the last time the user selects to turn the lyrics off, the next time the terminal defaults to turn the lyrics off. The method can make the setting of the lyrics more intelligent.
The user can enter the sound change interface 2402 by triggering the sound change control 2008, the user can record audio as background music of the short video on the sound change interface 2402, the sound change interface 2402 is provided with an audio processing template selection control 2403, the audio processing template selection control 2403 is provided with a plurality of audio processing templates, and the audio processing templates can process audio files and change attributes such as audio tones, tone colors, audio and the like to enable the attributes to be similar to certain sound. Illustratively, there are many audio processing templates such as the great tertiary sound, the Royal sound, the Tieguanyin, etc. When a user selects one of the audio processing templates, the user enters an audio recording preparation interface 2404, an audio recording control 2405 is displayed on the audio recording preparation interface, and the user triggers the audio recording control 2405 to control the terminal to start recording sound and jump to the audio recording interface 2406.
When the music cropping control 105 is triggered in the music selection interface 2301 shown in fig. 23, the user jumps to the music cropping interface 102 shown in fig. 25, the music cropping interface 102 has a cropping music confirmation control 2501, the user triggers the cropping music confirmation control 2501 and the interface jumps to the video preview interface 2004, and the video frame and the score after the score is produced using the selected music piece are displayed in the video preview interface 2004.
Also included in the music library interface 2205 as shown in fig. 22 are a listen to song recognition control 2207 and a music search control 2208. The user triggers the song listening and song recognition control 2207 to enter a song listening and song recognition interface 2502 as shown in fig. 25. After entering the interface 2502 for listening to songs, the terminal starts to record and identify the sound automatically. A humming recognition control 2503 is arranged on the humming recognition interface 2502, a user can trigger the humming recognition control 2503 to enable the interface to jump to the humming recognition interface 2504, and after the humming recognition interface 2504 is entered, the terminal starts to record sound automatically and recognizes the sound.
After the user triggers the music search control 2208, the user jumps to the music retrieval interface. As shown in fig. 26, there is a music retrieval interface 2601, and there is a music retrieval control 2602 in the music retrieval interface 2601, and the user can input keywords related to music to be retrieved by triggering the music retrieval control 2602. A recommendation keyword control 2062 appears on the music retrieval interface 2601 when a keyword is entered at the music retrieval control 2602, the recommendation keyword control being provided with other keywords related to the currently entered keyword. The music search interface 2601 further includes a music detection start control 2603, the user inputs a keyword and triggers the music detection start control 2603 to jump to the music search result interface 2604, and the music search result interface 2604 displays the related music information and results searched by the current keyword.
For example, the triggering operation on the control mentioned in the above exemplary embodiments may be at least one of clicking, double clicking, sliding, dragging and pressing.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 27 shows a block diagram of a selecting apparatus for music pieces according to an exemplary embodiment of the present application. The apparatus may be implemented as all or a portion of a terminal. The device includes:
a display module 2701, configured to display a music clip interface, where the music clip interface includes: a music display control and a segment selection control of the target music; displaying a one-key selection control of the recommended music piece of the target music;
an interaction module 2702, configured to receive a selection operation on the fragment selection control; receiving a trigger operation on the one-key selection control;
an obtaining module 2703, configured to, when a selection operation on the clip selection control is received, obtain a selected music clip according to the selection operation;
the resetting module 2704 resets the selected music piece according to the recommended music piece when receiving the triggering operation on the one-key selection control.
In an optional embodiment, the obtaining module 2703 is further configured to obtain a selected segment start point of the selected music segment and a recommended segment start point of the recommended music segment;
the display module 2701 is further configured to display the one-key selection control of the recommended music piece when the starting point of the selected piece is different from the starting point of the recommended piece.
In an optional embodiment, the apparatus further comprises a receiving module 2705;
the receiving module 2705 is configured to obtain dotting data of the target music from a server, where the dotting data includes a start point of the recommended segment of the recommended music segment corresponding to the target music.
In an optional embodiment, the resetting module 2704 is further configured to reset the start point of the selected piece of music to the start point of the recommended piece of music.
In an optional embodiment, the resetting module 2704 is further configured to reset the start point of the selected music piece to the start point of the recommended piece of the closest recommended piece of music in time when the number of the recommended pieces of music is at least two.
In an optional embodiment, the obtaining module 2703 is further configured to obtain a video length of the short video and a recommended section end point of the recommended music section;
the resetting module 2704 is further configured to reset the selected segment terminal of the selected music segment according to the video length of the short video and the recommended segment end point.
In an alternative embodiment, the apparatus further comprises intercept module 2706;
the resetting module 2704 is further configured to reset the selected segment end point of the selected music segment to the recommended segment end point of the recommended music segment when the video length of the short video is longer than or equal to the time length of the recommended music segment;
the intercepting module 2706 is configured to, when the video length of the short video is shorter than the time length of the recommended music piece, intercept the short video from the start point of the recommended music piece according to the video length to obtain an intercepted recommended music piece;
the resetting module 2704 is further configured to reset the selected segment end point of the selected music segment to be a truncated segment end point of the truncated recommended music segment.
In an optional embodiment, the apparatus further comprises a determining module 2707;
the display module 2701 is further configured to display a video editing interface, where the video editing interface includes a video acquisition control and a music control;
the interaction module 2702 is further configured to receive a video acquisition operation on the video acquisition control; receiving music obtaining operation on the music control; receiving a target music selection operation on the candidate music;
the obtaining module 2703 is further configured to, when receiving a video obtaining operation on the video obtaining control, obtain the video file according to the video obtaining operation;
the display module 2701 is further configured to display at least one candidate music when receiving a music obtaining operation on the music control;
the determining module 2707 is configured to determine the target music according to the target music selection control when receiving a target music selection operation on the candidate music.
In an optional embodiment, the apparatus further comprises a sending module 2708;
the sending module 2708 is configured to send a candidate music obtaining request to a server;
the receiving module 2705 is further configured to receive at least one candidate music fed back by the server, where the candidate music is determined by the server according to the picture content after the server identifies the picture content of the video file;
the display module 2701 is further configured to display at least one candidate music corresponding to the screen content.
The present application further provides a terminal, including: the music piece selection device comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the music piece selection method provided by the method embodiments.
The present application further provides a computer device, comprising: the system comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the music piece selection method provided by the method embodiments.
The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for selecting music pieces provided by the above-mentioned method embodiments.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method for selecting music segments, the method comprising:
displaying a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music;
when a selection operation on the segment selection control is received, obtaining a selected music segment according to the selection operation;
displaying a one-key selection control of the recommended music piece of the target music;
and when receiving the triggering operation on the one-key selection control, resetting the selected music piece according to the recommended music piece.
2. The method of claim 1, wherein the displaying a one-key-selection control of the recommended musical piece of the target music comprises:
acquiring a selected segment starting point of the selected music segment and acquiring a recommended segment starting point of the recommended music segment;
when the selected segment starting point is different from the recommended segment starting point, displaying the one-key selection control of the recommended music segment.
3. The method of claim 2, wherein obtaining the recommended segment start point of the recommended music segment comprises:
and obtaining dotting data of the target music from a server, wherein the dotting data comprises the recommended segment starting point of the recommended music segment corresponding to the target music.
4. The method of claim 2, wherein said resetting the selected musical piece according to the recommended musical piece comprises:
resetting the selected section start point of the selected music section to the recommended section start point of the recommended music section.
5. The method of claim 4, wherein said resetting the selected section start point of the selected music section to the recommended section start point of the recommended music section comprises:
when the recommended music pieces are at least two, the starting point of the selected piece of the selected music piece is reset to the starting point of the recommended piece of the recommended music piece with the closest temporal distance.
6. The method of any of claims 2 to 5, wherein the music clip interface is a user interface provided by a video editing program, wherein the target music is a soundtrack for a video file, and wherein the method further comprises:
acquiring the video length of the short video and the recommended segment end point of the recommended music segment;
the resetting the selected music piece according to the recommended music piece comprises:
and resetting the selected segment end point of the selected music segment according to the video length of the short video and the recommended segment end point.
7. The method according to claim 6, wherein said resetting the selected segment terminal of the selected music segment according to the video length of the short video and the recommended segment end point comprises:
resetting the selected segment end point of the selected music segment as the recommended segment end point of the recommended music segment when the video length of the short video is longer than or equal to the time length of the recommended music segment;
when the video length of the short video is shorter than the time length of the recommended music piece, intercepting the short video from the starting point of the recommended music piece according to the video length to obtain the intercepted recommended music piece; resetting the selected segment end point of the selected music segment as a truncated segment end point of the truncated recommended music segment.
8. The method of claim 6, wherein prior to displaying the music clip interface, further comprising:
displaying a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control;
when a video acquisition operation on the video acquisition control is received, acquiring the video file according to the video acquisition operation;
displaying at least one candidate music when receiving a music acquisition operation on the music control;
and when target music selection operation on the candidate music is received, determining the target music according to the target music selection operation.
9. The method of claim 8, wherein the displaying at least one candidate music comprises:
sending a candidate music acquisition request to a server;
receiving at least one candidate music fed back by a server, wherein the candidate music is determined according to the picture content after the server identifies the picture content of the video file;
and displaying at least one candidate music corresponding to the picture content.
10. An apparatus for selecting a musical piece, the apparatus comprising:
a display module to display a music clip interface, the music clip interface comprising: a music display control and a segment selection control of the target music; displaying a one-key selection control of the recommended music piece of the target music;
the interaction module is used for receiving selection operation on the fragment selection control; receiving a trigger operation on the one-key selection control;
the acquisition module is used for obtaining the selected music segment according to the selection operation when the selection operation on the segment selection control is received;
and the resetting module resets the selected music segment according to the recommended music segment when receiving the triggering operation on the one-key selecting control.
11. The apparatus of claim 10,
the obtaining module is further configured to obtain a selected segment starting point of the selected music segment, and obtain a recommended segment starting point of the recommended music segment;
the display module is further configured to display the one-key selection control of the recommended music piece when the starting point of the selected piece is different from the starting point of the recommended piece.
12. The apparatus of claim 11, further comprising a receiving module;
the receiving module is configured to obtain dotting data of the target music from a server, where the dotting data includes a recommended segment start point of the recommended music segment corresponding to the target music.
13. The apparatus of claim 11,
the resetting module is further configured to reset the starting point of the selected section of the selected music section to the starting point of the recommended section of the recommended music section.
14. A computer device, characterized in that the computer device comprises: a processor and a memory, said memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, said at least one instruction, said at least one program, said set of codes, or said set of instructions being loaded and executed by said processor to implement the method of selection of a piece of music according to any one of claims 1 to 9.
15. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of selecting a piece of music according to any one of claims 1 to 9.
CN201910818780.3A 2019-08-30 2019-08-30 Music piece selection method, device, equipment and storage medium Active CN112445395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818780.3A CN112445395B (en) 2019-08-30 2019-08-30 Music piece selection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818780.3A CN112445395B (en) 2019-08-30 2019-08-30 Music piece selection method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112445395A true CN112445395A (en) 2021-03-05
CN112445395B CN112445395B (en) 2023-06-30

Family

ID=74735313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818780.3A Active CN112445395B (en) 2019-08-30 2019-08-30 Music piece selection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112445395B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112987999A (en) * 2021-04-13 2021-06-18 杭州网易云音乐科技有限公司 Video editing method and device, computer readable storage medium and electronic equipment
CN113038260A (en) * 2021-03-16 2021-06-25 北京字跳网络技术有限公司 Music extension method and device, electronic equipment and storage medium
CN113713371A (en) * 2021-08-31 2021-11-30 腾讯科技(深圳)有限公司 Music synthesis method, device, equipment and medium
CN113891142A (en) * 2021-11-02 2022-01-04 广州博冠信息科技有限公司 Song data processing method and device, storage medium and electronic equipment
CN114339392A (en) * 2021-11-12 2022-04-12 腾讯科技(深圳)有限公司 Video editing method and device, computer equipment and storage medium
CN115065840A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Information processing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014144497A1 (en) * 2013-03-15 2014-09-18 Szerlip Joyce Bryan System and method communicating with music clips
WO2014178462A1 (en) * 2013-05-03 2014-11-06 Seok Cheol Music editing method using video streaming service and music editing apparatus used therefor
US20140328576A1 (en) * 2013-05-06 2014-11-06 Glen Nelson Debarros System and method for creating distinct video content program from individual video content clips
US20150139615A1 (en) * 2013-11-19 2015-05-21 SketchPost, LLC Mobile video editing and sharing for social media
CN105426397A (en) * 2015-10-29 2016-03-23 深圳市创想天空科技股份有限公司 Ringtone creating method and apparatus
CN107393569A (en) * 2017-08-16 2017-11-24 成都品果科技有限公司 Audio frequency and video clipping method and device
CN108600825A (en) * 2018-07-12 2018-09-28 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
CN108668164A (en) * 2018-07-12 2018-10-16 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014144497A1 (en) * 2013-03-15 2014-09-18 Szerlip Joyce Bryan System and method communicating with music clips
WO2014178462A1 (en) * 2013-05-03 2014-11-06 Seok Cheol Music editing method using video streaming service and music editing apparatus used therefor
US20140328576A1 (en) * 2013-05-06 2014-11-06 Glen Nelson Debarros System and method for creating distinct video content program from individual video content clips
US20150139615A1 (en) * 2013-11-19 2015-05-21 SketchPost, LLC Mobile video editing and sharing for social media
CN105426397A (en) * 2015-10-29 2016-03-23 深圳市创想天空科技股份有限公司 Ringtone creating method and apparatus
CN107393569A (en) * 2017-08-16 2017-11-24 成都品果科技有限公司 Audio frequency and video clipping method and device
CN108600825A (en) * 2018-07-12 2018-09-28 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video
CN108668164A (en) * 2018-07-12 2018-10-16 北京微播视界科技有限公司 Select method, apparatus, terminal device and the medium of background music shooting video

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038260A (en) * 2021-03-16 2021-06-25 北京字跳网络技术有限公司 Music extension method and device, electronic equipment and storage medium
CN113038260B (en) * 2021-03-16 2024-03-19 北京字跳网络技术有限公司 Music extension method, device, electronic equipment and storage medium
CN112987999A (en) * 2021-04-13 2021-06-18 杭州网易云音乐科技有限公司 Video editing method and device, computer readable storage medium and electronic equipment
CN113713371A (en) * 2021-08-31 2021-11-30 腾讯科技(深圳)有限公司 Music synthesis method, device, equipment and medium
CN113713371B (en) * 2021-08-31 2023-07-21 腾讯科技(深圳)有限公司 Music synthesis method, device, equipment and medium
CN113891142A (en) * 2021-11-02 2022-01-04 广州博冠信息科技有限公司 Song data processing method and device, storage medium and electronic equipment
CN114339392A (en) * 2021-11-12 2022-04-12 腾讯科技(深圳)有限公司 Video editing method and device, computer equipment and storage medium
CN114339392B (en) * 2021-11-12 2023-09-12 腾讯科技(深圳)有限公司 Video editing method, device, computer equipment and storage medium
CN115065840A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112445395B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN110336960B (en) Video synthesis method, device, terminal and storage medium
CN109819313B (en) Video processing method, device and storage medium
CN111243632B (en) Multimedia resource generation method, device, equipment and storage medium
CN109302538B (en) Music playing method, device, terminal and storage medium
CN112445395B (en) Music piece selection method, device, equipment and storage medium
CN109756784B (en) Music playing method, device, terminal and storage medium
CN111246300B (en) Method, device and equipment for generating clip template and storage medium
CN111065001B (en) Video production method, device, equipment and storage medium
CN111901658B (en) Comment information display method and device, terminal and storage medium
CN109587549B (en) Video recording method, device, terminal and storage medium
CN111711838B (en) Video switching method, device, terminal, server and storage medium
WO2021068903A1 (en) Method for determining volume adjustment ratio information, apparatus, device and storage medium
WO2019127899A1 (en) Method and device for addition of song lyrics
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN108831424B (en) Audio splicing method and device and storage medium
CN109346111B (en) Data processing method, device, terminal and storage medium
CN112261481B (en) Interactive video creating method, device and equipment and readable storage medium
CN111880888B (en) Preview cover generation method and device, electronic equipment and storage medium
CN110996167A (en) Method and device for adding subtitles in video
CN110798327B (en) Message processing method, device and storage medium
CN112417180A (en) Method, apparatus, device and medium for generating album video
CN111031394B (en) Video production method, device, equipment and storage medium
CN112822544A (en) Video material file generation method, video synthesis method, device and medium
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN113936699A (en) Audio processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40040450

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant