CN107786876A - The synchronous method of music and video, device and mobile terminal - Google Patents

The synchronous method of music and video, device and mobile terminal Download PDF

Info

Publication number
CN107786876A
CN107786876A CN201710862098.5A CN201710862098A CN107786876A CN 107786876 A CN107786876 A CN 107786876A CN 201710862098 A CN201710862098 A CN 201710862098A CN 107786876 A CN107786876 A CN 107786876A
Authority
CN
China
Prior art keywords
file
music
original position
music file
designated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710862098.5A
Other languages
Chinese (zh)
Inventor
左石城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201710862098.5A priority Critical patent/CN107786876A/en
Publication of CN107786876A publication Critical patent/CN107786876A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention provides the synchronous method of a kind of music and video, device and mobile terminal, wherein, methods described includes:By the way that when it is that designated file selects the confirmation of music to operate to receive user, the music file of user's selection and corresponding lyrics information are downloaded from server end;Drag operation according to user to the lyrics information, determine the broadcasting original position of the music file;It is synchronous to play the designated and music file according to the broadcasting original position of the duration of the designated file and the music file.So as to solve, due to the unpredictable synchronous effect of user, to cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, the beneficial effect for improving synchronous efficiency is reached.

Description

The synchronous method of music and video, device and mobile terminal
Technical field
The present invention relates to software application technology field, more particularly to the synchronous method of a kind of music and video, device and shifting Dynamic terminal.
Background technology
With developing rapidly for mobile terminal technology, the application software of various functions is arisen at the historic moment, so as to be user Bring convenience and entertain.Wherein, user turns into an important amusement for the music that the video collocation of oneself shooting synchronously plays Mode.
In the prior art, when user is that designated selects music, the down-load music text first from network or elsewhere Part;Then a fragment dubbing in background music as designated is intercepted from music file;Finally, by the snatch of music and video after interception Synthesized, and preserved, so as to which user is when opening and playing video, the music file can be used as background music synchronously to play.
However, in above-mentioned music and the synchronizing process of video, the unpredictable synchronous effect of user, if effect is undesirable, Need to re-operate, cause to reduce synchronous efficiency.
The content of the invention
The synchronous method of music provided in an embodiment of the present invention and video, device and mobile terminal, can be solved due to user Unpredictable synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency.
On the one hand, the embodiment of the invention discloses a kind of music and the synchronous method of video, applied to mobile terminal, bag Include:
When it is the confirmation operation that designated file selects music to receive user, user's selection is downloaded from server end Music file and corresponding lyrics information;
Drag operation according to user to the lyrics information, determine the broadcasting original position of the music file;
According to the broadcasting original position of the duration of the designated file and the music file, described in synchronous broadcasting Designated and music file.
On the other hand, the embodiment of the invention also discloses a kind of music and the sychronisation of video, including:
Music file download module, for when receive user for designated file select music confirmation operation when, The music file of user's selection and corresponding lyrics information are downloaded from server end;
Original position determining module is played, for the drag operation according to user to the lyrics information, determines the sound The broadcasting original position of music file;
Synchronous playing module, the broadcasting for the duration according to the designated file and the music file originate Position, it is synchronous to play the designated and music file.
Another further aspect, the embodiment of the invention also discloses a kind of mobile terminal, including processor and memory,
The memory is used for the program for storing the synchronous method for performing above-mentioned music and video;
The processor is configurable for performing the program stored in the memory.
In embodiments of the present invention, by when receive user for designated file select music confirmation operate when, The music file of user's selection and corresponding lyrics information are downloaded from server end;According to dragging of the user to the lyrics information Operation, determine the broadcasting original position of the music file;According to the duration of the designated file and music text The broadcasting original position of part, it is synchronous to play the designated and music file.So as to solve because user is unpredictable Synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, reached raising synchronous efficiency Beneficial effect.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 shows a kind of step flow chart of the synchronous method of the music and video in the embodiment of the present invention one;
Fig. 2 shows a kind of step flow chart of the synchronous method of the music and video in the embodiment of the present invention two;
Fig. 3 shows a kind of structured flowchart of the sychronisation of the music and video in the embodiment of the present invention three;
Fig. 4 shows a kind of structured flowchart of the sychronisation of the music and video in the embodiment of the present invention four;
Fig. 5 shows the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Below by the synchronization for enumerating several specific embodiments and being discussed in detail a kind of music provided by the invention and video Method, device and mobile terminal.
Embodiment one
Reference picture 1, the step flow chart of a kind of music of the embodiment of the present invention one and the synchronous method of video is shown, had Body may include steps of:
Step 101, when it is the confirmation operation that designated file selects music to receive user, downloaded from server end The music file of user's selection and corresponding lyrics information.
The embodiment of the present invention is applied to all applications dubbed in background music for video, when user is being dubbed in background music for designated to User provides the preview of current result of dubbing in background music.
Wherein, designated file can be current shooting video file or in advance shoot or download regard Frequency file.The embodiment of the present invention is not any limitation as to it.
Lyrics information can be the form of document form or data message.For example, document form can be text File, the form of data message can be JSON (JavaScript Object Notation, java script object tag) word Symbol string.It is appreciated that lyrics information can also be other any forms, the embodiment of the present invention is not any limitation as to it.
When user chooses target music file on the server, the lyrics corresponding to download while downloading the music file Information, so as to the synchronously displaying lyrics in playing music, to facilitate user by adjusting lyrics progress adjustment music Progress.It is appreciated that in actual applications, the music file downloaded in advance and lyrics information can also be used or from recording Music file and lyrics information are dubbed in background music, and the embodiment of the present invention is not any limitation as to it.
Step 102, the drag operation according to user to the lyrics information, the broadcasting start bit of the music file is determined Put.
Wherein, it is the original position played in preview to play original position.When user selects to determine current preview effect, The broadcasting original position is the original position finally dubbed in background music, certainly, can be again when user is dissatisfied to current preview effect Selection plays original position, until being satisfied with to result of broadcast.
In actual applications, it is specified location to need to initialize broadcasting original position when playing first, in playing process In, the operation modification that the lyrics are dragged according to user plays original position.
Step 103, it is synchronous according to the broadcasting original position of the duration of the designated file and the music file Play the designated and music file.
Wherein, the duration of designated file is stored in the file header of video file.
Specifically, when synchronously playing designated and music file, the synchronous lyrics of music file can be included On current screen.At the end of user's operation and designated broadcasting is not received, video text can be replayed from the beginning Part and the synchronous playing music since being played original position;When do not receive user operation and specify music file to play At the end of, playing video file and the synchronous playing music since being played original position can be continued from current location; Stop playing video file and music file when the confirmation for receiving user operates, and preserve the synchronous effect.
In embodiments of the present invention, by when receive user for designated file select music confirmation operate when, The music file of user's selection and corresponding lyrics information are downloaded from server end;According to dragging of the user to the lyrics information Operation, determine the broadcasting original position of the music file;According to the duration of the designated file and music text The broadcasting original position of part, it is synchronous to play the designated and music file.So as to solve because user is unpredictable Synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, reached raising synchronous efficiency Beneficial effect.
Embodiment two
Reference picture 2, the step flow chart of a kind of music of the embodiment of the present invention two and the synchronous method of video is shown, had Body may include steps of:
Step 201, when it is the confirmation operation that designated file selects music to receive user, downloaded from server end The music file of user's selection and corresponding lyrics information.
The step is referred to the detailed description of step 101, will not be repeated here.
Step 202, the drag operation according to user to the lyrics information, the broadcasting start bit of the music file is determined Put.
The step is referred to the detailed description of step 102, will not be repeated here.
Alternatively, in another embodiment of the invention, step 202 includes sub-step 2021 or 2022:
, will when sub-step 2021, being loaded into the music file, and not receiving user to the drag operation of lyrics information Broadcasting original position of the original position of the first sentence lyrics as music file.
When music file is loaded into first after downloading completes to be played, since the original position of the lyrics of music file Play, so as to avoid the music file of prelude overlength when playing, it is impossible to played as early as possible into the lyrics.
Sub-step 2022, when receiving user to the drag operation of lyrics information, lyrics information is dragged according to user Dynamic operation, change the broadcasting original position of the music file.
In embodiments of the present invention, when synchronously playing music, user can play starting by dragging the lyrics to adjust Position.For example, when user drags the lyrics backward, original position will be played and be adjusted to corresponding position after user's dragging backward Put;When user drags the lyrics forward, original position will be played and be adjusted to corresponding position after user's dragging forward.
Step 203, determine that very first time stamp is corresponding with end position corresponding to the broadcasting original position of the music file The second timestamp.
Wherein, the second timestamp can determine according to the total duration of music file.
In embodiments of the present invention, passage time is stabbed to determine to play original position and end position.It is appreciated that the time Stamp can be as accurate as a millisecond rank.
Step 204, duration information is read from the file header of the designated file.
Wherein, duration information is write in file header in recorded video file.
Step 205, if the difference of second timestamp and very first time stamp is more than or equal to the designated file Duration, then while commencing play out from original position regarding the designated file, commenced play out from broadcasting original position described Music file, and at the end of the designated file plays, terminate to play the music file.
In embodiments of the present invention, when since the duration to end of file position playing original position be more than video file During duration, music file only plays once, and stops playing music simultaneously at the end of video file plays;When from broadcasting When the duration that original position starts to end of file position is equal to video file duration, music file only plays once, and regarding Music file is also just played and terminated at the end of frequency file plays.
Step 206, if the difference of second timestamp and very first time stamp is less than the duration of the designated file, While then commencing play out from original position regarding the designated file, the music text is commenced play out from original position is played Part, and at the end of the music file plays, continue to play the designated file until broadcasting terminates.
In embodiments of the present invention, when from play original position to the duration of end of file position be less than video file duration When, at the end of video file does not play end and music file plays, continue independent playing video file.
Step 207, when receiving user the confirmation that synchronously plays being operated, according to the designated file The broadcasting original position of duration and music file, target fragment is intercepted from the music file.
In embodiments of the present invention, when user is satisfied with to current preview result, current preview knot is preserved by acknowledgement key Fruit.It is appreciated that step 205 or 206 Preview results only receive user confirmation operate when, just can be to music file Intercepted and preserved.
Wherein, target fragment be music file in broadcasting original position to the fragment between end position, be step 205 Or 206 Preview results.
Alternatively, in another embodiment of the invention, step 207 includes sub-step 2071 to 2072:
Sub-step 2071, if the difference of second timestamp and very first time stamp is more than or equal to the designated file Duration, then intercept the broadcasting original position in the music file to the fragment between position corresponding to the duration, Obtain target fragment.
Sub-step 2071 preserves the Preview results of corresponding step 205.
Specifically, after step 202 determines to play original position every time, start mark is stamped playing original position, Broadcasting end position when step 205 video playback stops in music file stamps end mark, so as to which sub-step 2071 can To intercept target fragment directly from start mark to end mark.
Sub-step 2072, if second timestamp and the very first time stamp difference be less than the designated file when It is long, then the broadcasting original position in the music file is intercepted to the fragment between end position, obtains target fragment.
Sub-step 2072 preserves the Preview results of corresponding step 206.
Specifically, after step 202 determines to play original position every time, start mark is stamped playing original position, Broadcasting end position when step 206 video playback stops in music file stamps end mark, so as to which sub-step 2072 can To intercept target fragment directly from start mark to end mark.
Step 208, the target fragment and the designated file are synthesized, and preserved.
It is appreciated that after by one file of target fragment and designated file synthesis, will can be stored in interim Music file, video file, target fragment under cache path are deleted.In addition, specified location can be uploaded to after synthesis, Or preserve to local.So as to which when opening above-mentioned designated file, target fragment can be played automatically in playing video file, So as to be reached for the effect that designated file is dubbed in background music.
In embodiments of the present invention, by when receive user for designated file select music confirmation operate when, The music file of user's selection and corresponding lyrics information are downloaded from server end;According to dragging of the user to the lyrics information Operation, determine the broadcasting original position of the music file;According to the duration of the designated file and music text The broadcasting original position of part, it is synchronous to play the designated and music file.So as to solve because user is unpredictable Synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, reached raising synchronous efficiency Beneficial effect.Further, it is also possible to by dragging the lyrics corresponding to music file, reach the beneficial of the happy video of flexible sync tone Effect.
Embodiment three
Reference picture 3, show the structured flowchart of a kind of music of the embodiment of the present invention three and the sychronisation of video.
Music file download module 301, for being the confirmation operation that designated file selects music when receiving user When, download the music file of user's selection and corresponding lyrics information from server end.
Original position determining module 302 is played, for the drag operation according to user to the lyrics information, it is determined that described The broadcasting original position of music file.
Synchronous playing module 303, the broadcasting for duration and the music file according to the designated file Original position, it is synchronous to play the designated and music file.
In embodiments of the present invention, by when receive user for designated file select music confirmation operate when, The music file of user's selection and corresponding lyrics information are downloaded from server end;According to dragging of the user to the lyrics information Operation, determine the broadcasting original position of the music file;According to the duration of the designated file and music text The broadcasting original position of part, it is synchronous to play the designated and music file.So as to solve because user is unpredictable Synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, reached raising synchronous efficiency Beneficial effect.
Embodiment three is device embodiment corresponding to embodiment of the method one, and detailed description is referred to embodiment one, herein Repeat no more.
Example IV
Reference picture 4, show a kind of structured flowchart of mobile terminal of the embodiment of the present invention four.
The mobile terminal 400 includes:Music file download module 401, play original position determining module 402, be synchronous Playing module 403, music file interception module 404, synthesis module 405.
Be discussed in detail separately below each module function and each module between interactive relation.
Music file download module 401, for being the confirmation operation that designated file selects music when receiving user When, download the music file of user's selection and corresponding lyrics information from server end.
Original position determining module 402 is played, for the drag operation according to user to the lyrics information, it is determined that described The broadcasting original position of music file.
Synchronous playing module 403, the broadcasting for duration and the music file according to the designated file Original position, it is synchronous to play the designated and music file.Alternatively, in embodiments of the present invention, above-mentioned synchronous broadcasting Module 403, including:
Timestamp determination sub-module 4031, for determining the very first time corresponding to the broadcasting original position of the music file Second timestamp corresponding to stamp and end position.
Duration information acquisition submodule 4032, for reading duration information from the file header of the designated file.
First plays submodule 4033, if being more than or equal to for the difference that second timestamp and the very first time stab described The duration of designated file, then while commencing play out from original position regarding the designated file, from broadcasting start bit Put and commence play out the music file, and at the end of the designated file plays, terminate to play the music file.
Second plays submodule 4034, if being less than described specify for the difference that second timestamp and the very first time stab The duration of video file, then while commencing play out from original position regarding the designated file, opened from original position is played Begin to play the music file, and at the end of the music file plays, continue to play the designated file until broadcasting Put end.
Music file interception module 404, for when receiving user and being operated to the confirmation that synchronously plays, according to institute The duration of designated file and the broadcasting original position of music file are stated, target fragment is intercepted from the music file.
Synthesis module 405, for the target fragment and the designated file to be synthesized, and preserve.
Alternatively, in another embodiment of the invention, above-mentioned broadcasting original position determining module 402, including:
First plays original position determination sub-module, for being loaded into the music file, and does not receive user's singing in antiphonal style During the drag operation of word information, the broadcasting original position using the original position of the first sentence lyrics as music file.
Or, second play original position determination sub-module, for when receiving user to the drag operation of lyrics information, Drag operation according to user to lyrics information, change the broadcasting original position of the music file.
Alternatively, in another embodiment of the invention, above-mentioned music file interception module 404, including:
First music file truncation submodule, if being more than or equal to for the difference that second timestamp and the very first time stab The duration of the designated file, then intercept corresponding to the broadcasting original position to the duration in the music file Fragment between position, obtains target fragment.
Second music file blocks submodule, if being less than for the difference that second timestamp and the very first time stab described The duration of designated file, then the broadcasting original position in the music file is intercepted to the piece between end position Section, obtains target fragment.
In embodiments of the present invention, by when receive user for designated file select music confirmation operate when, The music file of user's selection and corresponding lyrics information are downloaded from server end;According to dragging of the user to the lyrics information Operation, determine the broadcasting original position of the music file;According to the duration of the designated file and music text The broadcasting original position of part, it is synchronous to play the designated and music file.So as to solve because user is unpredictable Synchronous effect, cause to re-operate when effect is undesirable, the problem of so as to reduce synchronous efficiency, reached raising synchronous efficiency Beneficial effect.Further, it is also possible to by dragging the lyrics corresponding to music file, reach the beneficial of the happy video of flexible sync tone Effect.
Example IV is device embodiment corresponding to embodiment of the method two, and detailed description is referred to embodiment two, herein Repeat no more.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
The embodiment of the present invention additionally provides a kind of mobile terminal, as Fig. 5 shows, for convenience of description, illustrate only and this hair The related part of bright embodiment, particular technique details do not disclose, refer to present invention method part.The terminal can be with It is to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, so that terminal is mobile phone as an example:
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 5 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 510, memory 520, input block 530, display unit 540th, sensor 550, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 570, processor 580, And the grade part of power supply 590.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 is not formed to mobile phone Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
RF circuits 510 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 580;In addition, it is sent to base station by up data are designed.Generally, RF circuits 510 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 510 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 520 can be used for storage software program and module, and processor 580 is stored in memory 520 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 520 can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses what is created according to mobile phone Data (such as voice data, phone directory etc.) etc.., can be with addition, memory 520 can include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input block 530 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the key signals input that function control is relevant.Specifically, input block 530 may include that contact panel 531 and other inputs are set Standby 532.Contact panel 531, also referred to as touch-screen, collect user on or near it touch operation (such as user use The operation of any suitable object such as finger, stylus or annex on contact panel 531 or near contact panel 531), and root Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 531 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 580, and the order sent of reception processing device 580 and can be performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 531.Except contact panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to secondary or physical bond One or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 540 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 541.Further, contact panel 531 can cover display panel 541, when contact panel 531 is detected thereon or attached After near touch operation, processor 580 is sent to determine the type of touch event, is followed by subsequent processing device 580 according to touch event Type corresponding visual output is provided on display panel 541.Although in Figure 5, contact panel 531 and display panel 541 It is the part independent as two to realize the input of mobile phone and input function, but in some embodiments it is possible to by touch-control Panel 531 is integrated with display panel 541 and realizes input and the output function of mobile phone.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 541, proximity transducer can close display panel 541 when mobile phone is moved in one's ear And/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, (for example horizontal/vertical screen is cut available for the application of identification mobile phone posture Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as the gyroscope of configuration, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 561, sound is converted to by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, is turned after being received by voicefrequency circuit 560 Voice data is changed to, then after voice data output processor 580 is handled, through RF circuits 510 to be sent to such as another mobile phone, Or voice data is exported to memory 520 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 570 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 5 is shown WiFi module 570, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 580 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 520, and call and be stored in memory 520 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 580 can wrap Include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Mobile phone also includes the power supply 590 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply pipe Reason system and processor 580 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 580 included by the terminal also has following functions:It is when receiving user During the confirmation operation of designated file selection music, the music file of user's selection and the corresponding lyrics are downloaded from server end Information;Drag operation according to user to the lyrics information, determine the broadcasting original position of the music file;According to described The broadcasting original position of the duration of designated file and the music file, it is synchronous to play the designated and music text Part.
Alternatively, processor 580 also has following functions:Determine corresponding to the broadcasting original position of the music file Second timestamp corresponding to one timestamp and end position;Duration information is read from the file header of the designated file; If the difference of second timestamp and very first time stamp is more than or equal to the duration of the designated file, from original position Commence play out while regard the designated file, the music file is commenced play out from original position is played, and described At the end of designated file plays, terminate to play the music file;If the difference of second timestamp and very first time stamp Value is less than the duration of the designated file, then while commencing play out from original position regarding the designated file, from Play original position and commence play out the music file, and at the end of the music file plays, continue to play described specify Video file terminates until playing.
Alternatively, processor 580 also has following functions:The confirmation synchronously played is operated receiving user When, according to the broadcasting original position of the duration of the designated file and music file, target is intercepted from the music file Fragment;The target fragment and the designated file are synthesized, and preserved.
Alternatively, processor 580 also has following functions:If the difference of second timestamp and very first time stamp is more than Equal to the duration of the designated file, then the broadcasting original position in the music file is intercepted to the duration pair Fragment between the position answered, obtains target fragment;If the difference of second timestamp and very first time stamp is less than the finger Determine the duration of video file, then intercept the broadcasting original position in the music file to the fragment between end position, Obtain target fragment.
Alternatively, processor 580 also has following functions:The music file is being loaded into, and is not receiving user's singing in antiphonal style During the drag operation of word information, the broadcasting original position using the original position of the first sentence lyrics as music file;Or, receiving When user is to the drag operation of lyrics information, the drag operation according to user to lyrics information, broadcasting for the music file is changed Put original position.
It can be seen that in embodiments of the present invention, by being that designated file selects the confirmation of music to grasp when receiving user When making, the music file of user's selection and corresponding lyrics information are downloaded from server end;According to user to the lyrics information Drag operation, determine the broadcasting original position of the music file;According to the duration of the designated file and described The broadcasting original position of music file, it is synchronous to play the designated and music file.So as to solve due to user without Method predicts synchronous effect, causes to re-operate when effect is undesirable, and the problem of so as to reduce synchronous efficiency, it is same to have reached raising Walk the beneficial effect of efficiency.Further, it is also possible to by dragging the lyrics corresponding to music file, reach the happy video of flexible sync tone Beneficial effect.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) come realize in mobile terminal device according to embodiments of the present invention some or The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one Divide either whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair Bright program can store on a computer-readable medium, or can have the form of one or more signal.It is such Signal can be downloaded from internet website and obtained, and either provided on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown 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 selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be 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 causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. the synchronous method of a kind of music and video, it is characterised in that methods described includes:
When it is the confirmation operation that designated file selects music to receive user, the sound of user's selection is downloaded from server end Music file and corresponding lyrics information;
Drag operation according to user to the lyrics information, determine the broadcasting original position of the music file;
It is synchronous to play described specify according to the broadcasting original position of the duration of the designated file and the music file Video and music file.
2. according to the method for claim 1, it is characterised in that the duration and institute according to the designated file State the broadcasting original position of music file, synchronous the step of playing the designated and music file, including:
Determine the second timestamp corresponding to very first time stamp corresponding to the broadcasting original position of the music file and end position;
Duration information is read from the file header of the designated file;
If the difference of second timestamp and very first time stamp is more than or equal to the duration of the designated file, from starting While position is commenced play out regarding the designated file, the music file is commenced play out from original position is played, and At the end of the designated file plays, terminate to play the music file;
If the difference of second timestamp and very first time stamp is less than the duration of the designated file, from original position Commence play out while regard the designated file, the music file is commenced play out from original position is played, and described At the end of music file plays, continue to play the designated file until broadcasting terminates.
3. according to the method for claim 2, it is characterised in that in the duration according to the designated file and The broadcasting original position of the music file, after synchronous the step of playing the designated and music file, in addition to:
When receiving user the confirmation that synchronously plays being operated, according to the duration of the designated file and music text The broadcasting original position of part, target fragment is intercepted from the music file;
The target fragment and the designated file are synthesized, and preserved.
4. according to the method for claim 3, it is characterised in that the duration and music according to the designated file The broadcasting original position of file, from the music file intercept target fragment the step of, including:
If the difference of second timestamp and very first time stamp is more than or equal to the duration of the designated file, institute is intercepted The broadcasting original position in music file is stated to the fragment between position corresponding to the duration, obtains target fragment;
If the difference of second timestamp and very first time stamp is less than the duration of the designated file, the sound is intercepted The broadcasting original position in music file obtains target fragment to the fragment between end position.
5. according to the method described in Claims 1-4 any of which item, it is characterised in that it is described according to user to the lyrics The drag operation of information, the step of determining the broadcasting original position of the music file, including:
When being loaded into the music file, and not receiving user to the drag operation of lyrics information, by the starting of the first sentence lyrics Broadcasting original position of the position as music file;
Or, when receiving user to the drag operation of lyrics information, the drag operation according to user to lyrics information, change institute State the broadcasting original position of music file.
A kind of 6. sychronisation of music and video, it is characterised in that including:
Music file download module, for when receive user for designated file select music confirmation operation when, from clothes Download the music file of user's selection and corresponding lyrics information in business device end;
Original position determining module is played, for the drag operation according to user to the lyrics information, determines the music text The broadcasting original position of part;
Synchronous playing module, for the duration and the broadcasting start bit of the music file according to the designated file Put, it is synchronous to play the designated and music file.
7. device according to claim 6, it is characterised in that the synchronous playing module, including:
Timestamp determination sub-module, for determining very first time stamp corresponding to the broadcasting original position of the music file and terminating Second timestamp of position correspondence;
Duration information acquisition submodule, for reading duration information from the file header of the designated file;
First plays submodule, if being more than or equal to the designated for the difference that second timestamp and the very first time stab The duration of file, then while commencing play out from original position regarding the designated file, broadcast since being played original position The music file is put, and at the end of the designated file plays, terminates to play the music file;
Second plays submodule, if being less than the designated file for the difference that second timestamp and the very first time stab Duration, then while commencing play out from original position regarding the designated file, from play original position commence play out institute Music file is stated, and at the end of the music file plays, continues to play the designated file until broadcasting terminates.
8. device according to claim 6, it is characterised in that after the synchronous playing module, in addition to:
Music file interception module, for when receiving user and being operated to the confirmation that synchronously plays, being specified according to described The duration of video file and the broadcasting original position of music file, target fragment is intercepted from the music file;
Synthesis module, for the target fragment and the designated file to be synthesized, and preserve.
9. device according to claim 8, it is characterised in that the music file interception module, including:
First music file truncation submodule, if being more than or equal to for the difference that second timestamp and the very first time stab described The duration of designated file, then the broadcasting original position in the music file is intercepted to position corresponding to the duration Between fragment, obtain target fragment;
Second music file blocks submodule, if being less than described specify for the difference that second timestamp and the very first time stab The duration of video file, then the broadcasting original position in the music file is intercepted to the fragment between end position, is obtained To target fragment.
10. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 5 during the computing device Any one of music and video synchronous method the step of.
CN201710862098.5A 2017-09-21 2017-09-21 The synchronous method of music and video, device and mobile terminal Pending CN107786876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710862098.5A CN107786876A (en) 2017-09-21 2017-09-21 The synchronous method of music and video, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710862098.5A CN107786876A (en) 2017-09-21 2017-09-21 The synchronous method of music and video, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN107786876A true CN107786876A (en) 2018-03-09

Family

ID=61433562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710862098.5A Pending CN107786876A (en) 2017-09-21 2017-09-21 The synchronous method of music and video, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107786876A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600650A (en) * 2018-08-01 2019-04-09 北京微播视界科技有限公司 Method and apparatus for handling data
CN109600563A (en) * 2018-08-01 2019-04-09 北京微播视界科技有限公司 Method and apparatus for determining timestamp
CN110928518A (en) * 2019-11-26 2020-03-27 北京达佳互联信息技术有限公司 Audio data processing method and device, electronic equipment and storage medium
CN111541945A (en) * 2020-04-28 2020-08-14 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
CN112153307A (en) * 2020-08-28 2020-12-29 北京达佳互联信息技术有限公司 Method and device for adding lyrics in short video, electronic equipment and storage medium
WO2023010402A1 (en) * 2021-08-05 2023-02-09 深圳Tcl新技术有限公司 Media file playing method and apparatus, and computer device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040036159A (en) * 2002-10-23 2004-04-30 엘지전자 주식회사 Audio And Video Edition Using Television Receiver Set
CN1787101A (en) * 2005-10-21 2006-06-14 无敌科技(西安)有限公司 Multimedia editing method
CN103928039A (en) * 2014-04-15 2014-07-16 北京奇艺世纪科技有限公司 Video compositing method and device
CN104540028A (en) * 2014-12-24 2015-04-22 上海影卓信息科技有限公司 Mobile platform based video beautifying interactive experience system
CN104967900A (en) * 2015-05-04 2015-10-07 腾讯科技(深圳)有限公司 Video generating method and video generating device
CN105933724A (en) * 2016-05-23 2016-09-07 福建星网视易信息系统有限公司 Video producing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040036159A (en) * 2002-10-23 2004-04-30 엘지전자 주식회사 Audio And Video Edition Using Television Receiver Set
CN1787101A (en) * 2005-10-21 2006-06-14 无敌科技(西安)有限公司 Multimedia editing method
CN103928039A (en) * 2014-04-15 2014-07-16 北京奇艺世纪科技有限公司 Video compositing method and device
CN104540028A (en) * 2014-12-24 2015-04-22 上海影卓信息科技有限公司 Mobile platform based video beautifying interactive experience system
CN104967900A (en) * 2015-05-04 2015-10-07 腾讯科技(深圳)有限公司 Video generating method and video generating device
CN105933724A (en) * 2016-05-23 2016-09-07 福建星网视易信息系统有限公司 Video producing method, device and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600650A (en) * 2018-08-01 2019-04-09 北京微播视界科技有限公司 Method and apparatus for handling data
CN109600563A (en) * 2018-08-01 2019-04-09 北京微播视界科技有限公司 Method and apparatus for determining timestamp
CN110928518A (en) * 2019-11-26 2020-03-27 北京达佳互联信息技术有限公司 Audio data processing method and device, electronic equipment and storage medium
CN111541945A (en) * 2020-04-28 2020-08-14 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
CN111541945B (en) * 2020-04-28 2022-05-10 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
CN112153307A (en) * 2020-08-28 2020-12-29 北京达佳互联信息技术有限公司 Method and device for adding lyrics in short video, electronic equipment and storage medium
US11615816B2 (en) 2020-08-28 2023-03-28 Beijing Dajia Internet Information Technology Co., Ltd. Method and device for adding lyrics to short video
WO2023010402A1 (en) * 2021-08-05 2023-02-09 深圳Tcl新技术有限公司 Media file playing method and apparatus, and computer device and storage medium

