CN108111913A - A kind of generation method of live video stream, device and electronic equipment - Google Patents

A kind of generation method of live video stream, device and electronic equipment Download PDF

Info

Publication number
CN108111913A
CN108111913A CN201711406028.5A CN201711406028A CN108111913A CN 108111913 A CN108111913 A CN 108111913A CN 201711406028 A CN201711406028 A CN 201711406028A CN 108111913 A CN108111913 A CN 108111913A
Authority
CN
China
Prior art keywords
mrow
server
client
video effect
special video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711406028.5A
Other languages
Chinese (zh)
Other versions
CN108111913B (en
Inventor
冯巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201711406028.5A priority Critical patent/CN108111913B/en
Publication of CN108111913A publication Critical patent/CN108111913A/en
Application granted granted Critical
Publication of CN108111913B publication Critical patent/CN108111913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • 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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Abstract

An embodiment of the present invention provides a kind of live video stream generating method, device and electronic equipments.Method includes:Server-side obtains the state parameter of client, and the state parameter includes:The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect to be added and the client;According to the state parameter, using default execution decision-making device, judge whether to add the special video effect by the server-side, obtain judging result;The judging result is sent to the client;If the judging result is to add the special video effect by the server-side, the pending video flowing for being not added with the special video effect that the client is sent is received;The special video effect is added in the pending video flowing, obtains live video stream.The complicated special video effect that client is difficult to complete to add in real time is transferred to server-side to handle by the embodiment of the present invention, solves the problems, such as due to addition special video effect live streaming delay may be caused larger.

Description

A kind of generation method of live video stream, device and electronic equipment
Technical field
The present invention relates to multimedia content interaction technique field, more particularly to a kind of generation method of live video stream, Device and electronic equipment.
Background technology
Net cast meets the spiritual entertainment requirements of users as one of emerging the Internet, applications.Mainstream Net cast pattern is that main broadcaster's real-time release live video flows to content distributing network, and spectators download and see from content distributing network See live video flowing.In order to which spectators is made to obtain better viewing experience, added in the video flowing that main broadcaster often obtains in shooting Special video effect obtains the live video stream with special video effect.In the prior art, main broadcaster performs addition using client device The task of special video effect.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
When the algorithm complexity of the special video effect added in the video flowing that main broadcaster obtains in shooting is higher, client is limited to The performance of end equipment, adding the task of special video effect can not complete in real time, can generate larger live streaming delay, influence live streaming effect Fruit.
The content of the invention
The embodiment of the present invention is designed to provide a kind of live video stream generating method, to solve to deposit in the prior art Due to addition special video effect cause live streaming delay it is larger the problem of.
Specific technical solution is as follows:
In the embodiment of the present invention in a first aspect, provide a kind of live video stream generating method, the described method includes:
Server-side obtains the state parameter of client, and the state parameter includes:The corresponding calculation of special video effect to be added The current device performance parameters of equipment where method complexity and the client;
The server-side, using default execution decision-making device, judges whether by the server-side according to the state parameter The special video effect is added, obtains judging result, the default execution decision-making device is based on described in multiple sample clients What state parameter created, whether the sample client is known by server-side addition special video effect;
The judging result is sent to the client by the server-side;
If the judging result is to add the special video effect by the server-side, the server-side receives the client Hold the pending video flowing for being not added with the special video effect sent;
The special video effect is added in the pending video flowing, obtains live video stream.
With reference to first aspect, in the first possible implementation, the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
With reference to first aspect, in second of possible realization method, the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
With reference to first aspect, described according to the state parameter in the third possible realization method, utilization is default Decision-making device is performed, judges whether to add the special video effect by server-side, including:
According to the following formula, the corresponding mapping value of the client is calculated:
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) for not by institute State the confidence level that server-side adds the special video effect, xiFor i-th of state parameter of the client, m is one pre- If threshold value;
If the corresponding mapping value of the client is 1, it is determined that judging result is as described in server-side addition Special video effect;Alternatively,
If the corresponding mapping value of the client is 0, it is determined that judging result is to be regarded as described in server-side addition Frequency special efficacy.
With reference to first aspect, described according to the state parameter in the 4th kind of possible realization method, utilization is default Decision-making device is performed, judges whether to add the special video effect by the server-side, including:
According to the state parameter and the load factor of the server device, using default execution decision-making device, judgement is It is no that the special video effect is added by the server-side.
In the second aspect of the embodiment of the present invention, another live video stream generating method is provided, the described method includes:
Client sends the state parameter of the client, institute to server-side after addition special video effect instruction is received Stating state parameter includes:The current equipment performance of equipment where the corresponding algorithm complexity of special video effect and the client Parameter;
What the client reception server-side was sent indicates whether to add the special video effect by the server-side Judging result, the judging result are the server-side according to the state parameter, are determined using default execution decision-making device, The default execution decision-making device is that the state parameter based on multiple sample clients creates, and the sample client is It is no by server-side addition special video effect be known;
If the judging result is to add the special video effect by the server-side, the client will be not added with described The pending video stream of special video effect is to the server-side.
With reference to second aspect, in the first possible implementation, further include:
If for the judging result not added by the server-side, the client adds institute in pending video flowing Special video effect is stated, obtains live video stream.
In the third aspect of the embodiment of the present invention, another live video stream generating method is provided, the described method includes:
After client receives addition special video effect instruction, the state parameter of client is obtained, the state parameter includes:Institute The current device performance parameters of equipment where stating the corresponding algorithm complexity of special video effect and client;
The client, using default execution decision-making device, judges whether to be added by server-side according to the state parameter The special video effect obtains judging result, and the default execution decision-making device is the state based on multiple sample clients What parameter created, whether the sample client is known by server-side addition special video effect;
The judging result is sent to the server-side by the client;
If the judging result is to add the special video effect by the server-side, the client will be not added with described The pending video stream of special video effect is to the server-side.
With reference to the third aspect, in the first possible implementation, the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
With reference to the third aspect, in second of possible realization method, the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
With reference to the third aspect, described according to the state parameter in the third possible realization method, utilization is default Decision-making device is performed, judges whether to add the special video effect by server-side, including:
According to the following formula, the corresponding mapping value of the client is calculated:
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by taking Add the confidence level of the special video effect, x in business endiFor i-th of state parameter of client, m is a default threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add the special video effect by server-side; Alternatively,
If the corresponding mapping value of client is 0, it is determined that judging result is to add the special video effect by server-side.
With reference to the third aspect, described according to the state parameter in the 4th kind of possible realization method, utilization is default Decision-making device is performed, judges whether to add the special video effect by server-side, including:
According to the load factor of equipment where the state parameter and server-side, using default execution decision-making device, judgement is It is no that the special video effect is added by server-side.
In the fourth aspect of the embodiment of the present invention, a kind of live video stream generating apparatus is provided, described device includes:
First parameter acquisition module, for obtaining the state parameter of client, the state parameter includes:To be added regards The current device performance parameters of equipment where the corresponding algorithm complexity of frequency special efficacy and the client;
First decision-making module, for according to the parameter, using default execution decision-making device, judging whether to be added by server-side Add the special video effect, obtain judging result, the default execution decision-making device is the shape based on multiple sample clients What state parameter created, whether the sample client is known by server-side addition special video effect;
First notification module, for the judging result to be sent to the client;
First receiving module if being to add the special video effect by the server-side for the judging result, receives The pending video flowing for being not added with the special video effect that the client is sent;
First special efficacy processing module for adding the special video effect in the pending video flowing, obtains live streaming and regards Frequency flows.
With reference to fourth aspect, in the first possible implementation, the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
With reference to fourth aspect, in second of possible realization method, the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
With reference to fourth aspect, in the third possible realization method, first decision-making module is specifically used for:
According to the following formula, the corresponding mapping value of the client is calculated:
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) for not by institute State the confidence level that server-side adds the special video effect, xiFor i-th of state parameter of the client, m is one pre- If threshold value;
If the corresponding mapping value of the client is 1, it is determined that judging result is as described in server-side addition Special video effect;Alternatively,
If the corresponding mapping value of the client is 0, it is determined that judging result is to be regarded as described in server-side addition Frequency special efficacy.
With reference to fourth aspect, in four kinds of possible realization methods, first decision-making module is specifically used for:
According to the load factor of equipment where the state parameter and the server-side, using default execution decision-making device, sentence Whether break by the server-side addition special video effect.
At the 5th aspect of the embodiment of the present invention, another live video stream generating apparatus is provided, described device includes:
Parameter sending module, for after addition special video effect instruction is received, the state of client to be sent to server-side Parameter, the state parameter include:Equipment where the corresponding algorithm complexity of special video effect and the client is current Device performance parameters;
Decision-making receiving module adds the video for indicating whether of receiving that the server-side sends by the server-side The judging result of special efficacy, the judging result for the server-side according to the state parameter, utilize default execution decision-making device Definite, the default execution decision-making device is that the state parameter based on multiple sample clients creates, the sample Whether client is known by server-side addition special video effect;
First plug-flow module, will not if being to add the special video effect by the server-side for the judging result The pending video stream of the special video effect is added to server-side.
With reference to the 5th aspect, in the first possible implementation, further include:
Second special efficacy processing module, if being special not by the server-side addition video for the judging result Effect, the special video effect is added in pending video flowing, obtains live video stream.
At the 6th aspect of the embodiment of the present invention, another live video stream generating apparatus is provided, described device includes:
Second parameter acquisition module after receiving addition special video effect instruction for client, obtains the state ginseng of client Number, the state parameter include:The current equipment of equipment where the corresponding algorithm complexity of the special video effect and client It can parameter;
Second decision-making module, for according to the state parameter, using default execution decision-making device, judging whether by servicing The special video effect is added at end, obtains judging result, the default execution decision-making device is the institute based on multiple sample clients State parameter establishment is stated, whether the sample client is known by server-side addition special video effect;
Second notification module, for the judging result to be sent to the server-side;
Second plug-flow module if being to add special video effect by the server-side for the judging result, will be not added with The processing video stream of the special video effect is to the server-side.
In terms of the 6th, in the first possible implementation, the device performance parameters, including:
For the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity parameter.
With reference to the 6th aspect, in second of possible realization method, the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
With reference to the 6th aspect, in the third possible realization method, second decision-making module is specifically used for:
According to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) for not by institute State the confidence level that server-side adds the special video effect, xiFor i-th of state parameter of the client, m is one pre- If threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is by the server-side addition video Special efficacy;
If the corresponding mapping value of client is 0, it is determined that judging result is to add the video spy by the server-side Effect.
With reference to the 6th aspect, in the 4th kind of possible realization method, second decision-making module is specifically used for:
According to the load factor of equipment where the state parameter and the server-side, using default execution decision-making device, sentence Whether break by the server-side addition special video effect.
At the 7th aspect of the embodiment of the present invention, a kind of electronic equipment is provided, is connect including first processor, the first communication Mouthful, first memory and the first communication bus, wherein, first processor, the first communication interface, first memory is logical by first Believe that bus completes mutual communication;
First memory, for storing computer program;
First processor during for performing the program stored on first memory, realizes that claim 1-5 is any described Method and step.
In the eighth aspect of the embodiment of the present invention, a kind of electronic equipment is provided, is connect including second processor, the second communication Mouthful, second memory and the second communication bus, wherein, second processor, the second communication interface, second memory is logical by second Believe that bus completes mutual communication;
Second memory, for storing computer program;
Second processor during for performing the program stored on second memory, realizes that claim 6-7 is any described Method and step.
At the 9th aspect of the embodiment of the present invention, a kind of electronic equipment is provided, is connect including the 3rd processor, the third communication Mouthful, the 3rd memory and third communication bus, wherein, the 3rd processor, third communication interface, the 3rd memory passes through threeway Believe that bus completes mutual communication;
3rd memory, for storing computer program;
3rd processor during for performing the program stored on the 3rd memory, realizes claim 8-12 any institutes The method and step stated.
At the tenth aspect of the embodiment of the present invention, a kind of computer readable storage medium is provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer so that computer performs any of the above-described live streaming and regards Frequency stream generating method.
The embodiment of the present invention the tenth on the one hand, provide it is a kind of comprising instruction computer program product, when its When being run on computer so that computer performs any of the above-described picture transmission method.
A kind of live video stream method, apparatus provided in an embodiment of the present invention and electronic equipment can utilize default hold Row decision-making device judges whether to add special video effect by server-side according to the state parameter of client, can will for client and What speech was difficult to the complicated special video effect added in real time transfers to server-side to handle, and solves since addition special video effect causes live streaming to be prolonged The problem of larger late.Certainly, implement any of the products of the present invention or method must be not necessarily required to reach above-described institute simultaneously There is advantage.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow diagram of live video stream generating method provided in an embodiment of the present invention;
Fig. 2 is another flow diagram of live video stream generating method provided in an embodiment of the present invention;
Fig. 3 is another flow diagram of live video stream generating method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of live video stream generating apparatus provided in an embodiment of the present invention;
Fig. 5 is another structure diagram of live video stream generating apparatus provided in an embodiment of the present invention;
Fig. 6 is another structure diagram of live video stream generating apparatus provided in an embodiment of the present invention;
Fig. 7 is a kind of structure diagram that live video provided in an embodiment of the present invention generates electronic equipment;
Fig. 8 is another structure diagram that live video provided in an embodiment of the present invention generates electronic equipment;
Fig. 9 is another structure diagram that live video provided in an embodiment of the present invention generates electronic equipment.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is described.
Referring to Fig. 1, Fig. 1 show a kind of flow signal of live video stream generating method provided in an embodiment of the present invention Figure, may comprise steps of:
S101, server-side obtain the state parameter of client, and state parameter includes:The corresponding calculation of special video effect to be added The current device performance parameters of equipment where method complexity and client.
Wherein, special video effect to be added can be that one kind can also be a variety of, and algorithm complexity is one and is used to represent The numerical value of the number of the required operand of special video effect to be added realized.Obtain the corresponding algorithm of special video effect to be added Complexity can be the video to be added spy for receiving the algorithm complexity that client is sent or receiving client transmission The information of effect, and further according to the information determining algorithms complexity.Illustratively, what server-side reception client was sent waits to add Add the code name of special video effect, determine that the code name is corresponding using default code name-algorithm complexity correspondence according to the code name Algorithm complexity.Similarly, can receive the visitor that the device performance parameters that client is sent or reception client are sent The current relevant information of equipment where the end of family, device performance parameters are determined according to the information by server-side.
S102 according to the state parameter, using default execution decision-making device, judges whether to add video spy by server-side Effect, obtains judging result, which is that the state parameter based on multiple sample clients creates, sample visitor Whether family end is known by server-side addition special video effect;
In the present embodiment, judge whether a sample client is by by sample visitor by server-side addition special video effect Family end adds special video effect and by the video stream added with special video effect to server-side, calculates and adds since sample client Special video effect is added to receive the used time of the video flowing added with special video effect to server-side.If the used time is more than default acceptable Delay threshold, then it is assumed that the sample client adds special video effect by server-side.If the used time is subjected to prolonging no more than default When threshold value, then it is assumed that the sample client does not add special video effect by server-side.
It is understood that perform decision-making device can regard as the state parameter of a client and the client whether by Server-side adds the mapping relations of special video effect.In the present embodiment, which can be realized using Logic Regression Models, Can also be realized using neural network model or other models in other realization methods.
Can work as equipment where the corresponding algorithm complexity of special video effect to be added and client in the present embodiment Preceding device performance parameters, input perform decision-making device, perform decision-making device according to default mapping ruler, export corresponding mapping Value, if the size of the mapping value meet it is default by the corresponding characteristic condition of server-side addition special video effect, it is determined that by taking Be engaged in end addition special video effect, if alternatively, the size of the mapping value meet it is default by client addition special video effect it is corresponding Characteristic condition, it is determined that special video effect is added by server-side.
S103 will determine that result is sent to client.
S104, if it is judged that add the special video effect by server-side, receive that client sends is not added with this and regards The pending video flowing of frequency special efficacy.
S105 adds the special video effect in pending video flowing, obtains live video stream.
In the present embodiment, after pending decoding video stream, corresponding special video effect processing is carried out, then is obtained after recompiling To live video stream.It is understood that the performance of equipment where the performance of equipment is better than client where server-side, therefore into When the identical special video effect of row is handled, the server-side used time will be shorter than the client used time.And for
The embodiment is selected, it can be by default execution decision-making device, according to corresponding including special video effect to be added The state parameter of client including the current device performance parameters of equipment where algorithm complexity and client, it is determined whether by Server-side adds special video effect, transfers to performance strong special video effect excessively complicated for the performance of equipment where client Big server-side processing.It avoids since addition special video effect causes live streaming to be delayed the problem of larger.
Referring to Fig. 2, Fig. 2 show another flow signal of live video stream generating method provided in an embodiment of the present invention Figure, may comprise steps of:
S201, client send the state parameter of client, shape to server-side after addition special video effect instruction is received State parameter can include:The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect and client.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
It is understood that device performance parameters can include ability parameter and electrical parameter simultaneously, energy can also be included Force parameter is without including electrical parameter, alternatively, including electrical parameter without including ability parameter.
Wherein, ability parameter can be determined according to the CPU numbers per second that can carry out floating point arithmetic or root It is obtained according to the default operational capability scoring of the model of CPU and the utilization rate weighted calculation of current CPU.Illustratively, a visitor The model A types of the CPU of family end equipment are a kind of stronger CPU of performance, and corresponding operational capability scoring is 0.9, currently The utilization rate of CPU is 10%, then the ability parameter of the client is 0.9 × (1-10%)=0.81.It is understood that CPU Operational capability it is stronger, it is also shorter to complete the addition required time of special video effect, therefore client more need not be by servicing End addition special video effect.
Electrical parameter can be the percentage of remaining capacity or the scope according to residing for the percentage of remaining capacity A definite numerical value.Illustratively, when residual power percentage is higher than 20%, electrical parameter 1, when remaining capacity percentage During than being not higher than 20%, electrical parameter 0.It is understood that adding special video effect by client, can be set to client place It is standby to bring additional electric quantity consumption, therefore when equipment remaining capacity where client is relatively low, set for extending where client Standby usage time is considered, and can add special video effect by server-side.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
Wherein, communication state parameters can be according to the determine or root that is delayed between server-side and client Being determined according to network specifics used in client (such as wifi, wired, 2G etc.), illustratively, when client is connected using wifi Can will communication state parameters be at this time 0.8, when client uses since the network speed of wifi is usually than very fast when accessing network Can will communication state parameters be at this time 0.2 since the network speed of 2G is usually relatively slow when 2G is connected into the network.
It is understood that when the communications status between server-side and client is poor, between client and server-side Message transmission rate it is slower, larger delay can be brought to net cast, can video video be added by server-side at this time, with Shorten the time of addition special video effect consumption, make up the live streaming delay brought since communications status is poor.
S202, server-side receive the state parameter of client.
S203, server-side is using state parameter as mode input, using Logic Regression Models, calculates that client is corresponding to reflect Penetrate value.
Specifically, in the present embodiment, Logic Regression Models as follows can be utilized, calculate the corresponding mapping of client Value:
Wherein, θiFor i-th of default model parameter of the Logic Regression Models, i is a positive integer, hθ(x) it is not by taking The confidence level of business end addition special video effect, xiFor i-th of mode input, m is a default threshold value, and n is of mode input Number.
Wherein, whether model parameter is predetermined, can be based on known by the multiple of server-side addition special video effect What the state parameter of sample client created, that is, build default execution decision-making device.
Specifically, in the present embodiment, the initial value of each model parameter is rule of thumb artificially set first.
Then, using the state parameter of each sample client as mode input, each sample client is obtained Mapping value.According to the mapping value of each sample client, the score of currently used model parameter is calculated according to the following formula:
Wherein P be "current" model parameter score, k be sample client quantity, fiTo be based on "current" model parameter meter The mapping value of i-th obtained of sample client, riRepresent whether i-th sample client by server-side adds special video effect Artificial judgment as a result, if i-th of sample client adds special video effect, r by server-sideiFor 0, on the contrary then riFor 1.
Finally, constantly model parameter is adjusted, and calculates the score of the model parameter after adjustment, until after adjustment The score of model parameter is higher than predetermined threshold value.
In an optional implementation manner, server-side can be using the load factor of state parameter and server device as mould Type inputs, and using default Logic Regression Models, calculates the corresponding mapping value of client.
The model parameter of Logic Regression Models can based on it is known whether by server-side addition special video effect multiple samples What the load factor of the state parameter of client and corresponding sample server-side determined.It is understood that work as server device When load factor is higher, in order to avoid further increasing load pressure to server device, in allowed limits as far as possible by client End addition special video effect.
Select the realization method that can find a preferable equalization point between live streaming delay and server device load, To realize under the premise of live streaming is delayed acceptable, the load of server device is reduced, saves computing cost.
S204, if the mapping value of client is 0, it is determined that judging result is to add special video effect by server-side, if The mapping value of client is 1, it is determined that judging result is not add special video effect by server-side.
It is understood that hθ(x) not add the confidence level of special video effect by server-side, that is, decision-making device is performed according to visitor What the state parameter at family end was calculated, if carrying out artificial judgment, the result of artificial judgment is not add video by server-side The probability of special efficacy.Therefore h is worked asθ(x) when being not less than predetermined threshold value m (when mapping value is 1), it is not by servicing to determine judging result End addition special video effect.
In this embodiment it is believed that the confidence level that special video effect ought not be added by server-side is not less than by refusing to obey that end addition regards (that is, the h during confidence level of frequency special efficacyθ(x)≥1-hθ(x) when), it may be determined that judging result is special not by server-side addition video Effect, therefore predetermined threshold value m=0.5 in the present embodiment, in other realization methods, m can also be adjusted according to actual demand.
S205, server-side will determine that result is sent to client.
S206, client receive judging result.
S207 if a determination be made that add special video effect by server-side, then performs step S208, it is no it, then perform step Rapid S210.
S208, client are not added with the pending video flowing of special video effect to server-side transmission.
S209, server-side add special video effect in pending video flowing, obtain live video stream.
S210, client add special video effect in pending video flowing, obtain live video stream.
Referring to Fig. 3, Fig. 3 show another flow signal of live video stream generating method provided in an embodiment of the present invention Figure, may comprise steps of:
S301 after client receives addition special video effect instruction, obtains the state parameter of client, and state parameter includes: The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect to be added and client.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing CPU operational capabilities and/or for representing remaining capacity.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
S302, client is using state parameter as mode input, using Logic Regression Models, calculates that client is corresponding to reflect Penetrate value.
In an optional implementation manner, according to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor perform decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by server-side Add the confidence level of special video effect, xiFor i-th of state parameter of client, m is a default threshold value;
In an optional implementation manner, can be utilized according to state parameter and the load factor of server-side place equipment Default execution decision-making device, judges whether to add special video effect by server-side.
S303, if the mapping value of client is 0, it is determined that judging result is to add special video effect by server-side, if The mapping value of client is 1, it is determined that judging result is not add special video effect by server-side.
S304 will determine that result is sent to server-side.
S305, server-side receive judging result.
S306 if a determination be made that add special video effect by server-side, then performs step 307, it is no it, then perform step S309.
S307, client are not added with the pending video flowing of the special video effect to server-side transmission.
S308, server-side add the special video effect in pending video flowing, obtain live video stream.
S309, client add the special video effect in pending video flowing, obtain live video stream.
Referring to Fig. 4, Fig. 4 show a kind of structural representation of live video stream generating apparatus provided in an embodiment of the present invention Figure, can include:
First parameter acquisition module 401, for obtaining the state parameter of client, state parameter includes:To be added regards The current device performance parameters of equipment where the corresponding algorithm complexity of frequency special efficacy and client;
First decision-making module 402, for according to state parameter, using default execution decision-making device, judging whether by servicing End addition special video effect, obtains judging result, and whether default execution decision-making device is based on known special by server-side addition video What the state parameter of multiple sample clients of effect created;
First notification module 403, for will determine that result is sent to client;
First receiving module 404, for if it is judged that add special video effect by server-side, receiving client and sending The pending video flowing for being not added with special video effect;
First special efficacy processing module 405, for adding special video effect in pending video flowing, obtains live video stream.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
In an optional implementation manner, the first decision-making module 402 can be specifically used for:
According to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor perform decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by server-side Add the confidence level of special video effect, xiFor i-th of state parameter of client, m is a default threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add special video effect by server-side;
If the corresponding mapping value of client is 0, it is determined that judging result is to add special video effect by server-side.
In an optional implementation manner, the first decision-making module 402 can be specifically used for:
According to state parameter and the load factor of server device, using default execution decision-making device, judge whether by servicing End addition special video effect.
Referring to Fig. 5, Fig. 5 show another structural representation of live video stream generating apparatus provided in an embodiment of the present invention Figure, can include:
Parameter sending module 501, for after addition special video effect instruction is received, the shape of client to be sent to server-side State parameter, state parameter include:The current equipment performance ginseng of equipment where the corresponding algorithm complexity of special video effect and client Number;
Decision-making receiving module 502 indicates whether to be sentenced by server-side addition special video effect for receiving server-side transmission It is disconnected as a result, judging result is server-side according to state parameter, determined using default execution decision-making device, default execution decision-making Device is that the state parameter based on multiple sample clients creates, and whether sample client is by server-side addition special video effect Know;
First plug-flow module 503, for if it is judged that add special video effect by server-side, video spy will to be not added with The pending video stream of effect is to server-side.
In an optional implementation manner, can also include:
Second special efficacy processing module 504, for if it is judged that not added by server-side, in pending video flowing Special video effect is added, obtains live video stream.
Referring to Fig. 6, Fig. 6 show another structural representation of net cast stream generating apparatus provided in an embodiment of the present invention Figure, can include:
Second parameter acquisition module 601 after receiving addition special video effect instruction for client, obtains the state of client Parameter, state parameter include:The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect and client;
Second decision-making module 602, for according to state parameter, using default execution decision-making device, judging whether by servicing End addition special video effect, obtains judging result, and whether default execution decision-making device is based on known special by server-side addition video What the state parameter of multiple sample clients of effect created;
Second notification module 603, for will determine that result is sent to server-side;
Second plug-flow module 604, for if it is judged that add special video effect by server-side, video spy will to be not added with The pending video stream of effect is to server-side.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
In an optional implementation manner, the second decision-making module 602 can be specifically used for:
According to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor perform decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by server-side Add the confidence level of special video effect, xiFor i-th of state parameter of client, m is a default threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add special video effect by server-side;
If the corresponding mapping value of client is 0, it is determined that judging result is to add special video effect by server-side.
In an optional implementation manner, the second decision-making module 602 can also be specifically used for:
The load factor of equipment according to where state parameter and server-side, using default execution decision-making device, judge whether by Server-side adds special video effect.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 7, comprises first processor 701, first communicates Interface 702,703 and first communication bus 704 of first memory, wherein, first processor 701, the first communication interface 702, the One memory 703 completes mutual communication by the first communication bus 704,
First memory 703, for storing computer program;
First processor 701 during for performing the program stored on first memory 703, can realize following steps:
Server-side obtains the state parameter of client, and state parameter includes:The corresponding algorithm of special video effect to be added is answered The current device performance parameters of equipment where miscellaneous degree and client;
According to state parameter, using default execution decision-making device, judge whether to add special video effect by server-side, be sentenced It is disconnected as a result, it is default perform decision-making device be based on it is known whether by server-side addition special video effect multiple sample clients shape What state parameter created;
It will determine that result is sent to client;
If it is judged that add special video effect by server-side, receive client transmission is not added with treating for special video effect Handle video flowing;
Special video effect is added in pending video flowing, obtains live video stream.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
In an optional implementation manner, according to state parameter, using default execution decision-making device, judge whether by taking Business end addition special video effect, can include:
According to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor perform decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by server-side Add the confidence level of special video effect, xiFor i-th of state parameter of client, m is a default threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add special video effect by server-side;
If the corresponding mapping value of client is 0, it is determined that judging result is to add special video effect by server-side.
In an optional implementation manner, according to state parameter, using default execution decision-making device, judge whether by taking Business end addition special video effect, can include:
According to state parameter and the load factor of server device, using default execution decision-making device, judge whether by servicing End addition special video effect.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 8, communicating including second processor 801, second Interface 802,803 and second communication bus 804 of second memory, wherein, second processor 801, the second communication interface 802, the Two memories 803 complete mutual communication by the second communication bus 804,
Second memory 803, for storing computer program;
Second processor 801 during for performing the program stored on second memory 803, realizes following steps:
Client sends the state parameter of client, state ginseng to server-side after addition special video effect instruction is received Number includes:The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect and client;
The judging result for indicating whether to be added special video effect by server-side that server-side is sent is received, judging result is service End is determined, whether default execution decision-making device is by taking based on known according to state parameter using default execution decision-making device What the state parameter of multiple sample clients of business end addition special video effect created;
If it is judged that add special video effect by server-side, the pending video stream of special video effect will be not added with To server-side.
In an optional implementation manner, can also include:
If it is judged that not add special video effect by server-side, special video effect is added in pending video flowing, is obtained To live video stream.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 9, including the 3rd processor 901, the third communication Interface 902, the 3rd memory 903 and third communication bus 904, wherein, the 3rd processor 801, third communication interface 802, the Three memories 803 complete mutual communication by third communication bus 904,
3rd memory 903, for storing computer program;
3rd processor 901, for perform the 3rd memory 903 on stored program when, realize following steps:
After client receives addition special video effect instruction, the state parameter of client is obtained, state parameter includes:Video is special The current device performance parameters of equipment where imitating corresponding algorithm complexity and client;
According to state parameter, using default execution decision-making device, judge whether to add special video effect by server-side, be sentenced It is disconnected as a result, it is default perform decision-making device be based on it is known whether by server-side addition special video effect multiple sample clients shape What state parameter created;
It will determine that result is sent to server-side;
If it is judged that add special video effect by server-side, the pending video stream of special video effect will be not added with To server-side.
In an optional implementation manner, device performance parameters can include:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
In an optional implementation manner, state parameter can also include:
For representing the communication state parameters of the communications status between server-side and client.
In an optional implementation manner, according to state parameter, using default execution decision-making device, judge whether by taking Business end addition special video effect, including:
According to the following formula, the corresponding mapping value of client is calculated:
Wherein, θiFor perform decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by server-side Add the confidence level of special video effect, xiFor i-th of state parameter of client, m is a default threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add special video effect by server-side;
If the corresponding mapping value of client is 0, it is determined that judging result is to add special video effect by server-side.
In an optional implementation manner, according to state parameter, using default execution decision-making device, judge whether by taking Business end addition special video effect, can include:
The load factor of equipment according to where state parameter and server-side, using default execution decision-making device, judge whether by Server-side adds special video effect.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer performs any straight in above-described embodiment Broadcast video stream generating method.
In another embodiment provided by the invention, a kind of computer program product for including instruction is additionally provided, when it When running on computers so that computer performs any live video stream generating method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In or from a computer readable storage medium to another computer readable storage medium transmit, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is the data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It is understood that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device, Electronic equipment, computer readable storage medium, computer program product comprising instruction embodiment for, due to its basic phase Embodiment of the method is similar to, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Presently preferred embodiments of the present invention is above are only, is not intended to limit the scope of the present invention.It is all in this hair Any modifications, equivalent replacements and improvements are made within bright spirit and principle, are all contained in protection scope of the present invention.

