CN107205159B - Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast - Google Patents

Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast Download PDF

Info

Publication number
CN107205159B
CN107205159B CN201710381331.8A CN201710381331A CN107205159B CN 107205159 B CN107205159 B CN 107205159B CN 201710381331 A CN201710381331 A CN 201710381331A CN 107205159 B CN107205159 B CN 107205159B
Authority
CN
China
Prior art keywords
live broadcast
broadcast room
bit rate
popularity
popularity value
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
CN201710381331.8A
Other languages
Chinese (zh)
Other versions
CN107205159A (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.)
Jiangsu 3bu Technology Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710381331.8A priority Critical patent/CN107205159B/en
Publication of CN107205159A publication Critical patent/CN107205159A/en
Application granted granted Critical
Publication of CN107205159B publication Critical patent/CN107205159B/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/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
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • 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/26258Content 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 for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list

Abstract

The invention provides a method for adjusting the bit rate of streaming media in network live broadcast, which comprises the following steps: according to the real-time popularity condition of the live broadcast room, the stream pushing bit rate of the live broadcast room is synchronously adjusted; the invention also provides a device for adjusting the bit rate of the streaming media in the network live broadcast, which comprises an acquisition module, a confirmation module and an adjustment module. According to the method and the device for adjusting the bit rate of the streaming media in the network live broadcast, the stream pushing bit rate of the live broadcast room is synchronously adjusted according to the real-time popularity condition of the live broadcast room, and the stream pushing bit rate of the live broadcast room is increased for the live broadcast room with higher popularity value and more audiences, so that the high-quality experience of most audiences when watching the network live broadcast is ensured; for the live broadcast room with lower popularity value and less audiences, the stream pushing bit rate of the live broadcast room is reduced, which is beneficial to reducing the broadband cost of live broadcast.

Description

Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast
Technical Field
The present invention relates to the field of live webcasting, and in particular, to a method and an apparatus for adjusting a bit rate of streaming media in live webcasting, and a storage medium.
Background
The network live broadcast utilizes the advantages of the Internet, and releases the contents of personal exhibition, product exhibition, conversation interview, online training and the like to the Internet in real time in the modes of video signals and the like, and enhances the popularization effect of exhibition by utilizing the characteristics of intuition, quickness, good expression form, rich contents, strong interactivity, unlimited region, divisible audience and the like of the Internet.
Currently, when network broadcasting is performed, streaming media such as video streams and audio streams are generally transmitted to users in real time in a streaming mode, and the transmission speed of video and audio data during transmission is generally expressed by a bit rate. The bit rate (also called code rate) is the number of bits (bits) transmitted Per second, and has a unit of bps (bit Per second), and the higher the bit rate is, the faster the data transmission speed is. The bit rate in the audio is the binary data volume in unit time after the analog audio signal is converted into the digital audio signal, and is an index for indirectly measuring the audio quality; the bit rate principle in video is the same as that in audio, which means the binary data volume in unit time after converting analog signals into digital signals, and is an index for indirectly measuring video quality; therefore, the quality of audio and video files is often measured by using the bit rate, and the higher the bit rate, the higher the quality of the corresponding audio and video files.
The bit rate is the number of bits per unit time that a continuous audio or video is played, in the sense that it again corresponds to the bandwidth consumption, or throughput, the higher the bit rate, the greater the bandwidth consumption. Along with the continuous expansion of the live broadcast scale of the network, the bandwidth consumption in live broadcast also continuously expands, and occupies most of the cost of the whole live broadcast industry of the network. How to effectively reduce the broadband cost of live broadcasting while ensuring the high-quality experience of most users is always a problem to be solved by each large live broadcasting platform.
Disclosure of Invention
To overcome the above problems or at least partially solve the above problems, the present invention provides a bit rate adjustment method, apparatus and storage medium for streaming media in webcasting.
According to an aspect of the present invention, there is provided a method for adjusting a bit rate of streaming media in a live network, including: and synchronously adjusting the stream pushing bit rate of the live broadcast room according to the real-time popularity condition of the live broadcast room.
Wherein, according to the real-time popularity situation of the live broadcast room, the step of adjusting the push stream bit rate of the live broadcast room comprises: acquiring an incidence relation between a live broadcast room popularity value and a stream pushing bit rate; confirming a real-time popularity value of a live broadcast room; and adjusting the stream pushing bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the incidence relation.
Wherein, obtaining the incidence relation between the live broadcast room popularity value and the stream pushing bit rate comprises: setting the popularity grade of the subareas of the live broadcast rooms; adding a partition identifier to the live broadcast room; and determining the push stream bit rate of the broadcast in the live broadcast room according to the popularity grade of the partition corresponding to the partition identification of the live broadcast room.
The method for acquiring the correlation between the popularity value and the stream pushing bit rate of the live broadcast room comprises the following steps: setting an incidence relation between the popularity value of the partition and the plug flow bit rate, wherein the incidence relation is a step incidence relation; setting the association relationship between the partition identification of the live broadcast room and the human value of the partition corresponding to the partition identification and the plug flow bit rate as a one-to-one correspondence relationship; and acquiring the association relation between the popularity value and the stream pushing bit rate of the live broadcast room according to the partition identification of the live broadcast room.
Wherein, include before confirming the real-time popularity value of live broadcast room: acquiring the popularity values of all live broadcast rooms at intervals of first preset time; and adding the live broadcast room with the change amplitude of the popularity value meeting the first preset condition into the monitoring list.
Wherein, the step of confirming the real-time popularity value of the live broadcast room includes: acquiring the popularity value of the live broadcast room in the monitoring list again at intervals of second preset time; judging whether the change amplitude of the popularity value of the same live broadcast room before and after a second preset time meets a second preset condition or not; and confirming the obtained popularity value of the live broadcast room meeting the second preset condition as the real-time popularity value of the live broadcast room.
Wherein, the method also comprises: the upper limit value of the push stream bit rate of the live broadcast room is set, and the upper limit value of the number of people in the live broadcast room reaching the upper limit value of the bit rate is increased.
In another aspect of the present invention, an apparatus for adjusting a bit rate of streaming media in a live network includes: an acquisition module: the method comprises the steps of obtaining an incidence relation between a live broadcast room popularity value and a stream pushing bit rate; a confirmation module: the real-time popularity value of the live broadcast room is confirmed; an adjusting module: and the live broadcast room is used for adjusting the push stream bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the incidence relation.
In yet another aspect of the invention, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method described above.
In yet another aspect of the present invention, a non-transitory computer-readable storage medium is provided, which stores a computer program that causes a computer to perform the above-described method.
According to the bit rate adjusting method, the bit rate adjusting device and the storage medium of the streaming media in the network live broadcast, the stream pushing bit rate of the live broadcast room is synchronously adjusted according to the real-time popularity condition of the live broadcast room, and the stream pushing bit rate of the live broadcast room is increased for the live broadcast room with higher popularity value and more audiences, so that the high-quality experience of most audiences when watching the network live broadcast is ensured; for the live broadcast room with lower popularity value and less audiences, the stream pushing bit rate of the live broadcast room is reduced, which is beneficial to reducing the broadband cost of live broadcast.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for adjusting a bit rate of streaming media in a live network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for confirming a popularity value and adjusting a bit rate of streaming media in a live webcast according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for adjusting a bit rate of streaming media in a live network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions 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 obvious that the described embodiments are some, but not all embodiments of the present invention. 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 an embodiment of the present invention, a method for adjusting a bit rate of streaming media in a live network is provided, including: and synchronously adjusting the stream pushing bit rate of the live broadcast room according to the real-time popularity condition of the live broadcast room. Referring to fig. 1, the method specifically includes: s11, acquiring the correlation between the live broadcast room popularity value and the stream pushing bit rate; s12, confirming the real-time popularity value of the live broadcast room; and S13, adjusting the push stream bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the association relation.
Specifically, the live broadcast room is a multifunctional network live broadcast platform integrating audio, video and interaction links into a whole by means of a network live broadcast platform, utilizing the internet and advanced multimedia communication technology and establishing the network live broadcast platform, enterprises or individuals can directly perform comprehensive communication and interaction of voice, video and data on line, and generally, at least one main broadcast is arranged in one live broadcast room to host communication and interaction of the live broadcast room. Meanwhile, some network live broadcast platforms set a popularity value for each live broadcast room according to a certain rule in order to reflect the popularity of the live broadcast room, wherein the popularity value is generally related to the number of audiences currently participating in the live broadcast room, the popularity value is higher when the number of audiences currently participating in the live broadcast room is larger, and the popularity value is lower when the audience currently participating in the live broadcast room is larger, otherwise.
When the network is broadcast directly, the main broadcast in the live broadcast room can interact with the audience in real time, the streaming media such as video and audio in the live broadcast room are all transmitted to the audience in real time in a streaming mode, and the process of transmitting the streaming media such as video and audio to the audience in real time in the streaming mode in the live broadcast room can be called as stream pushing in the live broadcast room. The transmission speed of video and audio data in the transmission process is usually expressed by bit rate, and the bit rate of streaming media in the transmission process is called the push streaming bit rate of a live broadcast; in general, the bit rate of streaming media delivered to viewers in real time is stable. The bit rate is the number of bits (bits) transmitted Per second, and the unit is bps (bit Per second), which is an index for indirectly measuring the quality of video and audio, and meanwhile, the higher the bit rate is, the faster the data transmission speed is; therefore, the quality of audio and video files is often measured by using the bit rate, and the higher the bit rate, the higher the quality of the corresponding audio and video files.
In this embodiment, before the live broadcast is performed in the live broadcast room, the relationship between the popularity value and the streaming bitrate in the live broadcast room may be set by the server.
In the embodiment, when the live broadcast is carried out in the live broadcast room, the stream pushing bit rate of the live broadcast room is synchronously adjusted according to the real-time popularity condition of the live broadcast room. Specifically, the server confirms the popularity value of the current live broadcast room in real time, and then adjusts the stream pushing bit rate of the live broadcast room according to the popularity value and the incidence relation. For a live broadcast room with high popularity, the popularity level is also high, and the stream pushing bit rate of the live broadcast room is adjusted to be high, so that the quality of videos and audios received by audiences of the live broadcast room is higher, and better user experience is obtained; for a live broadcast room with low popularity, the bit rate of the push stream of the live broadcast room is adjusted to be low, the bit rate is the bit quantity of continuous audio or video played in unit time, in this sense, the bit rate is equivalent to bandwidth consumption, and the adjustment of the bit rate is to reduce the consumption of the broadband, so that the broadband cost of the live broadcast is reduced.
In the embodiment, the stream pushing bit rate of the live broadcast room is synchronously adjusted according to the real-time popularity condition of the live broadcast room, and the stream pushing bit rate of the live broadcast room is increased for the live broadcast room with a high popularity value and more audiences, so that the high-quality experience of most audiences in watching the network live broadcast is ensured; for the live broadcast room with lower popularity value and less audiences, the stream pushing bit rate of the live broadcast room is reduced, which is beneficial to reducing the broadband cost of live broadcast.
Based on the above embodiment, the obtaining of the association relationship between the live room popularity value and the stream pushing bit rate includes: setting the popularity grade of the subareas of the live broadcast rooms; adding a partition identifier to the live broadcast room; and determining the push stream bit rate of the broadcast in the live broadcast room according to the popularity grade of the partition corresponding to the partition identification of the live broadcast room. Acquiring the incidence relation between the live broadcast room popularity value and the stream pushing bit rate comprises the following steps: setting the incidence relation between the popularity value of the partition and the plug flow bit rate, and setting the incidence relation between the popularity value of the partition corresponding to the partition identification and the partition identification of the live broadcast room and the plug flow bit rate as a one-to-one correspondence relation; and acquiring the association relation between the popularity value and the stream pushing bit rate of the live broadcast room according to the partition identification of the live broadcast room.
Specifically, the live broadcast rooms can be divided into different partitions according to the historical popularity of the anchor broadcast in the live broadcast rooms; the live broadcast may also be partitioned into different partitions, such as a game live partition, a sports live partition, a presentation partition, etc., depending on the content being played in the live broadcast. The server sets different popularity grades for different partitions, and determines the stream pushing bit rate of broadcasting according to the popularity grade of the partition when the broadcasting is performed in the live broadcast room of the partition; the specific method for partitioning the live broadcast room is that a partition identifier is added to the live broadcast room, and the partition identifier of the live broadcast room is associated with the popularity grade of the corresponding partition.
According to the characteristics of the partitions, setting the association relationship between the popularity value and the plug flow bit rate of each different partition, for example, for the live broadcast content corresponding to some partitions, the requirement on the video or audio quality is not high, and then the association relationship can be set to be a higher popularity value corresponding to a lower plug flow bit rate; the live broadcasting room added with the partition identification has a one-to-one correspondence relationship with the correlation relationship between the popularity value and the plug flow bit rate of the corresponding partition, and then the correlation relationship between the popularity value and the plug flow bit rate of the live broadcasting room can be obtained according to the partition identification, and the correlation relationship between the popularity value and the plug flow bit rate of the live broadcasting room is the same as the correlation relationship between the popularity value and the plug flow bit rate of the partition to which the live broadcasting room belongs, so that the consumption of the bandwidth of the partition is reduced as a whole.
Wherein, the incidence relation is a step incidence relation; for example, the push stream bit rate corresponding to the popularity value of 0-100 is defined as 50bps, the push stream bit rate corresponding to the popularity value of 100-.
In this embodiment, the foregoing steps may be implemented by the following specific operations, after logging in a background service (WebBackstageServer), a background administrator (Administrators) respectively sets association relationships between popularity values and streaming bit rates of different partitions (partitions), partitions a live broadcast room according to content characteristics of a broadcast of the live broadcast room, and adds a Partition identifier (partitionnark) of the Partition to the live broadcast room in the same Partition. After the partition identifier is added successfully, the corresponding relation between the partition identifier and the correlation between the popularity value and the pushed stream bit rate of the partition is simultaneously maintained in a popularity intermediate table (ArtitionRateNexus).
In the embodiment, the relationship is respectively set for the popularity value and the streaming bit rate of different partitions, so that the live broadcast rooms in different partitions have different relationships, and the streaming bit rate of the live broadcast room can be more flexibly adjusted according to the content played by the live broadcast room.
Based on the above embodiment, referring to fig. 2, confirming the real-time popularity value of the live broadcast room includes: acquiring the popularity values of all live broadcast rooms at intervals of first preset time; and adding the live broadcast room with the change amplitude of the popularity value meeting the first preset condition into the monitoring list. The step of confirming the real-time popularity value of the live broadcast room comprises the following steps: acquiring the popularity value of the live broadcast room in the monitoring list again at intervals of second preset time; judging whether the change amplitude of the popularity value of the same live broadcast room before and after a second preset time meets a second preset condition or not; and confirming the obtained popularity value of the live broadcast room meeting the second preset condition as the real-time popularity value of the live broadcast room.
Specifically, after the live broadcast is started, the live broadcast is performed at the started push bit rate, and the specific implementation method is described in the above embodiment, which is not described herein again; before adjusting the bit rate of the streaming media output by the live broadcast room in real time, a foreground monitor is established first, and the foreground monitor monitors the human value of the live broadcast room in the subarea. A partition monitoring service (PartitionMonitor) is added in a front-end service (WebReceptionserver), a live broadcast room added with a partition identifier is monitored for a human value, the foreground monitoring defaults to acquire the human value (PopularityValue) of the live broadcast room in the current partition through a human value change interface (Popularitydynamic) provided in the foreground service, and the current human value of the live broadcast room is acquired by taking the acquired human value detail of the live broadcast room as a basic condition.
The method comprises the steps of refreshing a popularity value of a live broadcast room every a first preset time (for example, 30 minutes), monitoring the live broadcast room reaching a first preset condition, wherein the first preset condition can be that the popularity value change amplitude of the same live broadcast room exceeds a preset percentage, matching a system time (system.date) carried by a foreground service with a monitoring time (monitor time) set by a background service, executing a popularity value acquisition action (PolargityObtain) every the first preset time, storing the acquired popularity value of the live broadcast room into a popularity list (PopulgityObtain L ist), screening popularity values in the popularity list, marking (MarkRoom) the live broadcast room reaching the first preset condition, bringing the marked live broadcast room monitoring list (PopulgityObtain L) into the live broadcast room, and re-acquiring the first preset time of the live broadcast room.
Continuously monitoring the live broadcast rooms brought into the live broadcast room monitoring list, and performing traversal matching on the human value of the live broadcast rooms in the live broadcast room monitoring list in a timing mode through the service self-contained system time length of the foreground, namely refreshing the human value of the live broadcast rooms brought into the live broadcast room monitoring list again after a second preset time (for example, 10 minutes) is separated through foreground service, and if the change range of the human value of the same live broadcast room before and after the second preset time meets a second preset condition; confirming the popularity value of the re-acquired live broadcast room meeting a second preset condition as a real-time popularity value of the live broadcast room, determining the stream pushing bit rate of the live broadcast room according to the real-time popularity value, if the second preset condition is not met, indicating that the popularity value of the live broadcast room is unstable, not adjusting the stream pushing bit rate of the live broadcast room, deleting the live broadcast room from a monitoring list, and executing the popularity value acquisition action on the live broadcast room again at intervals of first preset time; the second preset condition is that the change range of the popularity value of the same live broadcast room before and after the second preset time does not exceed a preset percentage.
The server automatically determines the push stream bit rate of the live room with the popularity value. The foreground service transmits the ID of the live broadcast room reaching the regulation bit rate standard to the background service through an interface (pushFlowInterface) provided by the background service for the live broadcast room reaching the regulation bit rate standard in the live broadcast room monitoring list, and the background service correspondingly regulates the push stream bit rate of the live broadcast room reaching the regulation bit rate standard according to the ID of the live broadcast room and the incidence relation between the popularity value and the push stream bit rate set in the popularity intermediate table.
In the embodiment, the live broadcast room needing important monitoring is screened through the first preset time, and the popularity value of the live broadcast room is confirmed through the second preset time, so that the burden of the server can be reduced, the stream pushing bit rate of the live broadcast room can be adjusted under the condition that the popularity value of the live broadcast room reaches a stable state, and the influence caused by the adjustment of the stream pushing bit rate of the live broadcast room due to the contingency is reduced.
Based on the above embodiment, the method further comprises: the upper limit value of the push stream bit rate of the live broadcast room is set, and the upper limit value of the number of people in the live broadcast room reaching the upper limit value of the bit rate is increased.
Specifically, the bit rate is the number of bits for playing continuous audio or video per unit time, which corresponds to the amount of bandwidth consumption; meanwhile, the higher the bit rate, the higher the quality of the corresponding audio and video streams. A choice can be made between bandwidth consumption and the quality of audio and video files, so that the bandwidth consumption can be relatively small, and the quality of audio streams and video streams can be relatively high. The quality of the audio stream and the video stream at the bit rate upper limit value is high, and the upper limit of the number of people in the live broadcast room can be increased in the live broadcast room with the bit rate, so that more users can experience high-quality live broadcast service.
According to the embodiment, the upper limit value of the stream pushing bit rate of the live broadcast room is limited, and the upper limit value of the number of people in the live broadcast room is increased, so that on one hand, the consumption of bandwidth can be effectively limited, and on the other hand, more users can obtain high-quality live network experience.
As still another embodiment of the present invention, referring to fig. 3, there is provided a bit rate adjustment apparatus for streaming media in live network, including: an obtaining module 31, a confirming module 32 and an adjusting module 33, wherein:
the obtaining module 31 is configured to obtain an association relationship between a popularity value and a streaming bit rate of a live broadcast room;
the confirming module 32 is used for confirming the real-time popularity value of the live broadcast room;
the adjusting module 33 is configured to adjust the streaming bitrate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the association relationship.
Specifically, before the live webcast is performed in the live webcast room, the obtaining module 31 obtains the association relationship between the popularity value of the live webcast room and the streaming bit rate, and preferably, the popularity value of the live webcast room is set to be higher, and the corresponding streaming bit rate is set to be higher.
When the live webcast is performed in the live webcast room, the confirmation module 32 determines the popularity value of the live webcast room in real time, and then the adjustment module 33 adjusts the streaming bit rate of the live webcast room according to the popularity level and the association relationship. For a live broadcast room with high popularity, the popularity level is also high, and the stream pushing bit rate of the live broadcast room is adjusted to be high, so that the quality of videos and audios received by audiences of the live broadcast room is higher, and better user experience is obtained; for a live broadcast room with low popularity, the bit rate of the stream pushed by the live broadcast room is adjusted to be low, the bit rate is the bit quantity of continuous audio or video played in unit time and is equivalent to the bandwidth consumption, and the adjustment of the bit rate is to reduce the consumption of the broadband, so that the broadband cost of network live broadcast is reduced.
In the embodiment, the acquisition module acquires the correlation between the popularity level and the streaming bit rate of the live broadcast room, the confirmation module confirms the real-time popularity value of the live broadcast room, and the adjustment module adjusts the streaming bit rate of the live broadcast room in real time, so that the live broadcast room with a higher popularity value is adjusted to a higher streaming bit rate, thereby ensuring the high-quality experience of watching the live broadcast of a network by most audiences; for the live broadcast room with lower popularity value, the stream pushing bit rate is reduced, which is beneficial to reducing the broadband cost of network live broadcast.
As yet another embodiment of the present invention, there is provided a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, including: acquiring an incidence relation between a live broadcast room popularity value and a stream pushing bit rate; confirming a real-time popularity value of a live broadcast room; and adjusting the stream pushing bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the incidence relation.
As yet another embodiment of the present invention, there is provided a non-transitory computer-readable storage medium storing a computer program that causes a computer to perform the methods provided by the above-described method embodiments, including, for example: acquiring an incidence relation between a live broadcast room popularity value and a stream pushing bit rate; confirming a real-time popularity value of a live broadcast room; and adjusting the stream pushing bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the incidence relation.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to computer program instructions, where the computer program may be stored in a computer readable storage medium, and when executed, the computer program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The embodiments of the apparatuses and the like described above are merely illustrative, and the units illustrated as modules may or may not be physically separate, may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
According to the bit rate adjusting method, the bit rate adjusting device and the storage medium for the streaming media in the network live broadcast, provided by the embodiments of the invention, the stream pushing bit rate of the live broadcast room is synchronously adjusted according to the real-time popularity condition of the live broadcast room, and the stream pushing bit rate of the live broadcast room is increased for the live broadcast room with higher popularity value and more audiences, so that the high-quality experience of most audiences when watching the network live broadcast is ensured; for the live broadcast room with lower popularity value and less audiences, the stream pushing bit rate of the live broadcast room is reduced, which is beneficial to reducing the broadband cost of live broadcast.
Finally, the description is as follows: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for adjusting the bit rate of streaming media in network live broadcast is characterized by comprising the following steps:
according to the real-time popularity condition of a live broadcast room, synchronously adjusting the stream pushing bit rate of the live broadcast room;
wherein, according to the real-time popularity status of the live broadcast room, the step of synchronously adjusting the push stream bit rate of the live broadcast room specifically comprises:
acquiring the incidence relation between the live broadcast room popularity value and the stream pushing bit rate;
confirming the real-time popularity value of the live broadcast room;
adjusting the stream pushing bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the incidence relation;
wherein the adjusting the streaming bit rate of the live broadcast room in real time according to the confirmed popularity value of the live broadcast room and the association relation comprises:
if the popularity value of the live broadcast room is determined to be higher than a preset value, the stream pushing bit rate of the live broadcast room is increased so as to improve the quality of videos and audios of the live broadcast room;
and if the popularity value of the live broadcast room is determined to be lower than a preset value, reducing the push stream bit rate of the live broadcast room so as to reduce the broadband consumption of the live broadcast room.
2. The method as claimed in claim 1, wherein said obtaining the correlation between said live room popularity value and said pushed streaming bitrate comprises:
setting the popularity grade of the subareas of the live broadcast rooms;
adding a partition identifier to the live broadcast room;
and determining the push stream bit rate of the broadcast in the live broadcast room according to the popularity grade of the partition corresponding to the partition identification of the live broadcast room.
3. The method as claimed in claim 2, wherein the obtaining of the correlation between the live room popularity value and the streaming bitrate comprises:
setting an incidence relation between the popularity value of the partition and the plug flow bit rate, wherein the incidence relation is a step incidence relation;
setting the association relationship between the partition identification of the live broadcast room and the popularity value and the plug flow bit rate of the partition corresponding to the partition identification as a one-to-one correspondence relationship;
and acquiring the association relation between the popularity value and the stream pushing bit rate of the live broadcast room according to the partition identification of the live broadcast room.
4. The method as claimed in claim 1, wherein the step of confirming the real-time popularity value of the live broadcast room comprises:
acquiring the popularity values of all the live broadcast rooms at intervals of first preset time;
and adding the live broadcast room with the change amplitude of the popularity value meeting a first preset condition into a monitoring list.
5. The method as claimed in claim 4, wherein the step of confirming the real-time popularity value of the live broadcast room comprises:
acquiring the popularity value of the live broadcast room in the monitoring list again at intervals of second preset time;
judging whether the change amplitude of the popularity value of the same live broadcast room before and after the second preset time meets a second preset condition or not;
and confirming the re-acquired popularity value of the live broadcast room meeting the second preset condition as the real-time popularity value of the live broadcast room.
6. The method as claimed in claim 1, wherein the method further comprises: and setting the upper limit value of the push stream bit rate of the live broadcast room, and increasing the upper limit value of the number of people in the live broadcast room reaching the upper limit value of the bit rate.
7. An apparatus for adjusting a bit rate of streaming media in a live network, comprising:
an acquisition module: the method comprises the steps of obtaining an incidence relation between a live broadcast room popularity value and a stream pushing bit rate;
a confirmation module: the real-time popularity value of the live broadcast room is confirmed;
an adjusting module: the live broadcast room is used for receiving the correlation relation between the popularity value of the live broadcast room and the correlation relation;
the adjusting module is specifically configured to:
if the popularity value of the live broadcast room is determined to be higher than a preset value, the stream pushing bit rate of the live broadcast room is increased so as to improve the quality of videos and audios of the live broadcast room;
and if the popularity value of the live broadcast room is determined to be lower than a preset value, reducing the push stream bit rate of the live broadcast room so as to reduce the broadband consumption of the live broadcast room.
8. A non-transitory computer-readable storage medium storing a computer program that causes a computer to perform the method according to any one of claims 1 to 6.
CN201710381331.8A 2017-05-25 2017-05-25 Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast Active CN107205159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710381331.8A CN107205159B (en) 2017-05-25 2017-05-25 Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710381331.8A CN107205159B (en) 2017-05-25 2017-05-25 Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast

Publications (2)

Publication Number Publication Date
CN107205159A CN107205159A (en) 2017-09-26
CN107205159B true CN107205159B (en) 2020-08-04

Family

ID=59906216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710381331.8A Active CN107205159B (en) 2017-05-25 2017-05-25 Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast

Country Status (1)

Country Link
CN (1) CN107205159B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616773A (en) * 2018-04-26 2018-10-02 武汉斗鱼网络科技有限公司 Direct broadcasting room exits method, apparatus, system, terminal and storage medium
CN111372103B (en) * 2018-12-26 2023-05-26 中兴通讯股份有限公司 Multicast method, device, equipment and computer storage medium
CN110611828A (en) * 2019-08-16 2019-12-24 咪咕视讯科技有限公司 Method for determining video playing code rate, video request and issuing method
CN114302189B (en) * 2022-01-24 2023-10-27 上海哔哩哔哩科技有限公司 Live broadcast definition processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986914A (en) * 2014-05-27 2014-08-13 东南大学 Code rate self-adaption method based on number of client sides in wireless video monitoring system
CN105635755A (en) * 2015-12-30 2016-06-01 合一网络技术(北京)有限公司 Direct-broadcast flow transmission method and apparatus
CN105872620A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Authority and level distinguished display method and authority and level distinguished display system in network broadcasting process
CN106162214A (en) * 2016-09-05 2016-11-23 腾讯科技(深圳)有限公司 Method for video coding and net cast client
CN106303559A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of method controlling live video stream and direct broadcast server
CN106713938A (en) * 2017-02-24 2017-05-24 北京潘达互娱科技有限公司 Data processing method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986914A (en) * 2014-05-27 2014-08-13 东南大学 Code rate self-adaption method based on number of client sides in wireless video monitoring system
CN105635755A (en) * 2015-12-30 2016-06-01 合一网络技术(北京)有限公司 Direct-broadcast flow transmission method and apparatus
CN105872620A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Authority and level distinguished display method and authority and level distinguished display system in network broadcasting process
CN106303559A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of method controlling live video stream and direct broadcast server
CN106162214A (en) * 2016-09-05 2016-11-23 腾讯科技(深圳)有限公司 Method for video coding and net cast client
CN106713938A (en) * 2017-02-24 2017-05-24 北京潘达互娱科技有限公司 Data processing method and apparatus

Also Published As

Publication number Publication date
CN107205159A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN107205159B (en) Method, device and storage medium for adjusting bit rate of streaming media in network live broadcast
US20210168414A1 (en) Synchronizing Playback of Segmented Video Content Across Multiple Video Playback Devices
US10003851B2 (en) Managed multiplexing of video in an adaptive bit rate environment
US11838450B2 (en) Devices, systems and processes for facilitating watch parties
US8813160B2 (en) Method, system and user device for obtaining a key frame in a streaming media service
US20200260132A1 (en) Video distribution synchronization
US8760490B2 (en) Techniques for a rate-adaptive video conference bridge
CN112351303B (en) Video sharing method and system in network conference and readable storage medium
CN103686346A (en) Video playing unsmoothness switching method and system
CN101998116A (en) Method, system and equipment for realizing multi-view video service
WO2020121322A3 (en) Systems, methods, and devices for optimizing streaming bitrate based on multiclient display profiles
CN107864402A (en) Live video player method and device
CN107920041B (en) Method and device for adjusting bit rate of live video data coding
US20220303602A1 (en) Reduction of startup time in remote hls
CN106789976A (en) The player method of media file, service end, client and system
CN108471548A (en) Live video fast playing method and device
Fallica et al. On the quality of experience of sopcast
CN108476333A (en) The adjacent streaming of Media Stream
CN108513159A (en) Multiple terminals synchronous broadcast controlling method, main equipment, apparatus and system
CN110365997A (en) A kind of the interactive teaching live broadcasting method and system of low latency
US11777871B2 (en) Delivery of multimedia components according to user activity
CN115336283B (en) Client device and method for streaming media content to client device
CN108282701B (en) EPG searching method based on multicast
WO2023218572A1 (en) Bit rate selection device, bit rate selection method, and program
US20240137593A1 (en) Reduction of startup time in remote hls

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231128

Address after: No. 359, ningliu Road, Yanjiang Industrial Development Zone, Nanjing, Jiangsu 210000

Patentee after: JIANGSU 3BU TECHNOLOGY CO.,LTD.

Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.