Similar Documents

Publication Publication Date Title
CN107770596A (en) A kind of special efficacy synchronous method, device and mobile terminal
CN107786876A (en) The synchronous method of music and video, device and mobile terminal
CN106621329A (en) Game data processing method
CN107945253A (en) A kind of animation effect implementation method, device and storage device
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN106911900A (en) Video dubbing method and device
CN106534941A (en) Method and device for realizing video interaction
CN103703789A (en) Method, terminal and system of data presentation
CN106803993A (en) It is a kind of to realize the method and device that video branching selection is played
CN106231433B (en) A kind of methods, devices and systems playing network video
CN106210266B (en) A kind of acoustic signal processing method and audio signal processor
CN108055567B (en) Video processing method and device, terminal equipment and storage medium
CN104519262B (en) Obtain the method, apparatus and terminal of video data
CN108055490A (en) A kind of method for processing video frequency, device, mobile terminal and storage medium
CN107734376A (en) The method and device that a kind of multi-medium data plays
CN107948562A (en) Video recording method and video recording terminal
CN103686246B (en) Player method, device, equipment and system when transmission stream video is selected
CN107135419A (en) A kind of method and apparatus for editing video
CN107333162A (en) A kind of method and apparatus for playing live video
CN104583924B (en) A kind of method and terminal for handling media file
CN106856543A (en) A kind of image display method, device and mobile terminal
CN103581762A (en) Method, device and terminal equipment for playing network videos
CN108012101A (en) Video recording method and video recording terminal
CN109379617A (en) Multimedia file synchronous broadcast method, terminal and medium based on data processing
CN108038244A (en) Utilize the method, apparatus and mobile terminal of widget displaying works front cover

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309