CN112445395B - Music piece selection method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN112445395B
CN112445395B CN201910818780.3A CN201910818780A CN112445395B CN 112445395 B CN112445395 B CN 112445395B CN 201910818780 A CN201910818780 A CN 201910818780A CN 112445395 B CN112445395 B CN 112445395B
Authority
CN
China
Prior art keywords
music
piece
recommended
video
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910818780.3A
Other languages
Chinese (zh)
Other versions
CN112445395A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a music piece selecting method, device, equipment and 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 clip selection control of the target music; when receiving a selection operation on the segment selection control, 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 a triggering operation on the one-key selection control is received, resetting the selected music piece according to the recommended music piece. The method can select the music highlight by one key, and improves the efficiency of selecting the music pieces.

Description

Music piece selection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of multimedia processing, and in particular, to a method, an apparatus, a device, and a storage medium for selecting a music clip.
Background
The short video program is a short video originally shot by a user and is used as a sharing platform of network transmission content. In short video programs, there is a need for users to select a piece of wonderful music.
A music clip interface is provided on the short video program, a playing progress bar of music is displayed on the music clip interface, a section selection control (such as a vertical line or a round-headed needle indicator) is provided on the playing progress bar, a user drags a position pointed by the section selection control on the playing progress bar, and the short video program determines the selected music section according to the position pointed by the section selection control.
Because the length of the playing progress bar is limited, the accuracy of the finger sliding operation of the user is low, and the user can hardly accurately select the music piece to be selected, and the usability and the high efficiency of selecting the wonderful music piece are lacking in the scheme.
Disclosure of Invention
The embodiment of the application provides a music piece selecting method, device, equipment and storage medium, which can solve the problems that a user is difficult to accurately select a music piece to be selected, and the technical scheme of the related technology lacks availability and high efficiency of selecting a wonderful music piece. The technical scheme is as follows:
according to one aspect of the present application, there is provided a music piece selecting method, including:
displaying a music clip interface, the music clip interface comprising: a music display control and a clip selection control of the target music;
When receiving a selection operation on the segment selection control, 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 a triggering operation on the one-key selection control is received, resetting the selected music piece according to the recommended music piece.
According to another aspect of the present application, there is provided a music piece selecting apparatus, the apparatus including:
the display module is used for displaying a music clip interface, and the music clip interface comprises: a music display control and a clip 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 the selection operation on the fragment selection control; receiving triggering operation on the one-key selection control;
the acquisition module is used for acquiring the selected music fragment according to the selection operation when the selection operation on the fragment selection control is received;
and the resetting module resets the selected music piece according to the recommended music piece when receiving the triggering operation on the one-key selection control.
According to another aspect of the present application, there is provided a computer device comprising: the music piece selecting device comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the music piece selecting method according to the aspect.
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, a set of codes or a set of instructions, the at least one instruction, the at least one program, the set of codes or the set of instructions being loaded and executed by the processor to implement the method of selecting a musical piece as described in the above aspect.
The beneficial effects that technical scheme that this application embodiment provided include at least:
by adding the one-key selection control, when a user manually selects a music piece on target music, the user can quickly select the selected music piece according to the recommended music piece by triggering the one-key selection control through the terminal, so that the difficulty level 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 the efficiency in selecting the music piece are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an interface schematic diagram of a music piece selecting method according to 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 schematic diagram of a related art music piece selection method according to an exemplary embodiment of the present application;
fig. 6 is an interface schematic diagram of a related art music piece selection method according to another exemplary embodiment of the present application;
FIG. 7 is a flowchart of a method for selecting a musical piece according to an exemplary embodiment of the present application;
FIG. 8 is a schematic illustration of an interface for selecting a musical piece according to another exemplary embodiment of the present application;
FIG. 9 is a schematic illustration of an interface for selecting a musical piece according to another exemplary embodiment of the present application;
FIG. 10 is a schematic illustration of an interface for selecting a musical piece according to another exemplary embodiment of the present application;
FIG. 11 is a schematic illustration of an interface for selecting a musical piece according to 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 an interface diagram of selection of a musical piece provided in 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 schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 21 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 22 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
Fig. 23 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 24 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 25 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 26 is an interface schematic diagram of a music piece selecting method according to another exemplary embodiment of the present application;
fig. 27 is a block diagram of a music piece selecting apparatus provided in an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the 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, video is happy; in ring tone generating software, intercepting music fragments; in music playing software, intercepting music fragments and sharing the music fragments to friends; in singing applications, a piece of music is cut for singing, etc.
The application provides a music piece selecting method, which is used for short video production software as an example and is briefly introduced.
As shown in fig. 1, when a user shoots or transmits a short video, background music of the video can be selected on the music interface 101, and after the user selects a hand of song, the user clicks the music clipping control 105 to enter the music clipping interface 102. The user selects a piece of music by sliding the spectrum 106 of the song on the music cropping interface 102. However, due to the short length of the sound spectrum, it is difficult for the sliding operation to accurately locate a certain second or a millisecond in a piece of music to accurately select a desired piece of music.
Accordingly, the present application provides a music piece selection method. First, there is a song highlight database containing highlight data of all or part of music. After a user selects a piece of music and enters the music clipping interface 102, when the user slides the sound spectrum to start selecting a piece of music, the terminal acquires highlight data corresponding to the piece of music in the database, and displays a one-key selection control 103, so that the user can trigger the terminal to quickly select the highlight of the piece of music according to the highlight data by triggering the one-key selection control.
Illustratively, as shown in fig. 1, after the highlight of the song starts from 2 minutes and 23 seconds, and the user slides the sound spectrum to 2 minutes and 30 seconds, if the user wants to select 2 minutes and 23 seconds, it is difficult to accurately control, at this time, a one-key selection control 103 is displayed on the music clip interface, and the user clicks the one-key selection control 103, so that the terminal is triggered to automatically select the highlight starting from 2 minutes and 23 seconds on the sound spectrum.
Because the music piece selected by the user is the wonderful piece of the music under most conditions, the music piece selecting method provided by the application can enable the user to accurately select the wanted music piece, and is convenient and quick.
FIG. 2 illustrates a block diagram of a computer system 200 provided in 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 smart phone, a game console, a desktop computer, a tablet computer, an electronic book reader, an MP3 player, an MP4 player, and a laptop portable computer. The first device 220 installs and runs an application supporting music clips. The application may be any of a short video production application, a short video sharing application, a music playing application, a ringtone production application, 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.
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 supporting music clips. Optionally, the server cluster 240 performs primary computing work and the first terminal 220 and the second terminal 260 perform secondary computing work; alternatively, the server cluster 240 performs the secondary computing job and the first terminal 220 and the second terminal 260 perform the primary computing job; alternatively, the server cluster 240, the first terminal 220, and the second terminal 260 may cooperatively use a distributed computing architecture.
Optionally, the server cluster 240 includes: an access server 242 and a 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 to 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 applications, such as: at least one of friend service, text message forwarding service, sound message forwarding service and picture message forwarding service is added. The storage server 244 may be one or more. When the storage servers 244 are multiple, there are at least two storage servers 244 for providing different services and/or there are at least two storage servers 244 for providing the same service.
The second device 260 installs and runs an application supporting music clips. The application may be any of a short video production application, a short video sharing application, a music playing application, a ringtone production application, 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, etc.
The first terminal 220 may refer broadly to one of a plurality of terminals, and the second terminal 260 may refer broadly to one of a plurality of terminals, the present embodiment being illustrated with only the first terminal 220 and the second terminal 260. The terminal types of the first terminal 220 and the second terminal 260 are the same or different, and include: at least one of a smart phone, a game console, a desktop computer, a tablet computer, an electronic 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 smart phone.
Those skilled in the art will recognize that the number of terminals may be greater or lesser. Such as only one terminal, or tens or hundreds of terminals, or more, the computer system may include other terminals 280. The number of terminals and the device type are not limited in the embodiment 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 picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. The terminal 300 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc. The terminal 300 may be a first terminal or a second terminal.
In general, the terminal 300 includes: a processor 301 and a memory 302.
Processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 301 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 301 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 301 may also 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 memory 302 is used to store at least one instruction for execution by processor 301 to implement a method of selecting a musical piece for an application provided by various method embodiments in the present application.
In some embodiments, the terminal 300 may further optionally 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 line. The individual peripheral devices may be connected to the peripheral device interface 303 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, touch screen 305, camera 306, audio circuitry 307, and power supply 308.
The peripheral interface 303 may be used to connect at least one Input/Output (I/O) related peripheral 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, either or both of the processor 301, the memory 302, and the peripheral interface 303 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 304 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 304 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 304 may also include NFC (Near Field Communication ) related circuitry, which is 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 305 is a touch screen, the display 305 also has the ability to collect touch signals at or above the surface of the display 305. The touch signal may be input as a control signal to the processor 301 for processing. At this point, the display 305 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 305 may be one, providing a front panel of the terminal 300; in other embodiments, the display screen 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 a folded surface of the terminal 300. Even more, the display screen 305 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 305 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 306 is used to capture images or video. Optionally, the camera assembly 306 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 306 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 307 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, 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 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be respectively disposed at different portions of the terminal 300. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 301 or the radio frequency circuit 304 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 307 may also include a headphone jack.
The power supply 308 is used to power the various components in the terminal 300. The power source 308 may be alternating current, direct current, disposable or rechargeable. When the power source 308 comprises 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 further includes one or more sensors 309. The one or more sensors 309 include, but are not limited to: acceleration sensor 310, gyroscope sensor 311, pressure sensor 312, optical sensor 313, and proximity sensor 314.
The acceleration sensor 310 may detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 300. For example, the acceleration sensor 310 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 301 may control the touch display screen 305 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 310. The acceleration sensor 310 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 311 may detect a body direction and a rotation angle of the terminal 300, and the gyro sensor 311 may collect a 3D motion of the user to the terminal 300 in cooperation with the acceleration sensor 310. The processor 301 may implement the following functions according to the data collected by the gyro sensor 311: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 312 may be disposed at a side frame of the terminal 300 and/or at an underlying layer of the touch screen 305. When the pressure sensor 312 is disposed on the side frame of the terminal 300, a grip signal of the terminal 300 by the user may be detected, and the processor 301 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 312. When the pressure sensor 312 is disposed at the lower layer of the touch screen 305, the processor 301 controls the operability control on the UI interface according to the pressure operation of the user on the touch screen 305. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 313 is used to collect the ambient light intensity. In one embodiment, the processor 301 may control the display brightness of the touch screen 305 based on the ambient light intensity collected by the optical sensor 313. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 305 is turned up; 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 module 306 according to the ambient light intensity collected by the optical sensor 313.
A proximity sensor 314, also referred to as a distance sensor, is typically provided on the front panel of the terminal 300. The proximity sensor 314 is used to collect the distance between the user and the front of the terminal 300. In one embodiment, when the proximity sensor 314 detects a gradual decrease in the distance between the user and the front face of the terminal 300, the processor 301 controls the touch screen 305 to switch from the on-screen state to the off-screen state; when the proximity sensor 314 detects that the distance between the user and the front surface of the terminal 300 gradually increases, the processor 301 controls the touch display screen 305 to switch from the off-screen state to the on-screen state.
Optionally, the memory 302 also includes therein 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 digital assistant client module 327;
data users and models 328;
application 329: contact module 329-1, phone module 329-2, video conferencing module 329-3, email module 329-4, instant messaging module 329-5, workout support module 329-6, camera module 329-7, image management module 329-8, multimedia player module 329-9, notepad module 329-10, map module 329-11, browser module 329-12, calendar module 329-13, weather module 329-14, stock market module 329-15, computer module 329-16, alarm module 329-17, dictionary module 329-18, search module 329-19, online video module 329-20, …, user created module 329-21.
In the present embodiment, the memory 302 also includes an application 329-22 that supports music clips. The application 329-22 may be used to implement the method of selecting a music piece of an application in the method embodiment described below.
Those skilled in the art will appreciate that the structure shown in fig. 3 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
The application further provides a computer readable storage medium, in which at least one instruction, at least one section of program, a code set or an instruction set is stored, where the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to implement a method for selecting a music piece in an application program provided by an embodiment of the application.
Fig. 4 is a schematic structural diagram of a server according to an exemplary embodiment of the present application. The server may be implemented as any one of the servers in the server cluster 240 described above. The server 400 illustratively includes a central processing unit (Central Processing Unit, CPU for short), 401, a system Memory 404 including a random access Memory (Random Access Memory, RAM for short) 402 and a Read-Only Memory (ROM for short) 403, and a system bus 405 connecting the system Memory 404 and the central processing unit 401. The server 400 also includes a basic input/output system (I/O system) 406, which facilitates the transfer of information between the various 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 via 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, the input/output controller 410 also provides 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 medium 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-Only (CD-ROM) drive.
The computer readable medium may include computer storage media and communication media without loss of generality. 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 (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory or other solid state Memory technology, CD-ROM, digital versatile disks (Digital Versatile Disc, 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 recognize that the computer storage medium is not limited to the one described above. The system memory 404 and mass storage device 407 described above may be collectively referred to as memory.
The server 400 may also operate via a network, such as the internet, connected to a remote computer on the network, according to various embodiments of the present application. I.e. the server 400 may be connected to the network 412 via a network interface unit 411 connected to the system bus 405, or alternatively, the network interface unit 411 may be used to connect to other types of networks or remote computer systems (not shown).
Fig. 5 is an interface diagram showing a related art music piece selection method. On the music selection interface 501, there are displayed: a music cropping control 105; on the music clipping interface 102, there are displayed: music piece selection control 502. After the user selects the target music, the music clip control 105 is triggered to enter the music clip interface 102, and the user can select a piece of music by controlling the piece of music selection control 502 at the music clip interface 102. Such as dragging the sound spectrum left and right to clip music.
Fig. 6 is a schematic interface diagram of another related art music clip selection method, and a user may jump to the music clip interface directly after selecting the target music. On the music selection interface 501, there are displayed: music selection control 601; on the music clipping interface 102, there are displayed: music piece selection control 502. The user selects the desired target music and clicks on the trigger music selection control 601 to enter the music clipping interface 102 for the target music, and the user can select a piece of music by controlling the piece of music selection control 502 in the music clipping interface 102. For example, drag the sound spectrum left and right to clip music.
In the related art, the selection of the music piece is mainly achieved by controlling the music piece selection control 502, but since the music piece selection control 502 has a limited length, the sliding operation is difficult to precisely locate the music piece desired by the user, and the user cannot accurately select the target music piece.
According to the music piece selecting method, based on highlight piece data existing in the server, a one-key selecting control is additionally arranged on the music cutting interface 102, and a user can quickly and accurately select a target music piece by triggering the one-key selecting control.
Fig. 7 is a flowchart illustrating a music piece selecting method according to an exemplary embodiment of the present application, which can 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 clip selection control for the target music.
The terminal displays a music clip interface, the music clip interface comprising: a music display control and a clip selection control for the target music.
The music clip is a process of clip editing music. The music clip includes at least one of selecting, cropping, sorting, rearranging, and overlaying the music. If the original music is described by a time axis, the music clip is at least one of clipping, adding, sorting and overlaying the time axis. By way of example, the music clip may be: selecting a period of time on an original music time axis to obtain new music, and disconnecting the original music time axis from a certain time point or a plurality of time points to obtain one or more pieces of new music; re-ordering and combining at least one of new music, original music, new music and original music obtained by the above method into new music, and for example, the same new music or original music may be ordered a plurality of times; at least one of two different pieces of original music or new music obtained by the above method is superimposed to obtain new music. The order of the above examples may be arbitrary.
The music clip interface is an interface for music clipping of music displayed on the terminal. The music clip interface may be a separate interface or an area for a music clip displayed on another interface. Illustratively, as shown in FIG. 8, there is a separate music clip interface 801; as shown in fig. 1, on the music clip interface 102, there is an area for music clips, which is a music clip interface 801.
The music clip interface includes: a music display control and a clip selection control for the target music.
The target music is music of a music clip at the current music clip interface. Illustratively, the target music is music that is determined before the user enters the music clip interface.
A control is any visual control or element that can be seen on the user interface of an application, such as a control for a picture, an input box, a text box, a button, a label, etc. Some of the controls are responsive to user operations, for example, a slide clip selection control may select a musical clip.
The music display control is a control having a play progress capability of displaying music. By way of example, the music display control may be at least one of a music progress bar, a music spectrogram, a music lyrics map. The music progress bar is a control for displaying the play progress of music in time order, and there is a music progress bar 901 as illustrated in fig. 9 by way of example. Music spectrograms the music is described in terms of audio ranges, and the music spectrograms are gradually filled in time sequence to display the progress of playing the music, as illustrated in fig. 10, for example, with a music spectrogram 1001. The music lyrics map describes music with music lyrics, and the playing progress of the music is displayed by gradually scrolling or filling the music lyrics in time sequence, and as shown in fig. 11, there is an exemplary music lyrics map 1001.
The section selection control is a control (such as a vertical line) for making a music section selection. The segment selection control may receive a segment selection operation of a user, which may be, for example, at least one of a click, a double click, a swipe, a drag, a press, a voice command. Illustratively, the music display control and the clip selection control are displayed as the same control on the music clip interface, or the music display control and the clip selection control are used in combination, as shown in fig. 8, with a clip selection control 802 and a music display control 803, and the user can select a music clip by sliding the clip selection control 802. Illustratively, when the user slides the section selection control 802, the progress of the music selected by the frame on the music display control 803 changes accordingly, and the currently user-selected music section 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 comprising: a music display control 803 and a clip selection control 802 for the target music.
Step 704, when receiving the selection operation on the section selection control, obtaining the selected music section 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 clicking, double clicking, sliding, dragging, pressing, voice command. Wherein, clicking or double clicking can be to select a music piece by clicking a sentence of lyrics, a part of sound spectrum, etc. The sliding may be by sliding a music spectrogram, a music progress bar, a music lyrics map, etc. to select a piece of music. Speech recognition may select a piece of music corresponding to lyrics by identifying the lyrics of the music. Illustratively, as shown in FIG. 8, the selection operation is a sliding operation 806 on the segment selection control 802.
The selected musical piece may be obtained according to the selection operation in such a manner that, after receiving the piece selection operation, the music display control 803 has a highlight portion thereon, the highlight portion being the selected musical piece. The highlighting may be: a selected frame is displayed on the music display control 803, the music progress bar/music spectrogram/music lyrics map portion within the selected frame is a selected music piece, and the shape of the selected frame is arbitrary; distinguishing coloring, highlighting, selected symbols and the like on a music progress bar/music spectrogram/music lyrics map; at least one of the starting points of the selected pieces of music is displayed on the music progress bar/music spectrogram/music lyrics map. For example, as shown in fig. 8, a selected box 804 is displayed on the syllable clipping interface, and a music piece corresponding to the music spectrogram in the selected box is a selected music piece.
The method of obtaining the selected music piece according to the selection operation may be that after receiving the piece selection operation, the piece selection operation is directly identified to obtain the selected music piece. Illustratively, the identification fragment selection operation may be: identifying a position of the segment selection operation single click or double click, and determining a music segment within a period of time after the position as a selected music segment; identifying a range of the section selection operation slide, and determining the music sections within the range as selected music sections; identifying a voice instruction of a piece selecting operation, and determining a music piece indicated in the voice instruction as at least one of the selected music pieces.
The selected piece of music is part or all of music selected by the user from the target music. The part or all of the music may be after the music clip: at least one of a piece of music, several pieces of music, and a piece of music repeatedly played. 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 subsequent other music processing.
For example, as shown in fig. 8, in the first state of the music clip interface 801, when receiving a selection operation (sliding operation 806) on the clip selection control, the terminal jumps to the second state of the music clip interface 801, and obtains a selected music clip according to the selection operation, where the selected music clip is a music clip corresponding to 2 minutes 30 seconds to 3 minutes 01 seconds in the target music.
Step 706, a one-touch selection control of a recommended piece of music for the target music is displayed.
The terminal displays a one-key selection control of the recommended music piece of the target music.
The recommended musical piece is a musical piece in the preset target music. The recommended musical piece may have one or more.
The one-touch selection control is a control for resetting a selected piece of music according to a recommended piece of music. The one-key selection control may be a picture, a pattern, a text box, a button, a label, etc., displayed on the user interface; or a partial area on the user interface that can recognize a trigger operation, having a function of resetting the selected piece of music according to the recommended piece of music. Illustratively, as shown in FIG. 8, there is a one-touch selection control 805. For example, one or more of the one-touch selection controls may be provided.
Illustratively, as shown in FIG. 8, in the second state of the music clip interface 801, a one-touch selection control 805 of a recommended piece of music for the target music is displayed.
Step 708, upon receiving a trigger operation on the one-touch selection control, resets the selected musical piece according to the recommended musical piece.
And the terminal receives triggering operation on the one-key selection control, and resets the selected music piece according to the recommended music piece.
Resetting a selected musical piece in accordance with the recommended musical piece means: the starting point (and end point) of the selected musical piece is re-selected based on the starting point (and end point) of the recommended musical piece. For example, the start point of the selected musical piece is selected again based on the start point of the recommended musical piece, and the end point of the selected musical piece is selected again based on the end point of the recommended musical piece.
In some possible embodiments, by way of example, other pieces of music in the target music determined using the recommended pieces of music are determined as selected pieces of music, a piece of music in the middle of two recommended pieces of music may be determined as selected pieces of music, a piece of music in the target music starting at a certain point in time before the recommended piece of music may be determined as selected pieces of music, and a piece of music in the target music starting at a certain point in time after the recommended piece of music may be determined as selected pieces of music.
For example, as shown in fig. 8, in the second state of the music clip interface 801, the terminal receives a trigger operation on the one-touch selection control 805, jumps to the third state of the music clip interface 801, 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, by adding the one-key selection control, when the user manually selects the music piece on the target music, the user can quickly select the selected music piece according to the recommended music piece by triggering the one-key selection control through the terminal, so that the difficulty level 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 the 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 can 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 clip selection control for the target music.
The terminal displays a music clip interface, the music clip interface comprising: a music display control and a clip selection control for the target music.
Step 704, when receiving the selection operation on the section selection control, obtaining the selected music section 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 piece start point of the selected piece of music is acquired, and a recommended piece start point of the recommended piece of music is acquired.
The terminal acquires a selected piece start point of the selected piece of music, and acquires a recommended piece start point of the recommended piece of music.
The start point of the clip is the first point in time when the music is played in sequence. The beginning of the segment may be, for example, the first note when the music is played sequentially, the point in time when the first audio is above a certain value, or the first lyrics. The present application takes the first time point when the beginning of a clip is music sequential play as an example.
The selected piece start point is a piece start point of the selected music piece. The starting point of the selected piece of the terminal for obtaining the selected piece of music is determined by receiving a selection operation on a piece selection control. After receiving the selection operation on the section selection control, the terminal determines the selected music section, and determines the first time point when the selected music section is sequentially played as the starting point of the selected section. For example, when the selection operation on the section selection control is a slide section selection control and the music section in the selected box is determined as the selected music section, the start point of the selected section is the first point in time when the music section in the selected box is sequentially played.
The recommended piece start point is a piece start point of a recommended music piece. The method for acquiring the starting point of the recommended piece of music by the terminal may be to read the recommended piece of music data stored in the terminal, or may be to receive the recommended piece of music data sent by the server. The recommended musical piece data includes a recommended piece start point of the recommended musical piece. The recommended musical piece data may be simply referred to as dotting data.
For example, as shown in fig. 8, after receiving a selection operation on the clip selection control, the terminal obtains, in the second state of the music clip interface 801, a music clip corresponding to 2 minutes 30 seconds to 3 minutes 01 seconds in the target music as the selected music clip, and obtains 2 minutes 30 seconds from the start point of the selected music clip as the target music. And acquires a recommended piece start point of the recommended piece of music as 2 minutes 23 seconds of the target music.
Step 7062, when the start point of the selected piece is different from the start point of the recommended piece, a one-touch selection control of the recommended piece of music is displayed.
And when the starting point of the selected piece is different from the starting point of the recommended piece, the terminal displays a one-key selection control for recommending the music piece.
The method for judging whether the selected segment start point and the recommended segment start point are the same 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 or not; judging whether lyrics corresponding to the starting point of the selected fragment and the starting point of the recommended fragment are consistent or not; and judging whether the spectrogram within a period of time after the start point of the selected fragment and the start point of the recommended fragment are consistent or not.
For example, determining 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 selected fragment starting point and the recommended fragment starting point are the same or not, the server sends a judging result to the terminal.
And when the starting point of the selected piece is different from the starting point of the recommended piece, the terminal displays a one-key selection control for recommending the music piece. When the one-key selection control is an invisible control, the terminal opens the one-key selection control of the recommended music piece so that the one-key selection control can receive a triggering operation when the starting point of the selected piece is different from the starting point of the recommended piece.
Illustratively, as shown in FIG. 8, the selected segment start point is different from the recommended segment start point, and a one-touch selection control 805 of the recommended music segment is displayed in the second state of the music clip interface 801.
Step 708, upon receiving a trigger operation on the one-touch selection control, resets the selected musical piece according to the recommended musical piece.
And the terminal receives triggering operation on the one-key selection control, and resets the selected music piece according to the recommended music piece.
In summary, according to the method provided by the embodiment, by acquiring the selected piece starting point of the selected piece of music and acquiring the recommended piece starting point of the recommended piece of music, when the selected piece starting point and the recommended piece starting point are different, the one-key selection control is additionally arranged, so that the one-key selection control is only displayed when the selected piece is inconsistent with the recommended piece starting point, the utilization rate of the user interface is improved, the user can quickly select the piece of music by triggering the one-key selection control, multiple times of manual positioning of the piece of music is not needed, the selection of the piece of music is quick and efficient, and the usability and the efficiency of the music piece selection are improved.
Illustratively, the terminal obtains a recommended segment start 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 can 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 clip selection control for the target music.
The terminal displays a music clip interface, the music clip interface comprising: a music display control and a clip selection control for the target music.
Step 704, when receiving the selection operation on the section selection control, obtaining the selected music section 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 piece start point of the selected piece of music, and acquiring dotting data of the target music from the server, wherein the dotting data includes a recommended piece start point of a recommended piece of music corresponding to the target music.
The terminal acquires a selected piece starting point of the selected piece of music, and acquires dotting data of target music from the server, wherein the dotting data comprises a recommended piece starting point of a recommended piece of music corresponding to the target music.
The clicking is to mark music or video, and is usually used for marking the climax part of music or the highlight moment of video. The dotting may be marking the time point of the music, marking the lyrics of the music, or marking the sound spectrum of the music. As illustrated in fig. 9, there is a dotting 902 on a music progress bar 901. In a music playing application, a user may play the climax part of the music directly by clicking on the dotting 902.
The dotting data in this application is related data of recommended musical pieces of the target music. Illustratively, the dotting data includes a recommended piece start point for recommending the musical piece.
The method for obtaining the dotting data of the target music by the terminal is that the terminal sends a request for obtaining 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 request for obtaining the dotting data of the target music.
Step 7062, when the start point of the selected piece is different from the start point of the recommended piece, a one-touch selection control of the recommended piece of music is displayed.
And when the starting point of the selected piece is different from the starting point of the recommended piece, the terminal displays a one-key selection control for recommending the music piece.
Step 708, upon receiving a trigger operation on the one-touch selection control, resets the selected musical piece according to the recommended musical piece.
And the terminal receives triggering operation on the one-key selection control, and resets the selected music piece according to the recommended music piece.
In summary, according to the method provided by the embodiment, the starting point of the selected piece of music is obtained, and the dotting data of the target music is obtained from the server to obtain the starting point of the recommended piece of music, when the starting point of the selected piece is different from the starting point of the recommended piece, the one-key selection control is additionally arranged, so that the one-key selection control is only displayed when the selected piece is inconsistent with the starting point of the recommended piece, the utilization rate of the user interface is improved, the user can quickly select the piece of music by triggering the one-key selection control, multiple times of manual positioning of the piece of music are not needed, the selection of the piece of music is quick and efficient, and the usability and the efficiency of the selected piece of music are improved.
Illustratively, a method of resetting a selected musical piece in accordance with 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 can 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 clip selection control for the target music.
The terminal displays a music clip interface, the music clip interface comprising: a music display control and a clip selection control for the target music.
Step 704, when receiving the selection operation on the section selection control, obtaining the selected music section 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 piece start point of the selected piece of music is acquired, and a recommended piece start point of the recommended piece of music is acquired.
The terminal acquires a selected piece start point of the selected piece of music, and acquires a recommended piece start point of the recommended piece of music.
Step 7062, when the start point of the selected piece is different from the start point of the recommended piece, a one-touch selection control of the recommended piece of music is displayed.
And when the starting point of the selected piece is different from the starting point of the recommended piece, the terminal displays a one-key selection control for recommending the music piece.
Step 7081, upon receiving a trigger operation on the one-touch selection control, resets the selected piece start point of the selected piece of music to the recommended piece start point of the recommended piece of music.
And when the terminal receives the triggering operation on the one-key selection control, resetting the starting point of the selected piece of music to be the starting point of the recommended piece of music.
For example, as shown in fig. 8, after receiving a trigger operation on the one-touch selection control in the second state of the music clip interface 801, the terminal jumps to the third state of the music clip interface 801, and sets the selected piece start point of the selected music piece as the recommended piece start point of the recommended music piece. That is, the music clip interface 801 jumps to the third state with the selected piece start point of the selected music piece set to 2 minutes 23 seconds of the target music.
For example, when the recommended musical piece is at least two, the selected piece start point of the selected musical piece is reset to the recommended piece start point of the recommended musical piece closest in time.
When the recommended musical pieces are at least two, judging the time distance between the starting point of the selected musical piece and the starting point of each recommended musical piece, and resetting the starting point of the selected musical piece as the starting point of the recommended musical piece with the closest time distance. For example, the selected section start point is 30 seconds of the target music, the first recommended section start point is 10 seconds of the target music, and the second recommended section start point is 35 seconds of the target music, and the selected section start point is reset to the recommended section start point nearest to the selected section start point, that is, the second recommended section start point, that is, 35 seconds of the target music.
For example, when the recommended musical piece is at least two, the selected piece start point of the selected musical piece is reset to the recommended piece start point of the recommended musical piece having the closest temporal distance before the selected piece start point. For example, the selected piece start point is 30 seconds of the target music, the first recommended piece start point is 10 seconds of the target music, the second recommended piece start point is 35 seconds of the target music, and the third recommended piece start point is 5 seconds of the target music, then the selected piece start point is reset to the recommended piece start point closest to the selected piece start point before the selected piece start point, i.e., the first recommended piece start point, i.e., 10 seconds of the target music.
For example, when the recommended musical piece is at least two, the selected piece start point of the selected musical piece is reset to the recommended piece start point of the recommended musical piece having the closest time distance after the selected piece start point. For example, the selected piece of origin is 30 seconds of the target music, the first recommended piece of origin is 10 seconds of the target music, the second recommended piece of origin is 35 seconds of the target music, and the third recommended piece of origin is 40 seconds of the target music, then the selected piece of origin is reset to the recommended piece of origin closest to the selected piece of origin after the selected piece of origin, i.e., the second recommended piece of origin, 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 starting point of the selected piece of music is reset to the starting point of the recommended piece of music, so that the piece of music is quickly selected, multiple times of manual positioning of the piece of music is not needed, the selection of the piece of music is quick and efficient, and the availability and efficiency of selecting the piece of music are improved.
For example, when the music piece selection method provided in the above exemplary embodiments is applied to a video editing program (such as a short video sharing or production program), the target music is used to score a video file. Since the video file has a time length and the musical piece for the score has a certain time length, the above musical piece selecting method further includes the following two methods of determining the recommended piece end point of the recommended musical piece.
The first method for determining the recommended piece end point of the recommended piece of music includes:
after the user takes or uploads a short video, a music clip interface is entered. The music piece selecting method provided by the application further comprises the following steps:
step 1, obtaining the video length of a short video.
The terminal acquires the video length of the short video.
The video length of the short video is the play time of the short video.
The method for resetting the selected musical piece according to the recommended musical piece provided in step 708 described above may also be:
and step 2, determining a recommended segment end point according to the video length of the short video, the target music duration and the dotting data.
And the terminal determines a recommended segment end point according to the video length of the short video and the dotting data.
The end point of the piece is the last moment when the music piece is played in sequence. The recommended section end point is the last time when the recommended music section is played in sequence.
The method for determining the end point of the recommended piece comprises the following steps:
and adding the video length of the short video to the moment corresponding to the starting point of the recommended piece of the target music to obtain the added moment. For example, the target music duration is 3 minutes, the video length of the short video is 1 minute, and the start point of the recommended section is located at the 30 th second of the target music, then the time corresponding to the start point of the recommended section in the target music, that is, 30 seconds, is added to the video length of the short video, that is, 1 minute and 30 seconds, to obtain the added time.
When the added time is longer than the target music time length, the target piece end point of the target music is determined as the recommended piece end point of the recommended music piece. That is, by way of example, the added time is 4 minutes and the target music duration is 3 minutes, and then the added time is longer than the target music duration, the target piece end point of the target music is determined as the recommended piece end point of the recommended piece of music, that is, the 3-minute time of the target music is set as the recommended piece end point.
When the added time is shorter than or equal to the target music time, a point in time corresponding to the added time in the target music is determined as a recommended piece end point of the recommended piece of music. For example, when the added time is 1 minute and 30 seconds and the target music time is 3 minutes, the added time is shorter than the target music time, the point of time corresponding to the added time in the target music is determined as the recommended piece end point of the recommended piece of music, that is, the 1 minute and 30 seconds time of the target music is set as the recommended piece end point.
As shown in fig. 15, the target music is a song named "praying and forgetting", the terminal has three parts of data of the song, the first part is the song data of "praying and forgetting", the second part is the point data of "praying and forgetting" obtained from the server by the terminal, the third part is the recommended music piece data of "praying and forgetting" calculated by the terminal by using the point data, the song data and the short video data, and the recommended music piece data includes a recommended piece end point of the recommended music piece.
And 3, resetting the selected music piece according to the recommended music piece.
The terminal resets the selected musical piece in accordance with the recommended musical piece.
Illustratively, the terminal sets the selected segment end point as the recommended segment end point.
And 4, using the selected music piece as a short video score.
The terminal plays a short video with the selected piece of music.
When the duration of the selected music piece is shorter than the video duration of the short video, the method for using the selected music piece as the short video score comprises the following steps: setting the selected music piece as short video music after repeated playing; the selected piece of music is set to be a short video soundtrack after a single play, at which time at least one of the short video time length is longer than the portion of the selected piece of music that is not soundtrack.
When the duration of the selected music piece is equal to the video duration of the short video, the selected music piece can be directly a short video soundtrack.
In summary, the method provided in this embodiment determines the recommended section end point according to the short video duration, the target music duration and the recommended section start point, resets the selected section end point to the recommended section end point after the user triggers the one-key selection control, and rapidly selects the music section without manually positioning the music section multiple times, so that the music section is rapidly and efficiently selected, and the availability and the efficiency of selecting the music section are improved. A method for matching short video with a selected piece of music is also provided.
The second method for determining the recommended piece end of the recommended piece of music includes:
and 11, acquiring the video length of the short video and the recommended piece end point of the recommended music piece.
The terminal acquires the video length of the short video and the recommended piece end point of the recommended music piece.
The clip endpoint is the last point in time when the music clip is played in sequence.
The recommended section end point is the last time point of the sequential playback of the recommended music sections.
The recommended piece end point of the recommended piece of music is obtained by the terminal from the dotting data. That is, the dotting data includes a recommended piece start point and a recommended piece end point of the recommended piece of music.
The method for resetting the selected musical piece according to the recommended musical piece provided in step 708 described above may also be:
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.
The terminal resets the selected piece end point of the selected music piece according to the video length of the short video and the recommended piece end point.
The method for resetting the selected piece end point of the selected music piece by the terminal may be:
when the video length of the short video is longer than or equal to the time length of the recommended musical piece, the selected piece end point of the selected musical piece is reset to the recommended piece end point of the recommended musical piece.
For example, if the video length of the short video is two minutes, the duration of the recommended musical piece is one minute, and the video length of the short video is longer than the time length of the recommended musical piece, the end point of the selected musical piece is set as the recommended musical piece end point of the recommended musical piece. If the starting point of the selected music piece is the starting point of the recommended music piece at this time, the selected music piece and the recommended music piece are identical music pieces. At this time, the video length of the short video is longer than the selected music piece, and then, for example, the method of using the selected music piece to be a short video score may be: setting the selected music piece as short video music after repeated playing; the selected piece of music is set to be a short video soundtrack after a single play, at which time at least one of the short video time length is longer than the portion of the selected piece of music that is not soundtrack.
When the video length of the short video is shorter than the time length of the recommended music piece, starting to intercept the recommended music piece according to the video length from the starting point of the recommended music piece, and obtaining an intercepted recommended music piece; resetting the selected piece end point of the selected piece of music to the truncated piece end point of the truncated recommended piece of music.
For example, the video length of the short video is 1 minute, the time length 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, then the recommended music piece is obtained after the interception according to the video length from the starting point of the recommended music piece, i.e. the recommended music piece is within 1 minute after the starting point of the recommended music piece; resetting the selected piece end point of the selected piece of music to the truncated piece end point of the truncated recommended piece of music, namely, the point in time when the selected piece end point of the selected piece of music is 1 minute of the recommended piece of music.
In summary, the method provided in this embodiment includes, by including both the recommended segment start point and the recommended segment end point in the dotting data, when the user triggers the one-key selection control, 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 rapidly selecting the music segment, without manually positioning the music segment multiple times, so that the music segment selection is rapid and efficient, and the availability and the efficiency of selecting the music segment are improved. A method for matching short video with a selected piece of music is also provided.
When the above-described music piece selecting method is applied to a video editing program, the following method is included before displaying a music clip interface.
Fig. 16 shows a flowchart of a music piece selecting method according to another exemplary embodiment of the present application, which can 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, a video editing interface is displayed, the video editing interface including a video acquisition control and a music control.
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 make a change of the video, beautification of the picture, rearrangement of the picture order, 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 video. The video acquisition mode can be at least one of shooting one or more sections of video, uploading one or more sections of existing video, uploading one or more pictures and automatically generating one section of video by the terminal. Wherein the existing video is a video file stored in the terminal or a video file in the network. 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 selecting 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. The manner in which the terminal obtains the candidate music may be, for example: 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 acquired 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 acquisition operation on a video acquisition control is received, a video file is acquired according to the video acquisition operation.
And the terminal receives video acquisition operation on the video acquisition control, and acquires a 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 local video upload interface user selects one or more video files, so as to complete the video obtaining operation. The terminal acquires one or more video files selected by a user.
At step 1603, upon receiving a music retrieval operation on the music control, at least one candidate music is displayed.
And the terminal receives the 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 control 1704, at least one candidate music 1707 is displayed.
Step 1604, upon receiving the target music selection operation on the candidate music, determines the target music according to the target music selection operation.
The terminal receives a target music selection operation on the candidate music, and determines target music according to the target music selection operation.
For example, as shown in fig. 17, the terminal receives a target music selection operation on candidate music, and determines a song of "praying-to-forgetfulness" as 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 clip selection control for the target music.
The terminal displays a music clip interface, the music clip interface comprising: a music display control and a clip selection control for the target music.
Illustratively, as shown in FIG. 8, the terminal displays a music clip interface 801, the music clip interface 801 comprising: a music display control 803 and a clip selection control 802 for the target music.
Step 704, when receiving the selection operation on the section selection control, obtaining the selected music section according to the selection operation.
And when receiving the selection operation on the section selection control, the terminal obtains the selected music section according to the selection operation.
Step 706, a one-touch selection control of a recommended piece of music for the target music is displayed.
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-touch selection control 805 is displayed in the second state of the music clip interface 801.
Step 1605, when receiving a trigger operation on the one-key selection control, acquiring a video length of the short video and a recommended piece end point of the recommended music piece; 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.
The terminal receives triggering operation on the one-key selection control, and obtains the video length of the short video and the recommended piece end point of the recommended music piece; 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.
The method for obtaining the recommended segment end point by the terminal can be any one of the two methods for determining the recommended segment end point. And resetting the selected piece end point of the selected piece of music according to the method of resetting the selected piece end point of the selected piece of music corresponding to the method.
In summary, the method provided in this embodiment provides the method steps that may be further included in the video editing program when the music piece selection method provided in this application is applied to the video editing program, and by adding 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 multiple times, so that the music piece selection is quick and efficient, and the availability and the efficiency of selecting the music piece are improved.
Illustratively, the manner in which candidate music is acquired in step 1603 described above is given as an exemplary embodiment of acquisition by a server.
Fig. 18 shows a flowchart of a music piece selecting method according to another exemplary embodiment of the present application, which can 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:
unlike the exemplary embodiment shown in fig. 16, step 1603 may be replaced by the following steps:
step 1801, when receiving a music acquisition operation on the music control, sending a candidate music acquisition request to the server.
The terminal receives the music acquisition operation on the music control and sends a candidate music acquisition request to the server.
The music retrieval request includes data of the video file. The data of the video file is data that can be used to identify the content of the video picture. The video file data may be, for example, picture frames of a number of frames in a video file.
In step 1802, at least one candidate music fed back by the server is received, where the candidate music is determined according to the picture content after the server identifies the picture content of the video file.
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 the 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.
By way of example, the manner in which the server identifies the video picture content may include, but is not limited to: first, the tone of a video picture is recognized, candidate music is determined from the picture tone, and, illustratively, when the tone of the video picture is recognized as a pink system, music that is lovely and relaxed is determined as candidate music; secondly, recognizing 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 girls, children and delicacies by way of example, when the foreground of the video picture is recognized as children, the lovely and easy music is determined as the candidate music; third, the background of the video picture is identified, candidate music is determined according to the background of the video picture, and exemplary, the background of the video picture may be a downtown building, a meadow, a sea, and chinese wind music is determined as candidate music when the background of the video picture is identified as a downtown building.
After determining the candidate music, the server sends a candidate music instruction to the terminal, wherein candidate music data exists in the candidate music instruction. 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, according to the method provided by the embodiment, the candidate music is determined by identifying the video picture, so that the candidate music is closer to the current video scene, and the user can conveniently and directly select the candidate music.
Fig. 19 is a flowchart illustrating a music piece selecting method according to another exemplary embodiment of the present application, which can 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 step 1601, the terminal displays a video editing interface, where the video editing interface includes a video acquisition control and a music control.
In step 1602, when receiving a video acquisition operation on the video acquisition control, the terminal acquires a video file according to the video acquisition operation.
In step 1903, the terminal receives a music acquisition operation on the music control.
In step 1904, the terminal transmits a music acquisition request to the server.
In step 1905, the server receives a music acquisition instruction and identifies the screen content of the video file.
In step 1906, the server sends candidate music instructions to the terminal.
In 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 according to the picture content after the server identifies the picture content of the video file.
In step 1803, the terminal displays at least one candidate music corresponding to the screen content.
In step 1604, the terminal determines the target music according to the target music selection control when receiving the target music selection operation on the candidate music.
Step 702, the terminal displays a music clip interface, where the music clip interface includes: a music display control and a clip selection control for the target music.
And step 704, when receiving the selection operation on the section selection control, the terminal obtains the selected music section 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 piece of music and the start point of the dotting data are consistent.
In step 1914, the server sends a dotting data instruction to the terminal.
In step 1915, the terminal receives the instruction of the dotting data, acquires the starting point of the selected piece of music, and acquires the dotting data of the target piece of music from the server, wherein the dotting data comprises the starting point of the recommended piece of music corresponding to the target piece of music.
In step 7062, when the start point of the selected piece is different from the start point of the recommended piece, the terminal displays a one-touch selection control of the recommended music piece.
In step 708, when the terminal receives the triggering operation on the one-touch selection control, the selected music piece is reset according to the recommended music piece.
At step 1918, the terminal selects a recommended musical piece.
In step 1919, the terminal does not display a one-touch selection control.
If the terminal does not receive the selection operation on the segment selection control, step 1919 is performed, and the terminal does not display the one-key selection control.
In summary, the method provided in the embodiment provides a complete method flow of applying the music piece selection method provided in the application to practice. By adding the one-key selection control, when a user selects a music piece, the user can quickly select the music piece by triggering the one-key selection control without manually positioning the music piece for a plurality of times, so that the selection of the music piece is quick and efficient, and the usability and the efficiency of selecting the music piece are improved.
Illustratively, a short video production application employing any of the above-described music piece selection methods is presented.
As shown in fig. 20, there is a main interface 2001 of the short video creation application, and a short video creation initiation control 2002 is provided on the main interface 2001. When the user wants to publish a short video, the user can trigger a short video production initiation control to enter the local video upload interface 1705, or as shown in fig. 21, the video capture interface 2101. The user may choose to upload a video file at the local video upload interface 1705 or the video capture interface 2101.
The local video upload interface 1705 includes a video selection control 2003, a video upload control 1706, a shooting video control 2009, and a music library control 2204. The user may select one or more target videos within video selection control 2003, and then click on video upload control 1706, upload the video and enter video preview interface 2004. User-triggered capture video control 2009 may enter video capture interface 2101. User-triggered music library control 2204 may enter a music library interface.
At the video capture interface 2101 are a video capture control 1702, a local video upload control 1703. The user may capture and upload the video file by triggering the video capture control. And enter the video preview interface 2004. The user-triggered local video upload control 1703 may enter the local video upload interface 1705.
At the video preview interface 2004, the user may edit the uploaded video, with editable content including, but not limited to, setting background music for the video, beautifying video pictures, adding animation effects, and the like. The user adds background music for the short video by triggering music control 2005 on video preview interface 2004, and the interface jumps to music interface 101 after the user triggers music control 2005. At the music interface 101 the user may click or click on a piece of music for selection of the target music, again clicking or clicking on the piece of music may deselect. Upon entering the music interface 101, the short video music may be edited with reference to the exemplary embodiment shown in fig. 1. Illustratively, when the user triggers the music clipping control to enter the music clipping interface 102 shown in fig. 1, the selected music piece defaults to a recommended music piece, and the selected music piece is played in a loop, where the recommended music piece is obtained by the terminal by calculating the dotting data and the video duration. The user can also quickly select the play progress by sliding the spectrogram. When the user slides the spectrogram, the starting point of the selected segment is inconsistent with the starting point of the recommended segment, and a one-key return song highlight segment control is displayed.
Illustratively, the style of the video preview interface may also be 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, there is also a concert music matching interface 2203, the server identifies the short video picture content and determines candidate music at the music matching interface 2203, and when the terminal receives the candidate music instruction, it jumps to the music interface 101.
The candidate music is displayed on the music interface 101, and illustratively, the candidate music has a certain display sequence, wherein the music library control 2204 is fixedly displayed at the leftmost side, and then the candidate music is sequentially selected by the user after selecting the one-key-out effect and corresponding to the one-key-out effect, the music selected by the user when editing the video last time, and the server determines the candidate music for the user by identifying the video picture. If the user does not perform the related operation, the music display sequence is sequentially delayed in the music sequence. For example, the user has not selected a one-touch effect, and the first music is the music 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-out sheet comprises the following steps:
and a step a, displaying a video editing interface, wherein the video editing interface comprises a video acquisition control and a music control.
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 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 tab control.
The terminal displays a template selection interface, wherein the template selection interface comprises: at least one candidate template and a one-touch tab control.
The template selection interface is an interface for selecting a video editing template. The template is the result of fixing and standardizing the structural rule of one object, and the template is the standardization of the structural form. The template applied to video editing refers to immobilization of the processing procedure of video editing. Illustratively, the video editing includes modifying at least one parameter of the video in the title, the trailer, the soundtrack, the filter, the special effects, and the interactions. Modifying the soundtrack of the video may be changing the background music of the video, adding a musical effect at a certain moment of the video, soundtrack the video, etc. The modification of the picture display can be to adjust the brightness and tone of the video picture, automatically recognize the face, automatically beautify the face, and increase the dynamic effect on the video picture. The modification interaction mode may be that a control capable of receiving triggering operation is added on a video picture, a user clicks a control appearing on the video to trigger a corresponding response, for example, the user clicks a corresponding control on the video picture to obtain a red packet, the user clicks a corresponding control on the video picture to shake the picture, and the user clicks a corresponding control on the video picture to jump to other videos or webpages. Illustratively, there is a template applied to video editing, with which video frames can be dimmed. A plurality of candidate templates is provided at the template selection interface.
The one-key slice-out control is a control used for rapidly editing and processing video according to a template. The one-touch tab control may receive a trigger operation from a user.
Step d, determining a target template after receiving a template selection operation on at least one candidate template; the target template comprises: at least one of film head material, film tail material, special effect material, filter material and music material.
The terminal receives template selection operation on at least one candidate template and determines a target template; the target template comprises: at least one of film head material, film tail material, special effect material, filter material and music material.
The template includes at least one mode for editing video, and exemplary, the template includes: at least one of film head material, film tail material, special effect material, filter material and music material. The title material is a piece of title video added in front of the video file, wherein the title video is a preset video in the template or a piece of video automatically generated according to the title generation method in the template. For example, the method of generating the video with the head may be to play the first three frames of pictures in the video file slowly. The tail material is a section of tail video added after the video file. The method for generating the end-of-chip video is similar to the method for generating the head-of-chip video. Special effects material can be used to change the video frame. The special effect material may be to add and display a small white rabbit on a local part of the video picture, insert a frame of other pictures in the middle of each frame of the video picture, so that the video playing has a flickering effect, or process each frame of the video picture in a fixed manner, for example, stretch each frame of the video picture, and make a distorting mirror effect. The filter material creates a specific video atmosphere by adjusting the color, brightness, or increasing the display effect of the picture on the whole of the video picture, for example, the love filter lightens the picture and displays the love effect on the picture. The score material is used for adjusting the score of the video, for example, the sound of blowing through the forest is used as the video score, a score material is added to a certain frame of the video, and the score material is played when the frame is played.
The target template may have at least one of the above-described modes of editing video.
And e, when receiving triggering operation on the one-key slice-out control, processing the video file according to the target template to generate a new video file.
And the terminal receives triggering operation on the one-key slice-out control, processes the video file according to the target template, and generates a new video file.
For example, if the target template includes the music material of "small star", after the terminal receives the triggering operation on the one-key tab control, the "small star" is set as the background music of the video file, and a new video file is generated.
Illustratively, one-click-out is a unique video processing function provided by the application. The one-key-play 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 beautifying of video pictures, background music, animation effects and the like. The user may pre-select one of the video production templates before uploading or shooting the video file, 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.
At the music library interface 2205 is a second music selection control 2206, and the user can select a piece of music on the second music selection control 2206 through a music selection operation and enter the music selection interface.
As shown in fig. 23, there is a music selection interface 2301 where music selected by the second music selection control 2206 is highlighted by the user by displaying a presentation float 2305 of the music on the interface. A music collection control 2302, a music clip control 105, and a music use control 2303 corresponding to the music are displayed on the presentation floating window 2305. User-triggered music collection control 2302 may collect the music while music collection control 2303 may be highlighted to indicate that the music has been collected by the user. Triggering the music collection control 2303 again by the user may cancel the collection of the music while canceling the highlighting of the music collection control. A user-triggered music cropping control 105 may enter the music cropping interface 102. User-triggered music use control 2303 may determine the currently selected music as the target music and enter target music preview interface 2304. The selected piece of music is used to play a video score in the target music preview interface 2304 and the score video is played. For example, if the user selects a piece of music as the target music without uploading the video, the picture corresponding to the piece of music, that is, the picture 2306 in the music selection interface 2301 is displayed on the target music preview interface 2304. Illustratively, the user may enter the target music preview interface 2304 without uploading the video by directly touching the vocal music library control 2204 to the music library interface 2205 at the local video upload interface 1705.
A music lyrics control 2007 and a sound variation control 2008 are also displayed on the music interface 101, and when the user triggers the music lyrics control 2007, the user can enter a music lyrics selection interface, as shown in fig. 24, a music lyrics selection interface 2401 is provided, and when the user selects the music lyrics selection interface, the user can select to not display or display song lyrics of different styles. After the terminal selects the target music, the terminal searches the lyrics use history of the user and judges the lyrics use tendency of the user, including whether to use lyrics, the lyrics style use frequency and the like. The most commonly used lyrics display mode is automatically displayed for the user through the use tendency of the user. Or the terminal reads the setting of displaying the song words when the user edits the video last time, and when the user selects the target music to enter the music preview interface or the video preview interface next time, the lyrics are automatically displayed in the lyrics display mode which is set last time by the user. For example, the last time the user selected to close the lyrics, the next time the terminal defaults to closing the lyrics. By the method, the lyrics can be set more intelligently.
The user triggers the sound changing control 2008 to enter the sound changing interface 2402, the user can record audio as background music of short video on the sound changing interface 2402, the sound changing interface 2402 is provided with an audio processing template selection control 2403, the audio processing template selection control 2403 is provided with various audio processing templates, the audio processing templates can process audio files, and attributes such as audio tone, timbre, audio frequency and the like are changed to be similar to certain sound. Illustratively, there are various audio processing templates such as Dart, raili, 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 an audio recording interface 2406.
When the music clip control 105 is triggered in the music selection interface 2301 shown in fig. 23, the user jumps to the video preview interface 2004 after triggering the clip music confirm control 2501 to the music clip interface 2501 in the music clip interface 102 shown in fig. 25, and shows the video frame and the soundtrack after the soundtrack is sounded using the selected piece of music in the video preview interface 2004.
Also included in the music library interface 2205 as shown in fig. 22 are a music listen to songs recognition control 2207 and a music search control 2208. The user-triggered song-listening and-recognition control 2207 may enter the song-listening and-recognition interface, as shown in fig. 25, with the song-listening and-recognition interface 2502. After entering the song-listening and song-identifying interface 2502, the terminal starts to automatically record the sound and identify the sound. The humming song recognition control 2503 is arranged on the song listening and recognition interface 2502, the user enables the interface to jump to the humming song recognition interface 2504 by triggering the humming song recognition control 2503, and after entering the humming song recognition interface 2504, the terminal starts to automatically record sound and recognizes the sound.
After the user triggers the music search control 2208, jump to the music retrieval interface. As shown in fig. 26, there is a music search interface 2601, and a music search control 2602 is provided on the music search interface 2601, and a user can input a keyword related to music to be searched by triggering the music search control 2602. When a keyword is entered at the music retrieval control 2602, a recommended keyword control 2062 may appear on the music retrieval interface 2601, the recommended keyword control being provided with other keywords related to the currently entered keyword. The music search interface 2601 also has a music detection start control 2603, and the user inputs a keyword and triggers the music detection start control 2603 to jump to the music search result interface 2604, and related music information and results searched by the current keyword are displayed on the music search result interface 2604.
For example, the triggering operation of the control mentioned in the above exemplary embodiments may be at least one of clicking, double clicking, sliding, dragging, and pressing.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 27 shows a block diagram of a selection device for music pieces according to an exemplary embodiment of the present application. The apparatus may be implemented as all or part of a terminal. The device comprises:
a display module 2701 for displaying a music clip interface, the music clip interface comprising: a music display control and a clip 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 segment selection control; receiving triggering operation on the one-key selection control;
the obtaining module 2703 is configured to obtain, when receiving a selection operation on the segment selection control, a selected music segment according to the selection operation;
a reset module 2704 resets the selected piece of music based on the recommended piece of music upon receipt of a trigger operation on the one-touch selection control.
In an alternative embodiment, the obtaining module 2703 is further configured to obtain a selected piece start point of the selected music piece and a recommended piece start point of the recommended music piece;
the display module 2701 is further configured to display the one-touch selection control of the recommended music piece when the selected piece start point is different from the recommended piece start point.
In an alternative embodiment, the apparatus further comprises a receiving module 2705;
the receiving module 2705 is configured to obtain, from a server, dotting data of the target music, where the dotting data includes a start point of the recommended piece of music corresponding to the target music.
In an alternative embodiment, the resetting module 2704 is further configured to reset the selected piece start point of the selected piece of music to the recommended piece start point of the recommended piece of music.
In an alternative embodiment, the resetting module 2704 is further configured to reset the selected piece start point of the selected piece of music to the recommended piece start point of the recommended piece of music closest in time to when the recommended piece of music is at least two.
In an alternative embodiment, the obtaining module 2703 is further configured to obtain a video length of the short video, and a recommended piece end point of the recommended music piece;
the resetting module 2704 is further configured to reset the selected piece terminal of the selected music piece according to the video length of the short video and the recommended piece end point.
In an alternative embodiment, the apparatus further comprises an intercept module 2706;
the resetting module 2704 is further configured to reset the selected piece end point of the selected piece of music to the recommended piece end point of the recommended piece of music when the video length of the short video is longer than or equal to the time length of the recommended piece of music;
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 recommended music piece from the recommended music piece start point according to the video length, and obtain an intercepted recommended music piece;
the resetting module 2704 is further configured to reset the selected piece end point of the selected piece of music to an truncated piece end point of the truncated recommended piece of music.
In an alternative embodiment, the apparatus further comprises a determination 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 a music acquisition operation on the music control; receiving a target music selection operation on the candidate music;
the obtaining module 2703 is further configured to obtain, when receiving a video obtaining operation on the video obtaining control, 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 acquisition operation on the music control;
the determining module 2707 is configured to determine, when receiving a target music selection operation on the candidate music, the target music according to the target music selection control.
In an alternative embodiment, the apparatus further comprises a transmission 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 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 application also provides a terminal, which comprises: the method comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the music piece selecting method provided by each method embodiment.
The present application also provides a computer device comprising: the storage medium stores at least one instruction, at least one program, a code set or an instruction set, 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 implement the music piece selecting method provided by each method embodiment.
The application further provides a computer readable storage medium, in which at least one instruction, at least one program, a code set, or an instruction set is stored, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the music piece selection method provided by the above method embodiments.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is 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 for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (12)

1. A method for selecting a musical piece, the method comprising:
displaying a music clip interface, the music clip interface comprising: a music display control and a clip selection control of target music, wherein the music clip interface is a user interface provided by a video editing program, and the target music is a score of a video file;
When receiving a selection operation on the segment selection control, obtaining a selected music segment according to the selection operation;
acquiring the video length of the short video corresponding to the video file, the starting point of the selected piece of the selected music piece, the starting point of the recommended piece of the target music and the end point of the recommended piece of the recommended music;
when the starting point of the selected piece is different from the starting point of the recommended piece, displaying a one-key selection control of the recommended music piece;
resetting the starting point of the selected piece of the selected music piece to the starting point of the recommended piece of the recommended music piece when a trigger operation on the one-touch selection control is received; the method comprises the steps of,
resetting a selected piece end point of the selected piece of music to the recommended piece end point of the recommended piece of music in a case where a video length of the short video is longer than or equal to a time length of the recommended piece of music;
when the video length of the short video is shorter than the time length of the recommended music piece, intercepting the recommended music piece from the starting point of the recommended music piece according to the video length to obtain the intercepted recommended music piece; resetting the selected piece end point of the selected piece of music to the truncated piece end point of the truncated recommended piece of music.
2. The method of claim 1, wherein the acquiring the recommended piece start point of the recommended piece of music of the target music comprises:
and acquiring dotting data of the target music from a server, wherein the dotting data comprises the starting point of the recommended piece of music corresponding to the target music.
3. The method of claim 1, wherein the resetting the selected piece origin of the selected piece of music to the recommended piece origin of the recommended piece of music comprises:
when the recommended musical piece is at least two, resetting the selected piece start point of the selected musical piece to the recommended piece start point of the recommended musical piece closest in time.
4. A method according to any one of claims 1 to 3, 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 receiving video acquisition operation on the video acquisition control, 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 receiving a target music selection operation on the candidate music, determining the target music according to the target music selection operation.
5. The method of claim 4, 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;
displaying the at least one candidate music corresponding to the screen content.
6. A musical piece selecting apparatus, the apparatus comprising:
the display module is used for displaying a music clip interface, and the music clip interface comprises: a music display control and a clip selection control of target music, wherein the music clip interface is a user interface provided by a video editing program, and the target music is a score of a video file;
the interaction module is used for receiving selection operation on the fragment selection control; the acquisition module is used for acquiring the selected music fragment according to the selection operation when the selection operation on the fragment selection control is received;
The acquisition module is further configured to acquire a video length of a short video corresponding to the video file, a selected piece start point of the selected piece of music, a recommended piece start point of the recommended piece of music of the target music, and a recommended piece end point of the recommended piece of music;
the display module is further used for 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;
the interaction module is further used for receiving triggering operation on the one-key selection control; a resetting module, configured to reset, when a trigger operation on the one-touch selection control is received, the selected piece start point of the selected music piece to the recommended piece start point of the recommended music piece; the resetting module is further configured to reset a selected piece end point of the selected piece of music to the recommended piece end point of the recommended piece of music if a video length of the short video is longer than or equal to a time length of the recommended piece of music; the intercepting module is used for intercepting from the starting point of the recommended piece of music according to the video length when the video length of the short video is shorter than the time length of the recommended piece of music, so as to obtain the intercepted recommended piece of music; the resetting module is further configured to reset the selected piece end point of the selected piece of music to an truncated piece end point of the truncated recommended piece of music.
7. The apparatus of claim 6, further comprising a receiving module;
the receiving module is configured to obtain, from a server, dotting data of the target music, where the dotting data includes a start point of the recommended piece of music corresponding to the target music.
8. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the resetting module is used for resetting the starting point of the selected piece of music to the starting point of the recommended piece of music with the closest time distance when the recommended pieces of music are at least two.
9. The apparatus according to any one of claims 6 to 8, further comprising a determination module;
the display module is also used for displaying a video editing interface, and the video editing interface comprises a video acquisition control and a music control;
the interaction module is further used for receiving video acquisition operation on the video acquisition control; the acquisition module is further used for acquiring the video file according to the video acquisition operation when the video acquisition operation on the video acquisition control is received;
the interaction module is also used for receiving music acquisition operation on the music control; the display module is further used for displaying at least one candidate music when receiving the music acquisition operation on the music control;
The interaction module is further used for receiving target music selection operation on the candidate music; the determining module is used for determining the target music according to the target music selection operation when the target music selection operation on the candidate music is received.
10. The apparatus of claim 9, further comprising a transmitting module and a receiving module;
the sending module is used for sending a candidate music acquisition request to the server;
the receiving module is used for receiving the 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;
the display module is further configured to display the at least one candidate music corresponding to the screen content.
11. A computer device, the computer device comprising: a processor and a memory, wherein at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the music piece selecting method according to any one of claims 1 to 5.
12. A computer-readable storage medium, wherein at least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the music piece selection method according to any one of claims 1 to 5.
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 CN112445395A (en) 2021-03-05
CN112445395B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038260B (en) * 2021-03-16 2024-03-19 北京字跳网络技术有限公司 Music extension method, device, electronic equipment and storage medium
CN112987999B (en) * 2021-04-13 2023-02-07 杭州网易云音乐科技有限公司 Video editing method and device, computer readable storage medium and electronic equipment
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
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

Citations (6)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US9716909B2 (en) * 2013-11-19 2017-07-25 SketchPost, LLC Mobile video editing and sharing for social media

Patent Citations (6)

* 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
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

Also Published As

Publication number Publication date
CN112445395A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN112445395B (en) Music piece selection method, device, equipment and storage medium
US11640235B2 (en) Additional object display method and apparatus, computer device, and storage medium
CN110336960B (en) Video synthesis method, device, terminal and storage medium
CN109819313B (en) Video processing method, device and storage medium
US11206448B2 (en) Method and apparatus for selecting background music for video shooting, terminal device and medium
EP3929922A1 (en) Method and device for generating multimedia resources
CN108769561B (en) Video recording method and device
CN107978323B (en) Audio recognition method, device and storage medium
CN109040297B (en) User portrait generation method and device
CN109756784B (en) Music playing method, device, terminal and storage medium
KR102657519B1 (en) Electronic device for providing graphic data based on voice and operating method thereof
CN110933330A (en) Video dubbing method and device, computer equipment and computer-readable storage medium
CN109640125B (en) Video content processing method, device, server and storage medium
WO2021068903A1 (en) Method for determining volume adjustment ratio information, apparatus, device and storage medium
CN111901658B (en) Comment information display method and device, terminal and storage medium
WO2019127899A1 (en) Method and device for addition of song lyrics
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN111711838B (en) Video switching method, device, terminal, server and storage medium
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN109616090B (en) Multi-track sequence generation method, device, equipment and storage medium
CN112269898A (en) Background music obtaining method and device, electronic equipment and readable storage medium
CN111081277B (en) Audio evaluation method, device, equipment and storage medium
CN110798327B (en) Message processing method, device and storage medium
CN113918522A (en) File generation method and device and electronic equipment
CN111835621A (en) Session message processing method and device, computer equipment and readable 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