CN112738571B - Method and device for determining streaming media parameters - Google Patents

Method and device for determining streaming media parameters Download PDF

Info

Publication number
CN112738571B
CN112738571B CN202011470243.3A CN202011470243A CN112738571B CN 112738571 B CN112738571 B CN 112738571B CN 202011470243 A CN202011470243 A CN 202011470243A CN 112738571 B CN112738571 B CN 112738571B
Authority
CN
China
Prior art keywords
determining
streaming media
alternative
flow
candidate
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.)
Active
Application number
CN202011470243.3A
Other languages
Chinese (zh)
Other versions
CN112738571A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011470243.3A priority Critical patent/CN112738571B/en
Publication of CN112738571A publication Critical patent/CN112738571A/en
Application granted granted Critical
Publication of CN112738571B publication Critical patent/CN112738571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Landscapes

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

Abstract

The invention discloses a method and a device for determining streaming media parameters, wherein the method comprises the following steps: determining a flow limit value of the streaming media based on the performance parameters and the network parameters of the streaming equipment; determining an alternative parameter set according to the flow limit value of the streaming media; the alternative parameter group comprises a first alternative parameter and a second alternative parameter which are matched; the flow values corresponding to the matched first candidate parameter and second candidate parameter do not exceed the flow limit value of the streaming media; a preferred parameter set is determined from the candidate parameter sets based on an evaluation algorithm. Determining a flow limit value of the streaming media based on the performance parameters and the network parameters of the streaming device, and determining a preferred parameter group by combining the flow limit value of the streaming media, thereby automatically completing the setting of the parameters of the streaming media, and enabling a receiving end to play the streaming media according to the preferred parameter group to improve the playing effect; the process of manually setting the streaming media parameters is avoided, the user operation is simplified, and the performance and the network resources of the stream pushing equipment are brought into play as much as possible.

Description

