Sound effect adding method and device and electronic equipment

By presetting the sound effect resources in the video transition information, the problem of time-consuming manual matching of sound effects in traditional video editing is solved, and the precise matching of sound effects and transitions is achieved, improving the efficiency and user experience of video editing.

CN119697425APending Publication Date: 2025-03-25WONDERSHARE TECH (HUNAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411745710.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Traditional video editing methods require the editor to manually select the transition effect and find the right sound effect to match it, which is time-consuming and labor-intensive and the effect is not satisfactory.

Method used

Sound effects matching is achieved through resources pre-set in the transition information, obtain the transition information of the video, read the transition sound effects, and load the transition sound effects according to the relationship between the transition information and the sound effects.

Benefits of technology

No need for users to manually search for sound effects, which improves video editing efficiency and user experience, and achieves the exact matching of sound effects and transitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697425A_ABST
    Figure CN119697425A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a sound effect adding method. The sound effect adding method comprises the following steps: acquiring transition information of a video; reading a transition sound effect from the transition information; and loading the transition sound effect according to the association relationship between the transition information and the transition sound effect. According to the sound effect adding method provided by the embodiment of the invention, sound effect matching is realized through the resources preset in the transition information, so that the user does not need to search for the corresponding sound effect, and thus the editing efficiency of the video and the use experience of the user are improved. The embodiment of the invention further provides a sound effect adding device and electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of video processing technology, and more specifically, to a method, device, and electronic device for adding sound effects. Background Art

[0002] In the process of video production, the addition of sound effects can often play a role in rendering emotions, emphasizing key points, and enhancing the audience's attention. Sound effects combined with picture transitions are a common editing combination.

[0003] The selection and matching of transitions and sound effects are crucial to the overall effect of the video. Traditional video editing methods require editors to manually select transition effects and find suitable sound effects to match, which is not only time-consuming and labor-intensive, but may also lead to unsatisfactory results due to differences in personal aesthetics and skills. Summary of the invention

[0004] In response to the problems existing in the above-mentioned prior art, the embodiments of the present application provide a method, device, and electronic device for adding sound effects, which achieve sound effect matching by pre-setting resources in transition information, so that users no longer need to look for corresponding sound effects, thereby improving video editing efficiency and user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for adding sound effects, comprising the following steps:

[0006] Get the video transition information;

[0007] Reading a transition sound effect from the transition information; and

[0008] The transition sound effect is loaded according to the association between the transition information and the transition sound effect.

[0009] Further, the reading the transition sound effect from the transition information includes:

[0010] Obtaining a resource description file from the transition information of the video; and

[0011] The transition sound effect is read from the resource description file.

[0012] Further, after obtaining the resource description file from the transition information of the video, the method further includes:

[0013] converting the resource description file into recognizable resource information; and

[0014] The transition sound effect and its associated transition are read from the resource information.

[0015] Furthermore, after obtaining the transition information of the video, the method further includes:

[0016] Determine whether the transition information of the video includes a transition sound effect;

[0017] If yes, reading the transition sound effect from the transition information; and

[0018] If not, the transition is added to the time track of the video.

[0019] Further, after reading the transition sound effect from the transition information, the method further includes:

[0020] Creating a first data table of the transition information of the video and the transition sound effects associated therewith; and

[0021] Create a second data table for the time track.

[0022] Further, loading the transition sound effect according to the association between the transition information and the transition sound effect includes:

[0023] The first data table and the second data table are traversed to load the transition sound effect.

[0024] Furthermore, after traversing the first data table and the second data table and loading the transition sound effect, the method further includes:

[0025] Add the transition sound effect to the time track.

[0026] In a second aspect, the embodiment of the present application further provides a device for adding sound effects, including:

[0027] A transition acquisition module is used to obtain the transition information of the video;

[0028] A sound effect reading module, used for reading the transition sound effect from the transition information; and

[0029] The sound effect loading module is used to load the transition sound effect according to the association relationship between the transition information and the transition sound effect.

[0030] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the method for adding sound effects according to the first aspect described above when executing the program.

[0031] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is used to implement the sound effect adding method according to the first aspect above.

[0032] The embodiments of the present application bring the following beneficial effects:

[0033] In the sound effect adding method provided in the embodiment of the present application, the transition information of the video is first obtained, and then the transition sound effect is read from the transition information, and the transition sound effect is loaded according to the association between the transition information and the transition sound effect. The sound effect adding method provided in the embodiment of the present application realizes the matching of sound effects and transitions through the resources pre-set in the transition information, so that the user no longer needs to look for the corresponding sound effects, thereby improving the video editing efficiency and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0035] Figure 1 A flowchart of a method for adding sound effects provided in an embodiment of the present application;

[0036] Figure 2 A structural block diagram of a device for adding sound effects provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments described in the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0040] In the specification and claims of this application and the above-mentioned drawings, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "multiple" means two or more. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0041] Figure 1 FIG. 1 is a flow chart of a method for adding sound effects according to an embodiment of the present application. Figure 1 As shown, the sound effect adding method of the embodiment of the present application is used for gesture recognition training, including the following steps:

[0042] S101: Obtaining video transition information;

[0043] Video transition refers to the transition or conversion between paragraphs and scenes in a video.

[0044] S102: Reading a transition sound effect from the transition information; and

[0045] In the sound effect adding method provided in the embodiment of the present application, the sound effect information is set in advance in the transition information of the video. Therefore, when the sound effect needs to be matched, the transition sound effect needs to be read from the transition information of the video first.

[0046] S103: Loading the transition sound effect according to the association between the transition information and the transition sound effect.

[0047] After the sound effect is read from the transition information of the video, the transition sound effect needs to be dynamically loaded into the video according to the correlation between the transition information and the transition sound effect, so as to achieve matching between the transition and the sound effect.

[0048] Therefore, in the sound effect adding method provided in the embodiment of the present application, the transition information of the video is first obtained, and then the transition sound effect is read from the transition information, and the transition sound effect is loaded according to the association between the transition information and the transition sound effect. The sound effect adding method provided in the embodiment of the present application realizes the matching of sound effects and transitions through the resources pre-set in the transition information, so that the user no longer needs to look for the corresponding sound effects, thereby improving the video editing efficiency and the user experience.

[0049] Further, in some embodiments of the present application, the reading of the transition sound effect from the transition information includes:

[0050] Obtaining a resource description file from the transition information of the video; and

[0051] The transition sound effect is read from the resource description file.

[0052] Specifically, when the user decides to add a transition, a resource description file is obtained by obtaining relevant transition information. The system converts the description file into recognizable resource information and stores it locally. Then, the corresponding transition sound effect is read through the converted resource information and associated with the corresponding transition, thereby matching the transition with the sound effect. By binding the sound effect with the transition, the user's search / creation of sound effects, as well as sound effect matching and adjustment are reduced, which improves the user's operating efficiency and usage experience.

[0053] Further, in some embodiments of the present application, after obtaining the resource description file from the transition information of the video, the method further includes:

[0054] converting the resource description file into recognizable resource information; and

[0055] The transition sound effect and its associated transition are read from the resource information.

[0056] As mentioned above, when the user decides to add a transition, a resource description file is obtained by obtaining relevant transition information. The system converts the description file into recognizable resource information and stores it locally. Then, the corresponding transition sound effect is read through the converted resource information and associated with the corresponding transition, thereby matching the transition with the sound effect. By binding the sound effect with the transition, the user is reduced to search / create sound effects, match and adjust sound effects, and improve the user's operation efficiency and usage experience.

[0057] Furthermore, in some embodiments of the present application, after obtaining the transition information of the video, the method further includes:

[0058] Determine whether the transition information of the video includes a transition sound effect;

[0059] If yes, reading the transition sound effect from the transition information; and

[0060] If not, the transition is added to the time track of the video.

[0061] That is, when determining whether it is necessary to add a transition sound effect, it is necessary to determine in advance whether the transition information of the video contains the transition sound effect. If so, read the transition sound effect from the transition information; if not, add the transition to the time track of the video, thereby improving the video editing efficiency.

[0062] Furthermore, in some embodiments of the present application, after reading the transition sound effect from the transition information, the method further includes:

[0063] Creating a first data table of the transition information of the video and the transition sound effects associated therewith; and

[0064] Create a second data table for the time track.

[0065] Specifically, each time a transition is added, deleted, checked, or modified, the sound effect transition filter will be entered. At this time, the description information will be read to determine whether it is a sound effect transition. If so, the logical order between the current transition and the associated resources will be recorded in the first data table in the filter. But there is an exception. When a timeline or time track, or a composite clip is created, it will be recorded in the second data table in the filter. When the user is ready to preview or export, the filter will first be associated with the current timeline, and then it will be determined whether the current operation needs to refresh the data by checking whether the first data table of the transition data has been updated. If refresh is required, the current timeline is used as the key to recursively traverse the second data table of the internally maintained timeline and composite clip. During each traversal, the data in the transition data table will be queried to see if it needs to be added to the timeline. If so, the corresponding sound effect resource is created for subsequent playback, so that the user does not need to look for the corresponding sound effect, so as to improve the video editing efficiency and user experience.

[0066] Further, in some embodiments of the present application, loading the transition sound effect according to the association between the transition information and the transition sound effect includes:

[0067] The first data table and the second data table are traversed to load the transition sound effect.

[0068] As mentioned above, when the user is ready to preview or export, the filter will first be associated with the current timeline. Next, the first data table will be traversed to determine whether the first data table of transition data has been updated to determine whether the current operation needs to refresh the data. If a refresh is required, the current timeline is used as the key to recursively traverse the second data table of internally maintained timelines and composite clips. During each traversal, the data in the transition data table will be queried to see if it needs to be added to the timeline. If so, the corresponding sound effect resources are created for subsequent playback, so that the user no longer needs to look for the corresponding sound effects, thereby improving the video editing efficiency and user experience.

[0069] Furthermore, in some embodiments of the present application, after traversing the first data table and the second data table and loading the transition sound effect, the method further includes:

[0070] Add the transition sound effect to the time track.

[0071] That is, when it is determined that a transition sound effect needs to be added, the transition sound effect is added to the time track, thereby completing the editing operation of the video, further improving the video editing efficiency and the user experience.

[0072] Figure 22 is a structural block diagram of the sound effect adding device 200 provided in the embodiment of the present application. Figure 2 As shown, the sound effect adding device 200 of the embodiment of the present application includes: a transition acquisition module 210, a sound effect reading module 220 and a sound effect loading module 230, wherein:

[0073] A transition acquisition module 210 is used to acquire the transition information of the video;

[0074] A sound effect reading module 220, configured to read the transition sound effect from the transition information; and

[0075] The sound effect loading module 230 is used to load the transition sound effect according to the association relationship between the transition information and the transition sound effect.

[0076] In the sound effect adding device provided in the embodiment of the present application, the transition information of the video is first obtained, and then the transition sound effect is read from the transition information, and the transition sound effect is loaded according to the association between the transition information and the transition sound effect. The sound effect adding method provided in the embodiment of the present application realizes the matching of sound effects and transitions through the resources pre-set in the transition information, so that the user no longer needs to look for the corresponding sound effects, thereby improving the video editing efficiency and the user experience.

[0077] It should be noted that the specific implementation method of the sound effect adding device of the embodiment of the present application is similar to the specific implementation method of the sound effect adding method of the embodiment of the present application. Please refer to the description of the method part for details, and no further details will be given here.

[0078] Figure 3 Schematic diagram of the structure of an electronic device 300 according to an embodiment of the present application.

[0079] like Figure 3 As shown, the electronic device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from the storage part 302 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0080] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.

[0081] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, the above-mentioned functions defined in the electronic device of the present application are executed.

[0082] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0083] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction-executing electronic device, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction-executing electronic device, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0084] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the processing receiving device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based electronic device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0085] The units or modules involved in the embodiments of the present application may be implemented by software or hardware. The units or modules described may also be set in a processor, and the processor is used to implement the sound effect adding method when executing the program:

[0086] Get the video transition information;

[0087] Reading a transition sound effect from the transition information; and

[0088] The transition sound effect is loaded according to the association between the transition information and the transition sound effect.

[0089] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be installed in the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the sound effect adding method described in the present application:

[0090] Get the video transition information;

[0091] Reading a transition sound effect from the transition information; and

[0092] The transition sound effect is loaded according to the association between the transition information and the transition sound effect.

[0093] As another aspect, the present application further provides a computer program product, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer program product stores one or more programs, and when the above programs are used by one or more processors to execute the sound effect adding method described in the present application:

[0094] Get the transition information of the video;

[0095] Reading a transition sound effect from the transition information; and

[0096] The transition sound effect is loaded according to the association between the transition information and the transition sound effect.

[0097] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the application concept of the present application, or directly / indirectly used in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for adding sound effects, characterized in that: The following steps are involved: Get the video transition information; Reading a transition sound effect from the transition information; and The transition sound effect is loaded according to the association between the transition information and the transition sound effect.

2. The method for adding sound effects according to claim 1, characterized in that: The step of reading the transition sound effect from the transition information includes: Obtaining a resource description file from the transition information of the video; and The transition sound effect is read from the resource description file.

3. The method for adding sound effects according to claim 2, characterized in that: After obtaining the resource description file from the transition information of the video, the method further includes: converting the resource description file into recognizable resource information; and The transition sound effect and its associated transition are read from the resource information.

4. The method for adding sound effects according to claim 1, characterized in that: After obtaining the transition information of the video, the method further includes: Determine whether the transition information of the video includes a transition sound effect; If yes, reading the transition sound effect from the transition information; and If not, the transition is added to the time track of the video.

5. The method for adding sound effects according to claim 1, characterized in that: After reading the transition sound effect from the transition information, the method further includes: Creating a first data table of the transition information of the video and the transition sound effects associated therewith; and Create a second data table for the time track.

6. The method for adding sound effects according to claim 5, characterized in that: The step of loading the transition sound effect according to the association between the transition information and the transition sound effect comprises: The first data table and the second data table are traversed to load the transition sound effect.

7. The method for adding sound effects according to claim 6, characterized in that: After traversing the first data table and the second data table and loading the transition sound effect, the method further includes: Add the transition sound effect to the time track.

8. A sound effect adding device, characterized in that: include: A transition acquisition module is used to obtain the transition information of the video; A sound effect reading module, used for reading the transition sound effect from the transition information; and The sound effect loading module is used to load the transition sound effect according to the association relationship between the transition information and the transition sound effect.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the sound effect adding method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to implement the sound effect adding method according to any one of claims 1-7.