CN106851394A - A kind of background music switching method and apparatus - Google Patents
A kind of background music switching method and apparatus Download PDFInfo
- Publication number
- CN106851394A CN106851394A CN201710041409.1A CN201710041409A CN106851394A CN 106851394 A CN106851394 A CN 106851394A CN 201710041409 A CN201710041409 A CN 201710041409A CN 106851394 A CN106851394 A CN 106851394A
- Authority
- CN
- China
- Prior art keywords
- background music
- mixed flow
- data
- music data
- original sound
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The invention provides a kind of background music switching method and apparatus, the background music handover request of input is received by background music switching device, the background music handover request includes the target audio track identity of target background music;Then according to the corresponding relation between the audio track identity and background music data for pre-building, the target background music data corresponding to the target audio track identity is obtained from the background music data storehouse of advance storage;The target background music data and the original sound data of default track are carried out into mixed flow encapsulation, mixed flow audio file is formed;Play the mixed flow audio file, by background music switching method and apparatus provided in an embodiment of the present invention, people can arbitrarily switch the music that selection oneself is liked listening, while meeting people's viewing video, can quickly and easily switch and select different background musics to meet different demands.
Description
Technical field
The invention belongs to communication technical field, more particularly to a kind of background music switching method and apparatus.
Background technology
At present, when people want the background music changed in audio-video video, realized generally by switching right and left sound channel,
Selected by the switching of left and right acoustic channels, user there can be two kinds of different selections, the music that usually has powerful connections or without background
Music, or two sections of different background musics mutually switch.
In existing game, by setting different background musics in different game areas, when game area becomes
During change, background music also changes accordingly, and diversified background music meets the different demand of people.
However, above-mentioned background sound Ledu is pre-set, user can only be selection keep existing background music or
Be to close background music, and can not indiscriminately ad. as one wishes switch the background music that selection is liked oneself, i.e., existing background music
Switching mode is excessively single, it is impossible to effectively adapt to the different demands of user.
For example, in one scenario, student watches teaching class and regards in long-time using terminals such as learning machine, mobile phone or flat boards
When frequency, it is easy to the sensation for producing fatigue dull, at this moment, background music can be changed by switching right and left sound channel, but
It is that can only select to have powerful connections music or without background music, it is impossible to meet the diversified demand of students, at this moment, student needs to make
Different music are played with another terminal, to reach the demand of regulation mood.
In another scene, people have been set to during up to a certain region, meeting when being played in often playing
There are different background musics, at this moment, people it is an option that keeping existing background music, or close existing background sound
It is happy, it is impossible to different background musics are selected on existing interface, during if necessary to other kinds of background music, can only
Played by other terminal.
The content of the invention
In view of this, a kind of background music switching method and apparatus are the embodiment of the invention provides, to solve existing background
The switching mode of music is excessively single, it is impossible to effectively adapt to the problem of the different demands of user.
In a first aspect, the embodiment of the invention provides a kind of background music changing method, methods described includes:
The background music handover request of input is received, the background music handover request includes the target of target background music
Audio track identity;
According to the corresponding relation between the audio track identity and background music data for pre-building, from the background music of advance storage
The target background music data corresponding to the target audio track identity is obtained in database;
The target background music data and the original sound data of default track are carried out into mixed flow encapsulation, mixed flow sound is formed
Frequency file;
Play the mixed flow audio file.
Second aspect, the embodiment of the invention provides a kind of background music switching device, and described device includes handover request
Receiving unit, background music data acquiring unit, mixed flow encapsulation unit and broadcast unit:
Wherein, handover request receiving unit, the background music handover request for receiving input, the background music switching
Request includes the target audio track identity of target background music;
Background music data acquiring unit, for according to the audio track identity that pre-builds with it is corresponding between background music data
Relation, obtains the target background music number corresponding to the target audio track identity from the background music data storehouse of advance storage
According to;
Mixed flow encapsulation unit, for the target background music data and the original sound data of default track to be mixed
Stream encapsulation, forms mixed flow audio file;
Broadcast unit, for playing the mixed flow audio file.
In embodiments of the present invention, the background music handover request of input is received by background music switching device, it is described
Background music handover request includes the target audio track identity of target background music;Then according to the audio track identity for pre-building and the back of the body
Corresponding relation between scape music data, obtains corresponding to the target audio track identity from the background music data storehouse of advance storage
Target background music data;The target background music data is carried out into mixed flow envelope with the original sound data of default track
Dress, forms mixed flow audio file;The mixed flow audio file is played, by background music switching side provided in an embodiment of the present invention
Method and device, people can arbitrarily switch the music that selection oneself is liked listening, while meeting people's viewing video, can be conveniently
Rapidly switch and select different background musics to meet different demands.
Brief description of the drawings
Fig. 1 is that a kind of background music changing method that the embodiment of the present invention one is provided realizes flow chart;
Fig. 2 is that a kind of real-time mixed flow method for packing that the embodiment of the present invention two is provided realizes flow chart;
Fig. 3 is that another background music changing method that the embodiment of the present invention three is provided realizes flow chart;
Fig. 4 is that another background music changing method that the embodiment of the present invention four is provided realizes flow chart;
Fig. 5 is a kind of structured flowchart of background music switching device that the embodiment of the present invention five is provided;
Specific embodiment
To enable that goal of the invention of the invention, feature, advantage are more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described reality
It is only a part of embodiment of the invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belongs to the model of present invention protection
Enclose.
It should be understood that in each embodiment of the invention, the size of the sequence number of each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be with its function and internal logic determination, the implementation process structure without tackling the embodiment of the present invention
Into any restriction.
Realization of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one
Fig. 1 shows that a kind of background music changing method that the embodiment of the present invention one is provided realizes flow, and details are as follows:
In step S101, the background music handover request of input is received, above-mentioned background music handover request includes target
The target audio track identity of background music.
In embodiments of the present invention, above-mentioned background music handover request is specially:Current video do not have background music or
During the existing background music of person, the switching different background music that demand or instruction set in advance according to user are input into is asked
Ask.
Specifically, above-mentioned background music handover request can be the handover request produced by user's touch terminal screen,
Can be that background music switching device receives and parses through handover request produced by the voice of user, or be that user passes through ear
Handover request produced by machine control, can also be switching of the background music switching device according to produced by instruction set in advance
Request, the input mode to background music handover request is not specifically limited herein.
In step s 102, according to the corresponding relation between the audio track identity that pre-builds and background music data, from advance
The target background music data corresponding to above-mentioned target audio track identity is obtained in the background music data storehouse of storage.
In an embodiment of the present invention, can include in the target background music data corresponding to above-mentioned target audio track identity
One section of background music, it is also possible to including the different background music of multistage;One section of background music mentioned here, can be a first song
The number of songs of bent, or same type or similar type, or be different types of number of songs, do not do herein
It is specific to limit.
Specifically, the embodiment of the present invention can index many songs as background music by audio track identity, so that
Obtain and the background music data corresponding to above-mentioned target audio track identity.
Specifically, the background music data storehouse of above-mentioned advance storage includes various types of songs, for example:Classic sound
Pleasure, piano music, zither playing or Erhu playing etc., or user is according to oneself hobby is selected or song of download.
Herein, the song in above-mentioned background sound music storehouse, can be the song that is stored in local file, or
Line song, or the song being stored in Cloud Server, are not specifically limited herein.
In step s 103, above-mentioned target background music data is carried out into mixed flow envelope with the original sound data of default track
Dress, forms mixed flow audio file.
In embodiments of the present invention, the original sound data of above-mentioned default track is specially the original in currently playing video
Beginning voice data, the original voice data are encapsulated in default track.
Specifically, above-mentioned mixed flow encapsulation is specially and seals the audio stream of the identical or different form of two or more or video flowing
Dress, merging, mixed flow is audio stream, video flowing or the audio/video flow file of another form, similar on one device
The only video comprising original voice is played, is played in another equipment as the song of background music, using sound pick-up outfit to same
When two kinds of sound playing carry out recording the audio file or audio-video document for obtaining protecting original voice and background music.
Herein, above-mentioned mixed flow encapsulation is specially using Matroska (abbreviation MKV) multimedia encapsulation technology to above-mentioned mesh
Mark background music data carries out mixed flow encapsulation process with the original sound data of default track, to obtain MKV formatted audio files.
Exceed the volume value of the original sound data of default track in order to avoid the volume value of target background music data, from
And influence people normally to watch video, and bad experience is brought, before step S103, also include:
Calculate the volume value of above-mentioned target background music data and the sound of the volume value of the original sound data of default track
Amount ratio;
When above-mentioned volume ratio is more than the first predetermined threshold value, then volume or the increasing of above-mentioned target background music data are reduced
The volume of the original sound data of big default track is less than or equal to the first predetermined threshold value until above-mentioned volume ratio;
When above-mentioned volume ratio is less than the second predetermined threshold value, then increase the volume or drop of above-mentioned target background music data
The volume of the original sound data of low default track is more than or equal to the second predetermined threshold value until above-mentioned volume ratio;
Wherein, above-mentioned first predetermined threshold value is more than above-mentioned second predetermined threshold value.
Herein, by adjusting the sound of the volume value of target background music data or the original sound data of default track
Value so that (wherein, the master volume in major-minor volume is default sound to the major-minor volume in the mixed flow audio file after mixed flow encapsulation
The volume of the original sound data in rail, secondary volume is the volume of target background music data) custom of people is more conformed to, with
Give people preferably experience.
In step S104, above-mentioned mixed flow audio file is played.
In embodiments of the present invention, the primitive man in background music and video file is included in above-mentioned mixed flow audio file
Sound so that originally the video of only dull voice includes rich and varied background music, is preferably experienced to user.
In an application scenarios, student watches teaching class in long-time using terminals such as learning machine, mobile phone or flat boards
During type video, the dull sensation of fatigue is easily produced, even if intentionally learning, thought can also desert unavoidably.At this moment, people can be with
Mood is adjusted to play some light and slow or music for oneself liking, it is also possible to be set to up to the regular hour and just play phase
The background music of matching, or set according to video content come matching background music, enable one to preferably put into
In habit, the learning efficiency of people is improved.
Further, it is inconsistent in order to avoid there is sound, video file playing progress rate, the long feelings of waiting time
Condition, step S104 specifically includes following step:
The timing node of currently playing video progress is recorded, according to regarding that the extraction of above-mentioned timing node is currently played
Frequency content;
The video content after above-mentioned timing node will be extracted to be synthesized with above-mentioned mixed flow audio file, generation sound is regarded
Frequency cache file;
Above-mentioned audio and video buffer file is played according to currently playing progress.
In embodiments of the present invention, by receiving the background music handover request of input, above-mentioned background music handover request
Target audio track identity including target background music;Then according to right between the audio track identity and background music data for pre-building
Should be related to, the target background music number corresponding to above-mentioned target audio track identity is obtained from the background music data storehouse of advance storage
According to;Above-mentioned target background music data and the original sound data of default track are carried out into mixed flow encapsulation, mixed flow audio text is formed
Part;Above-mentioned mixed flow audio file is played, background music changing method provided in an embodiment of the present invention, people can arbitrarily switch choosing
The music for oneself liking listening is selected, while meeting people's viewing video, can quickly and easily switch and select different backgrounds
Music is meeting different demands;And, background music changing method provided in an embodiment of the present invention is in a device end
Middle realization so that user need not play video with a device end, then play music, drop with another device end
The low use number of terminal, more facilitates user to be operated.
Embodiment two
Step S103 in above-described embodiment one, is specially in the present embodiment:By above-mentioned target background music data with
The original sound data of default track carries out real-time mixed flow encapsulation, forms real-time mixed flow audio file.
As shown in Fig. 2 the embodiment of the present invention two a kind of real-time mixed flow method for packing that provides realizes flow, describe in detail such as
Under:
Step S201, when the background music handover request of input is received, records the time of currently playing video progress
Node;
Step S202, according to above-mentioned timing node, extracts above-mentioned timing node from the original sound data of default track
Original sound data afterwards;
Step S203, the original sound data after above-mentioned timing node is mixed with above-mentioned target background music data
Stream encapsulation, forms real-time mixed flow audio file.
In an application scenarios, when video playback is to t1, background music handover request is have received, then,
Background music switching device is played out again after just the original sound after the t1 moment is encapsulated with target background music mixed flow.
In embodiments of the present invention, by recording the timing node of currently playing video progress, by above-mentioned timing node
Original sound data afterwards carries out mixed flow encapsulation with target background music data, it is possible to achieve be dissolved into background music in real time
In currently playing video, for example, when video has played half, corresponding original sound has also been played to one
Half, the real-time mixed flow encapsulation of the original sound not yet played and background music, system resource committed memory, Er Qieyong can be reduced
What family was heard is that complete background music is added in current video, can preferably be experienced to user.
Embodiment three
Fig. 3 shows the flow of realizing of another background music changing method that the embodiment of the present invention three is provided, and detailed description is such as
Under:
In step S301, the background music handover request of input is received, above-mentioned background music handover request includes target
The target audio track identity of background music.
In step s 302, according to the corresponding relation between the audio track identity that pre-builds and background music data, from advance
The target background music data corresponding to above-mentioned target audio track identity is obtained in the background music data storehouse of storage.
In step S303, the video content that identification is currently played obtains above-mentioned target according to above-mentioned video content
The the first recommendation music data matched with above-mentioned video content in background music data.
In embodiments of the present invention, when the video content being currently played is recognized for classic poetry study video, on
It can be classical music, or zither playing or Erhu playing to state the first recommendation music data, with specific reference to background sound
Depending on types of songs and actual setting in music storehouse;
When the video content being currently played is recognized for European and American literature, above-mentioned first recommendation music data can be
English song, or piano music etc.;
When the video content being currently played is recognized for teaching lecture, above-mentioned first recommendation music data is and religion
Learn the background music that lecture matches.
In step s 304, the above-mentioned first recommendation music data is carried out into mixed flow envelope with the original sound data of default track
Dress, forms the first recommendation of audio file.
In step S305, above-mentioned first recommendation of audio file is played.
In embodiments of the present invention, the video content being currently played by identification, personalization is carried out to background music
Recommend, the background music for matching is played when different video contents are played, give people preferably to experience.
Example IV
Fig. 4 shows the flow of realizing of another background music changing method that the embodiment of the present invention four is provided, and detailed description is such as
Under:
In step S401, the background music handover request of input is received, above-mentioned background music handover request includes target
The target audio track identity of background music.
In step S402, according to the corresponding relation between the audio track identity that pre-builds and background music data, from advance
The target background music data corresponding to above-mentioned target audio track identity is obtained in the background music data storehouse of storage.
In step S403, the video progress that acquisition is currently played obtains above-mentioned target according to above-mentioned video progress
The the second recommendation music data matched with above-mentioned video progress in background music data.
In embodiments of the present invention, if the video progress being currently played is to have learnt a chapters and sections or
When practising the default progress of user, just play that some are more impassioned, possess incentive music or prompt tone, to rouse oneself just
In the mood of the people of study, it is set to keep the state of pleasure to continue to learn.
In step s 404, the above-mentioned second recommendation music data is carried out into mixed flow envelope with the original sound data of default track
Dress, forms the second recommendation of audio file;
In step S405, above-mentioned second recommendation of audio file is played.
In embodiments of the present invention, according to the video progress being currently played, personalized recommendation is carried out to background music,
The background music that broadcasting matches when certain degree is played to, to rouse oneself the mood of the people for learning, keeps it
The state of pleasure continues to learn, to give people preferably to experience.
Further, in order to strengthen the experience of people, different individualized features are embodied, can also be according to age, hobby
Deng the background music that recommendation matches, for example, the switching record of different user can be counted, determine what is recommended according to statistics
Background music, further to improve the experience of different crowd.
One of ordinary skill in the art will appreciate that realize that all or part of step in the various embodiments described above method is can
Completed with instructing the hardware of correlation by program, corresponding program can be stored in a computer read/write memory medium
In, above-mentioned storage medium, such as ROM/RAM, disk or CD.
Embodiment five
Fig. 5 shows a kind of concrete structure block diagram of background music switching device 5 that the embodiment of the present invention five is provided, in order to
It is easy to explanation, illustrate only the part related to the embodiment of the present invention.
A kind of background music switching device 5 provided in an embodiment of the present invention, including handover request receiving unit 51, background sound
Happy data capture unit 52, mixed flow encapsulation unit 53 and broadcast unit 54;
Wherein, handover request receiving unit 51, the background music handover request for receiving input, above-mentioned background music is cut
Changing request includes the target audio track identity of target background music;
Background music data acquiring unit 52, for according to right between the audio track identity and background music data for pre-building
Should be related to, the target background music number corresponding to above-mentioned target audio track identity is obtained from the background music data storehouse of advance storage
According to;
Mixed flow encapsulation unit 53, for above-mentioned target background music data to be carried out with the original sound data of default track
Mixed flow is encapsulated, and forms mixed flow audio file;
Broadcast unit 54, for playing above-mentioned mixed flow audio file.
Preferably, above-mentioned mixed flow encapsulation unit 53 is specially real-time mixed flow encapsulation unit;
Above-mentioned real-time mixed flow encapsulation unit, for by the original sound number of above-mentioned target background music data and default track
According to carrying out real-time mixed flow encapsulation;
Further, above-mentioned real-time mixed flow encapsulation unit includes:
Timing node records subelement, for when the background music handover request of input is received, recording currently playing
The timing node of video progress;
Data extract subelement, for according to above-mentioned timing node, being extracted from the original sound data of default track
State the original sound data after timing node;
Real-time mixed flow encapsulation subelement, for by the original sound data after above-mentioned timing node and above-mentioned target background
Music data carries out mixed flow encapsulation, forms real-time mixed flow audio file.
Preferably, said apparatus also include:
Volume ratio computing unit, the volume value for calculating above-mentioned target background music data is original with default track
The volume ratio of the volume value of voice data;
First adjustment unit, for when above-mentioned volume ratio is more than the first predetermined threshold value, then reducing above-mentioned background music
The volume of the original sound data of the volume of data or the default track of increase is pre- less than or equal to first until above-mentioned volume ratio
If threshold value;
Second adjustment unit, for when above-mentioned volume ratio is less than the second predetermined threshold value, then increasing above-mentioned background music
The volume of data reduces the volume of the original sound data for presetting track until above-mentioned volume ratio is pre- more than or equal to second
If threshold value;
Wherein, above-mentioned first predetermined threshold value is more than above-mentioned second predetermined threshold value.
Preferably, said apparatus also include:
First recommends music acquiring unit, for recognizing the video content being currently played, according to above-mentioned video content
Obtain the first recommendation music data matched with above-mentioned video content in above-mentioned target background music data;
First recommends music mixed flow encapsulation unit, the original sound for recommending music data and default track by above-mentioned first
Sound data carry out mixed flow encapsulation, form the first recommendation of audio file;
First recommends music unit, plays above-mentioned first recommendation of audio file.
Preferably, said apparatus also include:
Second recommends music acquiring unit, for obtaining the video progress being currently played, according to above-mentioned video progress
Obtain the second recommendation music data matched with above-mentioned video progress in above-mentioned target background music data;
Second recommends music mixed flow encapsulation unit, the original sound for recommending music data and default track by above-mentioned second
Sound data carry out mixed flow encapsulation, form the second recommendation of audio file;
Second recommends music unit, for playing above-mentioned second recommendation of audio file.
In embodiments of the present invention, the background music handover request of input is received by background music switching device 1, it is above-mentioned
Background music handover request includes the target audio track identity of target background music;Then according to the audio track identity for pre-building and the back of the body
Corresponding relation between scape music data, obtains corresponding to above-mentioned target audio track identity from the background music data storehouse of advance storage
Target background music data;Above-mentioned target background music data is carried out into mixed flow envelope with the original sound data of default track
Dress, forms mixed flow audio file;Play above-mentioned mixed flow audio file, background music changing method provided in an embodiment of the present invention,
People can arbitrarily switch the music that selection oneself is liked listening, and while meeting people's viewing video, can quickly and easily cut
Different background musics are changed and select to meet different demands.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and step, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually with hard
Part or software mode are performed, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can be with
Realize described function, but this realization it is not considered that beyond this hair using different device to each specific application
Bright scope.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in aforementioned means embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be by it
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of said units, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical of device or unit by some interfaces
Letter connection, can be electrical, mechanical or other forms.
The above-mentioned unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If above-mentioned functions are to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment said apparatus of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, state or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention is answered and above-mentioned is defined by scope of the claims.
Claims (10)
1. a kind of background music changing method, it is characterised in that methods described includes:
The background music handover request of input is received, the background music handover request includes the target track of target background music
Mark;
According to the corresponding relation between the audio track identity and background music data for pre-building, from the background music data of advance storage
The target background music data corresponding to the target audio track identity is obtained in storehouse;
The target background music data and the original sound data of default track are carried out into mixed flow encapsulation, mixed flow audio text is formed
Part;
Play the mixed flow audio file.
2. the method for claim 1, it is characterised in that described by the target background music data and default track
The step of original sound data carries out mixed flow encapsulation, formation mixed flow audio file, including:
The target background music data and the original sound data of default track are carried out into real-time mixed flow encapsulation, forms mixed in real time
Streaming audio file;
It is wherein, described that the target background music data is carried out into real-time mixed flow encapsulation with the original sound data of default track,
The specific steps for forming real-time mixed flow audio file include:
When the background music handover request of input is received, the timing node of currently playing video progress is recorded;
According to the timing node, the original sound after the timing node is extracted from the original sound data of default track
Data;
Original sound data after the timing node and the target background music data are carried out into mixed flow encapsulation, forms real
When mixed flow audio file.
3. method as claimed in claim 1 or 2, it is characterised in that it is described by the target background music data with it is default
Before the original sound data of track is carried out the step of mixed flow is encapsulated, also include:
Calculate the volume value of the target background music data and the volume ratio of the volume value of the original sound data of default track
Value;
When the volume ratio is more than the first predetermined threshold value, then the volume or the default sound of increase of the background music data are reduced
The volume of the original sound data of rail is less than or equal to the first predetermined threshold value until the volume ratio;
When the volume ratio is less than the second predetermined threshold value, then increases the volume of the background music data or reduce default sound
The volume of the original sound data of rail is more than or equal to the second predetermined threshold value until the volume ratio;
Wherein, first predetermined threshold value is more than second predetermined threshold value.
4. method as claimed in claim 1 or 2, it is characterised in that it is described by the target background music data with it is default
Before the step of original sound data of track carries out mixed flow encapsulation, formation mixed flow audio file, also include:
The video content that is currently played of identification, according to the video content obtain in the target background music data with institute
State the first recommendation music data that video content matches;
Described first recommendation music data and the original sound data of default track are carried out into mixed flow encapsulation, first is formed and is recommended sound
Frequency file;
Play the first recommendation of audio file.
5. method as claimed in claim 1 or 2, it is characterised in that it is described by the target background music data with it is default
Before the step of original sound data of track carries out mixed flow encapsulation, formation mixed flow audio file, also include:
The video progress that is currently played of acquisition, according to the video progress obtain in the target background music data with institute
State the second recommendation music data that video progress matches;
Described second recommendation music data and the original sound data of default track are carried out into mixed flow encapsulation, second is formed and is recommended sound
Frequency file;
Play the second recommendation of audio file.
6. a kind of background music switching device, it is characterised in that described device includes:
Handover request receiving unit, the background music handover request for receiving input, the background music handover request includes
The target audio track identity of target background music;
Background music data acquiring unit, for being closed according to the audio track identity for pre-building is corresponding between background music data
System, obtains the target background music data corresponding to the target audio track identity from the background music data storehouse of advance storage;
Mixed flow encapsulation unit, for the target background music data to be carried out into mixed flow envelope with the original sound data of default track
Dress, forms mixed flow audio file;
Broadcast unit, for playing the mixed flow audio file.
7. device as claimed in claim 1, it is characterised in that it is single that the mixed flow encapsulation unit is specially real-time mixed flow encapsulation
Unit;
The real-time mixed flow encapsulation unit, for the target background music data and the original sound data of default track to be entered
The real-time mixed flow encapsulation of row;
The real-time mixed flow encapsulation unit includes:
Timing node records subelement, for when the background music handover request of input is received, recording currently playing video
The timing node of progress;
Data extract subelement, for according to the timing node, when extracting described from the original sound data of default track
Original sound data after intermediate node;
Real-time mixed flow encapsulation subelement, for by the original sound data after the timing node and the target background music
Data carry out mixed flow encapsulation, form real-time mixed flow audio file.
8. device as claimed in claims 6 or 7, it is characterised in that described device also includes:
Volume ratio computing unit, for calculating the volume value of the target background music data and the original sound of default track
The volume ratio of the volume value of data;
First adjustment unit, for when the volume ratio is more than the first predetermined threshold value, then reducing the background music data
Volume or the default track of increase original sound data volume until the volume ratio is less than or equal to the first default threshold
Value;
Second adjustment unit, for when the volume ratio is less than the second predetermined threshold value, then increasing the background music data
Volume or reduce default track original sound data volume until the volume ratio is more than or equal to the second default threshold
Value;
Wherein, first predetermined threshold value is more than second predetermined threshold value.
9. device as claimed in claims 6 or 7, it is characterised in that described device also includes:
First recommends music acquiring unit, for recognizing the video content being currently played, is obtained according to the video content
The the first recommendation music data matched with the video content in the target background music data;
First recommends music mixed flow encapsulation unit, the original sound number for recommending music data and default track by described first
According to mixed flow encapsulation is carried out, the first recommendation of audio file is formed;
First recommends music unit, plays the first recommendation of audio file.
10. device as claimed in claims 6 or 7, it is characterised in that described device also includes:
Second recommends music acquiring unit, for obtaining the video progress being currently played, is obtained according to the video progress
The the second recommendation music data matched with the video progress in the target background music data;
Second recommends music mixed flow encapsulation unit, the original sound number for recommending music data and default track by described second
According to mixed flow encapsulation is carried out, the second recommendation of audio file is formed;
Second recommends music unit, for playing the second recommendation of audio file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710041409.1A CN106851394A (en) | 2017-01-18 | 2017-01-18 | A kind of background music switching method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710041409.1A CN106851394A (en) | 2017-01-18 | 2017-01-18 | A kind of background music switching method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106851394A true CN106851394A (en) | 2017-06-13 |
Family
ID=59119325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710041409.1A Pending CN106851394A (en) | 2017-01-18 | 2017-01-18 | A kind of background music switching method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851394A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295169A (en) * | 2017-06-19 | 2017-10-24 | 奇酷互联网络科技(深圳)有限公司 | The optimization method and equipment and mobile terminal of a kind of background sound |
CN108900902A (en) * | 2018-07-06 | 2018-11-27 | 北京微播视界科技有限公司 | Determine method, apparatus, terminal device and the storage medium of video background music |
CN109492128A (en) * | 2018-10-30 | 2019-03-19 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating model |
CN110868633A (en) * | 2019-11-27 | 2020-03-06 | 维沃移动通信有限公司 | Video processing method and electronic equipment |
CN111128204A (en) * | 2018-11-01 | 2020-05-08 | 阿里巴巴集团控股有限公司 | Comment method and device, terminal device and computer storage medium |
CN111314771A (en) * | 2020-03-13 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Video playing method and related equipment |
CN111428086A (en) * | 2020-03-31 | 2020-07-17 | 新华智云科技有限公司 | Background music recommendation method and system for E-commerce video production |
CN112165648A (en) * | 2020-10-19 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Audio playing method, related device, equipment and storage medium |
CN112331223A (en) * | 2020-11-09 | 2021-02-05 | 合肥名阳信息技术有限公司 | Method for adding background music to dubbing |
CN112494944A (en) * | 2020-11-26 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Game control method, device, electronic equipment and medium |
CN115103232A (en) * | 2022-07-07 | 2022-09-23 | 北京字跳网络技术有限公司 | Video playing method, device, equipment and storage medium |
CN115114475A (en) * | 2022-08-29 | 2022-09-27 | 成都索贝数码科技股份有限公司 | Audio retrieval method for matching short video sounds with music live original soundtracks |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475789A (en) * | 2013-08-26 | 2013-12-25 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and control method thereof |
CN103795897A (en) * | 2014-01-21 | 2014-05-14 | 深圳市中兴移动通信有限公司 | Method and device for automatically generating background music |
US8860720B1 (en) * | 2014-01-02 | 2014-10-14 | Ubitus Inc. | System and method for delivering graphics over network |
CN104835520A (en) * | 2015-03-27 | 2015-08-12 | 广州荔支网络技术有限公司 | Mobile equipment recording method and device |
CN105872253A (en) * | 2016-05-31 | 2016-08-17 | 腾讯科技(深圳)有限公司 | Live broadcast sound processing method and mobile terminal |
-
2017
- 2017-01-18 CN CN201710041409.1A patent/CN106851394A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475789A (en) * | 2013-08-26 | 2013-12-25 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and control method thereof |
US8860720B1 (en) * | 2014-01-02 | 2014-10-14 | Ubitus Inc. | System and method for delivering graphics over network |
CN103795897A (en) * | 2014-01-21 | 2014-05-14 | 深圳市中兴移动通信有限公司 | Method and device for automatically generating background music |
CN104835520A (en) * | 2015-03-27 | 2015-08-12 | 广州荔支网络技术有限公司 | Mobile equipment recording method and device |
CN105872253A (en) * | 2016-05-31 | 2016-08-17 | 腾讯科技(深圳)有限公司 | Live broadcast sound processing method and mobile terminal |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295169A (en) * | 2017-06-19 | 2017-10-24 | 奇酷互联网络科技(深圳)有限公司 | The optimization method and equipment and mobile terminal of a kind of background sound |
CN108900902A (en) * | 2018-07-06 | 2018-11-27 | 北京微播视界科技有限公司 | Determine method, apparatus, terminal device and the storage medium of video background music |
WO2020007009A1 (en) * | 2018-07-06 | 2020-01-09 | 北京微播视界科技有限公司 | Method and apparatus for determining background music of video, terminal device and storage medium |
US11200278B2 (en) * | 2018-07-06 | 2021-12-14 | Beijing Microlive Vision Technology Co., Ltd | Method and apparatus for determining background music of a video, terminal device and storage medium |
CN109492128A (en) * | 2018-10-30 | 2019-03-19 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating model |
CN109492128B (en) * | 2018-10-30 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating a model |
CN111128204A (en) * | 2018-11-01 | 2020-05-08 | 阿里巴巴集团控股有限公司 | Comment method and device, terminal device and computer storage medium |
CN110868633A (en) * | 2019-11-27 | 2020-03-06 | 维沃移动通信有限公司 | Video processing method and electronic equipment |
CN111314771A (en) * | 2020-03-13 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Video playing method and related equipment |
CN111314771B (en) * | 2020-03-13 | 2021-08-27 | 腾讯科技(深圳)有限公司 | Video playing method and related equipment |
CN111428086A (en) * | 2020-03-31 | 2020-07-17 | 新华智云科技有限公司 | Background music recommendation method and system for E-commerce video production |
CN111428086B (en) * | 2020-03-31 | 2023-05-12 | 新华智云科技有限公司 | Background music recommendation method and system for video production of electronic commerce |
CN112165648A (en) * | 2020-10-19 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Audio playing method, related device, equipment and storage medium |
CN112165648B (en) * | 2020-10-19 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Audio playing method, related device, equipment and storage medium |
CN112331223A (en) * | 2020-11-09 | 2021-02-05 | 合肥名阳信息技术有限公司 | Method for adding background music to dubbing |
CN112494944A (en) * | 2020-11-26 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Game control method, device, electronic equipment and medium |
CN112494944B (en) * | 2020-11-26 | 2023-12-05 | 北京达佳互联信息技术有限公司 | Game control method, game control device, electronic equipment, medium and product |
CN115103232A (en) * | 2022-07-07 | 2022-09-23 | 北京字跳网络技术有限公司 | Video playing method, device, equipment and storage medium |
CN115103232B (en) * | 2022-07-07 | 2023-12-08 | 北京字跳网络技术有限公司 | Video playing method, device, equipment and storage medium |
CN115114475A (en) * | 2022-08-29 | 2022-09-27 | 成都索贝数码科技股份有限公司 | Audio retrieval method for matching short video sounds with music live original soundtracks |
CN115114475B (en) * | 2022-08-29 | 2022-11-29 | 成都索贝数码科技股份有限公司 | Audio retrieval method for matching short video sounds with live soundtracks of music |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106851394A (en) | A kind of background music switching method and apparatus | |
CN108259971A (en) | Subtitle adding method, device, server and storage medium | |
US9576047B2 (en) | Method and system for preparing a playlist for an internet content provider | |
CN102968424A (en) | Iterative cloud broadcasting rendering method | |
CN108322817A (en) | A kind of audio mode switching method, device and electronic equipment | |
CN106847315A (en) | A kind of talking book synchronous methods of exhibiting sentence by sentence | |
CN106488311B (en) | Sound effect adjusting method and user terminal | |
CN108271069A (en) | The segment filter method and device of a kind of video frequency program | |
CN106331869A (en) | Video-based picture re-editing method and device | |
WO2011066432A2 (en) | System and method for uploading and downloading a video file and synchronizing videos with an audio file | |
CN109479157A (en) | Promote method, system and the medium of the interaction between the viewer of content stream | |
US20140229828A1 (en) | Creating playlists | |
CN107872685A (en) | A kind of player method of multi-medium data, device and computer installation | |
CN107463552A (en) | A kind of method and apparatus for generating video subject title | |
CN111512635A (en) | Method and system for selectively skipping media content | |
WO2022033452A1 (en) | Volume recommendation method and apparatus, device and storage medium | |
CN109891405A (en) | The method, system and medium of the presentation of video content on a user device are modified based on the consumption mode of user apparatus | |
JP2019520011A (en) | Media Environment Driven Content Delivery Platform | |
WO2023082830A1 (en) | Video editing method and apparatus, computer device, and storage medium | |
CN104581224B (en) | Switch the method, apparatus and terminal of broadcasting content | |
CN112004031A (en) | Video generation method, device and equipment | |
CN110225374A (en) | The user information acquiring and processing method of Interactive Internet TV | |
CN110933459A (en) | Event video clipping method, device, server and readable storage medium | |
CN110797001B (en) | Method and device for generating voice audio of electronic book and readable storage medium | |
CN113556484A (en) | Video processing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |
|
RJ01 | Rejection of invention patent application after publication |