Method and device for determining streaming media parameters
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining streaming media parameters.
Background
Video playing based on streaming media has a very wide application in the present stage. In scenarios such as live webcast and web conference, there are usually high performance requirements and network quality requirements for devices used for streaming. The higher the performance and network quality of the stream pushing device is, the more streaming media traffic it can push in a unit time. The corresponding receiving end can play the video picture with higher definition, and more ideal playing experience is obtained.
In real-world situations, theoretically every user may have a demand for plug-streaming, but not every user has a high-performance professional device and a high-speed network. Therefore, when a user needs to push streaming, the user needs to manually set video parameters to determine the playing quality of the streaming media pushed by the user. It is conceivable that most of the ordinary users cannot set the video parameters to relatively ideal effects in combination with their own device and network conditions.
Disclosure of Invention
The invention provides a method and a device for determining streaming media parameters, which are used for at least solving the technical problems in the prior art.
In a first aspect, the present invention provides a method for determining streaming media parameters, including:
determining a flow limit value of the streaming media based on the performance parameters and the network parameters of the streaming equipment;
determining an alternative parameter set according to the flow limit value of the streaming media; the candidate parameter group comprises a first candidate parameter and a second candidate parameter which are matched; the flow numerical value corresponding to the matched first candidate parameter and the second candidate parameter does not exceed the flow limit value of the streaming media;
a preferred parameter set is determined from the candidate parameter sets based on an evaluation algorithm.
Preferably, the determining the streaming media traffic limit based on the performance parameter and the network parameter of the stream pushing device includes:
determining a total traffic limit based on the performance parameter and the network parameter;
determining the flow limit value of the streaming media according to the compression ratio of the streaming media and the total flow limit value;
the streaming media compression ratio is a streaming media data compression ratio determined according to a streaming media coding mode.
Preferably, the determining the streaming media flow limit according to the streaming media compression ratio and the total flow limit includes:
determining a quotient value of the total flow limit value and the streaming media compression ratio as a full load limit value;
and determining the flow limit value of the streaming media according to a preset current limit threshold value and the full load limit value.
Preferably, if the first candidate parameter is a candidate frame rate, and the second candidate parameter is a candidate resolution, the determining a candidate parameter group according to the streaming media flow limit value includes:
determining at least 2 alternative frame rates according to a preset first alternative threshold; determining the alternative resolution ratio matched with each alternative frame rate;
or, determining at least 2 candidate resolutions according to a preset second candidate threshold; determining the alternative frame rate matched with each alternative resolution;
determining the matched alternative frame rate and alternative resolution as the alternative parameter group;
and the flow numerical values corresponding to the matched alternative frame rate and alternative resolution comprise the flow media code rate.
Preferably, the evaluation algorithm comprises a gradient function algorithm and a sum of squared errors algorithm; said determining a preferred parameter set from said set of alternative parameters based on an evaluation algorithm comprises:
determining a definition index of the alternative parameter group according to the gradient function algorithm;
determining fluency indexes of the alternative parameter sets according to the error sum of squares algorithm;
determining an evaluation index according to the definition index and the fluency index;
and determining the candidate parameter group with the evaluation index meeting the preset condition as the preferred parameter group.
Preferably, the determining the fluency indicator of the candidate parameter set according to the sum of squared errors algorithm comprises:
determining a plurality of time reference points in a video period, and determining frame time corresponding to each time reference point in the video period;
determining the difference value between each time reference point and the corresponding frame time as a time error;
and calculating the square sum of each time error to serve as the fluency index.
Preferably, the method further comprises the following steps:
and configuring the streaming media pushed by the stream pushing equipment based on the preferred parameter group.
In a second aspect, the present invention provides an apparatus for determining streaming media parameters, including:
the flow limit determining module is used for determining the flow limit of the flow media based on the performance parameters and the network parameters of the flow pushing equipment;
the alternative parameter group determining module is used for determining an alternative parameter group according to the streaming media flow limit value; the alternative parameter group comprises a first alternative parameter and a second alternative parameter which are matched; the flow numerical value corresponding to the matched first candidate parameter and the second candidate parameter does not exceed the flow limit value of the streaming media;
and the preferred parameter group determining module is used for determining a preferred parameter group from the alternative parameter groups based on an evaluation algorithm.
In a third aspect, the present invention provides a computer-readable storage medium, which stores a computer program for executing the method for determining streaming media parameters according to the present invention.
In a fourth aspect, the present invention provides an electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instruction from the memory and executing the instruction to realize the method for determining the streaming media parameter.
Compared with the prior art, the method and the device for determining the streaming media parameters provided by the invention have the advantages that the streaming media flow limit value is determined based on the performance parameters and the network parameters of the streaming device, and the preferred parameter group is determined by combining the streaming media flow limit value, so that the setting of the streaming media parameters is automatically completed, and a receiving end can play the streaming media according to the preferred parameter group to improve the playing effect; the process of manually setting the streaming media parameters is avoided, the user operation is simplified, and the performance and the network resources of the stream pushing equipment are brought into play as much as possible.
Drawings
Fig. 1 is a flowchart illustrating a method for determining streaming media parameters according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another method for determining streaming media parameters according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for determining streaming media parameters according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In scenarios such as live webcasting, web conferencing, etc., there are usually high performance requirements and network quality requirements for devices used for streaming. The higher the performance and network quality of the stream pushing device is, the more streaming media traffic it can push per unit time. The corresponding receiving end can play the video picture with higher definition, and more ideal playing experience is obtained.
In reality any user may have a demand for plug flow. For example, each user may act as a "anchor" for a live network, or a "moderator" for a network conference. On the other hand, not every user has a high-performance professional device and a high-speed network. The general user often only uses a common mobile phone or PC as a stream pushing device, so that the general user is likely to be restricted by the device performance and cannot push enough stream media flow to support the highest playing image quality.
In this case, the user needs to manually set the streaming media parameters and determine the playing quality of the streaming media pushed by the user. So as to improve the playing effect as much as possible under the limited performance condition and network condition. However, the process of calculating the streaming media parameters by combining the device and network condition evaluation is complex, and a user needs to have a large amount of related experience; so that most of ordinary users cannot reasonably complete the setting. That is, there is no solution in the prior art for automatically determining streaming media parameters.
Therefore, embodiments of the present invention provide a method for determining streaming media parameters, so as to solve at least the above technical problems in the prior art. As shown in fig. 1, the method in this embodiment includes the following steps:
step 101, determining a flow limit value of the streaming media based on a performance parameter and a network parameter of the stream pushing equipment.
The stream pushing device is a terminal device used by a user to push the stream media. In practical applications, the stream pushing device may be a device for performing live webcasting, or a device for sharing various multimedia information such as video, pictures, sound, and the like in a web conference, and the like. On the hardware level, the stream pushing equipment can be a smart phone, a PC and the like. In this embodiment, the actual hardware performance and network quality of the stream pushing device are combined to determine the parameters of the stream media pushed by the stream pushing device, so that the receiving end (i.e. the audience) achieves a relatively ideal playing effect. The performance parameters may include specific parameters and load states of main hardware such as a CPU, a GPU, and a memory of the stream pushing device. The network parameter refers to the uplink and downlink rates of the communication network to which the stream pushing equipment is currently accessed.
To determine the streaming media parameters, a streaming media flow limit is first determined in this step. The flow limit of the streaming media represents an upper limit of a flow value (i.e., data volume) that the streaming device can push the streaming media in a unit time under the current performance parameters and network parameters. In this embodiment, the process of determining the flow limit of the streaming media is as follows:
first, a total traffic limit is determined based on the performance parameters and the network parameters. The total flow limit means the current total network bandwidth of the stream pushing device, that is, the upper limit of the amount of data that can actually be sent by the stream pushing device per unit time. For example, the total flow limit may be assumed to be 1000kbps (kilobits per second).
And then determining the flow limit of the streaming media according to the compression ratio of the streaming media and the total flow limit. Because the streaming media can be compressed during transmission, different streaming media encoding modes correspond to different data compression ratios. Therefore, the actual streaming media compression ratio can be determined according to the streaming media coding mode selected during stream pushing. For example, it may be assumed that the streaming media compression ratio is specifically 0.8.
The total flow limit can then be divided by the media compression ratio to determine the full load limit. The full load limit means the maximum flow value of the (uncompressed) streaming media that the stream pushing device can support per unit time. If the flow value of the streaming media in unit time exceeds the full load limit, the push equipment cannot complete push in real time due to insufficient network bandwidth. The full-load limit value in this embodiment is 1000kbps/0.8=1250kbps.
The full loading limit could theoretically be determined directly as the streaming media flow limit. However, in order to ensure stability during the process of the push flow and avoid the push flow occupying the whole network bandwidth to influence other programs to operate, the current limit threshold value can be preferably set. And determining the flow limit of the streaming media according to the preset flow limit threshold and the full load limit. Assuming that the current limit threshold is 60% in this embodiment, the streaming media flow limit is 1250kbps × 60% =750kbps. That is, in this embodiment, the streaming media flow value pushed by the stream pushing device cannot exceed 750kbps.
And 102, determining an alternative parameter set according to the flow limit value of the streaming media.
After the flow limit of the streaming media is determined, how to set the parameters of the streaming media can be further determined, so that the playing effect of the streaming media can be improved as much as possible on the premise that the flow value of the streaming media does not exceed the flow limit of the streaming media.
In this embodiment, at least 2 sets of candidate parameter sets are determined according to the streaming media traffic limit. The set of candidate parameters comprises a first candidate parameter and a second candidate parameter that match. The first candidate parameter and the second candidate parameter may jointly determine a flow value of the streaming media. The matched first candidate parameter and second candidate parameter are that the flow value of the streaming media corresponding to the first candidate parameter and the second candidate parameter does not exceed the flow limit value of the streaming media, and the flow value of the streaming media is made as higher as possible under the precondition.
The content of the first alternative parameter and the second alternative parameter may depend on the specific form of the streaming media. For example, the streaming media is in the form of video, the first candidate parameter and the second candidate parameter may be the frame rate and resolution of the video. If the streaming media is in the form of audio, the first alternative parameter and the second alternative parameter may be an audio frame rate and a sampling rate of the audio. This is not limited in this embodiment.
And 103, determining a preferred parameter group from the candidate parameter groups based on the evaluation algorithm.
After determining the plurality of sets of candidate parameters, the first candidate parameter and the second candidate parameter in which set of candidate parameters is calculated further according to an evaluation algorithm, and the playing of the streaming media can achieve a better effect by combining the first candidate parameter and the second candidate parameter. Thereby determining the most effective candidate parameter set as the preferred parameter set.
Taking the form of streaming media as an example, the first candidate parameter and the second candidate parameter may be a frame rate and a resolution of the video. It can be understood that both the frame rate and the resolution have an effect on the playing effect of the video. The higher the frame rate, the higher the fluency of the video, and the higher the resolution, the higher the sharpness of the video. However, due to the flow limit of the streaming media, in the case of a limited flow value, one of the frame rate and the resolution is increased, and the other is necessarily decreased. Therefore, the two must be balanced in the setting process, so that the playing effect is better on the whole.
Therefore, the preferred parameter set is considered to be the streaming media parameter that is relatively ideal for the push streaming device under the current performance parameter and network parameter. In this embodiment, the streaming media pushed by the stream pushing device may be configured based on the preferred parameter group. The stream pushing device pushes the stream media according to the preferred parameter set, and the receiving end can play the stream media according to the preferred parameter set to improve the playing effect.
It should be noted that, during a long-time flow pushing process, the performance parameters and the network parameters of the flow pushing device may also change. Therefore, in this embodiment, the performance parameter and the network parameter of the stream pushing device may be re-determined in real time, and the streaming media traffic limit value may be updated accordingly. And repeating the subsequent processes to re-determine the preferred parameter group, and re-setting the streaming media parameters. So as to further improve the streaming media playing experience.
Therefore, the method in the embodiment automatically determines relatively ideal streaming media parameters based on the performance parameters and the network parameters. According to the technical scheme, the beneficial effects of the embodiment are as follows: determining a flow limit value of the streaming media based on the performance parameters and the network parameters of the streaming device, and determining a preferred parameter group by combining the flow limit value of the streaming media, thereby automatically completing the setting of the parameters of the streaming media, so that a receiving end can play the streaming media according to the preferred parameter group to improve the playing effect; the process of manually setting the streaming media parameters is avoided, the user operation is simplified, and the performance and the network resources of the stream pushing equipment are brought into play as much as possible.
Fig. 1 is only a basic embodiment of the method of the present invention, and based on this, certain optimization and expansion can be performed, and other preferred embodiments of the method can also be obtained.
Fig. 2 shows another embodiment of the method for determining streaming media parameters according to the present invention. On the basis of the foregoing embodiments, the present embodiment specifically discloses a calculation process of an evaluation algorithm. The method specifically comprises the following steps:
step 201, determining a flow limit value of the streaming media based on the performance parameter and the network parameter of the stream pushing equipment.
The content of step 201 in this embodiment is the same as that in the previous embodiment, and the description is not repeated here.
Step 202, determining the alternative parameter set according to the flow limit value of the streaming media.
In this embodiment, the form of the streaming media is specifically video. The first candidate parameter is the candidate frame rate and the second candidate parameter is the candidate resolution. The process of determining the alternative parameter set may specifically be as follows:
determining at least 2 alternative frame rates according to a preset first alternative threshold; and determining the alternative resolution matched with each alternative frame rate. And determining the matched alternative frame rate and alternative resolution as an alternative parameter set. And the flow numerical value corresponding to the matched alternative frame rate and the alternative resolution is the flow code rate of the streaming media, and the flow code rate of the streaming media does not exceed the flow limit value of the streaming media.
The first alternative threshold, that is, the range of the frame rate in the normal video, may be 30 to 60 frames/second in this embodiment. Generally, the frame rate is lower than the range, the video playing effect is severely visually jammed; above this range, the visual effect is not significantly enhanced. Within the range of the first alternative threshold, the alternative frame rate may be selected with 10 frames/second as a step size. I.e. 4 alternative frame rates of 30, 40, 50, 60 frames/second can be obtained.
For video, the flow value determined by both frame rate and resolution is the streaming media code rate. Therefore, the matched alternative resolution can be determined according to each alternative frame rate based on the existing code rate comparison table. The matched alternative frame rate and alternative resolution means that the bitrate of the streaming media determined by the two is not more than the flow limit value of the streaming media, and the bitrate of the streaming media is made as higher as possible under the premise so as to achieve the playing effect as better as possible.
Or, similarly, in this embodiment, at least 2 candidate resolutions may also be determined according to a preset second candidate threshold; and determining the alternative frame rate matched with each alternative resolution. That is, the alternative resolution is determined according to the value range of the resolution in the normal video, and the matched alternative frame rate is determined accordingly, which is not described repeatedly herein.
The matching candidate frame rate and candidate resolution will constitute the candidate parameter set. For example, in the present embodiment, the 4 candidate parameter sets may be determined to be (30 frames/sec, 1080 p), (40 frames/sec, 720 p), (50 frames/sec, 480 p), (60 frames/sec, 320 p), respectively. Of these, 1080p,720p,480p and 320p are resolution representations well known in the art, and need not be described herein.
And step 203, determining the definition index of the alternative parameter group according to a gradient function algorithm.
In the present embodiment, the evaluation algorithm includes a gradient function algorithm and a sum of squared errors algorithm. And the gradient function algorithm is used for evaluating the definition of the video by combining the alternative resolution in the alternative parameters to obtain a definition index. The following formula may be referenced:
D(f)=∑ xy |G(x,y)|
wherein, D (f) represents the definition index, G (x, y) represents the convolution of the edge detection operators of the pixel points (x, y) in the horizontal and vertical directions. Determining the sharpness index using a gradient function algorithm in combination with resolution is a conventional algorithm in the art and will not be described herein.
And step 204, determining fluency indexes of the alternative parameter sets according to the error square sum algorithm.
In this embodiment, the fluency indicator is calculated by using a sum of squared errors algorithm in combination with the candidate frame rate in the candidate parameter set. Namely, the uniform condition of the distribution of each frame image in the video along the time is analyzed by determining a plurality of time reference points in the video period and determining the frame time corresponding to each time reference point in the video period. Specifically, the difference between each time reference point and the corresponding frame time may be determined as a time error; the sum of the squares of the time errors is calculated as the fluency indicator.
For example, 20 time reference points may be uniformly set within a duration of 1 second, with every two adjacent time reference points being spaced apart by 50 milliseconds. The time at which each temporal reference point occurs may be denoted by T0. Then finding out the video frame nearest to each time reference point in the video, taking the time of the video frame as the frame time corresponding to the time reference point, and expressing the frame time as T1
The fluency index is calculated as follows:
SSE=∑(T0-T1) 2
wherein, SSE represents fluency index, and T0 and T1 represent any time reference point and corresponding frame time.
And step 205, determining an evaluation index according to the definition index and the fluency index.
And performing weighted calculation on the definition index and the fluency index to obtain an evaluation index, wherein the evaluation index refers to the following formula:
Z=a*D(f)+b*SSE
wherein Z represents an evaluation index, a represents a weight coefficient of the clarity index, and b represents a weight coefficient of the fluency index.
And step 206, determining the candidate parameter group with the evaluation index meeting the preset condition as the preferred parameter group.
According to the algorithm, the evaluation index corresponding to each candidate parameter set can be calculated. The candidate parameter group having the highest evaluation index value may be determined as the preferred parameter group by considering that the candidate parameter group satisfies the preset condition.
It should be noted that, if the performance parameters and network parameters of the streaming device are less than ideal, and the video effect played according to the preferred parameter set is still poor, the server may further perform processing such as frame insertion and image quality enhancement, so as to improve the streaming media playing effect of the receiving end. In other cases, the receiver may not normally perform playback according to the preferred parameter set due to the performance of the receiver or the limit of the network environment, and the playback quality may also be reduced by the setting of the receiver, so that the receiver can normally complete playback.
Fig. 3 shows an embodiment of the apparatus for determining streaming media parameters according to the present invention. The apparatus of this embodiment is a physical apparatus for performing the method described in fig. 1-2. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in the embodiment comprises:
a streaming media flow limit determining module 301, configured to determine a streaming media flow limit based on a performance parameter and a network parameter of the stream pushing device.
A candidate parameter set determining module 302, configured to determine a candidate parameter set according to a streaming media flow limit value; the alternative parameter group comprises a first alternative parameter and a second alternative parameter which are matched; and the flow numerical values corresponding to the matched first alternative parameters and second alternative parameters do not exceed the flow limit value of the streaming media.
A preferred parameter set determining module 303, configured to determine a preferred parameter set from the candidate parameter sets based on an evaluation algorithm.
In addition, on the basis of the embodiment shown in fig. 3, it is preferable that:
the streaming media traffic limit determining module 301 includes:
a total traffic limit determining unit 311 for determining a total traffic limit based on the performance parameter and the network parameter.
A streaming media flow limit determining unit 312, configured to determine a streaming media flow limit according to a streaming media compression ratio and a total flow limit; the stream media compression ratio is the stream media data compression ratio determined according to the stream media coding mode.
The streaming media traffic limit determining unit 312 includes:
a full load limit determining subunit 3121, configured to determine a quotient of the total flow limit and the streaming media compression ratio as a full load limit.
The streaming media flow limit determining subunit 3122 is configured to determine a streaming media flow limit according to a preset flow limit threshold and a full load limit.
If the first candidate parameter is a candidate frame rate and the second candidate parameter is a candidate resolution, the candidate parameter set determining module 302 includes:
a first candidate unit 321, configured to determine at least 2 candidate frame rates according to a preset first candidate threshold; and determining the alternative resolution matched with each alternative frame rate.
A second candidate unit 322, configured to determine at least 2 candidate resolutions according to a preset second candidate threshold; and determining the alternative frame rate matched with each alternative resolution.
A candidate parameter set determining unit 323 configured to determine the matched candidate frame rate and candidate resolution as a candidate parameter set; and the flow numerical values corresponding to the matched alternative frame rate and the alternative resolution comprise the flow media code rate.
The evaluation algorithm comprises a gradient function algorithm and an error square sum algorithm; the preferred parameter group determining module 303 includes:
the sharpness evaluation unit 331 is configured to determine a sharpness index of the candidate parameter set according to a gradient function algorithm.
And a fluency evaluation unit 332, configured to determine a fluency index of the candidate parameter group according to the error sum of squares algorithm.
An evaluation index determination unit 333 configured to determine an evaluation index according to the clarity index and the fluency index.
A preference unit 334, configured to determine, as the preferred parameter group, the candidate parameter group whose evaluation index satisfies the preset condition.
The fluency evaluation unit 332 includes:
a time determination subunit 3321, configured to determine a plurality of time reference points in the video period, and determine a frame time corresponding to each time reference point in the video period.
An error determining subunit 3322, configured to determine a difference between each time reference point and the corresponding frame time as a time error.
A fluency determination subunit 3323, configured to calculate a sum of squares of the respective time errors as a fluency indicator.
Further comprising:
a configuration module 304, configured to configure streaming media pushed by the streaming device based on the preferred parameter group.
In addition to the above-described methods and apparatus, embodiments of the invention may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of the invention described in the "exemplary methods" section above of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present invention in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present invention may also be a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to perform steps in methods according to various embodiments of the present invention described in the "exemplary methods" section above of this specification.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present invention have been described above with reference to specific embodiments, but it should be noted that the advantages, effects, etc. mentioned in the present invention are only examples and are not limiting, and the advantages, effects, etc. must not be considered to be possessed by various embodiments of the present invention. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the invention is not limited to the specific details described above.
The block diagrams of devices, apparatus, apparatuses, systems involved in the present invention are by way of illustrative examples only and are not intended to require or imply that the devices, apparatus, apparatuses, systems must be connected, arranged, or configured in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by one skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses and methods of the present invention, the components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the invention to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (9)

1. A method for determining streaming media parameters, comprising:
determining a total flow limit value based on the performance parameters and the network parameters of the flow pushing equipment;
determining a flow limit value of the streaming media according to the compression ratio of the streaming media and the total flow limit value;
determining at least 2 alternative frame rates according to a preset first alternative threshold; determining alternative resolution ratios matched with the alternative frame rates;
or, determining at least 2 candidate resolutions according to a preset second candidate threshold; determining the alternative frame rate matched with each alternative resolution;
determining the matched alternative frame rate and alternative resolution as alternative parameter sets;
the flow values corresponding to the matched alternative frame rate and the alternative resolution comprise the flow media code rate; the flow value does not exceed the flow limit value of the streaming media;
a preferred parameter set is determined from the candidate parameter sets based on an evaluation algorithm.
2. The method of claim 1, wherein the streaming media compression ratio is a streaming media data compression ratio determined according to a streaming media coding mode.
3. The method of claim 2, wherein determining the streaming media traffic limit based on the streaming media compression ratio and the total traffic limit comprises:
determining a quotient value of the total flow limit value and the streaming media compression ratio as a full load limit value;
and determining the flow limit value of the streaming media according to a preset current limit threshold value and the full load limit value.
4. The method of claim 1, wherein the evaluation algorithm comprises a gradient function algorithm and a sum of squared error algorithm; said determining a preferred parameter set from said candidate parameter sets based on an evaluation algorithm comprises:
determining a definition index of the candidate parameter set according to the gradient function algorithm;
determining fluency indexes of the alternative parameter sets according to the error sum of squares algorithm;
determining an evaluation index according to the definition index and the fluency index;
and determining the candidate parameter group with the evaluation index meeting the preset condition as the preferred parameter group.
5. The method of claim 4, wherein determining a fluency indicator for the set of alternative parameters according to the sum-of-squared errors algorithm comprises:
determining a plurality of time reference points in a video period, and determining frame time corresponding to each time reference point in the video period;
determining the difference between each time reference point and the corresponding frame time as a time error;
and calculating the square sum of each time error to serve as the fluency index.
6. The method of any of claims 1 to 5, further comprising:
and configuring the streaming media pushed by the pushing equipment based on the preferred parameter group.
7. An apparatus for determining streaming media parameters, comprising:
the flow media flow limit value determining module is used for determining a total flow limit value based on the performance parameters and the network parameters of the flow pushing equipment; determining a flow limit value of the streaming media according to the compression ratio of the streaming media and the total flow limit value;
the candidate parameter group determining module is used for determining at least 2 candidate frame rates according to a preset first candidate threshold; determining alternative resolution ratios matched with the alternative frame rates;
or, determining at least 2 candidate resolutions according to a preset second candidate threshold; determining the alternative frame rate matched with each alternative resolution;
determining the matched alternative frame rate and alternative resolution as alternative parameter sets; the flow numerical values corresponding to the matched alternative frame rate and alternative resolution comprise the flow media code rate; the flow value does not exceed the flow limit value of the streaming media;
and the preferred parameter group determining module is used for determining a preferred parameter group from the alternative parameter groups based on an evaluation algorithm.
8. A computer-readable storage medium, which stores a computer program for executing the method for determining streaming media parameters according to any one of claims 1 to 6.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for determining streaming media parameters according to any one of claims 1 to 6.
CN202011470243.3A 2020-12-14 2020-12-14 Method and device for determining streaming media parameters Active CN112738571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011470243.3A CN112738571B (en) 2020-12-14 2020-12-14 Method and device for determining streaming media parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011470243.3A CN112738571B (en) 2020-12-14 2020-12-14 Method and device for determining streaming media parameters

Publications (2)

Publication Number Publication Date
CN112738571A CN112738571A (en) 2021-04-30
CN112738571B true CN112738571B (en) 2022-11-22

Family

ID=75599821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011470243.3A Active CN112738571B (en) 2020-12-14 2020-12-14 Method and device for determining streaming media parameters

Country Status (1)

Country Link
CN (1) CN112738571B (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586431B (en) * 2020-06-05 2022-03-15 广州酷狗计算机科技有限公司 Method, device and equipment for live broadcast processing and storage medium

Also Published As

Publication number Publication date
CN112738571A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US8892764B1 (en) Dynamic selection of parameter sets for transcoding media data
US9872021B2 (en) Video conversion method and apparatus
CN108574874B (en) Video playing speed adjusting method and device
US20150156557A1 (en) Display apparatus, method of displaying image thereof, and computer-readable recording medium
US10601891B2 (en) Cloud streaming service system and cloud streaming service method for utilizing an optimal GPU for video decoding based on resource conditions, and apparatus for the same
CN105991364B (en) User perception evaluation method and device
US20170180746A1 (en) Video transcoding method and electronic apparatus
KR20150003316A (en) Method and device for evaluating media quality
WO2017080175A1 (en) Multi-camera used video player, playing system and playing method
US20200296470A1 (en) Video playback method, terminal apparatus, and storage medium
CN111263243A (en) Video coding method and device, computer readable medium and electronic equipment
CN115643449A (en) Video display method, device, equipment, storage medium and system of cloud service
CN111970565A (en) Video data processing method and device, electronic equipment and storage medium
CN111617466A (en) Method and device for determining coding format and method for realizing cloud game
CN107493478B (en) Method and device for setting coding frame rate
CN111107387B (en) Video transcoding method and device and computer storage medium
CN112738571B (en) Method and device for determining streaming media parameters
CN113194276A (en) Method, system and storage device for generating dynamic layout in video conference system
US20230011483A1 (en) Method and device for adjusting bit rate during live streaming
CN115379291B (en) Code table updating method, device, equipment and storage medium
CN113810629B (en) Video frame processing method and device for multimedia signal of fusion platform
CN106254873B (en) Video coding method and video coding device
CN111818338B (en) Abnormal display detection method, device, equipment and medium
CN110913235A (en) Access control method and device for large-scale live broadcast and electronic equipment
CN110677728B (en) Method, device and equipment for playing video 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