CN109788303A - Method for pushing, device, electronic equipment and the storage medium of live video stream - Google Patents
Method for pushing, device, electronic equipment and the storage medium of live video stream Download PDFInfo
- Publication number
- CN109788303A CN109788303A CN201910080509.4A CN201910080509A CN109788303A CN 109788303 A CN109788303 A CN 109788303A CN 201910080509 A CN201910080509 A CN 201910080509A CN 109788303 A CN109788303 A CN 109788303A
- Authority
- CN
- China
- Prior art keywords
- push
- stream
- single screen
- live video
- screen
- 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
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
This application discloses a kind of method for pushing of live video stream, device and storage mediums, belong to multimedia technology field.The described method includes: counting continuous Caton degradation numerical value during the push of live video stream, which is used to indicate continuously to be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream;It is broadcast live in number or reference live streaming duration when in reference, when which reaches with reference to degradation threshold value, starts continuous single screen stream mode, which refers to the mode for only allowing to push single screen stream;When the push state for monitoring live video stream meets double screen stream pushing condition, double screen stream mode is switched to from the continuous single screen stream mode.The application is by that can improve the push success rate of live video stream, to also improve live streaming success rate to avoid occurring the problem of Caton phenomenon causes push to terminate when pushing two-way live video stream simultaneously.
Description
Technical field
This application involves multimedia technology field, in particular to a kind of method for pushing of live video stream, device, electronics are set
Standby and storage medium.
Background technique
In network direct broadcasting platform, bean vermicelli user can watch the live streaming of main broadcaster's terminal by mobile phone, alternatively, bean vermicelli is used
Family can also watch the live streaming of main broadcaster's terminal by PC (personal computer, personal computer) equipment.In order to
It is adapted to distinct device and plays live video stream, main broadcaster's terminal can carry out double screen stream push during live streaming.
The push of double screen stream refers to that main broadcaster's terminal to background server while sending two-way live video stream during live streaming,
The two-way live video stream includes transverse screen stream and vertical screen stream, and transverse screen stream can be used in PC equipment playing, and vertical screen stream can be used
In being played on mobile phone.In this way, background server can pull the device type of the equipment of live video stream according to request, for this
Equipment pushes corresponding live video stream, for example, when the equipment for pulling live video stream is mobile phone, background server is by vertical screen
Stream is sent to the mobile phone.
However, when network performance is poor or hardware configuration is lower, when main broadcaster's terminal pushes two-way live video stream simultaneously
It is easy to appear Caton phenomenon, main broadcaster's terminal can only terminate push operation at this time, so as to cause the push success rate of live video stream
It reduces.
Summary of the invention
The embodiment of the present application provides method for pushing, device, electronic equipment and the storage medium of a kind of live video stream, can
With solve the relevant technologies push environment it is poor when can only terminate push operation the push success rate of live video stream is caused to reduce
The problem of.The technical solution is as follows:
In a first aspect, providing a kind of method for pushing of live video stream, which comprises
During the push of live video stream, continuous Caton degradation numerical value is counted, the continuous Caton degradation numerical value is used
In the number or degradation rate that indicate continuously to be reduced to the push of single screen stream from the push of double screen stream;
It is broadcast live in number or reference live streaming duration when in reference, the continuous Caton degradation numerical value reaches with reference to degradation threshold value
When, start continuous single screen stream mode, the continuous single screen stream mode refers to the mode for only allowing to push single screen stream;
When the push state for monitoring live video stream meets double screen stream pushing condition, from the continuous single screen stream mode
Switch to double screen stream mode.
Optionally, the continuous Caton degradation numerical value of statistics, comprising:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and
The continuous Caton degradation numerical value is increased by the first numerical value.
Optionally, the transmission performance indicators include video encoding rate and/or video frame packet loss.
Optionally, after the continuous single screen stream mode of starting, further includes:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when described
When single screen flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream push item
Part;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to list
During being more than the second duration threshold value and plug-flow the number that Caton is broken does not occur for the duration of screen stream push, and the single screen temporarily pushes
Number refers to, and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;
When the single screen stablizes push times and/or the interim push times of the single screen reach the first frequency threshold value, determine described straight
The push state for broadcasting video flowing meets the double screen stream pushing condition.
Optionally, when the single screen stablizes push times and/or the interim push times of the single screen reach first several threshold
Value, the push state of the determination live video stream meet before the double screen stream pushing condition, further includes:
Start the push of double screen stream, statistics double screen stablizes push times during the push of double screen stream, and the double screen stabilization pushes away
It send number to refer to during the duration of double screen stream push is more than third duration threshold value and plug-flow and the number that Caton degrades does not occur;
When the double screen, which stablizes push times, reaches the second frequency threshold value, the push state of the live video stream is determined
Meet the double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream is restarted
Mode.
Optionally, described during the push of live video stream, before counting continuous Caton degradation numerical value, further includes:
Show that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is for opening or closing plug-flow mode adjustment function
Can, the plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push in live video stream is executed
In the process, the operation of continuous Caton degradation numerical value is counted.
Second aspect, provides a kind of driving means of live video stream, and described device includes:
Statistical module, for during the push of live video stream, counting continuous Caton degradation numerical value, the continuous card
The degradation numerical value that pauses is used to indicate continuously to be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream;
Starting module, for being broadcast live in number or reference live streaming duration when in reference, the continuous Caton degradation numerical value reaches
When to reference degradation threshold value, start continuous single screen stream mode, the continuous single screen stream mode, which refers to, only allows to push single screen stream
Mode;
Switching module, for when the push state for monitoring live video stream meets double screen stream pushing condition, from described
Continuous single screen stream mode switches to double screen stream mode.
Optionally, the statistical module is used for:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and
The continuous Caton degradation numerical value is increased by the first numerical value.
Optionally, the transmission performance indicators include video encoding rate and/or video frame packet loss.
Optionally, the statistical module is also used to:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when described
When single screen flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream push item
Part;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to list
During being more than the second duration threshold value and plug-flow the number that Caton is broken does not occur for the duration of screen stream push, and the single screen temporarily pushes
Number refers to, and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;
When the single screen stablizes push times and/or the interim push times of the single screen reach the first frequency threshold value, determine described straight
The push state for broadcasting video flowing meets the double screen stream pushing condition.
Optionally, the statistical module is also used to:
Stablize push times and/or the interim push times of the single screen when the single screen and reach the first frequency threshold value, starts
The push of double screen stream, statistics double screen stablizes push times during the push of double screen stream, and the stable push times of the double screen refer to double
The number of Caton degradation does not occur during being more than third duration threshold value and plug-flow for the duration of screen stream push;
When the double screen, which stablizes push times, reaches the second frequency threshold value, the push state of the live video stream is determined
Meet the double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream is restarted
Mode.
Optionally, the statistical module is also used to:
Show that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is for opening or closing plug-flow mode adjustment function
Can, the plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push in live video stream is executed
In the process, the operation of continuous Caton degradation numerical value is counted.
The third aspect provides a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing the method for pushing of live video stream described in above-mentioned first aspect.
Fourth aspect provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Instruction, realizes the method for pushing of live video stream described in above-mentioned first aspect when described instruction is executed by processor.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes the method for pushing of live video stream described in above-mentioned first aspect.
Technical solution provided by the embodiments of the present application has the benefit that
During the push of live video stream, continuous Caton degradation numerical value is counted, according to the continuous Caton degradation numerical value
It can determine and continuously be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream.If number or reference is broadcast live in reference
The continuous Caton degradation numerical value, which reaches, in live streaming duration illustrates that the push environment of live video stream is unstable with reference to degradation threshold value,
The push that can only allow to carry out single screen stream at this time forbids double screen stream to push.Under the mode for only single screen stream being allowed to push, when
When monitoring that the push state of live video stream meets double screen stream pushing condition, illustrate to push ambient stable, therefore can be again
Restore to double screen stream mode.So push can be caused to terminate to avoid occurring Caton phenomenon when pushing two-way live video stream simultaneously
The problem of, the push success rate of live video stream is improved, to also improve live streaming success rate.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment;
Fig. 2 is a kind of method for pushing flow chart of live video stream shown according to an exemplary embodiment;
Fig. 3 is a kind of method for pushing flow chart of the live video stream shown according to another exemplary embodiment;
Fig. 4 is a kind of structural schematic diagram of the driving means of live video stream shown according to an exemplary embodiment;
Fig. 5 is a kind of structural schematic diagram of the terminal shown according to another exemplary embodiment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
Before the method for pushing to live video stream provided by the embodiments of the present application describes in detail, first to the application
The application scenarios and implementation environment that embodiment is related to simply are introduced.
Firstly, to the invention relates to application scenarios simply introduced.
In network direct broadcasting platform, live video stream is played in order to be adapted to different types of bean vermicelli terminal, it is main
Coding and plug-flow can be carried out to transverse screen stream and vertical screen stream simultaneously by broadcasting terminal, so that this is just to the push of live video stream
Environmental requirement is higher, for example includes the network performance etc. for being used for transmission live video stream.However, such as Internet bandwidth etc energy
The network for being enough in transmission double screen stream has the characteristic of fluctuation, may be unable to satisfy when so that push environment is poor in a period of time
The push demand of double screen stream.Therefore, main broadcaster's terminal is during pushing double screen stream, it is possible that long-time Caton phenomenon,
And it can not also restore automatically by adjusting modes such as encoding rates.For such problem, pushing away for live video stream can only be terminated at present
It send, the push success rate of live video stream is so caused to reduce, and live streaming is caused to fail.For this purpose, the embodiment of the present application provides
A kind of method for pushing of live video stream, this method, which Caton occurs when can solve the push of double screen stream, leads to asking for live streaming termination
Topic, can be improved the push success rate of live video stream, namely improve live streaming success rate.Its specific implementation refers to following institute
State embodiment.
Next, to the invention relates to implementation environment simply introduced.
Referring to FIG. 1, the Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment.The implementation
It may include main broadcaster's terminal 110, background server 120 and bean vermicelli terminal 130 in environment.Main broadcaster's terminal 110 and the bean vermicelli are whole
End 130 can be communicated to connect respectively by establishing between cable network or wireless network and the background server 120.
Wherein, which is the terminal that main broadcasting user uses, i.e. main broadcaster's terminal can be used in main broadcaster user
110 log on in network direct broadcasting platform and are broadcast live.During live streaming, main broadcaster's terminal 110 can be pushed live video stream
It is managed to background server 130, further, which can push two-way live video stream simultaneously.One
In a little embodiments, which can be mobile phone, tablet computer, laptop, desktop computer etc., the application
Embodiment does not limit this.
Wherein, which is mainly used for being managed live streaming related data, for example can be used for receiving master
The live video stream is pushed to the bean vermicelli terminal that request pulls live video stream by the live video stream for broadcasting the push of terminal 110
130.In an implementation, which can be a server, alternatively, the background server 120 may be by more
The server cluster of platform server composition, the embodiment of the present application do not limit this.
Wherein, which is the terminal that bean vermicelli user uses, i.e. the bean vermicelli terminal can be used in bean vermicelli user
130 log on to viewing live streaming in network direct broadcasting platform.In an implementation, which can draw from background server 120
Live video stream is taken to play out, so that bean vermicelli user can watch the live streaming of main broadcaster user.In some embodiments,
The bean vermicelli terminal 130 can be the equipment of such as mobile phone etc, alternatively, the bean vermicelli terminal 130 or such as tablet computer,
The PC equipment of laptop, desktop computer, portable computer etc.
Introduced the invention relates to application scenarios and implementation environment after, next will be in conjunction with attached drawing to this Shen
Please the method for pushing of live video stream that provides of embodiment describe in detail.
Referring to FIG. 2, the Fig. 2 is a kind of method for pushing process of live video stream shown according to an exemplary embodiment
Figure, the embodiment of the present application are said so that the method for pushing of the live video stream is applied in implementation environment shown in above-mentioned Fig. 1 as an example
Bright, this method may include the following steps:
Step 201: during the push of live video stream, counting continuous Caton degradation numerical value, the continuous Caton drop
Value of series is used to indicate continuously to be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream.
Step 202: being broadcast live in number or reference live streaming duration when in reference, the continuous Caton degradation numerical value reaches reference
When degradation threshold value, start continuous single screen stream mode, the continuous single screen stream mode refers to the mode for only allowing to push single screen stream.
Step 203: when the push state for monitoring live video stream meets double screen stream pushing condition, from the continuous list
Screen stream mode switches to double screen stream mode.
In the embodiment of the present application, in network direct broadcasting platform, in order to be adapted to different types of bean vermicelli terminal
Live video stream is played, main broadcaster's terminal can be simultaneously to transverse screen stream and vertical screen stream encodes and plug-flow, so that this is just right
The push environmental requirement of live video stream is higher, for example includes the network performance etc. for being used for transmission live video stream.However, such as
Internet bandwidth etc can be used in transmit double screen stream network have fluctuation characteristic so that a period of time in push environment compared with
The push demand of double screen stream may be unable to satisfy when poor.Therefore, main broadcaster's terminal is during pushing double screen stream, it is possible that
Long-time Caton phenomenon, and can not also restore automatically by adjusting modes such as encoding rates.For such problem, can only terminate at present
The push of live video stream so causes the push success rate of live video stream to reduce, and live streaming is caused to fail.For this purpose, this Shen
Please embodiment provide a kind of method for pushing of live video stream, this method, which Caton occurs when can solve the push of double screen stream, to be caused
The problem of live streaming terminates, can be improved the push success rate of live video stream, namely improve live streaming success rate.It is implemented
Refer to embodiment as described below.
Optionally, the continuous Caton degradation numerical value of statistics, comprising:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and
The continuous Caton degradation numerical value is increased by the first numerical value.
Optionally, the transmission performance indicators include video encoding rate and/or video frame packet loss.
Optionally, after the continuous single screen stream mode of starting, further includes:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when described
When single screen flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream push item
Part;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to list
During being more than the second duration threshold value and plug-flow the number that Caton is broken does not occur for the duration of screen stream push, and the single screen temporarily pushes
Number refers to, and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;
When the single screen stablizes push times and/or the interim push times of the single screen reach the first frequency threshold value, determine described straight
The push state for broadcasting video flowing meets the double screen stream pushing condition.
Optionally, when the single screen stablizes push times and/or the interim push times of the single screen reach first several threshold
Value, the push state of the determination live video stream meet before the double screen stream pushing condition, further includes:
Start the push of double screen stream, statistics double screen stablizes push times during the push of double screen stream, and the double screen stabilization pushes away
It send number to refer to during the duration of double screen stream push is more than third duration threshold value and plug-flow and the number that Caton degrades does not occur;
When the double screen, which stablizes push times, reaches the second frequency threshold value, the push state of the live video stream is determined
Meet the double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream is restarted
Mode.
Optionally, described during the push of live video stream, before counting continuous Caton degradation numerical value, further includes:
Show that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is for opening or closing plug-flow mode adjustment function
Can, the plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push in live video stream is executed
In the process, the operation of continuous Caton degradation numerical value is counted.
All the above alternatives, can form the alternative embodiment of the application according to any combination, and the application is real
It applies example and this is no longer repeated one by one.
Fig. 3 is a kind of method for pushing flow chart of the live video stream shown according to another exemplary embodiment, this implementation
Example is applied to be illustrated in implementation environment shown in above-mentioned Fig. 1 with the method for pushing of the live video stream, and this method can be with
Including following several realization steps:
Step 301: during the push of live video stream, when the live video stream of push is double screen stream, monitoring is straight
Broadcast the transmission performance indicators of video flowing.
As it was noted above, main broadcaster's terminal can carry out coded treatment to two-way live video stream respectively, later while backward
Two-way live video stream after platform server push coded treatment, wherein the two-way live video stream includes transverse screen stream and vertical screen
Stream is properly termed as push double screen stream here.During pushing double screen stream, for the ease of can when unstable networks
To be adjusted automatically to push mode, the transmission performance indicators of main broadcaster's terminal monitoring live video stream.
In one possible implementation, which may include that video encoding rate and/or video frame are lost
Packet rate.It that is to say, main broadcaster's terminal can monitor video encoding rate, alternatively, video frame packet loss can also be monitored, then alternatively, also
Video encoding rate and video frame packet loss can be monitored simultaneously.
Further, before executing method provided by the embodiments of the present application, it can show that plug-flow adjusts function choosing-item, it should
For opening or closing plug-flow mode adjustment function, which refers to straight according to this plug-flow adjustment function choosing-item
The push state adjustment plug-flow mode for broadcasting video flowing is executed when detecting that plug-flow adjustment function choosing-item is in the open state
The method for pushing of live video stream provided by the embodiments of the present application.
For example, main broadcaster's terminal can show that plug-flow adjusts function choosing-item on live streaming interface, when main broadcaster user wants main broadcaster
When terminal can be according to the push situation adjust automatically plug-flow mode of live video stream, plug-flow adjustment function choosing-item can control
It is in the open state, to open plug-flow mode adjustment function, in this way, main broadcaster's terminal will monitor directly automatically during live streaming
Broadcast the transmission performance indicators of video flowing.
Further, plug-flow adjustment function choosing-item defaults open state, or can also be manually opened by main broadcaster user.
In addition, also can control plug-flow adjustment function choosing-item when main broadcaster user does not need main broadcaster's terminal adjust automatically plug-flow mode
It is in close state, the plug-flow mode adjustment function can also close therewith at this time.Further, when the plug-flow mode adjustment function
After capable of closing, main broadcaster's terminal resets historical statistical data, which includes but is not limited to the reference live streaming of history
Number, with reference to live streaming duration, continuous Caton degradation numerical value.
Step 302: when the transmission performance indicators are less than reference index threshold value, the push of double screen stream being reduced to single screen stream and is pushed away
It send, and the continuous Caton degradation numerical value is increased by the first numerical value.
Wherein, the continuous Caton degradation numerical value be used for indicate continuously from double screen stream push be reduced to single screen stream push number or
Degradation rate.
In an implementation, when causing the push of live video stream Caton phenomenon occur since network transmission performance is poor
When, the push of adjust automatically live video stream can be generally carried out by adjusting modes such as encoding rates, however, when live video stream
When transmission performance indicators are still less than reference index threshold value, illustrate that live video still can not be solved by adjusting modes such as encoding rates
Double screen stream can be pushed be reduced to the push of single screen stream at this time by the push Caton problem of stream, also, main broadcaster's terminal is by the continuous Caton
Degradation numerical value increases by the first numerical value.
Wherein, which can be by user's customized setting according to actual needs, can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
In addition, first numerical value can also be write from memory by user's customized setting according to actual needs by main broadcaster's terminal
Recognize setting.For example, which can be set to 1, and the continuous Caton degradation numerical value is increased by 1 when counting every time at this time.
In one possible implementation, may include: by the realization that the push of double screen stream is reduced to the push of single screen stream will be horizontal
Screen stream is sent to background server, and forbids pushing vertical screen stream.That is, the push of double screen stream is reduced to the push of single screen stream
When, vertical screen stream can be cut off, only push transverse screen stream to background server.
Certainly, above-mentioned said for stopping push vertical screen stream when the push of double screen stream is reduced to the push of single screen stream
It is bright, in another embodiment, it can also stop pushing transverse screen stream, the embodiment of the present application does not limit this.
It should be noted that after the push of double screen stream is reduced to the push of single screen stream by main broadcaster's terminal, in some embodiments, when
Detect situations such as increasing new business, for example when the company of increasing wheat business, main broadcaster's terminal can restart double screen stream and push away
It send.Later, main broadcaster's terminal continues to monitor the transmission performance indicators of live video stream during double screen stream pushes, to count continuous card
Pause degradation numerical value.
In addition, it is necessary to explanation, above-mentioned steps 301 and step 302 are for realizing in the push process of live video stream
In, count the operation of continuous Caton degradation numerical value.
Step 303: being broadcast live in number or reference live streaming duration when in reference, which reaches with reference to drop
When grade threshold value, start continuous single screen stream mode, which refers to the mode for only allowing to push single screen stream.
Wherein, reference live streaming number and reference live streaming duration can be set by user is customized according to actual needs
It sets, this can also be not construed as limiting by main broadcaster's terminal default setting, the embodiment of the present application.
Wherein, this can be by user's customized setting according to actual needs with reference to degradation threshold value, can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
When the continuous Caton degradation numerical value reaches with reference to degradation threshold value in reference main broadcaster number or reference live streaming duration,
Illustrate that continuous several times detect Caton collapse event, i.e. continuous several times main broadcaster terminal is reduced to list because Caton situation pushes double screen stream
Screen stream push, starts continuous single screen stream mode at this time, does not allow to push two-way live video stream simultaneously in this kind of mode, only allow
Push live video stream all the way.
Such as, it is assumed that the continuous Caton degradation numerical value is used to indicate continuously to be reduced to time that single screen stream pushes from the push of double screen stream
Number, this is 10 times with reference to live streaming number, when this is set as 5 with reference to degradation threshold value, if detected in 10 live streamings at this
Continuous Caton degradation numerical value reaches 5 times, then starts continuous single screen stream mode, i.e., only single screen stream is allowed to push.For another example, it is assumed that the company
Continuous Caton degradation numerical value is used to indicate continuously to be reduced to the degradation rate that single screen stream pushes from the push of double screen stream, a length of when this is with reference to live streaming
300 minutes, when this is set as 20% with reference to degradation threshold value, if continuous Caton drop was detected in live streaming duration at 300 minutes
Grade rate reaches 20%, then starts continuous single screen stream mode, i.e., only single screen stream is allowed to push.
It should be noted that during counting continuous Caton degradation numerical value, if number is broadcast live in reference or with reference to straight
In sowing time is long, which not up to refers to degradation threshold value, then resets the continuous Caton degradation numerical value again
It is counted.
Step 304: whether the push state for monitoring live video stream meets double screen stream pushing condition.
During main broadcaster's terminal executes the push of single screen stream, in order to determine when to revert in the case of which kind of
Whether the push of double screen stream, the push state that can monitor live video stream meet double screen stream pushing condition.In a kind of possible reality
In existing mode, it may include as follows that whether the push state for monitoring live video stream, which meets the specific implementation of double screen stream pushing condition,
Two kinds of possible situations:
The first situation: statistics single screen flow/time length, the single screen flow/time length refer to the duration of the continuous single screen stream mode,
When the single screen flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets double screen stream push item
Part.
Wherein, which can be by user's customized setting according to actual needs, can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
That is to say, main broadcaster's terminal counts the duration of continuous single screen stream mode, if the duration reach this first
Duration threshold value, it may be considered that the push environment restoration of live video stream can determine the live video to stable state at this time
The push state of stream meets the double screen stream pushing condition.Wherein, stable state described in the embodiment of the present application refers to push environment
It can satisfy the state of double screen stream push.
For example, it is assumed that the first duration threshold value is 12 hours, then main broadcaster's terminal starts after entering continuous single screen stream mode
The duration of the continuous single screen stream mode is counted, once detecting that the duration reaches 12 hours, then can determine that this is straight
The push state for broadcasting video flowing meets the double screen stream pushing condition.
Second situation: statistics single screen stablizes push times and/or the interim push times of single screen, which stablizes push time
Number refers to, and the number that Caton is broken does not occur during the duration of single screen stream push is more than the second duration threshold value and plug-flow, which faces
When push times refer to single screen stream push duration be not up to the second duration threshold value and plug-flow during do not occur what Caton was broken
Number;When the single screen stablizes push times and/or the interim push times of the single screen reach the first frequency threshold value, the live streaming is determined
The push state of video flowing meets the double screen stream pushing condition.
Wherein, which can be by user's customized setting according to actual needs, can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
In addition, first frequency threshold value can be by user's customized setting according to actual needs, it can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
In one possible implementation, main broadcaster's terminal statistics single screen stablizes push times.Specifically, if single screen stream
Pushing duration is more than the second duration threshold value, and there is no Caton collapse event in duration, then main broadcaster's terminal
Single screen is stablized into push times and increases second value.When single screen, which stablizes push times, reaches the first frequency threshold value, it is believed that
The push environment of live video stream is substantially more stable, can determine that the push state of the live video stream meets the double screen at this time
Flow pushing condition.
In alternatively possible implementation, the interim push times of single screen can also be counted.If the push of single screen stream
Duration is less than the second duration threshold value, and there is no Caton collapse event in duration, illustrates that main broadcaster user can
Can live streaming duration it is shorter and there is no Caton degradation in short time live streaming, at this time by single screen interim push times increase by the
Two numerical value.When the interim push times of single screen reach the first frequency threshold value, it is believed that the push environment of live video stream is basic
It is more stable, it can determine that the push state of the live video stream meets the double screen stream pushing condition at this time.
Further, in the case that statistics single screen stablizes push times and the interim push times of single screen at the same time, as long as single
When at least one of screen stable both push times and the interim push times of single screen reach the first frequency threshold value, it is believed that
The push environment of live video stream is substantially more stable, can determine that the push state of the live video stream meets the double screen at this time
Flow pushing condition.
Wherein, above-mentioned second value can be by user's customized setting according to actual needs, can also be by main broadcaster's terminal
Default setting, the embodiment of the present application are not construed as limiting this.
Further, in this second situation, when the single screen stablizes push times and/or the interim push times of the single screen
When reaching the first frequency threshold value, before the push state for determining the live video stream meets the double screen stream pushing condition, may be used also
To include following realization process: starting double screen stream push, statistics double screen stablizes push times, this pair during the push of double screen stream
Screen is stablized during the duration that push times refer to that double screen stream pushes is more than third duration threshold value and plug-flow and Caton degradation is not occurred
Number;When the double screen, which stablizes push times, reaches the second frequency threshold value, determines that the push state of the live video stream meets and be somebody's turn to do
Double screen stream pushing condition;When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen is restarted
Stream mode.
That is, reaching first several threshold when the stable push times of the single screen and/or the interim push times of the single screen
In the case where value, whether it is really achieved stable state in order to further determine the push environment of live video stream, can enter and " protect
Release mode ", it is actually to further look to the stringenter standard of push environment of live video stream that this, which bails mode out,.
In an implementation, starting double screen stream push, statistics double screen stablizes push times during the push of double screen stream, i.e. statistics double screen stream pushes away
The number of Caton degradation does not occur during being more than third duration threshold value and plug-flow for the duration sent.If the double screen stablizes push times
Reach the second frequency threshold value, illustrates that Caton collapse event does not occur during the push of double screen stream, at this time it is considered that live video
The push environment of stream, which determines, to be restored to stable state, thus may determine that the push state of the live video stream meets the double screen stream
Pushing condition., whereas if Caton number, which occurs, in period reaches setting value, then illustrate the push environment of live video stream and non-real
It is positive to restore to stable state, need to come back to the operation for starting continuous single screen stream mode at this time, main broadcaster's terminal is by historical data
It resets and restarts to calculate.
Wherein, which can be by user's customized setting according to actual needs, can also be by main broadcaster end
Hold default setting.In some embodiments, which can be identical as the second duration threshold value, certainly, the third
Duration threshold value can also be different from the second duration threshold value, and the embodiment of the present application does not limit this.
Wherein, which can be by user's customized setting according to actual needs, can also be by main broadcaster end
Default setting is held, the embodiment of the present application is not construed as limiting this.
Step 305: when the push state for monitoring live video stream meets double screen stream pushing condition, from the continuous single screen
Stream mode switches to double screen stream mode.
When the push state for monitoring live video stream meets double screen stream pushing condition, illustrate the push of live video stream
Environment is recovered to stable state, therefore main broadcaster's terminal reforms into double screen stream mode, i.e., simultaneously to backstage server push
Transverse screen stream and vertical screen stream are sent, also, during push, the transmission performance that main broadcaster's terminal continues to monitor live video stream refers to
Mark, to count continuous Caton degradation numerical value again according to the transmission performance indicators, specific implementation is referred to above, no longer heavy here
It repeats again.
In the embodiment of the present application, during the push of live video stream, continuous Caton degradation numerical value is counted, according to this
Continuous Caton degradation numerical value, which can determine, is continuously reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream.If joining
It examines live streaming number or reaches with reference to the continuous Caton degradation numerical value in live streaming duration with reference to degradation threshold value, illustrate live video stream
Push environment is unstable, can only allow to carry out the push of single screen stream at this time, that is, double screen stream is forbidden to push.Only allowing single screen stream
Under the mode of push, when the push state for monitoring live video stream meets double screen stream pushing condition, illustrate that push environment is steady
It is fixed, therefore double screen stream mode can be reformed into.It can so be frequently occurred to avoid when pushing two-way live video stream simultaneously
The problem of Caton phenomenon causes push to terminate, the problem for avoiding image quality caused by code rate fluctuation unstable, and improve straight
The push success rate and stability for broadcasting video flowing, to also improve live streaming success rate.
Fig. 4 is a kind of structural schematic diagram of the driving means of live video stream shown according to an exemplary embodiment, should
The driving means of live video stream being implemented in combination with by software, hardware or both.The driving means of the live video stream
May include:
Statistical module 410, for during the push of live video stream, counting continuous Caton degradation numerical value, the company
Continuous Caton degradation numerical value is used to indicate continuously to be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream;
Starting module 420, for being broadcast live in number or reference live streaming duration when in reference, the continuous Caton degradation numerical value
When reaching with reference to degradation threshold value, start continuous single screen stream mode, the continuous single screen stream mode, which refers to, only to be allowed to push single screen stream
Mode;
Switching module 430, for when the push state for monitoring live video stream meets double screen stream pushing condition, from institute
It states continuous single screen stream mode and switches to double screen stream mode.
Optionally, the statistical module 410 is used for:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and
The continuous Caton degradation numerical value is increased by the first numerical value.
Optionally, the transmission performance indicators include video encoding rate and/or video frame packet loss.
Optionally, the statistical module 410 is also used to:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when described
When single screen flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream push item
Part;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to list
During being more than the second duration threshold value and plug-flow the number that Caton is broken does not occur for the duration of screen stream push, and the single screen temporarily pushes
Number refers to, and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;
When the single screen stablizes push times and/or the interim push times of the single screen reach the first frequency threshold value, determine described straight
The push state for broadcasting video flowing meets the double screen stream pushing condition.
Optionally, the statistical module 410 is also used to:
Stablize push times and/or the interim push times of the single screen when the single screen and reach the first frequency threshold value, starts
The push of double screen stream, statistics double screen stablizes push times during the push of double screen stream, and the stable push times of the double screen refer to double
The number of Caton degradation does not occur during being more than third duration threshold value and plug-flow for the duration of screen stream push;
When the double screen, which stablizes push times, reaches the second frequency threshold value, the push state of the live video stream is determined
Meet the double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream is restarted
Mode.
Optionally, the statistical module 410 is also used to:
Show that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is for opening or closing plug-flow mode adjustment function
Can, the plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push in live video stream is executed
In the process, the operation of continuous Caton degradation numerical value is counted.
In the embodiment of the present application, during the push of live video stream, continuous Caton degradation numerical value is counted, according to this
Continuous Caton degradation numerical value, which can determine, is continuously reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream.If joining
It examines live streaming number or reaches with reference to the continuous Caton degradation numerical value in live streaming duration with reference to degradation threshold value, illustrate live video stream
Push environment is unstable, can only allow to carry out the push of single screen stream at this time, that is, double screen stream is forbidden to push.Only allowing single screen stream
Under the mode of push, when the push state for monitoring live video stream meets double screen stream pushing condition, illustrate that push environment is steady
It is fixed, therefore double screen stream mode can be reformed into.So Caton can occur to avoid when pushing two-way live video stream simultaneously
The problem of phenomenon causes push to terminate, the push success rate of live video stream is improved, to also improve live streaming success rate.
It should be understood that the driving means of live video stream provided by the above embodiment is realizing pushing away for live video stream
When delivery method, only the example of the division of the above functional modules, in practical application, can according to need and will be above-mentioned
Function distribution is completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, with complete with
The all or part of function of upper description.In addition, the driving means and live video of live video stream provided by the above embodiment
The method for pushing embodiment of stream belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 5 shows the structural block diagram of the terminal 500 of one exemplary embodiment of the application offer.The terminal 500 can be with
Be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III,
Dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer
IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 500 be also possible to by
Referred to as other titles such as user equipment, portable terminal, laptop terminal, terminal console.
In general, terminal 500 includes: processor 501 and memory 502.
Processor 501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 501 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 501 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 501 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 502 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 502 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 502 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 501 for realizing this Shen
Please in embodiment of the method provide live video stream method for pushing.
In some embodiments, terminal 500 is also optional includes: peripheral device interface 503 and at least one peripheral equipment.
It can be connected by bus or signal wire between processor 501, memory 502 and peripheral device interface 503.Each peripheral equipment
It can be connected by bus, signal wire or circuit board with peripheral device interface 503.Specifically, peripheral equipment includes: radio circuit
504, at least one of touch display screen 505, camera 506, voicefrequency circuit 507, positioning component 508 and power supply 509.
Peripheral device interface 503 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 501 and memory 502.In some embodiments, processor 501, memory 502 and peripheral equipment
Interface 503 is integrated on same chip or circuit board;In some other embodiments, processor 501, memory 502 and outer
Any one or two in peripheral equipment interface 503 can realize on individual chip or circuit board, the present embodiment to this not
It is limited.
Radio circuit 504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates
Frequency circuit 504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 504 turns electric signal
It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 504 wraps
It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip
Group, user identity module card etc..Radio circuit 504 can be carried out by least one wireless communication protocol with other terminals
Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G,
4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates
Frequency circuit 504 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this
Application is not limited this.
Display screen 505 is for showing UI (User Interface, user interface).The UI may include figure, text, figure
Mark, video and its their any combination.When display screen 505 is touch display screen, display screen 505 also there is acquisition to show
The ability of the touch signal on the surface or surface of screen 505.The touch signal can be used as control signal and be input to processor
501 are handled.At this point, display screen 505 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or
Soft keyboard.In some embodiments, display screen 505 can be one, and the front panel of terminal 500 is arranged;In other embodiments
In, display screen 505 can be at least two, be separately positioned on the different surfaces of terminal 500 or in foldover design;In still other reality
It applies in example, display screen 505 can be flexible display screen, be arranged on the curved surface of terminal 500 or on fold plane.Even, it shows
Display screen 505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 505 can use LCD (Liquid
Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode)
Etc. materials preparation.
CCD camera assembly 506 is for acquiring image or video.Optionally, CCD camera assembly 506 include front camera and
Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One
In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively
Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle
Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped
Camera shooting function.In some embodiments, CCD camera assembly 506 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp,
It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not
With the light compensation under colour temperature.
Voicefrequency circuit 507 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will
Sound wave, which is converted to electric signal and is input to processor 501, to be handled, or is input to radio circuit 504 to realize voice communication.
For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 500 to be multiple.Mike
Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 501 or radio circuit will to be come from
504 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When
When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications
Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 507 can also include
Earphone jack.
Positioning component 508 is used for the current geographic position of positioning terminal 500, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 508 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group
Part.
Power supply 509 is used to be powered for the various components in terminal 500.Power supply 509 can be alternating current, direct current,
Disposable battery or rechargeable battery.When power supply 509 includes rechargeable battery, which can be wired charging electricity
Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless
The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 500 further includes having one or more sensors 510.The one or more sensors
510 include but is not limited to: acceleration transducer 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514,
Optical sensor 515 and proximity sensor 516.
The acceleration that acceleration transducer 511 can detecte in three reference axis of the coordinate system established with terminal 500 is big
It is small.For example, acceleration transducer 511 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 501 can
With the acceleration of gravity signal acquired according to acceleration transducer 511, touch display screen 505 is controlled with transverse views or longitudinal view
Figure carries out the display of user interface.Acceleration transducer 511 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 512 can detecte body direction and the rotational angle of terminal 500, and gyro sensor 512 can
To cooperate with acquisition user to act the 3D of terminal 500 with acceleration transducer 511.Processor 501 is according to gyro sensor 512
Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting
Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 505 in terminal 500 can be set in pressure sensor 513.Work as pressure
When the side frame of terminal 500 is arranged in sensor 513, user can detecte to the gripping signal of terminal 500, by processor 501
Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 513 acquires.When the setting of pressure sensor 513 exists
When the lower layer of touch display screen 505, the pressure operation of touch display screen 505 is realized to UI circle according to user by processor 501
Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu
At least one of control.
Fingerprint sensor 514 is used to acquire the fingerprint of user, collected according to fingerprint sensor 514 by processor 501
The identity of fingerprint recognition user, alternatively, by fingerprint sensor 514 according to the identity of collected fingerprint recognition user.It is identifying
When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 501
Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 514
500 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 500, fingerprint sensor 514 can be with
It is integrated with physical button or manufacturer Logo.
Optical sensor 515 is for acquiring ambient light intensity.In one embodiment, processor 501 can be according to optics
The ambient light intensity that sensor 515 acquires controls the display brightness of touch display screen 505.Specifically, when ambient light intensity is higher
When, the display brightness of touch display screen 505 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 505 is bright
Degree.In another embodiment, the ambient light intensity that processor 501 can also be acquired according to optical sensor 515, dynamic adjust
The acquisition parameters of CCD camera assembly 506.
Proximity sensor 516, also referred to as range sensor are generally arranged at the front panel of terminal 500.Proximity sensor 516
For acquiring the distance between the front of user Yu terminal 500.In one embodiment, when proximity sensor 516 detects use
When family and the distance between the front of terminal 500 gradually become smaller, touch display screen 505 is controlled from bright screen state by processor 501
It is switched to breath screen state;When proximity sensor 516 detects user and the distance between the front of terminal 500 becomes larger,
Touch display screen 505 is controlled by processor 501 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 500 of structure shown in Fig. 5, can wrap
It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage mediums, when in the storage medium
When instruction is executed by the processor of mobile terminal, so that mobile terminal is able to carry out live video stream provided by the above embodiment
Method for pushing.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes the method for pushing for the live video stream that above-mentioned illustrated embodiment provides.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and
Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.
Claims (14)
1. a kind of method for pushing of live video stream, which is characterized in that the described method includes:
During the push of live video stream, continuous Caton degradation numerical value is counted, the continuous Caton degradation numerical value is used for table
Show and is continuously reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream;
It is broadcast live in number or reference live streaming duration when in reference, when the continuous Caton degradation numerical value is reached with reference to degradation threshold value,
Start continuous single screen stream mode, the continuous single screen stream mode refers to the mode for only allowing to push single screen stream;
When the push state for monitoring live video stream meets double screen stream pushing condition, switch from the continuous single screen stream mode
To double screen stream mode.
2. the method as described in claim 1, which is characterized in that the continuous Caton degradation numerical value of statistics, comprising:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and by institute
It states continuous Caton degradation numerical value and increases by the first numerical value.
3. method according to claim 2, which is characterized in that the transmission performance indicators include video encoding rate and/or view
Frequency frame packet loss.
4. the method as described in claim 1, which is characterized in that after the continuous single screen stream mode of starting, further includes:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when the single screen
When flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream pushing condition;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to single screen stream
The number that Caton is broken, the interim push times of single screen do not occur during being more than the second duration threshold value and plug-flow for the duration of push
Refer to and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;Work as institute
When stating single screen and stablizing push times and/or the interim push times of the single screen and reach the first frequency threshold value, determine that the live streaming regards
The push state of frequency stream meets the double screen stream pushing condition.
5. method as claimed in claim 4, which is characterized in that when the stable push times of the single screen and/or the single screen are faced
When push times reach the first frequency threshold value, the push state of the determination live video stream meets the double screen stream push
Before condition, further includes:
Start the push of double screen stream, statistics double screen stablizes push times during the push of double screen stream, and the double screen stablizes push time
Number refers to, and the number that Caton degrades does not occur during the duration of double screen stream push is more than third duration threshold value and plug-flow;
When the double screen, which stablizes push times, reaches the second frequency threshold value, determine that the push state of the live video stream meets
The double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream mould is restarted
Formula.
6. the method as described in claim 1, which is characterized in that described during the push of live video stream, statistics is continuous
Before Caton degradation numerical value, further includes:
Showing that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is used to open or close plug-flow mode adjustment function,
The plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push process in live video stream is executed
In, count the operation of continuous Caton degradation numerical value.
7. a kind of driving means of live video stream, which is characterized in that described device includes:
Statistical module, for during the push of live video stream, counting continuous Caton degradation numerical value, the continuous Caton drop
Value of series is used to indicate continuously to be reduced to the number or degradation rate that single screen stream pushes from the push of double screen stream;
Starting module, for being broadcast live in number or reference live streaming duration when in reference, the continuous Caton degradation numerical value reaches ginseng
When examining degradation threshold value, start continuous single screen stream mode, the continuous single screen stream mode refers to the mode for only allowing to push single screen stream;
Switching module, for when the push state for monitoring live video stream meets double screen stream pushing condition, from described continuous
Single screen stream mode switches to double screen stream mode.
8. device as claimed in claim 7, which is characterized in that the statistical module is used for:
When the live video stream of push is double screen stream, the transmission performance indicators of live video stream are monitored;
When the transmission performance indicators are less than reference index threshold value, the push of double screen stream is reduced to the push of single screen stream, and by institute
It states continuous Caton degradation numerical value and increases by the first numerical value.
9. device as claimed in claim 8, which is characterized in that the transmission performance indicators include video encoding rate and/or view
Frequency frame packet loss.
10. device as claimed in claim 7, which is characterized in that the statistical module is also used to:
Single screen flow/time length is counted, the single screen flow/time length refers to the duration of the continuous single screen stream mode, when the single screen
When flow/time length reaches the first duration threshold value, determine that the push state of the live video stream meets the double screen stream pushing condition;
Alternatively,
It counts single screen and stablizes push times and/or the interim push times of single screen, the single screen stablizes push times and refers to single screen stream
The number that Caton is broken, the interim push times of single screen do not occur during being more than the second duration threshold value and plug-flow for the duration of push
Refer to and the number that Caton is broken does not occur during the duration of single screen stream push is not up to the second duration threshold value and plug-flow;Work as institute
When stating single screen and stablizing push times and/or the interim push times of the single screen and reach the first frequency threshold value, determine that the live streaming regards
The push state of frequency stream meets the double screen stream pushing condition.
11. device as claimed in claim 10, which is characterized in that the statistical module is also used to:
When the stable push times of the single screen and/or the interim push times of the single screen reach the first frequency threshold value, starting double screen
Stream push, statistics double screen stablizes push times during the push of double screen stream, and the double screen stablizes push times and refers to double screen stream
The number of Caton degradation does not occur during being more than third duration threshold value and plug-flow for the duration of push;
When the double screen, which stablizes push times, reaches the second frequency threshold value, determine that the push state of the live video stream meets
The double screen stream pushing condition;
When the double screen, which stablizes push times, is not up to second frequency threshold value, the continuous single screen stream mould is restarted
Formula.
12. device as claimed in claim 7, which is characterized in that the statistical module is also used to:
Showing that plug-flow adjusts function choosing-item, the plug-flow adjustment function choosing-item is used to open or close plug-flow mode adjustment function,
The plug-flow mode adjustment function, which refers to, adjusts plug-flow mode according to the push state of the live video stream;
When detecting that the plug-flow adjustment function choosing-item is in the open state, the push process in live video stream is executed
In, count the operation of continuous Caton degradation numerical value.
13. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to the step of realizing any one method described in claim 1-6.
14. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that
The step of any one method described in claim 1-6 is realized when described instruction is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910080509.4A CN109788303B (en) | 2019-01-28 | 2019-01-28 | Live video stream pushing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910080509.4A CN109788303B (en) | 2019-01-28 | 2019-01-28 | Live video stream pushing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109788303A true CN109788303A (en) | 2019-05-21 |
CN109788303B CN109788303B (en) | 2020-12-04 |
Family
ID=66502732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910080509.4A Active CN109788303B (en) | 2019-01-28 | 2019-01-28 | Live video stream pushing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109788303B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110956595A (en) * | 2019-11-29 | 2020-04-03 | 广州酷狗计算机科技有限公司 | Method, device and system for face beautifying processing and storage medium |
CN111405312A (en) * | 2020-04-26 | 2020-07-10 | 广州酷狗计算机科技有限公司 | Live broadcast stream pushing method, device, terminal, server and storage medium |
CN111586446A (en) * | 2020-04-13 | 2020-08-25 | 微梦创科网络科技(中国)有限公司 | Method, device and system for seamless switching of media streams |
CN113055693A (en) * | 2021-04-20 | 2021-06-29 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
CN113763137A (en) * | 2021-11-10 | 2021-12-07 | 山东派盟网络科技有限公司 | Information pushing method and computer equipment |
CN113891099A (en) * | 2020-09-16 | 2022-01-04 | 深圳市博浩光电科技有限公司 | Transverse and longitudinal control device for three-dimensional live broadcast image |
TWI774063B (en) * | 2020-09-16 | 2022-08-11 | 大陸商深圳市博浩光電科技有限公司 | Horizontal/vertical direction control device for three-dimensional broadcasting image |
TWI798849B (en) * | 2021-09-30 | 2023-04-11 | 日商17Live股份有限公司 | System, method and computer-readable medium for rendering a streaming |
US11870828B2 (en) | 2021-09-30 | 2024-01-09 | 17Live Japan Inc. | System, method and computer-readable medium for rendering a streaming |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2391134A1 (en) * | 2010-05-26 | 2011-11-30 | Advanced Digital Broadcast S.A. | A video display system, a shutter glasses device and a method for operating shutter glasses |
EP2882200A1 (en) * | 2013-12-04 | 2015-06-10 | Samsung Electronics Co., Ltd | Display apparatus and method of displaying an image being divided into a plurality of regions |
CN106454407A (en) * | 2016-10-25 | 2017-02-22 | 广州华多网络科技有限公司 | Video live broadcast method and device |
CN108093268A (en) * | 2017-12-29 | 2018-05-29 | 广州酷狗计算机科技有限公司 | The method and apparatus being broadcast live |
CN109218740A (en) * | 2017-06-29 | 2019-01-15 | 武汉斗鱼网络科技有限公司 | Display methods, storage medium, electronic equipment and the system of double screen video flowing |
-
2019
- 2019-01-28 CN CN201910080509.4A patent/CN109788303B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2391134A1 (en) * | 2010-05-26 | 2011-11-30 | Advanced Digital Broadcast S.A. | A video display system, a shutter glasses device and a method for operating shutter glasses |
EP2882200A1 (en) * | 2013-12-04 | 2015-06-10 | Samsung Electronics Co., Ltd | Display apparatus and method of displaying an image being divided into a plurality of regions |
CN106454407A (en) * | 2016-10-25 | 2017-02-22 | 广州华多网络科技有限公司 | Video live broadcast method and device |
CN109218740A (en) * | 2017-06-29 | 2019-01-15 | 武汉斗鱼网络科技有限公司 | Display methods, storage medium, electronic equipment and the system of double screen video flowing |
CN108093268A (en) * | 2017-12-29 | 2018-05-29 | 广州酷狗计算机科技有限公司 | The method and apparatus being broadcast live |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110956595A (en) * | 2019-11-29 | 2020-04-03 | 广州酷狗计算机科技有限公司 | Method, device and system for face beautifying processing and storage medium |
CN110956595B (en) * | 2019-11-29 | 2023-11-24 | 广州酷狗计算机科技有限公司 | Face beautifying processing method, device, system and storage medium |
CN111586446A (en) * | 2020-04-13 | 2020-08-25 | 微梦创科网络科技(中国)有限公司 | Method, device and system for seamless switching of media streams |
CN111405312A (en) * | 2020-04-26 | 2020-07-10 | 广州酷狗计算机科技有限公司 | Live broadcast stream pushing method, device, terminal, server and storage medium |
CN113891099A (en) * | 2020-09-16 | 2022-01-04 | 深圳市博浩光电科技有限公司 | Transverse and longitudinal control device for three-dimensional live broadcast image |
TWI774063B (en) * | 2020-09-16 | 2022-08-11 | 大陸商深圳市博浩光電科技有限公司 | Horizontal/vertical direction control device for three-dimensional broadcasting image |
CN113055693A (en) * | 2021-04-20 | 2021-06-29 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
CN113055693B (en) * | 2021-04-20 | 2023-01-24 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
TWI798849B (en) * | 2021-09-30 | 2023-04-11 | 日商17Live股份有限公司 | System, method and computer-readable medium for rendering a streaming |
US11870828B2 (en) | 2021-09-30 | 2024-01-09 | 17Live Japan Inc. | System, method and computer-readable medium for rendering a streaming |
CN113763137A (en) * | 2021-11-10 | 2021-12-07 | 山东派盟网络科技有限公司 | Information pushing method and computer equipment |
CN113763137B (en) * | 2021-11-10 | 2022-10-14 | 山东派盟网络科技有限公司 | Information pushing method and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109788303B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109788303A (en) | Method for pushing, device, electronic equipment and the storage medium of live video stream | |
CN108966008B (en) | Live video playback method and device | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN110881136A (en) | Video frame rate control method and device, computer equipment and storage medium | |
US11388403B2 (en) | Video encoding method and apparatus, storage medium, and device | |
CN110166890B (en) | Audio playing and collecting method and device and storage medium | |
CN110022489B (en) | Video playing method, device and storage medium | |
EP3902241A1 (en) | Audio and video processing method and apparatus, terminal and storage medium | |
DE112014006235T5 (en) | Coordinated handover of an audio data transmission | |
CN111107389B (en) | Method, device and system for determining live broadcast watching time length | |
CN108449641A (en) | Play method, apparatus, computer equipment and the storage medium of Media Stream | |
CN108769826A (en) | Live media stream acquisition methods, device, terminal and storage medium | |
CN107896337B (en) | Information popularization method and device and storage medium | |
CN110121084A (en) | The methods, devices and systems of port switching | |
CN108900921A (en) | Even wheat live broadcasting method, device and storage medium | |
CN110996305A (en) | Method, device, electronic equipment and medium for connecting Bluetooth equipment | |
CN110213308A (en) | A kind of method and device of decoding video data | |
CN111586431A (en) | Method, device and equipment for live broadcast processing and storage medium | |
CN110856152A (en) | Method, device, electronic equipment and medium for playing audio data | |
US20220095020A1 (en) | Method for switching a bit rate, and electronic device | |
CN107888975B (en) | Video playing method, device and storage medium | |
CN110113669B (en) | Method and device for acquiring video data, electronic equipment and storage medium | |
CN110808021A (en) | Audio playing method, device, terminal and storage medium | |
CN110543403A (en) | power consumption evaluation method and device | |
US20220174356A1 (en) | Method for determining bandwidth, terminal, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |