CN110072125A - Video broadcasting method and device - Google Patents

Video broadcasting method and device Download PDF

Info

Publication number
CN110072125A
CN110072125A CN201810063173.6A CN201810063173A CN110072125A CN 110072125 A CN110072125 A CN 110072125A CN 201810063173 A CN201810063173 A CN 201810063173A CN 110072125 A CN110072125 A CN 110072125A
Authority
CN
China
Prior art keywords
video data
video
broadcasting
threshold value
buffer area
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
CN201810063173.6A
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.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN201810063173.6A priority Critical patent/CN110072125A/en
Publication of CN110072125A publication Critical patent/CN110072125A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Landscapes

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

Abstract

The present invention provides a kind of video broadcasting method and device.Method includes: the changing value that the video data quantity of predetermined period internal buffer storage is determined when playing video, and is adjusted according to the changing value and play threshold value;The size of the video data quantity and broadcasting threshold value that are stored in the real-time buffer area, and adjust the speed for playing the video data in real time according to comparison result.Video broadcasting method and device provided by the invention, by the changing value for determining the video data quantity of predetermined period internal buffer storage, it can be adjusted according to network environment and play threshold value, so as to according to play adjusting thresholds broadcasting speed, and then solve in the prior art in order to guarantee user can smooth viewing video while be user bring delay time longer problem.

Description

Video broadcasting method and device
Technical field
The present invention relates to stream media technology more particularly to a kind of video broadcasting methods and device, belong to internet area.
Background technique
Video stream media refers to the video media formats played by the way of stream transmission in Internet.It refers to use Family issues program as data packet with a video delivery server, is transmitted on network, other users are received by network The data packet plays the video.The application range of video stream media is wider, such as learning on demand, real-time live broadcast, online education, view Frequency meeting etc..But video stream media is faced in application process that network bandwidth is unstable, the big challenge of fluctuation.
Video streaming media technology is to cope with this challenge video streaming media system to increase client terminal playing buffer area, slow It rushes in area and stores a certain number of video frames to cope with changeable Network status.But the mechanism of buffer area can introduce a part and prolong Late, for example, can to avoid that Network status is bad to cause user to see in the video content of the buffer cache 10s of client The case where suspending when video.
But caching mechanism in the prior art will use family when watching live video, delay a period of time is just seen The content of live streaming, for example, will lead to user's delay 10s in the video content of buffer cache 10s and see live video.Cause How this, balance the relationship of the number of videos stored in playout-delay and buffer area, user can be seen in time and smoothly See that video is vital.
Summary of the invention
The present invention provides a kind of video broadcasting method and device, passes through the video counts for determining the storage of predetermined period internal buffer The changing value of data bulk, can according to network environment adjust play threshold value, so as to according to play adjusting thresholds broadcasting speed, And then solve in the prior art in order to guarantee user can smooth viewing video while be user bring delay time longer The problem of.
The first aspect of the invention is to provide a kind of video broadcasting method, comprising: when playing video, determines predetermined period The changing value of the video data quantity of internal buffer storage, and adjusted according to the changing value and play threshold value;
The size of the video data quantity and broadcasting threshold value that are stored in the real-time buffer area, and according to comparison result Adjustment plays the speed of the video data in real time.
Another aspect of the present invention is to provide a kind of video play device, comprising: determining module, for playing video When, determine the changing value of the video data quantity of predetermined period internal buffer storage, and adjust according to the changing value and play threshold Value;
Module is adjusted, the size of video data quantity and broadcasting threshold value for being stored in the buffer area in real time, And adjust the speed for playing the video data in real time according to comparison result.
Video broadcasting method and device provided by the invention have the technical effect that
Video broadcasting method and device provided in this embodiment, comprising: when playing video, determine predetermined period internal buffer The changing value of the video data quantity of storage, and the size for playing threshold value is adjusted according to changing value;Compare buffer area memory in real time The video data of storage and the size for playing threshold value, and the speed of playing video data is adjusted according to comparison result in real time.This implementation The video broadcasting method and device that example provides can play threshold according to the changing value adjustment for the video data quantity that buffer area stores The size of value, and compare the video data stored in buffer area in real time and play the size of threshold value, it can more timely adapt to Network environment can guarantee the smooth viewing video of user in the case where network environment is poor, in the preferable situation of network environment Under can effectively reduce delay time, it is more preferable to can be improved user experience, can especially when user watches live video Preferably meet user to the higher requirement of live video real-time.
Detailed description of the invention
Fig. 1 is the flow chart of the video broadcasting method shown in an exemplary embodiment of the invention;
Fig. 2 is the flow chart of the video broadcasting method shown in another exemplary embodiment of the present invention;
Fig. 2A is the video cycle schematic diagram shown in an exemplary embodiment of the invention;
Fig. 2 B is the t shown in an exemplary embodiment of the invention0To t2The video data quantity signal of moment buffer area storage Figure;
Fig. 3 is the structure chart of the video play device shown in an exemplary embodiment of the invention;
Fig. 4 is the structure chart of the video play device shown in another exemplary embodiment of the present invention.
Specific embodiment
Fig. 1 is the flow chart of the video broadcasting method shown in an exemplary embodiment of the invention.
As shown in Figure 1, video broadcasting method provided in this embodiment includes:
Step 101, when playing video, the changing value of the video data quantity of predetermined period internal buffer storage is determined, and It is adjusted according to changing value and plays threshold value.
Wherein it is possible to pass through the client terminal playing video for being mounted on user terminal.User terminal can connect network, installation The video resource on network can be accessed by network in the client of user terminal, to allow users to see by client See the video on network.Client therein can be browser, videoconference client etc., such as IE browser, iqiyi.com client End, youku.com's client etc..User can browse video resource by browser or videoconference client, therefrom choose and wish broadcasting Video, and the instruction for playing video is issued to browser.Method provided in this embodiment can be encapsulated into browser or video In client, so that these tools for being used to watch video are able to carry out method provided in this embodiment, furthermore it is also possible to incite somebody to action this The method that embodiment provides is encapsulated into plug-in unit, and the plug-in unit is associated with the tool for being used to watch video, to make these use Method provided in this embodiment can be applied in the tool of viewing video.
In general, client can play the video being locally stored, and can also play network video, work as client terminal playing It when network video, needs to receive video data from server, then plays these video datas.Client is received by network When video data in server, the speed and network quality for receiving video data have much relations, in order to guarantee that user can Stablize continual viewing network video, first received video data can be stored in the buffer area of client, wait store After certain video data, then the video data is played, thus even if network environment is deteriorated in a short time, it also can be normal Play video.When video meets broadcast request, buffer area can export video data, thus the video for exporting client terminal playing Data.Meanwhile after buffer area exports the video data of storage, inside no longer save corresponding video data, i.e. buffer area Interior storage is video data that is current received and not being played.At this point it is possible to directly be adopted in predetermined period Collect the video data stored in buffer area, the changing value of the video data quantity of buffer area storage is determined by collection result;Also Predetermined period can be divided into two subcycles, the video data number stored in first subcycle internal buffer can be acquired Amount predicts the changing value of video data quantity in second subcycle further according to collection result.Wherein changing value refers at one The variation range of the video data quantity cached in period or subcycle.
Threshold value is played further according to determining changing value adjustment, wherein playing threshold value is the numerical value for adjusting broadcasting speed.
Specifically, being, for example, less than preset value if changing value is smaller, it may be considered that current network is more steady, then reduces and broadcast Threshold value is put, if changing value is larger, that is to say, that current network is more unstable, then can not change broadcasting threshold value.
Step 102, the size of the video data quantity relatively stored in buffer area in real time and broadcasting threshold value, and according to comparing The speed of playing video data is adjusted when fructufy.
Further, when playing video, the video data stored in buffer area can also be obtained in real time, and by video counts Data bulk is compared with threshold value is played.If playing threshold value to be adjusted according to changing value, with the video counts stored in buffer area It is broadcasting threshold value adjusted that data bulk, which is compared, is not adjusted if playing threshold value, with the video stored in buffer area It is original broadcasting threshold value that data bulk, which is compared,.
When practical application, the video data quantity of available three kinds of comparison results in a step 102, i.e. buffer area storage It is greater than less than the video data quantity for playing threshold value, buffer area storage and plays threshold value, video data quantity of buffer area storage etc. In broadcasting threshold value.The speed of playing video data can be adjusted in real time according to comparison result.For example, if the video of buffer area storage Data bulk is greater than broadcasting threshold value and broadcasting then can be improved it may be considered that currently stored non-playing video data is more abundant The speed of video data.When network environment is preferable, the size for playing threshold value can reduce, broadcast to enable the client to improve The speed of video data is put, and then not only ensure that user can smoothly watch video, but also user's viewing video can be reduced to be Delay.
Video broadcasting method provided in this embodiment, comprising: when playing video, determine the storage of predetermined period internal buffer The changing value of video data quantity, and the size for playing threshold value is adjusted according to changing value;The view relatively stored in buffer area in real time Frequency according to and play the size of threshold value, and adjust according to comparison result the speed of playing video data in real time.The present embodiment provides Video broadcasting method, can according to buffer area store video data quantity changing value adjustment play threshold value size, and And compare the video data stored in buffer area in real time and play the size of threshold value, network environment can be more timely adapted to, It can guarantee the smooth viewing video of user in the case that network environment is poor, it can be effective in the preferable situation of network environment Delay time is reduced, it is more preferable to can be improved user experience, especially when user watches live video, can preferably meet use Family is to the higher requirement of live video real-time.
Fig. 2 is the flow chart of the video broadcasting method shown in another exemplary embodiment of the present invention.
As shown in Fig. 2, video broadcasting method provided in this embodiment, comprising:
Step 201, video playing instruction is received, the video data that server is sent is received according to play instruction, and will view Frequency evidence is stored in buffer area.
Wherein, user can operate client, to send video playing instruction to client, such as user can click The broadcast button etc. shown in client.Client can send video to server after the instruction for receiving user's transmission Resource request, so that server be made to be sent to it corresponding video resource.After client receives video data, will can first it connect The video data of receipts is stored in buffer area.Buffer area refers to the memory space for interim storing data.
Step 202, it obtains and plays threshold value, if the quantity of the video data stored in buffer area, which is more than or equal to, plays threshold value, Then start playing video data.
Specifically, acquiring stored video data quantity in real time, and will while storing video data to buffer area It is compared with the broadcasting threshold value of acquisition, judges the video data stored in buffer area and plays the size of threshold value.
Further, if the video data quantity stored in buffer area, which is more than or equal to, plays threshold value, it may be considered that buffering The video data stored in area has met broadcast request, can start to play corresponding video data.If rushing storage in area Video data quantity is less than broadcasting threshold value and then continues to execute step 201 it may be considered that conditions present is unsatisfactory for broadcast request, Video data is stored into buffer area.This period for being unsatisfactory for broadcast request can be defined as pre-buffering period, it may be assumed that pre- Buffering period only stores video data, not playing video data.
After meeting broadcast request, client can normal play video, still, there is due to net in playing process The case where network environment is unstable, and the received the video data volume of client is caused to decline, at this point, due to being also stored with one in buffer area Partial video data, so that user in watching process, can persistently export video data from buffer area, to make to play video There is the case where Caton since network environment is deteriorated in Shi Buhui.
When practical application, play threshold value can be frame number threshold value, for characterize video data occupy memory space threshold value, Video playback time threshold value etc., correspondingly, the video data quantity obtained is corresponding with the data type of threshold value is played, it can Obtain the time etc. that frame number, video data occupancy storage size, the video data of video data can play.
Step 203, when playing video, in data Harvest time, the video data quantity of real-time acquisition buffer area storage.
After video can be with normal play, predetermined period can be set according to the time, for example, every 100S is one default Period.It is set as 0 at the time of specifically can be by video normal play, every 100s after this is a predetermined period.
Wherein, predetermined period can further include: data Harvest time, adaptive period.
Specifically, the duration in data Harvest time and adaptive period can be identical, that is, respectively account for the half of predetermined period Time, such as both for 50S.
Fig. 2A is the video cycle schematic diagram shown in an exemplary embodiment of the invention.
As shown in Figure 2 A, entire video length is T, after pre-buffering period, sets a default week according to every 100S Phase, wherein further include data Harvest time, adaptive period in each predetermined period, and data Harvest time, adaptive period are 50S。
Wherein it is possible to current time is determined as data Harvest time, and count the data simultaneously after pre-buffering period Current time after reaching 50S, is determined as adaptive period by the Harvest time duration, and it is lasting to count the adaptive period Time after reaching 50S, is then switched to data Harvest time.Namely after client normal play video, using 50S as the period Switch data Harvest time and adaptive period.
Specifically, the video data quantity of real-time acquisition buffer area storage becomes if current period is in data Harvest time Change situation.
Further, the video data quantity of buffer area storage can be obtained in real time, for example, obtaining the frame of video data The information such as number, occupied space or playing duration, and variation function is determined according to these information.Wherein it is possible to only in accordance with above one Kind data information determines variation function, can also determine variation function according to above-mentioned a variety of data informations.
Step 204, linear regression analysis is carried out to the video data quantity acquired in data Harvest time, obtains linear fit Function.
It wherein, can be to video counts after getting the video data quantity stored in a data Harvest time internal buffer Data bulk carries out linear regression analysis, obtains linear fit function.Linear regression analysis, which refers to, utilizes recurrence point in mathematical statistics Analysis, to determine a kind of statistical analysis technique of complementary quantitative relationship between two or more variable.The present embodiment mentions In the method for confession, obtained linear fit function can be indicated with y=k*x+c.X therein is the time, and y is and the x moment pair The video data quantity answered.By that can obtain to the video data quantity and time progress linear regression analysis in a period of time To the value of k and c, and then obtain fitting function y=k*x+c.
The change of the video data quantity stored in data Harvest time internal buffer can be characterized in linear fit function Change trend.
Step 205, according to the changing value of video data quantity in linear fit function prediction adaptive period.
Specifically, since adaptive period is adjacent with data Harvest time and lag period, it can be according to data The changing value of video data quantity in the linear fit function prediction adaptive period of Harvest time.In order to guarantee precision of prediction, number It is unsuitable too long according to Harvest time and the time window in adaptive period, for example, 50S can be set by each period.
Further, the linear fit function obtained in the data Harvest time of a predetermined period is y=k*x+c, that The video data quantity stored in adaptive period buffer area can be Y=k*T+c, wherein T be adaptive period when It is long, such as 50S.By bringing T into above-mentioned function, the change of video data quantity in Y value, that is, adaptive period can be obtained Change value.
When practical application, data Harvest time and the time window length in adaptive period can be the same or different.
Step 206, according to the changing value of video data quantity in the adaptive period of prediction, adjustment plays threshold value.
Wherein, if changing value is larger, it may be considered that the video data quantity variation stored in buffer area of adaptive period Range is larger, that is, the network environment that can be recognized within adaptive period is more unstable;If changing value is smaller, it may be considered that The video data quantity variation range stored in buffer area of adaptive period is smaller, that is, it is considered that within adaptive period Network environment it is more stable.
Specifically, preset threshold can be preset, if the changing value of prediction is less than preset threshold, broadcasting threshold is reduced Value.
If the changing value of prediction is more than or equal to preset threshold, broadcasting threshold value is not changed.
Presupposition multiple can also be set, if the presupposition multiple of changing value, which is less than, plays threshold value, reduces broadcasting threshold value.
Threshold value is played as the presupposition multiple of the changing value of prediction is more than or equal to, then does not change the size for playing threshold value.
Further, reducing broadcasting threshold value can be specifically:
Threshold value will be played multiplied by coefficient t, wherein 0 < t < 1.
Method provided in this embodiment is adjusted broadcasting speed also according to broadcasting threshold value in entire predetermined period, again Since method provided in this embodiment can be predicted to delay in adaptive period according to the linear fit function that data Harvest time obtains The quantity changing value for the video data deposited plays threshold value further according to obtained changing value adjustment, so that can in playing process According to the more flexible adjustment broadcasting speed of network condition, user experience is improved.
Step 207, compare the video data quantity stored in buffer area in real time and play the size of threshold value.
Step 208, if the video data quantity stored in buffer area, which is less than, plays threshold value, the broadcasting of video data is reduced Speed.
If the video data quantity stored in current buffer, which is less than, plays threshold value, it may be considered that currently playing speed phase For the fast speed of reception video data, the video data quantity stored in buffer area is caused to decrease below broadcasting threshold value, The broadcasting speed of video data can be reduced at this time, and then slows down the speed of the video data stored in consumption buffer area, avoided Video data in buffer area, which is consumed, to be finished, and causes user that can not continuously watch video.
Step 209, if the video data quantity stored in buffer area, which is greater than, plays threshold value, the broadcasting of video data is improved Speed.
If the video data quantity stored in current buffer, which is greater than, plays threshold value, it may be considered that currently playing speed phase It is slower for the speed for receiving video data, cause the video data quantity stored in buffer area to rise above broadcasting threshold value, The broadcasting speed of video data can be improved at this time, and then accelerate the speed of the video data stored in consumption buffer area, so that User can watch video in time, avoid the problem that excessive deferral.
Step 210, if the video data quantity stored in buffer area, which is greater than, plays threshold value, broadcasting for video data is not changed Put speed.
If the video data quantity stored in current buffer, which is equal to, plays threshold value, it may be considered that currently playing speed phase It is appropriate for the speed for receiving video data, it is therefore not necessary to adjust current broadcasting speed.
Method provided in this embodiment can be according to the video data quantity and broadcasting threshold value stored in current buffer Broadcasting speed is adjusted, so that the video data stored in buffer area is in the level for playing threshold value.Meanwhile play threshold value due to The quality of network environment and adjust, for example, when network environment is preferable, playing threshold value will be lower, at this time broadcasting speed It can be correspondingly improved, and then the delay time that user watches video can be reduced.Especially user when watching live video, It is better able to the requirement for meeting user to real-time.
Wherein, when adjusting broadcasting speed, the upper limit value and lower limit value of broadcasting speed can be set, makes packet broadcasting speed at this It is adjusted in a speed interval, avoids adjusting broadcasting speed into too fast or too slow sensory effects when user being caused to watch Poor problem.The interval range of broadcasting speed can be arranged in the unrecognizable range of user's naked eyes.
Specifically, if only in accordance with numerical value of this numerical value of threshold value as adjustment broadcasting speed is played, when video data number When amount is greater than threshold value is played, broadcasting speed is just improved, when being less than broadcasting threshold value, broadcasting speed is just reduced, will lead to frequent adjustment Broadcasting speed brings excessive processing pressure to user terminal.Therefore, in method provided in this embodiment, playing threshold value includes: Upper limit threshold, lower threshold;Wherein, lower threshold is less than upper limit threshold.
If the video data quantity stored in buffer area is less than lower threshold, the broadcasting speed of video data is reduced;
If the video data quantity stored in buffer area is greater than upper limit threshold, the broadcasting speed of video data is improved.
If the video data quantity stored in buffer area is between lower threshold and upper limit threshold, or is equal to lower limit threshold Value, or be equal to upper limit threshold, then do not change the broadcasting speed of video data.
Fig. 2 B is the t shown in an exemplary embodiment of the invention0To t2The video data quantity signal of moment buffer area storage Figure.
As shown in Figure 2 B, in t0To t1Between be the pre-buffering stage, from t1Start to play video.It can be seen that in t1 To t2In this period, buffer area storage video data quantity fluctuation range be constantly in upper limit value l2 and lower limit value l1 it Between.
In addition, method provided in this embodiment further includes step 211, in detection buffer area in the video data of storage whether Including end of identification.
If so, thening follow the steps 212, otherwise, step 208 or 209 or 210 is executed according to the judging result of step 207.
Step 212, the broadcasting speed of video data is not adjusted.
In video playing to fast ending phase, video data has been all sent to client, at this point, in buffer area not Video data can be received again, be only output video data, this, which will lead to the video data in buffer area, can be consumed to broadcasting Threshold value or lower threshold are hereinafter, cause client to reduce broadcasting speed automatically.And at this point, since client has received that entirely The video data in portion will not influence user network environment is deteriorated and watch video, therefore, no longer need to adjustment at this time and play speed Degree.
In order to solve this problem, can be after receiving video data, whether detect in these video datas includes knot Beam identification is not adjusted broadcasting speed if including.Wherein, end of identification can be in the video resource of server side The included mark for being used to indicate video trailer.
Wherein, step 211 can execute after step 201~step 207 either step, that is, can receive Whether include end of identification, the view that can also be stored in detection buffer area if just being detected after video data in received video data Frequency according to the step of in execute.If executing step 211 after step 201 or 202, can be connect detecting client After having received the video data including end of identification, step 203 and its later step are no longer executed, to reduce client terminal Processing pressure.
Fig. 3 is the structure chart of the video play device shown in an exemplary embodiment of the invention.
As shown in figure 3, video play device provided in this embodiment, comprising:
Determining module 31 is used for when playing video, determines the video data quantity of predetermined period internal buffer storage Changing value, and adjusted according to the changing value and play threshold value;
Module 32 is adjusted, the video data quantity for storing in the buffer area in real time is big with broadcasting threshold value It is small, and adjust the speed for playing the video data in real time according to comparison result.
Wherein it is determined that module 31 is connect with adjustment module 32.
Video play device provided in this embodiment, comprising: determining module, for when playing video, determining default week The changing value of the video data quantity of phase internal buffer storage, and adjusted according to changing value and play threshold value;Module is adjusted, for real When compare in buffer area store video data quantity and play threshold value size, and according to comparison result in real time adjust broadcasting regard The speed of frequency evidence.Video play device provided in this embodiment, the change for the video data quantity that can be stored according to buffer area The adjustment of change value plays the size of threshold value, and compares the video data stored in buffer area in real time and play the size of threshold value, energy It is enough more timely to adapt to network environment, it can guarantee the smooth viewing video of user in the case where network environment is poor, in network Delay time can be effectively reduced in the preferable situation of environment, it is more preferable to can be improved user experience, especially watches in user When live video, it can preferably meet user to the higher requirement of live video real-time.
The concrete principle and implementation of video play device provided in this embodiment with embodiment class shown in FIG. 1 Seemingly, details are not described herein again.
Fig. 4 is the structure chart of the video play device shown in another exemplary embodiment of the present invention.
As shown in figure 4, on the basis of the above embodiments, video play device provided in this embodiment, the default week Phase includes: data Harvest time, adaptive period;
The determining module 31 includes:
Acquisition unit 311, for the video data quantity that in the data Harvest time, real-time acquisition buffer area is stored;
Analytical unit 312, for carrying out linear regression to the video data quantity acquired in the data Harvest time Analysis, obtains linear fit function;
Predicting unit 313, for video data quantity in the adaptive period according to the linear fit function prediction Changing value;
Adjustment unit 314 adjusts institute for the changing value of video data quantity in the adaptive period according to prediction State broadcasting threshold value.
Wherein, acquisition unit 311, analytical unit 312, predicting unit 313 and adjustment unit 314 are sequentially connected.
Optionally, the adjustment unit 314 is specifically used for:
If the changing value is less than preset threshold, the broadcasting threshold value is reduced;
And/or if the presupposition multiple of the changing value is less than the broadcasting threshold value, reduce the broadcasting threshold value.
Optionally, the adjustment module 32 is specifically used for:
If the video data quantity stored in the buffer area is less than the broadcasting threshold value, the video data is reduced Broadcasting speed;
If the video data quantity stored in the buffer area is greater than the broadcasting threshold value, the video data is improved Broadcasting speed.
Optionally, the broadcasting threshold value includes: upper limit threshold, lower threshold;Wherein, the lower threshold is less than on described Limit threshold value;
Then, adjustment module 32 is also used to:
If the video data quantity stored in the buffer area is less than the lower threshold, the video data is reduced Broadcasting speed;
If the video data quantity stored in the buffer area is greater than the upper limit threshold, the video data is improved Broadcasting speed.
Optionally, video-unit provided in this embodiment further include:
Receiving module 33 receives the video that server is sent according to the play instruction for receiving video playing instruction Data, and the video data is stored in buffer area;
Judgment module 34, for obtaining the upper limit threshold, if the quantity of the video data stored in the buffer area is big In being equal to the upper limit threshold, then start to play the video data.
Wherein, receiving module 33 is connect with judgment module 34, and judgment module 34 is connect with determining module 31.
Video-unit provided in this embodiment further include:
Detection module 35, for detecting whether including end of identification in the video data stored in the buffer area, if so, The broadcasting speed of the video data is not adjusted then.
The concrete principle and implementation of video play device provided in this embodiment with embodiment class shown in Fig. 2 Seemingly, details are not described herein again.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of video broadcasting method characterized by comprising
When playing video, the changing value of the video data quantity of predetermined period internal buffer storage is determined, and according to the variation Value adjustment plays threshold value;
The size of the video data quantity and broadcasting threshold value that are stored in the real-time buffer area, and it is real-time according to comparison result Adjustment plays the speed of the video data.
2. the method according to claim 1, wherein when the predetermined period includes: data Harvest time, is adaptive Phase;
The changing value of the video data quantity of the determining predetermined period internal buffer storage, comprising:
In the data Harvest time, the video data quantity of real-time acquisition buffer area storage;
Linear regression analysis is carried out to the video data quantity acquired in the data Harvest time, obtains linear fit letter Number;
The changing value of video data quantity in the adaptive period according to the linear fit function prediction;
It is described to include: according to changing value adjustment broadcasting threshold value
According to the changing value of video data quantity in the adaptive period of prediction, the broadcasting threshold value is adjusted.
3. according to the method described in claim 2, it is characterized in that, video counts in the adaptive period according to prediction The changing value of data bulk adjusts the broadcasting threshold value, comprising:
If the changing value is less than preset threshold, the broadcasting threshold value is reduced;
And/or if the presupposition multiple of the changing value is less than the broadcasting threshold value, reduce the broadcasting threshold value.
4. the method according to claim 1, wherein described adjusted in real time according to comparison result plays the video The speed of data, comprising:
If the video data quantity stored in the buffer area is less than the broadcasting threshold value, the broadcasting of the video data is reduced Speed;
If the video data quantity stored in the buffer area is greater than the broadcasting threshold value, the broadcasting of the video data is improved Speed.
5. according to the method described in claim 4, it is characterized in that, the broadcasting threshold value includes: upper limit threshold, lower threshold; Wherein, the lower threshold is less than the upper limit threshold;
If the video data quantity stored in the buffer area is less than the lower threshold, the broadcasting of the video data is reduced Speed;
If the video data quantity stored in the buffer area is greater than the upper limit threshold, the broadcasting of the video data is improved Speed.
6. the method stated according to claim 5 office, which is characterized in that the video of the determining predetermined period internal buffer storage Before the changing value of data bulk, further includes:
Video playing instruction is received, the video data that server is sent is received according to the play instruction, and by the video counts According to being stored in buffer area;
The upper limit threshold is obtained, if the quantity of the video data stored in the buffer area is more than or equal to the upper limit threshold, Then start to play the video data.
7. according to the method described in claim 4, it is characterized by further comprising:
Whether include end of identification, if so, not adjusting the video counts if detecting in the video data stored in the buffer area According to broadcasting speed.
8. a kind of video play device characterized by comprising
Determining module, the changing value of the video data quantity for when playing video, determining the storage of predetermined period internal buffer, And it is adjusted according to the changing value and plays threshold value;
Module is adjusted, the size of video data quantity and broadcasting threshold value for being stored in the buffer area in real time, and root Adjust the speed for playing the video data in real time according to comparison result.
9. device according to claim 8, which is characterized in that when the predetermined period includes: data Harvest time, is adaptive Phase;
The determining module includes:
Acquisition unit, for the video data quantity that in the data Harvest time, real-time acquisition buffer area is stored;
Analytical unit is obtained for carrying out linear regression analysis to the video data quantity acquired in the data Harvest time To linear fit function;
Predicting unit, the variation for video data quantity in the adaptive period according to the linear fit function prediction Value;
Adjustment unit adjusts the broadcasting for the changing value of video data quantity in the adaptive period according to prediction Threshold value.
10. device according to claim 8, which is characterized in that the adjustment module is specifically used for:
If the video data quantity stored in the buffer area is less than the broadcasting threshold value, the broadcasting of the video data is reduced Speed;
If the video data quantity stored in the buffer area is greater than the broadcasting threshold value, the broadcasting of the video data is improved Speed.
CN201810063173.6A 2018-01-23 2018-01-23 Video broadcasting method and device Pending CN110072125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810063173.6A CN110072125A (en) 2018-01-23 2018-01-23 Video broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810063173.6A CN110072125A (en) 2018-01-23 2018-01-23 Video broadcasting method and device

Publications (1)

Publication Number Publication Date
CN110072125A true CN110072125A (en) 2019-07-30

Family

ID=67364840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810063173.6A Pending CN110072125A (en) 2018-01-23 2018-01-23 Video broadcasting method and device

Country Status (1)

Country Link
CN (1) CN110072125A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372125A (en) * 2020-03-18 2020-07-03 浩云科技股份有限公司 Video cache processing method and device of decoder and storage medium
CN111491207A (en) * 2020-04-17 2020-08-04 北京三体云联科技有限公司 Video data processing method and device in live broadcast and electronic equipment
CN113012506A (en) * 2021-03-01 2021-06-22 深圳市微幼科技有限公司 Interactive teaching system based on big data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108257A (en) * 2011-11-10 2013-05-15 中国科学院声学研究所 Method used for embedded terminal and capable of improving playback quality of streaming media and system used for embedded terminal and capable of improving playback quality of streaming media
CN103905820A (en) * 2012-12-28 2014-07-02 中国科学院声学研究所 Client side video quality self-adaption method and system based on SVC
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio playing method and device
US20170270947A1 (en) * 2016-03-17 2017-09-21 Mediatek Singapore Pte. Ltd. Method for playing data and apparatus and system thereof
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server
CN107529097A (en) * 2016-06-20 2017-12-29 北京信威通信技术股份有限公司 A kind of method and device of adaptive regulating video buffer size

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108257A (en) * 2011-11-10 2013-05-15 中国科学院声学研究所 Method used for embedded terminal and capable of improving playback quality of streaming media and system used for embedded terminal and capable of improving playback quality of streaming media
CN103905820A (en) * 2012-12-28 2014-07-02 中国科学院声学研究所 Client side video quality self-adaption method and system based on SVC
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio playing method and device
US20170270947A1 (en) * 2016-03-17 2017-09-21 Mediatek Singapore Pte. Ltd. Method for playing data and apparatus and system thereof
CN107529097A (en) * 2016-06-20 2017-12-29 北京信威通信技术股份有限公司 A kind of method and device of adaptive regulating video buffer size
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372125A (en) * 2020-03-18 2020-07-03 浩云科技股份有限公司 Video cache processing method and device of decoder and storage medium
CN111491207A (en) * 2020-04-17 2020-08-04 北京三体云联科技有限公司 Video data processing method and device in live broadcast and electronic equipment
CN113012506A (en) * 2021-03-01 2021-06-22 深圳市微幼科技有限公司 Interactive teaching system based on big data

Similar Documents

Publication Publication Date Title
EP2974207B1 (en) Playback stall avoidance in adaptive media streaming
WO2015062521A1 (en) Code rate switching method and device for smart television
CN104205772B (en) Improved DASH clients and receiver with buffer water level decision-making
CN112953922B (en) Self-adaptive streaming media control method, system, computer equipment and application
CN103051955B (en) Flow media playing method and device
CN110198495B (en) Method, device, equipment and storage medium for downloading and playing video
CN103747317B (en) A kind of smooth playing control method of broadcasting storehouse under unstable network
US20090307368A1 (en) Stream complexity mapping
CN104125429A (en) Video data transmission adjusting method and device
CN110072125A (en) Video broadcasting method and device
CN101309400B (en) Stream media service pause information acquisition method and device
CN110225420A (en) A kind of broadcasting/decision-making technique/system, plays end and server-side at medium
CN112437321B (en) Adaptive code rate calculation method based on live broadcast streaming media
CN103108257A (en) Method used for embedded terminal and capable of improving playback quality of streaming media and system used for embedded terminal and capable of improving playback quality of streaming media
CN105872722A (en) Online video start playing caching system and method
CN104822068A (en) Streaming media proxy cache replacing method and device
CN106791930B (en) Video processing method and device
Mu et al. AMIS: Edge computing based adaptive mobile video streaming
CN108810468B (en) Video transmission device and method for optimizing display effect
CN113271496B (en) Video smooth playing method and system in network live broadcast and readable storage medium
CN106487808A (en) A kind of dynamic method for uploading of live video and system
KR102304476B1 (en) Multipath-based block transmission system and streaming method for adaptive streaming service
Nguyen et al. An adaptive streaming method of 360 videos over HTTP/2 protocol
Zhang et al. A QOE-driven approach to rate adaptation for dynamic adaptive streaming over http
CN114422860B (en) Method, device and system for reducing peak video on demand CDN bandwidth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190730