CN106454417A - Streaming media speed multiplication playing method and apparatus - Google Patents

Streaming media speed multiplication playing method and apparatus Download PDF

Info

Publication number
CN106454417A
CN106454417A CN201610998702.2A CN201610998702A CN106454417A CN 106454417 A CN106454417 A CN 106454417A CN 201610998702 A CN201610998702 A CN 201610998702A CN 106454417 A CN106454417 A CN 106454417A
Authority
CN
China
Prior art keywords
key frame
frame data
speed
data
resolution
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.)
Granted
Application number
CN201610998702.2A
Other languages
Chinese (zh)
Other versions
CN106454417B (en
Inventor
刘庆彬
范翠翠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201610998702.2A priority Critical patent/CN106454417B/en
Publication of CN106454417A publication Critical patent/CN106454417A/en
Application granted granted Critical
Publication of CN106454417B publication Critical patent/CN106454417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a streaming media speed multiplication playing method and apparatus. The method comprises the following steps: determining key frame data requested to obtain when streaming media are played according to a speed multiplication size and time information of downloaded key frame data, downloading the key frame data requested to obtain, wherein the key frame data requested to obtain and the downloaded key frame data constitute to-be-played key frame data, and performing speed multiplication playing on the to-be-played key frame data according to the speed multiplication size. By adoption of the streaming media speed multiplication playing method and apparatus, the key frame data requested to obtain can be determined according to the downloaded key frame data and the set speed multiplication size, and the speed multiplication playing is performed on all key frame data according to the speed multiplication size, so the screen switching smoothness during the speed multiplication playing is improved.

Description

Streaming Media speed player method and device
Technical field
It relates to stream media technology field, more particularly to a kind of Streaming Media speed player method and device.
Background technology
With the continuous development of stream media technology, simple normal speed forward function can not meet needs, to regarding The demand that the multimedias such as frequency carry out speed broadcasting is more and more urgent.However, server end does not provide speed broadcasting for terminal Service, thus need to be processed in playback terminal streaming media, the speed for realizing Streaming Media is played.HLS(http live Stream, dynamic code rate adaptive technique) specification is widely used in a variety of applications due to the application enriched and expanded function.
In the data file of Streaming Media, the details of each key frame data are generally comprised, for example each crucial frame number According to information such as the byte location in multi-medium data, the time intervals of each adjacent key frame.This just plays for Set Top Box etc. Terminal realizes the function of Streaming Media speed broadcasting there is provided possible.
At present, the speed of Streaming Media is played mainly according to speed size, chooses spy from key frame data jumping characteristic The key frame data of fixed number amount, and then these key frame data are played out, realize the function of speed broadcasting.
However, in existing Streaming Media speed player method, due to the key frame data that plays be from continuous key frame The Partial key frame data that in data, jumping characteristic is chosen, thus adjacent key frame data when speed is played is in original key frame In data and adjacent, the fluency bad of picture switching when causing speed to be played is not all, and the speed for arranging is bigger, When speed is played, the fluency of picture switching is poorer.
Content of the invention
For the bad technical problem of the fluency for solving picture switching when speed present in correlation technique is played, this public affairs Open there is provided a kind of Streaming Media speed player method and device.
A kind of Streaming Media speed player method, including:
The temporal information of key frame data is downloaded according to speed size and, the pass of acquisition request when determining streaming media playing Key frame data;
Download the key frame data of the acquisition request, the key frame data of the acquisition request and described download key Frame data constitute key frame data to be played;
Speed broadcasting is carried out to the key frame data to be played according to the speed size.
A kind of Streaming Media speed playing device, including:
Data determining module, for having downloaded according to speed size and the temporal information of key frame data, determines Streaming Media The key frame data of acquisition request during broadcasting;
Data download module, for downloading the key frame data of the acquisition request, the crucial frame number of the acquisition request Constitute key frame data to be played according to the key frame data of having downloaded;
Speed playing module, for carrying out speed broadcasting according to the speed size to the key frame data to be played.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
When the speed for carrying out Streaming Media is played, the temporal information of key frame data is downloaded according to speed size and, really The key frame data of acquisition request when streaming media is played, the key frame data that download request is obtained, the key frame of acquisition request Data and key frame data is downloaded and has constituted key frame data to be played, according to speed size, key frame data to be played has been carried out Speed is played, as all key frame data carry out speed broadcasting according to speed size, it is ensured that smoothness during streaming media playing Property.
It should be appreciated that above general description and detailed description hereinafter are only exemplary, this can not be limited Open.
Description of the drawings
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement for meeting the present invention Example, and be used for together explaining the principle of the present invention in description.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of flow chart of the Streaming Media speed player method according to an exemplary embodiment;
Fig. 3 is the key frame data sequence information schematic diagram of the HLS specification according to an exemplary embodiment;
Fig. 4 be Fig. 2 correspond to embodiment according to speed size and downloaded the temporal information of key frame data, determine and flow matchmaker The flow chart of the key frame data step of acquisition request when body is played;
Fig. 5 is a kind of flow chart of the Streaming Media speed player method according to an exemplary embodiment;
Fig. 6 is a kind of flow chart of the Streaming Media speed player method according to Fig. 2;
Fig. 7 is the speed broadcasting step for carrying out each key frame data according to speed size successively that Fig. 2 corresponds to embodiment Flow chart;
Fig. 8 is a kind of block diagram of the Streaming Media speed playing device according to an exemplary embodiment;
Fig. 9 is that Fig. 8 corresponds to the block diagram for implementing to exemplify data determining module;
Figure 10 is the block diagram that Fig. 8 corresponds to the data determining module for implementing to exemplify;
Figure 11 is a kind of block diagram of the Streaming Media speed playing device according to an exemplary embodiment;
Figure 12 is the block diagram that Fig. 8 corresponds to the speed playing module for implementing to exemplify.
Specific embodiment
Here in detail explanation will be executed to exemplary embodiment, its example is illustrated in the accompanying drawings.Following exemplary is implemented Embodiment described in example does not represent all embodiments consistent with the present invention.Conversely, they are only and such as institute The example of consistent apparatus and method in terms of some of described in detail in the attached claims, present invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure.As shown in figure 1, the implementation environment includes:Terminal 100 servers 200.According to the speed size for arranging, after terminal 100 sends the request of key frame data to server 200, enter And the key frame data that the reception server 200 is returned, multiple broadcasting is carried out to key frame data.
Fig. 2 is a kind of flow chart of the Streaming Media speed player method according to an exemplary embodiment.As Fig. 2 institute Show, the Streaming Media speed player method may comprise steps of.
In step s 110, the temporal information of key frame data has been downloaded according to speed size and, has determined streaming media playing When acquisition request key frame data.
Frame is the ultimate unit for constituting video image.And key frame data is key frame data, to be in interframe compression coding Important frame, only with key frame data with regard to restructural complete image during decoding.Therefore, there is no need to reference to other frame data, to closing Key frame data are decoded generating complete image, and video file is made up of multiple continuous images.
Streaming Media is the media formats for being played out on network by the way of stream transmission.In playback terminal to service After device sends request of data, server sends packet with Streaming Media form, and playback terminal is after to these decoded packet datas Play out, so as to realize the function of playing in transmission.
It is to have been downloaded into the key frame data in playback terminal to have downloaded key frame data.After speed broadcasting is set, per Individual key frame data carries out playing duration when speed is played according to the speed size for arranging will be different with original playing duration. Thus according to the speed size for arranging and the temporal information for having downloaded key frame data, determine the key frame data of acquisition request.
In the step s 120, the key frame data that download request is obtained, the key frame data of acquisition request and has downloaded pass Key frame data constitute key frame data to be played.
Key frame data is stored in playback terminal after downloading to playback terminal, and is treated with key frame data composition is downloaded Play key frame data.According to the playing sequence of key frame data to be played, realize to key frame data according to speed size Speed is played.
Fig. 3 is the key frame data sequence information schematic diagram of the HLS specification according to an exemplary embodiment.HLS is advised Fan Zhong, key frame data is stored with the formation of data fragmentation, in the m3u8 file of each data fragmentation, #EXT-INF label The reproduction time interval between two key frame data is illustrated, it is possible thereby to each key frame data be determined with respect to broadcasting for starting Put time migration.And in each data fragmentation, include multiple key frame data, by the # in the m3u8 file of key frame data EXT-INF label, such that it is able to know the playing duration of each burst under normal code check (not carrying out speed setting).
In step s 130, the speed for carrying out each key frame data successively according to speed size is played.
According to the playing sequence of each key frame data in key frame data to be played, each pass is carried out successively according to speed size The broadcasting of key frame data.
For example, key frame data to be played has key frame data A1, A2, A3 successively, key frame data A1, A2, A3 when Between interval be 50ms, the speed size of setting is 2, and therefore, key frame data A1, A2, the speed playing duration of A3 are 25ms.According to system time, when the reproduction time of key frame data A1 reaches 25ms, then carry out to key frame data A2 times Speed is played;Key frame data A3 is similar to.
Carried out in the playing process of each key frame data according to the speed size for arranging, can be in key frame number to be played According in all key frame data speed playing duration determine finish after, then carry out key frame data speed play;Can also After the speed playing duration for determining a part of key frame data, that is, the speed for carrying out key frame data is played, in crucial frame number According to speed playing process in, while determining the speed playing duration of other key frame data.
By method as above, according to the speed size for downloading key frame data and arrange, acquisition request is determined Key frame data, and then speed broadcasting is carried out to download key frame data according to the speed size for arranging, it is to avoid right In original video, the saltatory of key frame data is played, and all key frame data in original video are all played out, it is ensured that The fluency of picture when speed is played.
Fig. 4 is the description of the details to step S110 according to an exemplary embodiment.In step S110, request is obtained The key frame data for taking is a kind of key frame data of level of resolution in multiple different resolution grades, and step S110 is permissible Comprise the following steps.
The highest resolution level key frame data of predetermined quantity in step S111, is obtained, determines key frame data Time interval summation and key frame data amount.
Server is the equipment for providing service for playback terminal.For a video data file, it is stored with server The key frame data of multiple level of resolution.For example, server, a video has a super clear, high definition pattern, and super clear, high definition mould Formula corresponds to the key frame data of high-resolution and low-resolution grade respectively.
It is understood that for the key frame data of different resolution grade, the data volume of its storage is also to differ 's.For example, for the video of super clear pattern, the level of resolution of its key frame data is higher, and the data volume of storage is also accordingly relatively Greatly.
In one exemplary embodiment, for the key frame data of HLS specification, all comprising wherein institute in each data fragmentation The each key frame data information having, each key frame data information includes each key frame data amount, each key frame time interval;And it is right In the key frame data of other specifications, when key frame data is not stored with data fragmentation, by obtaining a number of key Frame data, so as to obtain time interval and the key frame data amount of key frame data.
In step S112, according to speed size, key frame data amount and time interval summation, highest resolution etc. is determined The key frame data of level carries out data playback speed when speed is played according to speed size.
According to the speed size for arranging, calculate the key frame data of the part highest resolution level according to arrange times Fast size carries out playing duration when speed is played, in conjunction with total key frame of the key frame data of the part highest resolution level Data volume, obtains data playback speed when speed is played.
For example, the key frame data of acquisition includes key frame data A1, A2, A3, key frame data A1, A2, the data of A3 Amount is 5KB, and time interval is 50ms, and speed size is 3.Thus total amount of data is to carry out again 15KB, with speed size as 3 Playing duration when speed is played is 50ms, and data playback speed when speed is played is 300KB/s.
In step S113, on the basis of current bandwidth, data broadcasting speed is detected, judge data playback speed Whether degree meets the restriction of bandwidth requires, if it has, then execution step 114, if it has not, then execution step 115.
Bandwidth refers to data volume, the i.e. data transmission bauds that can transmit within the unit interval.Bandwidth is special as network is weighed The important indicator that levies, embodies the data transmission capabilities of network.
Playback terminal obtains implementing for current bandwidth, can be by downloading a key frame data file, according to which Data volume and download time estimate current bandwidth.
When being played out with Streaming Media form, while key frame data is downloaded, to the crucial frame number that has downloaded According to playing out after decoding.Bandwidth is compared with the key frame data amount that downloads in hour, same time less than the key frame data that plays Amount, as the key frame data that downloads all is finished, broadcasting will suspend, and need to wait for being carried out after key frame data is downloaded again Play, now occur the phenomenon that pauses is played, thus bandwidth will affect the result of broadcast of Streaming Media.
When speed broadcasting is carried out, key frame data broadcasting speed (i.e. the key frame data playback volume of unit interval) will Change.When speed is more than 1, key frame data broadcasting speed will increase;When speed is less than 1, key frame data broadcasting speed is just Can reduce.For example, when speed is 2, key frame data broadcasting speed is exactly 2 times of former key frame data broadcasting speed, and then Bandwidth is put forward higher requirement.
After speed size is arranged, according to the data playback speed of each level of resolution under the speed size, select to meet Bandwidth limits the key frame data level of resolution for requiring, then sends the level of resolution key frame number for obtaining selection to server According to request.
Using current bandwidth, the key frame data broadcasting speed of highest resolution level is detected, judge best result Whether the key frame data broadcasting speed of resolution grade meets the restriction of bandwidth requires, so as to choose the pass of adequate resolution grade Key frame data.
In step S114, determine that the level of resolution of key frame data is highest resolution level, and according to downloading The temporal information of key frame data determines the key frame data of acquisition request highest resolution level.
If the restriction that the key frame data broadcasting speed of highest resolution level meets bandwidth is required, i.e. highest resolution etc. When the key frame data broadcasting speed of level is less than or equal to bandwidth, then show in same time, the download of key frame data is big In or playback volume when playing equal to key frame data speed, video playback is not in the phenomenon of pause.
In step sl 15, according to the sequence of different resolution grade, the key to a low level of resolution successively Frame data carry out the detection of data playback speed, until the data playback speed of corresponding level of resolution key frame data is less than band Wide restriction is required, or the level of resolution of key frame data is lowest resolution grade.
If the restriction that the key frame data broadcasting speed of highest resolution level is unsatisfactory for bandwidth is required, i.e. highest resolution When the key frame data broadcasting speed of grade is more than bandwidth, then show in same time, the download of key frame data is less than pass Playback volume when key frame data speed is played, if continuing to play the key frame data of highest resolution level, under The key frame data of load is finished, and be will appear from playing the phenomenon that pauses, is waited the download of key frame data.
Play, for avoiding the occurrence of, the phenomenon that pauses, reduce a level of resolution, to low by one on the basis of current bandwidth The key frame data broadcasting speed of level of resolution carries out same detection.When the key frame data of a low level of resolution is broadcast Put speed and meet the restriction of bandwidth and require, i.e., when key frame data broadcasting speed is less than or equal to bandwidth, determine key frame data Level of resolution be a low level of resolution, to server send obtain the low level of resolution key frame data please Ask;If the restriction that the key frame data broadcasting speed of a low level of resolution is unsatisfactory for bandwidth requires, i.e., key frame data is broadcast When putting speed more than bandwidth, then continue to reduce level of resolution, until the data playback speed of key frame data meets bandwidth Limit and require, or the level of resolution of key frame data is lowest resolution grade.
For example, video A is stored with the key frame data of three level of resolution in the server, by the height of level of resolution Low order, these three level of resolution are respectively R1, R2, R3.Key frame data speed first to highest resolution level R1 Data playback speed during broadcasting is detected, when the key frame data broadcasting speed of level of resolution R1 is unsatisfactory for the limit of bandwidth System is required, then data playback speed when playing to the key frame data speed of level of resolution R2 is detected.If resolution Data playback speed when the key frame data speed of grade R2 is played meets the restriction of bandwidth and requires, it is determined that key frame data Level of resolution be R2;If the data playback speed when key frame data speed of level of resolution R2 is played still is discontented with foot straps Wide restriction is required, then data playback speed when playing to the key frame data speed of level of resolution R3 is detected, if Data playback speed when the key frame data speed of lowest resolution grade R3 is played still is unsatisfactory for the restriction of bandwidth and requires, then Still determine key frame data level of resolution be lowest resolution grade R3.
Using method as above, under the restriction for meeting bandwidth is required, the key frame of adequate resolution grade is chosen Data, the key frame data broadcasting speed for making the key frame data to the level of resolution carry out when speed is played is less than current Bandwidth, it is to avoid carry out the phenomenon for occurring during streaming media playing pausing, greatly improve the quality of speed broadcasting pictures.
Optionally, as shown in figure 5, the level of resolution of key frame data is defined as lowest resolution grade, illustrate in Fig. 5 A kind of flow chart of Streaming Media speed player method can also comprise the following steps.
In step S116, if the restriction that the data playback speed of lowest resolution grade key frame data is more than bandwidth will Ask, then the Partial key frame data of lowest resolution grade are chosen, until the data playback speed of the Partial key frame data that chooses Degree meets the restriction of bandwidth and requires.
When the level of resolution of key frame data is lowest resolution grade, data playback speed when its speed is played Require still greater than the restriction of bandwidth, show now as bandwidth is too little, be not enough to support that all keys data carry out the speed The broadcasting of size, is therefore chosen the Partial key frame data of lowest resolution grade, makes the key frame after selection by jumping characteristic Data carry out data playback speed when speed is played and meet the restriction of bandwidth requiring, it is to avoid occur pausing when speed is played shows As.
Implementing for selected part key frame data, can pass through with a number of key frame data as a list Position, is chosen in key frame data unit using two way classification, makes the data playback of the Partial key frame data of final selection Speed meets the restriction of bandwidth and requires;Can also go according to playing sequence successively saltatory in all keys data that chooses Fall key frame data to play out, can also be chosen by other methods.
With a number of key frame data as a unit, chosen in key frame data unit using two way classification When, it is preferred that assume in key frame data unit A of lowest resolution grade, according to the playing sequence of each key frame data Each key frame data is respectively A1, A2, A3, A4, A5, A6, A7, when the data playback speed for carrying out speed broadcasting is unsatisfactory for bandwidth When restriction is required, other key frame data A1, A2 not comprising interim key frame data A4, A3, A5, A6, A7 is first selected, to choosing Key frame data A1, A2 selected, A3, A5, A6, A7 carry out the detection of data playback speed;When data playback speed is still unsatisfactory for When the restriction of bandwidth is required, in the key frame data for selecting, remove A2, so to select key frame data A1, A3, A5, A6, A7 carry out the detection of data playback speed;When the restriction that data playback speed is still unsatisfactory for bandwidth is required, in the pass for selecting Remove A6 in key frame data, and then key frame data A1, A3 to selection, A5, A7 carry out the detection of data playback speed, and then By similar method until the restriction that the data playback speed of the key frame data for selecting meets bandwidth is required.
In step S117, determine that the Partial key frame data that chooses are the key frame data that request is downloaded.
Using method as above, less in bandwidth, still occur during the key frame data for selecting lowest resolution grade When playing the phenomenon that pauses, uniformly selected section key frame data in data fragmentation, makes the Partial key frame data of selection Data playback speed meet the restriction of bandwidth and require, carry out Streaming Media so as to remain to not stop in the case of bandwidth is less Speed play, and reduce all keys data cannot be played and cause the slack probability of picture.
Fig. 6 is a kind of flow chart of the Streaming Media speed player method according to Fig. 2.As shown in fig. 6, in step S110 Before, the Streaming Media speed player method can also be comprised the following steps.
In step S210, the time interval sum for having downloaded key frame data is obtained.
It is to have been downloaded into the key frame data in playback terminal storage to have downloaded key frame data.According to per 2 keys Time interval between frame data, determines the playing duration that each key frame data is commenced play out after being decoded relatively, according to institute There is the time interval sum of key frame data, determine and downloaded the playing duration that key frame data is played out.
In step S220, according to time interval sum and speed size, judge that all key frame data carry out speed and broadcast Whether speed reproduction time when putting reaches preset play time, if it has not, then execution step 110, if it has, then suspend determining The key frame data of acquisition request during streaming media playing.
After certain speed size is set, according to the time interval sum of all key frame data, calculates and download Key frame data carries out speed playing duration when speed is played.
Preset play time is the playing duration threshold value for pre-setting, when judging that the speed for having downloaded key frame data is played Whether length meets the requirement that can carry out speed broadcasting according to the speed size for arranging.If it has not, the key in then showing to cache Frame data are less, are also not enough to play the duration of preset play time, thus determine the key frame data of acquisition request and download, Until downloading key frame data and the key frame data of acquisition request reaches preset play time;If it has, then under showing Carrying key frame data carries out the broadcasting of preset play time enough, need not now obtain key frame data, according to playing sequence according to Secondary speed broadcasting is carried out to downloading key frame data;
For example, preset play time 100 seconds, speed size is that 2, the time interval sum for having downloaded key frame data is 300 seconds.Now, it is 2 to carry out the speed playing duration of speed broadcasting as 150 seconds to have downloaded key frame data with speed size, reaches To the preset play time requirement of 100 seconds, therefore speed broadcasting is carried out to downloading key frame data successively according to playing sequence; When detect in speed playing process downloaded key frame data and carry out the duration of speed broadcasting and only have 80 seconds when, need according under The temporal information acquisition request key frame data of key frame data is carried, until downloading the key of key frame data and acquisition request The speed playing duration of frame data reaches 100 seconds.
Using method as above, downloading, key frame data is less, and being also not enough to reach preset play time will When asking, according to the key frame data that the temporal information for downloading key frame data, download request are obtained, until downloading key frame The key frame data of data and acquisition request reaches preset play time requirement, so that having downloaded key frame data to carry out speed Speed playing duration during broadcasting reaches preset play time requirement, it is ensured that fluency when Streaming Media speed is played.
Fig. 7 is the description of the details to step S130 according to an exemplary embodiment.Step S130 can include Following steps.
In step S131, according to speed size and the time interval of key frame data to be played, key to be played is calculated Frame data carry out respective speed playing duration when speed is played.
Each key frame data has its original time interval.Under the setting of different speed sizes, each crucial frame number According to speed playing duration be different.So as to according to the speed size for arranging, calculate each key frame data in this times The speed playing duration of speed broadcasting is carried out under fast size.
For example, there are key frame data A1, A2, A3 in key frame data to be played successively, key frame data A1, A2, A3 Time interval is respectively 50ms, 60ms, 40ms, and the speed size of setting is 2, then carry out speed broadcasting with 2 times of speed size When, key frame data A1, A2, the speed playing duration of A3 are respectively 25ms, 30ms, 20ms.
In step S132, determine the previous key frame data that is played by speed, judge key frame data broadcasting when Between whether reach the speed playing duration of key frame data, if it has, then execution step S133, if it has not, then execution step S134.
Present system time, and system time when the previous key frame data that is played by speed is decoded is obtained, Calculate the reproduction time of the previous key frame data that is played by speed.When the speed that reproduction time reaches which to arrange is big Little carry out speed play when playing duration when, then speed broadcasting is carried out to the key frame data for ranking the first in caching.Similar , successively speed broadcasting is carried out to the key frame data in caching.
For example, there is key frame data A1, A2 in caching successively, when carrying out speed broadcasting with 2 times of speed size, key frame The playing duration of data A1, A2 is respectively 25ms, 30ms, 20ms, and previous key frame data A0 that is played by speed is with 2 times It is 30ms that speed size carries out playing duration when speed is played.When present system time is decoded with key frame data A0 it is Time interval between the system time is 20ms, and playing duration 30ms when playing less than its speed needs to wait for key frame data A0 Proceed to play, until playing duration reaches 30ms, then speed broadcasting is carried out to key frame data A1;Key frame data A1 When reproduction time reaches 25ms, then speed broadcasting is carried out to key frame data A2.
By method as above, each key frame data is calculated according to the speed size for arranging and is entered with the speed size Playing duration when row speed is played, by system time, reaches speed broadcasting in the reproduction time of each key frame data When playing duration when, then speed broadcasting is carried out to the key frame data for ranking the first in caching, according to arrange speed size Determine that the speed of each key frame data plays opportunity, it is achieved that picture switching frequency and the speed size for arranging when speed is played The effect being directly proportional, it is ensured that the fluency of broadcasting.
In step S133, successively speed is carried out to key frame data to be played according to respective speed playing duration and broadcast Put.
In step S134, the previous key frame data that is played by speed is waited to proceed to play.
Following for disclosure device embodiment, can be used for executing this Streaming Media speed player method embodiment.For this The details not disclosed in disclosed device embodiment, refer to disclosure Streaming Media speed player method embodiment.
Fig. 8 is a kind of block diagram of the Streaming Media speed playing device according to an exemplary embodiment, as shown in figure 8, The Streaming Media speed playing device is included but is not limited to:Data determining module 110, data download module 120 and speed are played Module 130.
Data determining module 110, for having downloaded according to speed size and the temporal information of key frame data, determines stream matchmaker The key frame data of acquisition request when body is played;
Data download module 120, for the key frame data that download request is obtained, the key frame data of acquisition request and Download key frame data and constitute key frame data to be played;
Speed playing module 130, for carrying out speed broadcasting according to speed size to key frame data to be played.
In said apparatus, the process of realizing of the function of modules and effect specifically refers to above-mentioned Streaming Media speed broadcasting side Correspond to step in method realizes process, will not be described here.
Optionally, as shown in figure 9, key frame data includes the key frame data of multiple height different resolution grades, number Include but is not limited to according to determining module 110:Data message acquiring unit 111, data playback speed determining unit 112, data are broadcast Put speed detection unit 113,114 data broadcasting speed sequence detection unit 115 of highest ranking data determination unit.
Data message acquiring unit 111, for obtaining the highest resolution level key frame data of predetermined quantity, determines and closes The time interval summation of key frame data and key frame data amount;
Data playback speed determining unit 112, for according to speed size, key frame data amount and time interval summation, Determine that the key frame data of highest resolution level carries out data playback speed when speed is played according to speed size;
Data playback speed detection unit 113, for being detected to data broadcasting speed on the basis of current bandwidth, Judge whether data playback speed meets the restriction of bandwidth and require;
Highest ranking data determination unit 114, if the restriction for meeting bandwidth for determining data playback speed is required, The level of resolution for determining key frame data is highest resolution level, and true according to the temporal information of downloading key frame data Determine the key frame data of acquisition request highest resolution level;
Data playback speed order detector unit 115, if be unsatisfactory for the restriction of bandwidth for determining data playback speed Require, then according to the sequence of different resolution grade, successively data are carried out to the key frame data of a low level of resolution The detection of broadcasting speed, until the data playback speed of corresponding level of resolution key frame data is required less than the restriction of bandwidth, Or the level of resolution of key frame data is lowest resolution grade.
Optionally, as shown in Figure 10, the level of resolution of key frame data is defined as lowest resolution grade, according to Fig. 9 A kind of block diagram of the Streaming Media speed playing device for illustrating, data determining module 110 is also included but is not limited to:Data selecting unit 116 and partial data determining unit 117.
Data selecting unit 116, if be more than bandwidth for the data playback speed of lowest resolution grade key frame data Restriction require, then choose lowest resolution grade Partial key frame data, until choose Partial key frame data number The restriction for meeting bandwidth according to broadcasting speed is required;
Partial data determining unit 117, for determining that the Partial key frame data that chooses are the crucial frame number that request is downloaded According to.
Optionally, as shown in figure 11, the block diagram of a kind of Streaming Media speed playing device according to Fig. 8, the device is also Including but not limited to:Time interval acquisition module 210 and reproduction time judge module 220.
Time interval acquisition module 210, for obtaining the time interval sum for having downloaded key frame data;
Reproduction time judge module 220, for according to time interval sum and speed size, judging to have downloaded crucial frame number Whether preset play time is reached according to the speed reproduction time for carrying out when speed is played.
Optionally, as shown in figure 12, speed playing module 130 is included but is not limited to:Speed playing duration computing unit 131 With the opportunity of broadcasting judging unit 132.
Speed playing duration computing unit 131, for according to speed size and the time interval of key frame data to be played, Calculating key frame data to be played carries out respective speed playing duration when speed is played;
Broadcasting opportunity judging unit 132, for determining the previous key frame data that is played by speed, judges crucial frame number According to reproduction time whether reach the speed playing duration of key frame data, if it has, then according to respective speed playing duration Successively speed broadcasting is carried out to key frame data to be played.
It should be appreciated that the precision architecture for being described above and being shown in the drawings is the invention is not limited in, this Skilled person can execute various modifications and changes without departing from the scope.The scope of the present invention only will by appended right Ask to limit.

Claims (10)

1. a kind of Streaming Media speed player method, including:
The temporal information of key frame data is downloaded according to speed size and, the key frame of acquisition request when determining streaming media playing Data;
Download the key frame data of the acquisition request, the key frame data of the acquisition request and described download crucial frame number According to composition key frame data to be played;
Speed broadcasting is carried out to the key frame data to be played according to the speed size.
2. method according to claim 1, it is characterised in that the key frame data of the acquisition request is multiple different points A kind of key frame data of level of resolution in resolution grade, described has downloaded according to speed size and time of key frame data Information, includes the step of the key frame data of acquisition request when determining streaming media playing:
Obtain the highest resolution level key frame data of predetermined quantity, determine the time interval summation of the key frame data with Key frame data amount;
According to speed size, the key frame data amount and the time interval summation, the highest resolution level is determined Key frame data carries out data playback speed when speed is played according to the speed size;
On the basis of current bandwidth, the data playback speed is detected, judge whether the data playback speed meets The restriction of the bandwidth is required;
If determining the restriction that the data playback speed meets the bandwidth to require, it is determined that the resolution of the key frame data Rate grade is the highest resolution level, and is determined described in acquisition request most according to the temporal information for downloading key frame data The key frame data of high-resolution grade;
If determining the restriction that the data playback speed is unsatisfactory for the bandwidth to require, according to the different resolution grade Sequence, carry out the detection of data playback speed successively to the key frame data of a low level of resolution, until corresponding point The data playback speed of resolution grade key frame data less than the bandwidth restriction require, or the key frame data point Resolution grade is lowest resolution grade.
3. method according to claim 2, it is characterised in that the level of resolution of the key frame data is defined as minimum Level of resolution, described downloaded according to speed size and the temporal information of key frame data, ask when determining streaming media playing The step of key frame data of acquisition, also includes:
If the data playback speed of the lowest resolution grade key frame data is required more than the restriction of the bandwidth, choose The Partial key frame data of the lowest resolution grade, until the data playback speed of the Partial key frame data that chooses meets The restriction of the bandwidth is required;
Determine the selection Partial key frame data be request download key frame data.
4. method according to claim 1, it is characterised in that methods described also includes:
The time interval sum of key frame data has been downloaded described in obtaining;
According to the time interval sum and the speed size, judge described when having downloaded key frame data and carrying out speed broadcasting Speed reproduction time whether reach preset play time, if it has not, then executing
Described the temporal information of key frame data, the pass of acquisition request when determining streaming media playing are downloaded according to speed size and The step of key frame data.
5. method according to claim 1, it is characterised in that described according to the speed size to the key to be played Frame data carry out the step of speed is played to be included:
According to the speed size and the time interval of the key frame data to be played, the key frame data to be played is calculated Carry out respective speed playing duration when speed is played;
Determine the previous key frame data that is played by speed, judge whether the reproduction time of the key frame data reaches described The speed playing duration of key frame data, if it has, then according to the respective speed playing duration successively to described to be played Key frame data carries out speed broadcasting.
6. a kind of Streaming Media speed playing device, including:
Data determining module, for having downloaded according to speed size and the temporal information of key frame data, determines streaming media playing When acquisition request key frame data;
Data download module, for downloading the key frame data of the acquisition request, the key frame data of the acquisition request and The key frame data of having downloaded constitutes key frame data to be played;
Speed playing module, for carrying out speed broadcasting according to the speed size to the key frame data to be played.
7. device according to claim 6, it is characterised in that the key frame data of the acquisition request is multiple different points A kind of key frame data of level of resolution in resolution grade, the data determining module includes:
Data message acquiring unit, for obtaining the highest resolution level key frame data of predetermined quantity, determines the key The time interval summation of frame data and key frame data amount;
Data playback speed determining unit, for according to speed size, the key frame data amount and the time interval summation, Determine that the key frame data of the highest resolution level carries out data playback speed when speed is played according to the speed size Degree;
Data playback speed detection unit, for being detected to the data playback speed on the basis of current bandwidth, sentences The restriction whether the data playback speed of breaking meets the bandwidth is required;
Highest ranking data determination unit, if requiring for determining the restriction that the data playback speed meets the bandwidth, The level of resolution for then determining the key frame data is the highest resolution level, and according to downloading key frame data Temporal information determines the key frame data of highest resolution level described in acquisition request;
Data playback speed order's detector unit, if be unsatisfactory for the restriction of the bandwidth for determining the data playback speed Require, then according to the sequence of the different resolution grade, successively the key frame data of a low level of resolution is carried out The detection of data playback speed, until limit of the data playback speed of corresponding level of resolution key frame data less than the bandwidth System is required, or the level of resolution of the key frame data is lowest resolution grade.
8. device according to claim 7, it is characterised in that the level of resolution of the key frame data is defined as minimum Level of resolution, the data determining module also includes:
Data selecting unit, if be more than the bandwidth for the data playback speed of the lowest resolution grade key frame data Restriction require, then choose the Partial key frame data of the lowest resolution grade, until choose Partial key frame data Data playback speed meet the restriction of the bandwidth and require;
Partial data determining unit, the Partial key frame data for determining the selection are the key frame data that request is downloaded.
9. method according to claim 6, it is characterised in that described device also includes:
Time interval acquisition module, for obtaining the time interval sum for having downloaded key frame data;
Reproduction time judge module, for having downloaded pass described according to the time interval sum and the speed size, judging Key frame data carry out whether speed reproduction time when speed is played reaches preset play time.
10. method according to claim 6, it is characterised in that the speed playing module includes:
Speed playing duration computing unit, for the time interval according to the speed size and key frame data to be played, counts Calculating the key frame data to be played carries out respective speed playing duration when speed is played;
Broadcasting opportunity judging unit, for determining the previous key frame data that is played by speed, judges the key frame data Reproduction time whether reach the speed playing duration of the key frame data, if it has, then broadcasting according to the respective speed Putting duration carries out speed broadcasting to the key frame data to be played successively.
CN201610998702.2A 2016-11-11 2016-11-11 Streaming Media speed playback method and device Active CN106454417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998702.2A CN106454417B (en) 2016-11-11 2016-11-11 Streaming Media speed playback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998702.2A CN106454417B (en) 2016-11-11 2016-11-11 Streaming Media speed playback method and device

Publications (2)

Publication Number Publication Date
CN106454417A true CN106454417A (en) 2017-02-22
CN106454417B CN106454417B (en) 2019-08-09

Family

ID=58208597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998702.2A Active CN106454417B (en) 2016-11-11 2016-11-11 Streaming Media speed playback method and device

Country Status (1)

Country Link
CN (1) CN106454417B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801092A (en) * 2017-09-15 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of video speed playing method and device
CN109982151A (en) * 2017-12-28 2019-07-05 中国移动通信集团福建有限公司 VOD method, device, equipment and medium
CN110121098A (en) * 2018-02-05 2019-08-13 腾讯科技(深圳)有限公司 Video broadcasting method, device, storage medium and electronic device
CN114339397A (en) * 2021-12-23 2022-04-12 北京百度网讯科技有限公司 Multimedia editing information determination method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600092A (en) * 2009-06-12 2009-12-09 中兴通讯股份有限公司 The generation of network video and player method and system
CN101635847A (en) * 2009-09-02 2010-01-27 中兴通讯股份有限公司 Transmission method, video display device and terminal of streaming media
CN102025956A (en) * 2009-09-23 2011-04-20 华为技术有限公司 Processing method, device and system for fast forward and fast backward playing of network stream media
CN102055717A (en) * 2009-11-09 2011-05-11 华为技术有限公司 Quick playing method, terminal and server
WO2012089014A1 (en) * 2010-12-31 2012-07-05 华为技术有限公司 Method, device and system for generating media file
CN102859933A (en) * 2009-11-13 2013-01-02 三星电子株式会社 Method and apparatus for providing trick play service
CN103428213A (en) * 2013-08-08 2013-12-04 深圳市同洲电子股份有限公司 Multi-media file generation method and multi-media device
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device
CN104602117A (en) * 2015-01-31 2015-05-06 华为技术有限公司 Double-speed video playing method and device
CN104967872A (en) * 2015-06-08 2015-10-07 青岛海信移动通信技术股份有限公司 Live broadcasting method and server based on dynamic self-adaptive code rate transport protocol HLS streaming media
CN105723720A (en) * 2012-03-13 2016-06-29 谷歌公司 Adaptive trick play streaming

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600092A (en) * 2009-06-12 2009-12-09 中兴通讯股份有限公司 The generation of network video and player method and system
CN101635847A (en) * 2009-09-02 2010-01-27 中兴通讯股份有限公司 Transmission method, video display device and terminal of streaming media
CN102025956A (en) * 2009-09-23 2011-04-20 华为技术有限公司 Processing method, device and system for fast forward and fast backward playing of network stream media
CN102055717A (en) * 2009-11-09 2011-05-11 华为技术有限公司 Quick playing method, terminal and server
CN102859933A (en) * 2009-11-13 2013-01-02 三星电子株式会社 Method and apparatus for providing trick play service
WO2012089014A1 (en) * 2010-12-31 2012-07-05 华为技术有限公司 Method, device and system for generating media file
CN105723720A (en) * 2012-03-13 2016-06-29 谷歌公司 Adaptive trick play streaming
CN103428213A (en) * 2013-08-08 2013-12-04 深圳市同洲电子股份有限公司 Multi-media file generation method and multi-media device
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device
CN104602117A (en) * 2015-01-31 2015-05-06 华为技术有限公司 Double-speed video playing method and device
CN104967872A (en) * 2015-06-08 2015-10-07 青岛海信移动通信技术股份有限公司 Live broadcasting method and server based on dynamic self-adaptive code rate transport protocol HLS streaming media

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801092A (en) * 2017-09-15 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of video speed playing method and device
CN109982151A (en) * 2017-12-28 2019-07-05 中国移动通信集团福建有限公司 VOD method, device, equipment and medium
CN109982151B (en) * 2017-12-28 2021-06-25 中国移动通信集团福建有限公司 Video-on-demand method, device, equipment and medium
CN110121098A (en) * 2018-02-05 2019-08-13 腾讯科技(深圳)有限公司 Video broadcasting method, device, storage medium and electronic device
CN114339397A (en) * 2021-12-23 2022-04-12 北京百度网讯科技有限公司 Multimedia editing information determination method, device, equipment and storage medium
CN114339397B (en) * 2021-12-23 2023-08-11 北京百度网讯科技有限公司 Method, device, equipment and storage medium for determining multimedia editing information

Also Published As

Publication number Publication date
CN106454417B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
US20180191868A1 (en) Method and System for Downloading Multiple Resolutions Bitrate for Virtual Reality (VR) Video Streaming Optimization
CN110719457B (en) Video coding method and device, electronic equipment and storage medium
CN106454417A (en) Streaming media speed multiplication playing method and apparatus
CN105991364B (en) User perception evaluation method and device
JP2006527442A (en) Progressive downloading of timed multimedia content
CN105723720A (en) Adaptive trick play streaming
CN106604078B (en) A kind of network video recommended method and device
CN106688239A (en) Video downloading method, apparatus, and system
US20160212054A1 (en) Multiple Protocol Media Streaming
CN107566854B (en) Method and device for acquiring and sending media content
CN106911926B (en) A kind of video code rate recognition methods and device
US10708667B1 (en) Combining fragments with different encodings
US20230156068A1 (en) System and method for managing video streaming quality of experience
CN110809167A (en) Video playing method and device, electronic equipment and storage medium
CN105245562A (en) Method for operating a cache arranged along a transmission path between client terminals and at least one server, and corresponding cache
CN104581340B (en) Client, stream medium data method of reseptance and stream medium data transmission system
WO2015131390A1 (en) Communication method, user device, content server and controller
CN108810567A (en) A kind of matched method in audio & video visual angle, client and server
CA3168479C (en) Method for playing on a player of a client device a content streamed in a network
KR20140056094A (en) Method for downloading content according to communication parameters, and associated content receiver
Li et al. Quantifying the influence of devices on Quality of Experience for Video streaming
Nguyen et al. An adaptive method for low-delay 360 VR video streaming over HTTP/2
CN108574881B (en) Projection type recommendation method, server and client
US20170374432A1 (en) System and method for adaptive video streaming with quality equivalent segmentation and delivery
Wilk et al. VAS: A video adaptation service to support mobile video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant