CN108366299A - A kind of media playing method and device - Google Patents

A kind of media playing method and device Download PDF

Info

Publication number
CN108366299A
CN108366299A CN201810268938.XA CN201810268938A CN108366299A CN 108366299 A CN108366299 A CN 108366299A CN 201810268938 A CN201810268938 A CN 201810268938A CN 108366299 A CN108366299 A CN 108366299A
Authority
CN
China
Prior art keywords
speed
file
media
media file
adjusting parameter
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
CN201810268938.XA
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.)
SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Original Assignee
SHANGHAI QINIU INFORMATION TECHNOLOGIES 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 SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd filed Critical SHANGHAI QINIU INFORMATION TECHNOLOGIES Co Ltd
Priority to CN201810268938.XA priority Critical patent/CN108366299A/en
Publication of CN108366299A publication Critical patent/CN108366299A/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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • 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
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network

Abstract

The embodiment of the invention discloses a kind of media playing method and device, the media playing method includes:Obtain media file to be played;Dissection process is carried out to the media file, generates video file and audio file;The video file and audio file are played according to the temporal information of the media file;When needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated;Speed-variation without tone processing is carried out to the audio file using preset algorithm according to the adjusting parameter, plays treated the audio file.The embodiment of the present invention is according to the corresponding adjusting parameter of specific adjustment environment generation, audio file after being parsed to media file according to adjusting parameter carries out special speed-variation without tone and handles, so that audio file does not change original tone when playing, it plays more smooth, improve result of broadcast, meet the broadcasting demand under a variety of environment, promotes user experience.

Description

A kind of media playing method and device
Technical field
The present invention relates to MultiMedia Field more particularly to a kind of media playing methods and device.
Background technology
In current techniques, when carrying out playback of media files, if desired current broadcasting speed is adjusted, typically The processing of video pictures and audio fragment is realized using certain sample rate, not only video pictures can be played accordingly at this time The adjustment of speed, audio can be also adjusted.In this case, it distorts when audio can be caused to play the sampling of audio, Tone also changes, and result of broadcast is poor.
Invention content
A kind of media playing method of offer of the embodiment of the present invention and device control sound when can realize broadcasting speed adjustment Frequency normal play.
First aspect of the embodiment of the present invention provides a kind of media playing method, including:
Obtain media file to be played;
Dissection process is carried out to the media file, generates video file and audio file;
The video file and audio file are played according to the temporal information of the media file;
When needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated;
Speed-variation without tone processing is carried out to the audio file using preset algorithm according to the adjusting parameter, plays institute Audio file of stating that treated.
Optionally, acquisition media file to be played, including:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
Optionally, described when needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated, is wrapped It includes:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the network connection rate and the media file Size information calculate cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
Optionally, described when needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated, is wrapped It includes:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
Optionally, described that speed-variation without tone is carried out to the audio file using preset algorithm according to the adjusting parameter Processing, including:
The adjusting parameter is parsed, the corresponding speed adjustment information of the adjusting parameter is obtained, wherein the speed adjustment Information includes:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation is carried out to the audio file using the similar addition method of waveform and is mediated Reason.
Second aspect of the embodiment of the present invention provides a kind of media playing apparatus, including:
Acquisition module, for obtaining media file to be played;
Parsing module generates video file and audio file for carrying out dissection process to the media file;
Playing module, for playing the video file and audio file according to the temporal information of the media file;
Generation module, for when needing to adjust the broadcasting speed of the media file, generating corresponding adjusting parameter;
Module is adjusted, for carrying out speed-variation without tone processing to the audio file according to the adjusting parameter;
The playing module is additionally operable to play treated the audio file.
Optionally, the acquisition module is specifically used for:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
Optionally, the generation module is specifically used for:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the network connection rate and the media file Size information calculate cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
Optionally, the generation module is specifically used for:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
Optionally, the adjustment module is specifically used for:
The adjusting parameter is parsed, the corresponding speed adjustment information of the adjusting parameter is obtained, wherein the speed adjustment Information includes:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation is carried out to the audio file using the similar addition method of waveform and is mediated Reason.
Implement the embodiment of the present invention, has the advantages that:
Whether the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, according to specific adjustment ring Border generates corresponding adjusting parameter, and the audio file after being parsed to media file according to adjusting parameter carries out special speed-variation Reason is mediated, so that audio file does not change original tone when playing, broadcasting is more smooth, improves result of broadcast, Meet the broadcasting demand under a variety of environment, promotes user experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of method flow diagram of media playing method first embodiment provided in an embodiment of the present invention,
Fig. 2 is a kind of method flow diagram of media playing method second embodiment provided in an embodiment of the present invention,
Fig. 3 is a kind of method flow diagram of media playing method 3rd embodiment provided in an embodiment of the present invention,
Fig. 4 is a kind of method flow diagram of media playing method fourth embodiment provided in an embodiment of the present invention,
Fig. 5 is a kind of structural schematic diagram of media playing apparatus first embodiment provided in an embodiment of the present invention,
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just It is illustrated only in description, attached drawing and the relevant part of the disclosure rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of sequence in flow chart Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged, when its operation The processing can be terminated when completion, it is also possible to the other steps being not included in attached drawing.Processing can correspond to In method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of method flow diagram of media playing method first embodiment provided in an embodiment of the present invention.The media Playback method is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone, E-book, wearable device etc..The terminal can realize this by installing the form of application program or built-in application program The method of playback of media files in inventive embodiments, the media file can be the files of terminal local storage, can also be Come from the file in network linking.The media playing method includes the following steps S101-S105.
In step S101, media file to be played is obtained.
Specifically, obtaining media file to be played first.In the present embodiment, the media file can be terminal sheet The file of ground storage, optionally, the media file can also be the files in stream media for coming from network linking, the lattice chain It connects and http protocol or RTMP agreements may be used.The format of the media file can be various protocols type, such as can be with It is MP4, can also be FLV, can also be that HLS, the embodiment of the present invention are not limited thereto.It is corresponding, obtain media to be played The mode of file can also be the middle access media file that is locally stored from terminal, or by access target network address, Obtain the corresponding media file of the destination network addresses.
In step s 102, dissection process is carried out to the media file, generates video file and audio file.
Specifically, after getting media file, dissection process is carried out to media file.It is understood that institute It includes the processes such as demultiplexing, decoding, rendering to state dissection process.By the way that media file is carried out after having parsed, generate corresponding Video file and audio file.Since the processes such as demultiplexing, decoding, rendering are all technologies very ripe in the prior art, This will not be repeated here.It will be appreciated by persons skilled in the art that during to the dissection process of media file, it can be according to matchmaker The type of body file is different and actual needs chooses different decoding process, render process etc., the embodiment of the present invention not with This is limited.
In step s 103, the video file and audio file are played according to the temporal information of the media file.
Specifically, after getting video file and audio file, carried out according to the temporal information of media file It plays.In playing process, by matching the temporal information of video file and audio file, ensure association between the two and It is synchronous, to avoid the occurrence of picture and the inconsistent problem of sound, avoid the experience for influencing user.
In step S104, when needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated.
Specifically, the situation for needing to change broadcasting speed may be encountered in playing process, for example user actively carries out It plays when being cached slow caused by the adjustment of speed, or influence due to network environment, is generated at this time according to specific situation Corresponding adjusting parameter, the adjusting parameter are associated with specific adjustment speed.
In step S105, speed-variation is carried out to the audio file using preset algorithm according to the adjusting parameter It mediates reason, plays treated the audio file.
Specifically, after getting adjusting parameter, speed-variation is carried out to audio file according to adjusting parameter and is mediated Reason.In the present embodiment, carry out speed-variation without tone processing algorithm can there are many, for example can be the similar addition method of waveform, It can be time-domain pitch synchronization overlay method, can also be the sync waveform addition method or the fixed sync waveform addition method, the present invention Embodiment is not limited thereto.After to audio handled, by the audio after processing and regarding by variable-speed processing Frequency plays simultaneously, and such audio would not modify tone, and promotes result of broadcast.
Whether the media playing method in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, According to the corresponding adjusting parameter of specific adjustment environment generation, audio file after being parsed to media file according to adjusting parameter into The special speed-variation without tone processing of row, so that audio file does not change original tone when playing, broadcasting is more smooth, Result of broadcast is improved, the broadcasting demand under a variety of environment is met, promotes user experience.
Fig. 2 is a kind of method flow diagram of media playing method second embodiment provided in an embodiment of the present invention.Comparison diagram 1 Shown in first embodiment further comprise the step of how generating adjusting parameter in the present embodiment, this method include with Lower step S201-S207.
In step s 201, media file to be played is obtained.
In step S202, dissection process is carried out to the media file, generates video file and audio file.
In step S203, the video file and audio file are played according to the temporal information of the media file.
In step S204, when media file media file corresponding for destination network addresses, detect current Network connection rate.
It is the media text obtained by destination network addresses specifically, when the media file played is files in stream media It is that the change caching taken becomes the form played due to playing this class file, in process of caching, caching speed depends on working as when part Preceding network linking rate.Therefore, it needs to detect current network connection rate at this time, and by the network linking rate and in advance If threshold value be compared.Wherein, the preset threshold value can be pre-set according to the image quality of the media file, Such as image quality is when being 1080P or higher, preset threshold value will it is high a bit;Image quality is 720P, and predetermined threshold value is just What can be arranged is lower;Image quality be 480P when, predetermined threshold value will be lower, the embodiment of the present invention not as Limit.
In step S205, when the network connection rate be less than predetermined threshold value when, according to the network connection rate with And the size information of the media file calculates cache-time.
Specifically, when judging that network connection rate is less than predetermined threshold value, shows that network speed is due to too low at this time, lead to media File will appear the situations such as buffering, pause in playing process, at this time according to network connection rate and the size of media file Judge the remaining uncached required cache-time in part.
In step S206, corresponding adjusting parameter is generated according to the cache-time.
Specifically, according to calculated cache-time, calculating, which is worked as, adjusts the reproduction time of remaining audio file to institute The adjusting parameter that cache-time lock needs is stated, that is, is ensured after having adjusted, audio can carry out broadcasting at a slow speed, finish playing it New media file has just been buffered afterwards, so that playing process is without interruption, it is more smooth.
In step S207, speed-variation is carried out to the audio file using preset algorithm according to the adjusting parameter It mediates reason, plays treated the audio file.
Whether the media playing method in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, When threshold value of the network connection speed less than setting, corresponding tune is generated according to the size of network connection speed and media file Whole parameter, the audio file after being parsed to media file according to adjusting parameter carries out special speed-variation without tone and handles, to make It obtains audio file and does not change original tone when playing, broadcasting is more smooth, improves result of broadcast, meets under a variety of environment Broadcasting demand, promoted user experience.
Fig. 3 is a kind of method flow diagram of media playing method 3rd embodiment provided in an embodiment of the present invention.Comparison diagram 1 Shown in first embodiment further comprise the step of how generating adjusting parameter in the present embodiment, this method include with Lower step S301-S307.
In step S301, media file to be played is obtained.
In step s 302, dissection process is carried out to the media file, generates video file and audio file.
In step S303, the video file and audio file are played according to the temporal information of the media file.
In step s 304, when receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed is broadcast It puts.
Specifically, judging whether to receive the broadcasting control instruction that user sends out.In the present embodiment, the broadcasting control refers to Order can be sent out by input equipment, and the input equipment can be mouse, keyboard, can also be physical button, virtual key, It can also be touch screen etc..In other embodiments, the broadcasting control instruction can also be phonetic control command, gesture control System instruction etc..By parsing the broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays.
In step S305, when the broadcasting control instruction is that speed plays, the speed information is obtained.
Specifically, when broadcasting control separately plays for speed, determine that the speed plays corresponding specific speed letter Breath.The wherein described speed information includes accelerating broadcasting or slow play.
In step S306, corresponding adjusting parameter is generated according to the speed information.
Specifically, generating corresponding adjusting parameter according to speed information, the adjusting parameter is for adjusting audio.It can manage Solution, video can also carry out corresponding speed adjustment.In the present embodiment, due to the adoptable mode of adjustment to video compared with It is more, have more discussion in the prior art, this will not be repeated here.
In step S307, speed-variation is carried out to the audio file using preset algorithm according to the adjusting parameter It mediates reason, plays treated the audio file.
Whether the media playing method in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, When receiving speed play instruction, corresponding adjusting parameter is generated according to the speed play instruction, according to adjusting parameter pair Audio file after media file parsing carries out special speed-variation without tone processing, so that audio file does not change when playing Become original tone, broadcasting is more smooth, improves result of broadcast, meets the broadcasting demand under a variety of environment, promotes user's body It tests.
Fig. 4 is a kind of method flow diagram of media playing method fourth embodiment provided in an embodiment of the present invention.Comparison diagram 2 Shown in second embodiment, the embodiment of the present invention further comprises the step of how carrying out audio file processing.It is appreciated that , the step of audio file processing is carried out in the embodiment of the present invention can be applied equally in 3rd embodiment shown in Fig. 3. This approach includes the following steps S401-S408.
In step S401, media file to be played is obtained.
In step S402, dissection process is carried out to the media file, generates video file and audio file.
In step S403, the video file and audio file are played according to the temporal information of the media file.
In step s 404, it when media file media file corresponding for destination network addresses, detects current Network connection rate.
In step S405, when the network connection rate be less than predetermined threshold value when, according to the network connection rate with And the size information of the media file calculates cache-time.
In step S406, corresponding adjusting parameter is generated according to the cache-time.
In step S 407, the adjusting parameter is parsed, the corresponding speed adjustment information of the adjusting parameter is obtained.
Specifically, according to adjusting parameter acquisition speed adjustment information, wherein the speed adjustment information includes:Accelerate letter Breath or deceleration.The acceleration information sides carry out acceleration broadcasting to the media file, at this time can to video pictures into Row quickly plays, corresponding, is also required to quickly be played in terms of audio.Since common quickening audio can lead to tone Variation, therefore, subsequently needs to take specially treated to audio.Likewise, surface is wanted when speed adjustment information is deceleration Slow play is carried out to media file, also needs to carry out corresponding processing to audio at this time.
In step S408, according to the speed adjustment information, using the similar addition method of waveform to the audio file into The processing of row speed-variation without tone.
Specifically, in the present embodiment, audio file is handled using waveform similar superposition algorithm, realizes speed-variation It adjusts, the parameter of speed change comes from speed adjustment information, so as to realize that audio & video matches in speed, but audio Tone does not change so that for user in viewing, picture and sound are matched, while the result of broadcast of sound will not occur Variation is promoted and plays experience.
In step S409, treated the audio file is played.
It is that video file plays together with treated specifically, when audio file after playback process.The video File has also carried out speed processing, and the audio file is due to also having carried out corresponding speed processing, it is possible to ensure audio It is synchronous when playing with video.
Whether the media playing method in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, When threshold value of the network connection speed less than setting, corresponding tune is generated according to the size of network connection speed and media file Whole parameter, the audio file after being parsed to media file according to adjusting parameter carries out special speed-variation without tone and handles, to make It obtains audio file and does not change original tone when playing, broadcasting is more smooth, improves result of broadcast, meets under a variety of environment Broadcasting demand, promoted user experience.
Fig. 5 is a kind of structural schematic diagram of media playing apparatus first embodiment provided in an embodiment of the present invention.The media Playing device is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone, E-book, wearable device etc..The media playing apparatus include acquisition module 501, parsing module 502, playing module 503, Generation module 504 and adjustment module 505.
Wherein, acquisition module 501, for obtaining media file to be played;
Parsing module 502 generates video file and audio file for carrying out dissection process to the media file;
Playing module 503, for playing the video file and audio text according to the temporal information of the media file Part;
Generation module 504, for when needing to adjust the broadcasting speed of the media file, generating corresponding adjustment ginseng Number;
Module 505 is adjusted, for carrying out speed-variation without tone processing to the audio file according to the adjusting parameter;
The playing module 503 is additionally operable to play treated the audio file.
Whether the media playing apparatus in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, According to the corresponding adjusting parameter of specific adjustment environment generation, audio file after being parsed to media file according to adjusting parameter into The special speed-variation without tone processing of row, so that audio file does not change original tone when playing, broadcasting is more smooth, Result of broadcast is improved, the broadcasting demand under a variety of environment is met, promotes user experience.
Optionally, in other embodiments, the acquisition module 501 is specifically used for:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
Optionally, in other embodiments, the generation module 504 is specifically used for:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the network connection rate and the media file Size information calculate cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
Optionally, in other embodiments, the generation module 504 is specifically used for:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
Optionally, in other embodiments, the adjustment module 505 is specifically used for:
The adjusting parameter is parsed, the corresponding speed adjustment information of the adjusting parameter is obtained, wherein the speed adjustment Information includes:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation is carried out to the audio file using the similar addition method of waveform and is mediated Reason.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.It is understood that Fig. 1-Fig. 4 Shown in media playing method and media playing apparatus shown in fig. 5 can be applied in mobile terminal shown in fig. 6.Such as Fig. 6 Shown, mobile terminal includes that (quantity of the processor 601 in terminal can be one or more, and Fig. 6 is at one for processor 601 For reason device) and memory 602.In an embodiment of the present invention, processor 601, memory 602 can be by buses or other Mode connects, wherein in Fig. 6 for being connected by bus.
Wherein, executable program is stored in memory 602, processor 601 executes the executable program to realize such as Lower step:
Obtain media file to be played;
Dissection process is carried out to the media file, generates video file and audio file;
The video file and audio file are played according to the temporal information of the media file;
When needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated;
Speed-variation without tone processing is carried out to the audio file using preset algorithm according to the adjusting parameter, plays institute Audio file of stating that treated.
Optionally, the processor 601 obtains media file to be played, including:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
Optionally, the processor 601 generates corresponding adjustment when needing to adjust the broadcasting speed of the media file Parameter, including:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the network connection rate and the media file Size information calculate cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
Optionally, the processor 601 generates corresponding adjustment when needing to adjust the broadcasting speed of the media file Parameter, including:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
Optionally, the processor 601 carries out the audio file using preset algorithm according to the adjusting parameter Speed-variation without tone processing, including:
The adjusting parameter is parsed, the corresponding speed adjustment information of the adjusting parameter is obtained, wherein the speed adjustment Information includes:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation is carried out to the audio file using the similar addition method of waveform and is mediated Reason.
Whether the mobile terminal in the embodiment of the present invention needs the broadcasting speed for adjusting media file by detecting, according to Specific to adjust the corresponding adjusting parameter of environment generation, the audio file after being parsed to media file according to adjusting parameter carries out special Different speed-variation without tone processing plays more smooth, promotion so that audio file does not change original tone when playing Result of broadcast meets broadcasting demand under a variety of environment, promotes user experience.
The embodiment of the present invention additionally provides a kind of computer storage media, and the computer storage media is stored with executable Program, the executable program realize following steps when being performed:
Obtain media file to be played;
Dissection process is carried out to the media file, generates video file and audio file;
The video file and audio file are played according to the temporal information of the media file;
When needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated;
Speed-variation without tone processing is carried out to the audio file using preset algorithm according to the adjusting parameter, plays institute Audio file of stating that treated.
Optionally, it can be also used for realizing media play side as Figure 1-Figure 4 when the executable program is performed Method, this will not be repeated here.
There is provided in above-described embodiment each module between any two can be achieved communication connection, and each module can in platform The communication of heart control device connects, and can perform in the disclosure by the quick recording device of fingerprint recognition for being provided in above-described embodiment is appointed The method quickly recorded by fingerprint recognition provided in embodiment of anticipating has and executes the corresponding function module of this method and have Beneficial effect, the technical detail not being described in detail in the above-described embodiments, reference can be made to fast provided in disclosure any embodiment The method of speed recording.
It will be appreciated that the disclosure also extends to the computer program for being suitable for that the disclosure tries out, especially Computer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volume The form of the object code for the form translated, or with any other shape for being suitble to use in realization according to the disclosed method Formula.Also it will be noted that, such program may have many different frame designs.For example, realizing the side according to the disclosure Functional program code of method or system may be subdivided into one or more subroutine.
For that will be apparent for technical personnel in the functional many different modes of these subroutine intermediate distributions. Subroutine can be collectively stored in an executable file, to form self-contained program.Such executable file can To include computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).It can Alternatively, one or more or all subroutines of subroutine may be stored at least one external library file, and And statically or dynamically (such as at runtime) links with main program.Main program contains at least one of subroutine At least one calling.Subroutine can also include to mutual function call.It is related to the embodiment packet of computer program product Include the computer executable instructions corresponding at least one of illustrated method each step of the processing step of method.These refer to Subroutine can be subdivided into and/or be stored in one or more possible static or dynamic link file by enabling.
Another embodiment for being related to computer program product includes corresponding in illustrated system and/or product at least The computer executable instructions of each device in one device.These instructions can be subdivided into subroutine and/or be stored In one or more possible static or dynamic link file.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can wrap Containing storage medium, such as (ROM such as CDROM either semiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).Into One step, carrier can be the carrier that can be transmitted, such as electricity either optical signalling its can via cable or optical cable, or Person is transmitted by radio or other means.When program is embodied as such signal, carrier can be by such cable Or device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holding Row correlation technique, or used in execution for correlation technique.
Should be noted that embodiment mentioned above is to illustrate the disclosure, rather than the disclosure is limited, and this The technical staff in field will design many alternate embodiments, without departing from scope of the appended claims.It is weighing During profit requires, the reference mark of any placement between round parentheses is not to be read as being limitations on claims.Verb " packet Include " and its paradigmatic depositing using the element being not excluded for other than those of recording in the claims or step .Article " one " before element or "one" be not excluded for the presence of a plurality of such elements.The disclosure can pass through Include the hardware of several visibly different components, and is realized by properly programmed computer.Enumerating several devices In device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenance Profit states that the simple fact of certain measures does not indicate that the combination of these measures cannot be used to benefit in requiring.
If desired, different function discussed herein can be executed with different order and/or be executed simultaneously with one another. In addition, if if it is expected, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the sequence that executes in each embodiment, different step as discussed above It can be executed with different order and/or be executed simultaneously with one another.In addition, in other embodiments, described above one or more A step can be optional or can be combined.
Although various aspects of the disclosure provides in the independent claim, the other aspects of the disclosure include coming from The combination of the dependent claims of the feature of described embodiment and/or feature with independent claims, and not only It is the combination clearly provided in claim.
Although it is to be noted here that the foregoing describe the example embodiment of the disclosure, these descriptions are not It should be understood in a limiting sense.It is wanted without departing from such as appended right on the contrary, several change and modification can be carried out The scope of the present disclosure defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general meter Device is calculated to realize, each module can concentrate in the group of networks of single computing device or computing device composition, and the disclosure is real The method that the device in example corresponds in previous embodiment is applied, can be realized, can also be led to by executable program code The mode of integrated circuit combination is crossed to realize, therefore the disclosure is not limited to specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general shifting Dynamic terminal realizes that each module can concentrate in the device combination of single mobile terminal or mobile terminal composition, the disclosure Device in embodiment corresponds to the method in previous embodiment, can be realized by editing executable program code, It can be realized by way of integrated circuit combination, therefore the disclosure is not limited to specific hardware or software and its knot It closes.

Claims (10)

1. a kind of media playing method, which is characterized in that including:
Obtain media file to be played;
Dissection process is carried out to the media file, generates video file and audio file;
The video file and audio file are played according to the temporal information of the media file;
When needing to adjust the broadcasting speed of the media file, corresponding adjusting parameter is generated;
Speed-variation without tone processing is carried out to the audio file using preset algorithm according to the adjusting parameter, plays the place Audio file after reason.
2. media playing method as described in claim 1, which is characterized in that acquisition media file to be played, including:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
3. media playing method as claimed in claim 2, which is characterized in that described to need to adjust broadcasting for the media file When putting speed, corresponding adjusting parameter is generated, including:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the big of the network connection rate and the media file Small information calculates cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
4. media playing method as claimed in claim 2, which is characterized in that described to need to adjust broadcasting for the media file When putting speed, corresponding adjusting parameter is generated, including:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
5. media playing method as described in claim 3 or 4, which is characterized in that described to be used in advance according to the adjusting parameter If algorithm to the audio file carry out speed-variation without tone processing, including:
The adjusting parameter is parsed, obtains the corresponding speed adjustment information of the adjusting parameter, wherein the speed adjustment information Including:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation without tone processing is carried out to the audio file using the similar addition method of waveform.
6. a kind of media playing apparatus, which is characterized in that including:
Acquisition module, for obtaining media file to be played;
Parsing module generates video file and audio file for carrying out dissection process to the media file;
Playing module, for playing the video file and audio file according to the temporal information of the media file;
Generation module, for when needing to adjust the broadcasting speed of the media file, generating corresponding adjusting parameter;
Module is adjusted, for carrying out speed-variation without tone processing to the audio file according to the adjusting parameter;
The playing module is additionally operable to play treated the audio file.
7. media playing apparatus as claimed in claim 6, which is characterized in that the acquisition module is specifically used for:
Middle access media file is locally stored from terminal;Or
Access target network address obtains the corresponding media file of the destination network addresses.
8. media playing apparatus as claimed in claim 7, which is characterized in that the generation module is specifically used for:
When media file media file corresponding for destination network addresses, current network connection rate is detected;
When the network connection rate is less than predetermined threshold value, according to the big of the network connection rate and the media file Small information calculates cache-time;
Corresponding adjusting parameter is generated according to the cache-time.
9. media playing apparatus as claimed in claim 7, which is characterized in that the generation module is specifically used for:
When receiving broadcasting control instruction, judge whether the broadcasting control instruction is that speed plays;
When the broadcasting control instruction is that speed plays, the speed information is obtained;
Corresponding adjusting parameter is generated according to the speed information.
10. media playing apparatus as claimed in claim 8 or 9, which is characterized in that the adjustment module is specifically used for:
The adjusting parameter is parsed, obtains the corresponding speed adjustment information of the adjusting parameter, wherein the speed adjustment information Including:Accelerate information or deceleration;
According to the speed adjustment information, speed-variation without tone processing is carried out to the audio file using the similar addition method of waveform.
CN201810268938.XA 2018-03-29 2018-03-29 A kind of media playing method and device Pending CN108366299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810268938.XA CN108366299A (en) 2018-03-29 2018-03-29 A kind of media playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810268938.XA CN108366299A (en) 2018-03-29 2018-03-29 A kind of media playing method and device

Publications (1)

Publication Number Publication Date
CN108366299A true CN108366299A (en) 2018-08-03

Family

ID=63001371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810268938.XA Pending CN108366299A (en) 2018-03-29 2018-03-29 A kind of media playing method and device

Country Status (1)

Country Link
CN (1) CN108366299A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144463A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Transfer control method, device and electronic equipment
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device
CN112738607A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Playing method, device, equipment and storage medium
CN113014981A (en) * 2019-12-19 2021-06-22 海信视像科技股份有限公司 Video playing method and device, electronic equipment and readable storage medium
CN114363713A (en) * 2022-01-12 2022-04-15 维沃移动通信有限公司 Sound adjusting method and device
US11323499B2 (en) * 2018-08-24 2022-05-03 Citrix Systems, Inc. Bandwidth efficient streaming and synching multimedia content at a desired quality of experience
WO2023036092A1 (en) * 2021-09-13 2023-03-16 北京字跳网络技术有限公司 Audio playback method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4998281A (en) * 1987-08-20 1991-03-05 Casio Computer Co., Ltd. Effect addition apparatus
US20020101368A1 (en) * 2000-12-19 2002-08-01 Cosmotan Inc. Method of reproducing audio signals without causing tone variation in fast or slow playback mode and reproducing apparatus for the same
US20070098369A1 (en) * 2005-10-28 2007-05-03 Hsi-Jung Tsai Digital audio/video playback system capable of controlling audio and video playback speed
CN101740034A (en) * 2008-11-04 2010-06-16 刘盛举 Method for realizing sound speed-variation without tone variation and system for realizing speed variation and tone variation
CN101901612A (en) * 2009-05-27 2010-12-01 珠海扬智电子有限公司 Sound playing method and device with variable speed and invariable tone
US20110015931A1 (en) * 2007-07-18 2011-01-20 Hideki Kawahara Periodic signal processing method,periodic signal conversion method,periodic signal processing device, and periodic signal analysis method
CN102074239A (en) * 2010-12-23 2011-05-25 福建星网视易信息系统有限公司 Sound speed change method
CN103475927A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Online-video real-time speed change play method and system thereof
CN107484009A (en) * 2017-09-12 2017-12-15 上海脉淼信息科技有限公司 A kind of flow media playing method and device suitable for network direct broadcasting

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4998281A (en) * 1987-08-20 1991-03-05 Casio Computer Co., Ltd. Effect addition apparatus
US20020101368A1 (en) * 2000-12-19 2002-08-01 Cosmotan Inc. Method of reproducing audio signals without causing tone variation in fast or slow playback mode and reproducing apparatus for the same
US20070098369A1 (en) * 2005-10-28 2007-05-03 Hsi-Jung Tsai Digital audio/video playback system capable of controlling audio and video playback speed
US20110015931A1 (en) * 2007-07-18 2011-01-20 Hideki Kawahara Periodic signal processing method,periodic signal conversion method,periodic signal processing device, and periodic signal analysis method
CN101740034A (en) * 2008-11-04 2010-06-16 刘盛举 Method for realizing sound speed-variation without tone variation and system for realizing speed variation and tone variation
CN101901612A (en) * 2009-05-27 2010-12-01 珠海扬智电子有限公司 Sound playing method and device with variable speed and invariable tone
CN102074239A (en) * 2010-12-23 2011-05-25 福建星网视易信息系统有限公司 Sound speed change method
CN103475927A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Online-video real-time speed change play method and system thereof
CN107484009A (en) * 2017-09-12 2017-12-15 上海脉淼信息科技有限公司 A kind of flow media playing method and device suitable for network direct broadcasting

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144463A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Transfer control method, device and electronic equipment
US11323499B2 (en) * 2018-08-24 2022-05-03 Citrix Systems, Inc. Bandwidth efficient streaming and synching multimedia content at a desired quality of experience
CN113014981A (en) * 2019-12-19 2021-06-22 海信视像科技股份有限公司 Video playing method and device, electronic equipment and readable storage medium
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device
CN112738607A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Playing method, device, equipment and storage medium
WO2023036092A1 (en) * 2021-09-13 2023-03-16 北京字跳网络技术有限公司 Audio playback method and device
CN114363713A (en) * 2022-01-12 2022-04-15 维沃移动通信有限公司 Sound adjusting method and device

Similar Documents

Publication Publication Date Title
CN108366299A (en) A kind of media playing method and device
CN112237012B (en) Apparatus and method for controlling audio in multi-view omni-directional contents
CN107168518B (en) Synchronization method and device for head-mounted display and head-mounted display
CN103226961B (en) A kind of playing method and device
US9986362B2 (en) Information processing method and electronic device
CN106790940B (en) Recording method, recording playing method, device and terminal
CN105843572B (en) Information processing method and deformable electronic equipment
EP3615153B1 (en) Streaming of augmented/virtual reality spatial audio/video
EP3422744B1 (en) An apparatus and associated methods
US20120317594A1 (en) Method and system for providing an improved audio experience for viewers of video
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
US20230079893A1 (en) Multi-Viewpoint Multi-User Audio User Experience
US20230039530A1 (en) Automated generation of haptic effects based on haptics data
CN113891151A (en) Audio processing method and device, electronic equipment and storage medium
CN113365010B (en) Volume adjusting method, device, equipment and storage medium
US11825170B2 (en) Apparatus and associated methods for presentation of comments
CN114747232A (en) Audio scene change signaling
US20230209301A1 (en) Spatial Augmentation
US10871939B2 (en) Method and system for immersive virtual reality (VR) streaming with reduced audio latency
CN108462901A (en) A kind of media file playing method and device
CN108650544A (en) A kind of media playing method, device and media play system
CN115086729B (en) Wheat connecting display method and device, electronic equipment and computer readable medium
KR20190081163A (en) Method for selective providing advertisement using stereoscopic content authoring tool and application thereof
US20230297324A1 (en) Audio Control Method, System, and Electronic Device
CN111381797B (en) Processing method and device for realizing KTV function on client and user equipment

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180803

WD01 Invention patent application deemed withdrawn after publication