Claims (27)

1. a kind of live video stream generating method, which is characterized in that including:
Server-side obtains the state parameter of client, and the state parameter includes:The corresponding algorithm of special video effect to be added is answered The current device performance parameters of equipment where miscellaneous degree and the client;
The server-side, using default execution decision-making device, judges whether to be added by the server-side according to the state parameter The special video effect obtains judging result, and the default execution decision-making device is the state based on multiple sample clients What parameter created, whether the sample client is known by server-side addition special video effect;
The judging result is sent to the client by the server-side;
If the judging result is to add the special video effect by the server-side, the server-side receives the client hair That send is not added with the pending video flowing of the special video effect;
The special video effect is added in the pending video flowing, obtains live video stream.
2. according to the method described in claim 1, it is characterized in that, the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
3. according to the method described in claim 1, it is characterized in that, the state parameter, further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
4. according to the method described in claim 1, it is characterized in that, described according to the state parameter, default execution is utilized Decision-making device judges whether to add the special video effect by server-side, including:
According to the following formula, the corresponding mapping value of the client is calculated:
<mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mn>0</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&lt;</mo> <mi>m</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mn>1</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&amp;GreaterEqual;</mo> <mi>m</mi> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
<mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>+</mo> <msup> <mi>e</mi> <mrow> <mo>-</mo> <mrow> <mo>(</mo> <msubsup> <mi>&amp;Sigma;</mi> <mi>i</mi> <mi>n</mi> </msubsup> <msub> <mi>&amp;theta;</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> </mrow> </msup> </mrow> </mfrac> </mrow>
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by the clothes Add the confidence level of the special video effect, x in business endiFor i-th of state parameter of the client, m is one default Threshold value;
If the corresponding mapping value of the client is 1, it is determined that judging result is does not add the video by the server-side Special efficacy;Alternatively,
If the corresponding mapping value of the client is 0, it is determined that judging result is that add the video by the server-side special Effect.
5. according to the method described in claim 1, it is characterized in that, described according to the state parameter, default execution is utilized Decision-making device judges whether to add the special video effect by the server-side, including:
According to the load factor of equipment where the state parameter and the server-side, using default execution decision-making device, judgement is It is no that the special video effect is added by the server-side.
6. a kind of live video stream generating method, which is characterized in that including:
Client sends the state parameter of the client, the shape to server-side after addition special video effect instruction is received State parameter includes:The current equipment performance ginseng of equipment where the corresponding algorithm complexity of special video effect and the client Number;
The client receives the judgement for indicating whether to be added the special video effect by the server-side that the server-side is sent As a result, the judging result is the server-side according to the state parameter, determined using default execution decision-making device, it is described It is default execution decision-making device be that the state parameter based on multiple sample clients creates, the sample client whether by Server-side addition special video effect is known;
If the judging result is to add the special video effect by the server-side, the client will be not added with the video The pending video stream of special efficacy is to the server-side.
7. it according to the method described in claim 6, it is characterized in that, further includes:
If the judging result is does not add the special video effect by the server-side, the client is in pending video flowing The middle addition special video effect, obtains live video stream.
8. a kind of live video stream generating method, which is characterized in that including:
After client receives addition special video effect instruction, the state parameter of the client is obtained, the state parameter includes:Institute The current device performance parameters of equipment where stating the corresponding algorithm complexity of special video effect and the client;
The client, using default execution decision-making device, judges whether as described in adding server-side according to the state parameter Special video effect, obtains judging result, and the default execution decision-making device is that the state parameter of multiple sample clients creates , whether the sample client is known by server-side addition special video effect;
The judging result is sent to the server-side by the client;
If the judging result is to add the special video effect by the server-side, the client will be not added with the video The pending video stream of special efficacy is to the server-side.
9. according to the method described in claim 8, it is characterized in that, the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
10. according to the method described in claim 8, it is characterized in that, the state parameter, further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
11. according to the method described in claim 8, it is characterized in that, described according to the state parameter, default execution is utilized Decision-making device judges whether to add the special video effect by server-side, including:
According to the following formula, the corresponding mapping value of the client is calculated:
<mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mn>0</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&lt;</mo> <mi>m</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mn>1</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&amp;GreaterEqual;</mo> <mi>m</mi> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
<mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>+</mo> <msup> <mi>e</mi> <mrow> <mo>-</mo> <mrow> <mo>(</mo> <msubsup> <mi>&amp;Sigma;</mi> <mi>i</mi> <mi>n</mi> </msubsup> <msub> <mi>&amp;theta;</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> </mrow> </msup> </mrow> </mfrac> </mrow>
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by the clothes Add the confidence level of the special video effect, x in business endiFor i-th of state parameter of the client, m is one default Threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is not add the special video effect by server-side;Or Person,
If the corresponding mapping value of client is 0, it is determined that judging result is to add the special video effect by server-side.
12. according to the method described in claim 8, it is characterized in that, described according to the state parameter, default execution is utilized Decision-making device judges whether to add the special video effect by server-side, including:
The load factor of equipment according to where the state parameter and server-side, using default execution decision-making device, judge whether by Server-side adds the special video effect.
13. a kind of live video stream generating apparatus, which is characterized in that including:
First parameter acquisition module, for obtaining the state parameter of client, the state parameter includes:Video to be added is special The current device performance parameters of equipment where imitating corresponding algorithm complexity and the client;
First decision-making module, for according to the state parameter, using default execution decision-making device, judging whether to be added by server-side Add the special video effect, obtain judging result, the default execution decision-making device is the shape based on multiple sample clients What state parameter created, whether the sample client is known by server-side addition special video effect;
First notification module, for the judging result to be sent to the client;
First receiving module, if being to add the special video effect by the server-side for the judging result, described in reception The pending video flowing for being not added with the special video effect that client is sent;
First special efficacy processing module for adding the special video effect in the pending video flowing, obtains live video stream.
14. device according to claim 13, which is characterized in that the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
15. device according to claim 13, which is characterized in that the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
16. device according to claim 13, which is characterized in that first decision-making module is specifically used for:
According to the following formula, the corresponding mapping value of the client is calculated:
<mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mn>0</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&lt;</mo> <mi>m</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mn>1</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&amp;GreaterEqual;</mo> <mi>m</mi> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
<mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>+</mo> <msup> <mi>e</mi> <mrow> <mo>-</mo> <mrow> <mo>(</mo> <msubsup> <mi>&amp;Sigma;</mi> <mi>i</mi> <mi>n</mi> </msubsup> <msub> <mi>&amp;theta;</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> </mrow> </msup> </mrow> </mfrac> </mrow>
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by the clothes Add the confidence level of the special video effect, x in business endiFor i-th of state parameter of the client, m is one default Threshold value;
If the corresponding mapping value of the client is 1, it is determined that judging result is does not add the video by the server-side Special efficacy;Alternatively,
If the corresponding mapping value of the client is 0, it is determined that judging result is that add the video by the server-side special Effect.
17. device according to claim 13, which is characterized in that first decision-making module is specifically used for:
According to the load factor of equipment where the state parameter and the server-side, using default execution decision-making device, judgement is It is no that the special video effect is added by the server-side.
18. a kind of live video stream generating apparatus, which is characterized in that including:
Parameter sending module, for after addition special video effect instruction is received, the state parameter of client to be sent to server-side, The state parameter includes:The current equipment of equipment where the corresponding algorithm complexity of special video effect and the client It can parameter;
Decision-making receiving module adds the special video effect for indicating whether of receiving that the server-side sends by the server-side Judging result, the judging result is the server-side according to the state parameter, is determined using default execution decision-making device , the default execution decision-making device is that the state parameter based on multiple sample clients creates, the sample client Whether end is known by server-side addition special video effect;
First plug-flow module if being to add the special video effect by the server-side for the judging result, will be not added with The pending video stream of the special video effect is to the server-side.
19. device according to claim 18, which is characterized in that further include:
Second special efficacy processing module, if for the judging result not add the special video effect by the server-side, The special video effect is added in pending video flowing, obtains live video stream.
20. a kind of live video stream generating apparatus, which is characterized in that including:
Second parameter acquisition module after receiving addition special video effect instruction, obtains the state parameter of client, the state Parameter includes:The current device performance parameters of equipment where the corresponding algorithm complexity of special video effect and the client;
Second decision-making module, for according to the state parameter, using default execution decision-making device, judging whether to be added by server-side Add the special video effect, obtain judging result, the default execution decision-making device is the shape based on multiple sample clients What state parameter created, whether the sample client is known by server-side addition special video effect;
Second notification module, for the judging result to be sent to the server-side;
Second plug-flow module if being to add the special video effect by the server-side for the judging result, will be not added with The pending video stream of the special video effect is to the server-side.
21. device according to claim 20, which is characterized in that the device performance parameters, including:
Electrical parameter for the ability parameter for representing the operational capability of CPU and/or for representing remaining capacity.
22. device according to claim 20, which is characterized in that the state parameter further includes:
For representing the communication state parameters of the communications status between the server-side and the client.
23. device according to claim 20, which is characterized in that second decision-making module is specifically used for:
According to the following formula, the corresponding mapping value of the client is calculated:
<mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mn>0</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&lt;</mo> <mi>m</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mn>1</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>&amp;GreaterEqual;</mo> <mi>m</mi> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
<mrow> <msub> <mi>h</mi> <mi>&amp;theta;</mi> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>+</mo> <msup> <mi>e</mi> <mrow> <mo>-</mo> <mrow> <mo>(</mo> <msubsup> <mi>&amp;Sigma;</mi> <mi>i</mi> <mi>n</mi> </msubsup> <msub> <mi>&amp;theta;</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> </mrow> </msup> </mrow> </mfrac> </mrow>
Wherein, θiFor it is described execution decision-making device i-th of default model parameter, i be a positive integer, hθ(x) it is not by the clothes Add the confidence level of the special video effect, x in business endiFor i-th of state parameter of the client, m is one default Threshold value;
If the corresponding mapping value of client is 1, it is determined that judging result is by the server-side addition special video effect; Alternatively,
If the corresponding mapping value of client is 0, it is determined that judging result is to add the special video effect by the server-side.
24. device according to claim 20, which is characterized in that second decision-making module is specifically used for:
According to the load factor of equipment where the state parameter and the server-side, using default execution decision-making device, judgement is It is no that the special video effect is added by the server-side.
25. a kind of electronic equipment, which is characterized in that logical including first processor, the first communication interface, first memory and first Believe bus, wherein, first processor, the first communication interface, first memory is completed mutual logical by the first communication bus Letter;
First memory, for storing computer program;
First processor during for performing the program stored on first memory, realizes any sides of claim 1-5 Method step.
26. a kind of electronic equipment, which is characterized in that logical including second processor, the second communication interface, second memory and second Believe bus, wherein, second processor, the second communication interface, second memory is completed mutual logical by the second communication bus Letter;
Second memory, for storing computer program;
Second processor during for performing the program stored on second memory, realizes any sides of claim 6-7 Method step.
27. a kind of electronic equipment, which is characterized in that including the 3rd processor, third communication interface, the 3rd memory and threeway Believe bus, wherein, the 3rd processor, third communication interface, the 3rd memory is completed mutual logical by third communication bus Letter;
3rd memory, for storing computer program;
3rd processor during for performing the program stored on memory, realizes any methods of claim 8-12 Step.
CN201711406028.5A 2017-12-22 2017-12-22 Live video stream generation method and device and electronic equipment Active CN108111913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711406028.5A CN108111913B (en) 2017-12-22 2017-12-22 Live video stream generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711406028.5A CN108111913B (en) 2017-12-22 2017-12-22 Live video stream generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108111913A true CN108111913A (en) 2018-06-01
CN108111913B CN108111913B (en) 2021-08-27

Family

ID=62212449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711406028.5A Active CN108111913B (en) 2017-12-22 2017-12-22 Live video stream generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108111913B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194609A1 (en) * 2001-06-18 2002-12-19 Tran Thanh T. Video client with dynamically allocable video buffer for efficiently streaming video
US6832239B1 (en) * 2000-07-07 2004-12-14 International Business Machines Corporation Systems for managing network resources
CN1859403A (en) * 2006-02-09 2006-11-08 华为技术有限公司 Method for ability consulting in customer end/server mode service system
CN101662506A (en) * 2009-10-14 2010-03-03 中兴通讯股份有限公司 Load balancing method based on CPU kernel sharing and device thereof
CN102254292A (en) * 2010-05-20 2011-11-23 盛乐信息技术(上海)有限公司 Remote 3D instruction rendering system and method
CN102523107A (en) * 2011-12-02 2012-06-27 中兴通讯股份有限公司 Method and device for equalizing operating pressure of server side and client side of network management system
US8253732B2 (en) * 2008-01-03 2012-08-28 International Business Machines Corporation Method and system for remote visualization client acceleration
US20120304174A1 (en) * 2009-06-01 2012-11-29 International Business Machines Corporation Virtual solution composition and deployment system and method
CN103200350A (en) * 2013-03-29 2013-07-10 北京中科大洋科技发展股份有限公司 Nonlinear cloud editing method
US20140040959A1 (en) * 2012-08-03 2014-02-06 Ozgur Oyman Device orientation capability exchange signaling and server adaptation of multimedia content in response to device orientation
CN103597844A (en) * 2011-04-19 2014-02-19 传感电子有限责任公司 Method and system for load balancing between video server and client
CN104822047A (en) * 2015-04-16 2015-08-05 中国科学院上海技术物理研究所 Network-based self-adaptive medical image transmission display method
CN105791148A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 System and method for automatically equalizing load of server
CN106302477A (en) * 2016-08-18 2017-01-04 合网络技术(北京)有限公司 A kind of net cast method of testing and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832239B1 (en) * 2000-07-07 2004-12-14 International Business Machines Corporation Systems for managing network resources
US20020194609A1 (en) * 2001-06-18 2002-12-19 Tran Thanh T. Video client with dynamically allocable video buffer for efficiently streaming video
CN1859403A (en) * 2006-02-09 2006-11-08 华为技术有限公司 Method for ability consulting in customer end/server mode service system
US8253732B2 (en) * 2008-01-03 2012-08-28 International Business Machines Corporation Method and system for remote visualization client acceleration
US20120304174A1 (en) * 2009-06-01 2012-11-29 International Business Machines Corporation Virtual solution composition and deployment system and method
CN101662506A (en) * 2009-10-14 2010-03-03 中兴通讯股份有限公司 Load balancing method based on CPU kernel sharing and device thereof
CN102254292A (en) * 2010-05-20 2011-11-23 盛乐信息技术(上海)有限公司 Remote 3D instruction rendering system and method
CN103597844A (en) * 2011-04-19 2014-02-19 传感电子有限责任公司 Method and system for load balancing between video server and client
CN102523107A (en) * 2011-12-02 2012-06-27 中兴通讯股份有限公司 Method and device for equalizing operating pressure of server side and client side of network management system
US20140040959A1 (en) * 2012-08-03 2014-02-06 Ozgur Oyman Device orientation capability exchange signaling and server adaptation of multimedia content in response to device orientation
CN103200350A (en) * 2013-03-29 2013-07-10 北京中科大洋科技发展股份有限公司 Nonlinear cloud editing method
CN105791148A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 System and method for automatically equalizing load of server
CN104822047A (en) * 2015-04-16 2015-08-05 中国科学院上海技术物理研究所 Network-based self-adaptive medical image transmission display method
CN106302477A (en) * 2016-08-18 2017-01-04 合网络技术(北京)有限公司 A kind of net cast method of testing and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PANZAN6734: "WebGIS(万维网地理信息系统)", 《HTTPS://BLOG.CSDN.NET/PANZAN6734/ARTICLE/DETAILS/429617》 *

Also Published As

Publication number Publication date
CN108111913B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN106817226B (en) A kind of method of supplying power to and PSE based on PoE
CN107360032B (en) Network flow identification method and electronic equipment
CN109495476B (en) Data stream differential privacy protection method and system based on edge calculation
US8942217B2 (en) System and method for hierarchical link aggregation
CN110134711A (en) Processing method, device, equipment and the computer readable storage medium of big data
CN106209388B (en) A kind of power management method of Power over Ethernet, power supply unit and power receiving equipment
CN107197489A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN103946825B (en) The apparatus and method selecting for the network equipment
CN105700955A (en) Resource allocation method for server system
CN107454136B (en) Calculation unloading method and device based on end-to-end P2P and control equipment
CN110991512B (en) Combined training method of object recognition model, server and electrical equipment
CN107659509A (en) Control application traffic application method, device, readable storage medium storing program for executing and terminal device
CN110429982A (en) Data transmission method and relevant apparatus
CN107040747A (en) Video calling method of adjustment and system
CN116227630A (en) Federal learning method and related equipment
CN110061924A (en) A kind of message forwarding method, device and Related product
CN116388112B (en) Abnormal supply end power-off method, device, electronic equipment and computer readable medium
CN108111913A (en) A kind of generation method of live video stream, device and electronic equipment
CN114565105B (en) Data processing method and training method and device of deep learning model
CN110515819A (en) Performance test methods, electronic equipment, scheduling system and medium
CN109788326A (en) A kind of video resource pre-push method, apparatus and system
CN109068355A (en) A kind of method, phone wrist-watch, server and mobile terminal for saving data traffic
CN107277877A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN108667757A (en) Manchester code sampling processing method, module and decoder
CN105959399B (en) A kind of method and apparatus of load distribution

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