CN114945097A - Video stream processing method and device - Google Patents
Video stream processing method and device Download PDFInfo
- Publication number
- CN114945097A CN114945097A CN202210445632.3A CN202210445632A CN114945097A CN 114945097 A CN114945097 A CN 114945097A CN 202210445632 A CN202210445632 A CN 202210445632A CN 114945097 A CN114945097 A CN 114945097A
- Authority
- CN
- China
- Prior art keywords
- score
- room
- transcoding
- abnormal
- brushing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 230000002159 abnormal effect Effects 0.000 claims abstract description 197
- 230000001680 brushing effect Effects 0.000 claims abstract description 150
- 238000005259 measurement Methods 0.000 claims abstract description 72
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims description 23
- 238000004364 calculation method Methods 0.000 claims description 10
- 230000006399 behavior Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 235000019580 granularity Nutrition 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 206010000117 Abnormal behaviour Diseases 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2402—Monitoring of the downstream path of the transmission network, e.g. bandwidth available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44209—Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a video stream processing method and a video stream processing device, wherein the video stream processing method comprises the following steps: acquiring access information and bandwidth information corresponding to a measurement brushing room; calculating an abnormal score of the brushing room according to the access information and the bandwidth information; transcoding the source video stream of the brushing volume room according to the transcoding strategy corresponding to the abnormal score; and generating at least one playing address corresponding to the brushing volume room according to the transcoding result.
Description
Technical Field
The present application relates to the field of video stream processing technologies, and in particular, to a method and an apparatus for processing a video stream.
Background
With the development of internet technology, the live broadcast industry is popular with more and more users, and teaching, entertainment, buying and selling and other operations can be realized through live broadcast. In the existing live broadcast system, popularity is an index for sequencing live broadcast heat on a live broadcast platform. In general, the higher the popularity and the higher the ranking, the more likely the anchor is to be viewed by the user. The basic data of the popularity is the number of the live broadcast people, namely the number of the people determines the size of the popularity. However, in order to have higher popularity for some abnormal anchor, the popularity of people can be increased by abnormal means, so that the popularity of people can be increased, and the fairness of live broadcast can be influenced to a great extent. On this basis, the live broadcast platform will consume more resources to be able to complete when transcoding the video stream of the main broadcast.
Disclosure of Invention
In view of this, an embodiment of the present application provides a video stream processing method. The application also relates to a video stream processing device, a computing device and a computer readable storage medium, which are used for solving the problem that the brushing amount room consumes more computing resources in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a video stream processing method applied to a scheduling system, including:
acquiring access information and bandwidth information corresponding to a measurement brushing room;
calculating an abnormal score of the brushing room according to the access information and the bandwidth information;
transcoding the source video stream of the brushing volume room according to the transcoding strategy corresponding to the abnormal score;
and generating at least one playing address corresponding to the brushing volume room according to the transcoding result.
According to a second aspect of the embodiments of the present application, there is provided a video stream processing apparatus applied to a scheduling system, including:
the acquisition module is configured to acquire access information and bandwidth information corresponding to the measurement room;
a calculation module configured to calculate an anomaly score for the brush room based on the access information and the bandwidth information;
the transcoding module is configured to transcode the source video stream of the brushing volume room according to a transcoding strategy corresponding to the abnormal score;
and the generating module is configured to generate at least one playing address corresponding to the brushing volume room according to the transcoding result.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the video stream processing method when executing the instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the video stream processing method.
The video stream processing method provided by the application can be used for reducing resource consumption brought by a measurement brushing room, access information and bandwidth information corresponding to the measurement brushing room can be obtained firstly, abnormal scores corresponding to the measurement brushing room are determined according to the access information and the bandwidth information, abnormal degrees corresponding to the measurement brushing room are represented through the abnormal scores, at the moment, video streams of the measurement brushing room can be transcoded according to transcoding strategies corresponding to the abnormal scores, transcoding processing of the source video streams can be completed by adopting different strategies aiming at live broadcast rooms with different measurement brushing degrees, the purpose of dynamically adjusting and calculating resources is achieved, and finally at least one playing address corresponding to the measurement brushing room can be generated according to transcoding results. The abnormal score corresponding to the brush measurement rooms is calculated through the access information and the bandwidth information, the accuracy of the abnormal score can be guaranteed, and on the basis, transcoding strategies are dynamically selected to transcode the brush measurement rooms with different abnormal degrees, so that computing resources are effectively saved.
Drawings
Fig. 1 is a schematic diagram of a video stream processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a video stream processing method according to an embodiment of the present application;
FIG. 3 is a processing flow chart of a video stream processing method applied to a game live scene according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video stream processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Live streaming: live audiovisual data transmission that can be transmitted as a steady and continuous stream over a network for viewing by an audience.
CDN: the Content Delivery Network (Content Delivery Network) is an intelligent virtual Network established on the basis of the existing Network, and users can obtain required Content nearby by means of functional modules of load balancing, Content Delivery, scheduling and the like of a central platform by means of edge servers deployed in various places, so that Network congestion is reduced, and the access response speed and hit rate of the users are improved.
Transcoding: the method is used for converting a video code stream which is compressed and coded into another video code stream in order to adapt to different network bandwidths, different terminal processing capacities and different user requirements.
In the present application, a video stream processing method is provided, and the present application relates to a video stream processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
In a live scene, the higher the popularity and the higher the ranking, the more likely the anchor is to be viewed by the user. The basic data of the popularity is the number of the live broadcast people, namely the number of the people determines the size of the popularity. However, in order to have higher popularity for some abnormal anchor, the popularity of people can be increased by abnormal means, so that the heat of the anchor itself is increased, and the fairness of live broadcast is greatly influenced. On this basis, the live broadcast platform will consume more resources to be able to complete when transcoding the video stream of the main broadcast. Namely, when the number of people in the live broadcast room is large, transcoding is automatically performed, so that the bandwidth of the CDN is reduced, and the purpose of transcoding is to reduce the code rate of a source stream, meet the viewing requirements of different clients in different networks, and reduce the bandwidth generated at the same time. That is, the transcoding strategy of the live broadcast room with higher popularity is more complicated, but if the live broadcast room is doped with popularity, more resources are consumed for transcoding, and therefore an effective solution is needed to solve the above problems.
Referring to a schematic diagram shown in fig. 1, determining access information of a room with a traffic-refreshing behavior by using a heartbeat statistical service, determining bandwidth information by using a content distribution network, then determining an abnormal score corresponding to the traffic-refreshing room by using a scheduling system according to the access information and the bandwidth information, representing an abnormal degree corresponding to the traffic-refreshing room by using the abnormal score, transcoding a video stream of the traffic-refreshing room according to a transcoding strategy corresponding to the abnormal score, completing transcoding processing of a source video stream by using different strategies for live broadcast rooms with different traffic-refreshing degrees, achieving the purpose of dynamically adjusting computing resources, and finally generating at least one play address corresponding to the traffic-refreshing room according to a transcoding result. The abnormal score corresponding to the brush measurement rooms is calculated through the access information and the bandwidth information, the accuracy of the abnormal score can be guaranteed, and on the basis, transcoding strategies are dynamically selected to transcode the brush measurement rooms with different abnormal degrees, so that computing resources are effectively saved.
On the basis, when the user watches the live broadcast, the corresponding playing address can be determined according to the access request of the user, so that the stream is pushed to the user according to the playing address, namely, the video stream corresponding to the definition in the watching request of the user is pushed, and the watching requirement of the user is met.
Fig. 2 is a flowchart illustrating a video stream processing method according to an embodiment of the present application, where the method is applied to a scheduling system, and specifically includes the following steps:
and step S202, acquiring access information and bandwidth information corresponding to the measurement room.
Specifically, the measurement brushing room specifically refers to a live broadcast room with measurement brushing behavior, and the live broadcast room may be any type of live broadcast room, such as a game live broadcast room, a gourmet live broadcast room, a science popularization live broadcast room, and the embodiment is not limited herein. Correspondingly, the volume swiping behavior specifically refers to a behavior of improving popularity of the live broadcast room by using an abnormal means, such as simulating a virtual user to access the live broadcast room, or accessing the live broadcast room through multiple devices under the same IP address. Correspondingly, the access information specifically refers to information including user information of an access counting room, an access address of a user, the number of people visiting the room and the like; accordingly, the bandwidth information specifically includes the bandwidth used by the measurement room, the bandwidth corresponding to the number of people, and the like.
Based on this, in order to accurately locate the abnormal degree corresponding to the measurement brushing room, resource adjustment can be performed according to the abnormal degree of the measurement brushing room, transcoding resources are saved, access information and bandwidth information corresponding to the measurement brushing room can be acquired first, and the abnormal degree of the measurement brushing room is determined according to a dual authentication mode of the access information and the bandwidth information.
Before the above, it is considered that the live broadcast platform bears more live broadcast rooms, normal rooms and measurement brushing rooms exist, and people corresponding to the normal rooms are visited by real users, so that the transcoding requirement of the normal rooms is determined by the number of the real users. And the transcoding demand in the measurement-brushing room is influenced by the measurement-brushing behavior of the abnormal user, so that the measurement-brushing room needs to be determined from a plurality of live broadcast rooms of the live broadcast platform, and then subsequent processing operation is performed, in the embodiment, the specific implementation mode is as follows:
acquiring user access information corresponding to a plurality of initial service rooms respectively; determining access equipment information corresponding to each initial service room according to the user access information; and comparing the access equipment information with reference access equipment information, and determining the brushing volume rooms in the plurality of initial service rooms according to the comparison result.
Specifically, the initial service room specifically refers to a plurality of live broadcast rooms in which the live broadcast platform is live broadcast; correspondingly, the user access information specifically refers to information corresponding to the access user in each live broadcast room, and includes, but is not limited to, device information, identity information, an IP address, and the like of the user. Correspondingly, the access device information specifically refers to information corresponding to a device where the user accesses the initial service room, and the information related to the terminal where the user watches the live broadcast room can be determined through the access device information. Correspondingly, the reference access device information specifically refers to access device information preset by the live broadcast platform, and is used for measuring whether the brushing behavior exists in each initial service room.
Based on this, since the live broadcast platform includes a plurality of initial service rooms, in order to be able to screen out the rooms having the traffic refreshing behavior, user access information corresponding to each of the plurality of initial service rooms may be obtained first, and access device information corresponding to each of the initial service rooms is determined according to the user access information, so as to determine the number of devices and the device type corresponding to each of the initial service rooms according to the access device information. At this time, the access device information is compared with the reference access device information, whether the volume refreshing behavior exists in each initial service room can be determined according to the comparison result, and finally, the live broadcast room with the volume refreshing behavior is selected to serve as the volume refreshing room, so that the subsequent transcoding resources can be conveniently adjusted.
In specific implementation, when the access device information is compared with the reference access device information, the device proportion in each initial service room is actually compared to determine whether the device proportion is similar to the real device proportion, so that the purpose of determining the brushing volume room is achieved.
In addition, the determination of the brushing amount room can also be realized by other manners, such as detecting whether the number of users belonging to the same IP address in the initial service room is greater than a threshold value, or detecting whether the ratio of the number of the bullets in the initial service room to the number of the visitors meets the threshold value, and the like. In practical applications, the detection mode of the brushing amount room may be set according to practical application scenarios, and the embodiment is not limited herein.
For example, user access information corresponding to a live broadcast room A and a live broadcast room B in a live broadcast platform are obtained, and the number of people watching live broadcasts in the live broadcast room through android system equipment is Ra1, the number of people watching live broadcasts through IOS system equipment is Ra2, and the number of people watching live broadcasts through a webpage is Ra 3; according to the user access information of the live broadcast room B, the number of people watching live broadcast through the android system equipment in the live broadcast room is Rb1, the number of people watching live broadcast through the IOS system equipment is Rb2, and the number of people watching live broadcast through a webpage is Rb 3.
Further, the proportion of the android system, the IOS system and the webpage in the live broadcast room A is determined to be Ra1 through calculation: ra 2: ra3 ≈ 5:1: 1; determining the proportion of an android system, an IOS system and a webpage in a live broadcast room B as Rb1 through calculation: rb 2: rb3 ≈ 5:2: 1; and the reference proportion is 5:2:1, the fact that the brushing amount behavior exists in the live broadcast room A is determined through comparison, and the fact that the brushing amount behavior does not exist in the live broadcast room B is determined, the live broadcast room A is determined to be the brushing amount live broadcast room, so that the dynamic adjustment of transcoding resources can be conveniently carried out subsequently.
In conclusion, the traffic refreshing behavior of each initial service room is determined based on the access device information, so that the traffic refreshing room can be accurately screened from the initial service rooms, dynamic adjustment of transcoding resources can be performed conveniently in the subsequent process, and the resource utilization rate is improved.
Furthermore, in the process of acquiring the access information and the bandwidth information, considering that the abnormal degree of the measurement brushing room needs to be located through the access information and the bandwidth information, the abnormal degree of the measurement brushing room is reflected in the popularity, and the popularity is directly influenced by the number of people, so that the abnormal degree of the measurement brushing room can be fed back by determining the number of heartbeat people and the number of bandwidth people, and in the embodiment, the specific implementation manner is as follows:
collecting the number of heartbeat people corresponding to the brushing room at a statistical moment through a heartbeat statistical module to serve as the access information; determining the global bandwidth and the average code rate corresponding to the brushing volume room at the statistical moment through a content distribution network; and calculating the bandwidth number corresponding to the brushing amount room according to the global bandwidth and the average code rate to serve as the bandwidth information.
Specifically, the heartbeat counting module is a module for counting the number of visitors to the live broadcast room at regular time, and the number of visitors to the live broadcast room can be fed back by reporting heartbeats to the heartbeat access module; correspondingly, the number of the heartbeat persons is the number of visitors corresponding to the room for counting the number of the times of counting; correspondingly, the statistical time specifically refers to a heartbeat reporting time, which can be set according to actual requirements, and this embodiment is not limited herein. Correspondingly, the global bandwidth specifically refers to the total bandwidth generated by the content distribution network at the statistical moment; correspondingly, the average code rate specifically refers to the code rate after all users average when the video stream is transcoded by the content distribution network at the statistical moment; correspondingly, the bandwidth number of people specifically refers to the number of people for carrying out stream pulling at the statistical moment.
It should be noted that the heartbeat number is the heartbeat reported by the user who is watching the live broadcast room, and is closer to the real number; the bandwidth number is the number fed back by pulling flow, and the bandwidth number is farther away from the real number on the basis of the brushing amount behavior.
Based on this, in order to accurately determine the abnormal degree of the measurement brushing room, the number of heartbeat people corresponding to the measurement brushing room can be collected at a statistical moment through the heartbeat statistical module and used as access information; meanwhile, the global bandwidth and the average code rate corresponding to the brushing room are determined at the statistical moment through the content distribution network, and then the number of people who pull streams from the content distribution network at the statistical moment is determined in a mode of calculating the ratio of the global bandwidth to the average code rate, namely the number of bandwidth people, and the bandwidth people are used as bandwidth information, so that the subsequent abnormal score calculation is facilitated.
That is, the user actually makes a viewing request to the player, the player requests the scheduling system for the actual playing address, and different definitions correspond to different playing addresses. Therefore, after the player takes the playing address, a long link is established with the content distribution network, the content distribution network feeds back the live broadcast picture in real time to pull and watch the live broadcast picture from the content distribution network, and the content distribution network generates bandwidth at the moment. If the bandwidth of the stream of the viewed room is 5M, the bandwidth generated in the content distribution network is also 5M, if there are 100 users, the generated bandwidth is 500M, and when there is a brushing behavior, there is no actual viewing behavior, and the bandwidth generated at the content distribution network end is much less than 500M.
Therefore, the global bandwidth generated by the brushing room and the average code rate of the room stream need to be acquired from the content distribution network in real time for calculation, and then the total number of people who pull the stream at the current time, that is, the number of bandwidth people, can be obtained according to the average code rate of the global bandwidth, so as to facilitate subsequent use. It should be noted that, since the stream code rate of the room fluctuates within a certain range, the average code rate will have a certain error with respect to the true code rate.
According to the above example, after the brushing volume live broadcast room is determined, according to the heartbeat reported by the brushing volume live broadcast room timing heartbeat statistical service, the number of the heartbeat people corresponding to the brushing volume live broadcast room at the time T is determined as S1; meanwhile, according to the real bandwidth M generated by the content distribution network at the time T and the average code rate N, the number of people with the bandwidth is calculated to be M to N, namely S2, so that the abnormal degree can be determined on the basis of the following steps.
In conclusion, by adopting the heartbeat counting module to determine the number of heartbeat people and the content distribution network to determine the number of bandwidth people, the number of people related to the measurement brushing room at the current moment can be respectively determined from two dimensions of flow pulling and access, so that the abnormal degree of the measurement brushing room can be conveniently calculated based on the above, and the transcoding resources can be dynamically adjusted according to the abnormal degree.
And step S204, calculating the abnormal score of the brushing room according to the access information and the bandwidth information.
Specifically, after the access information and the bandwidth information are determined, further, in order to accurately locate the abnormal level of the measurement room, the abnormal score of the measurement room may be calculated by combining the access information and the bandwidth information, so that the abnormal degree of the measurement room is represented by the abnormal score, and then the dynamic allocation of the transcoding resources may be completed by the abnormal score subsequently. The abnormal score specifically refers to a score representing the abnormal degree of the brushing volume room, and the higher the abnormal score is, the higher the abnormal degree of the brushing volume room is, and the stronger the brushing volume behavior contained in the brushing volume room is.
Further, as can be seen from the description contents of the above embodiment, the access information and the bandwidth information correspond to the number of heartbeat people and the number of bandwidth people, respectively, and therefore, the abnormal score corresponding to the brushing amount room can be obtained by calculating the ratio of the two, in this embodiment, the specific implementation manner is as follows:
calculating the difference between the number of the heartbeat people and the number of the bandwidth people to obtain the number of abnormal people corresponding to the measurement brushing room; and calculating the ratio of the abnormal number of people to the number of heartbeat people, and obtaining the ratio of the abnormal number of people corresponding to the brushing room as the abnormal score.
Specifically, the abnormal number is a difference value between the number of heartbeat people and the number of bandwidth people, and is used for representing a difference between the number of heartbeat people and the number of bandwidth people, so that the number of users with a volume brushing behavior in a volume brushing room is reflected; correspondingly, the abnormal people number ratio specifically refers to a ratio between the abnormal people number and the heartbeat people number, is used for representing the proportion of the user number of the brushing amount behavior in the brushing amount room, and is used for representing the abnormal degree of the brushing amount room, namely the abnormal score.
Based on the above, after the number of the heartbeat people and the number of the bandwidth people are obtained, the number of the heartbeat people close to the number of the real people is considered, so that the number of abnormal people corresponding to the brushing room can be determined through the difference value between the number of the heartbeat people and the number of the bandwidth people, namely, the number of the users with abnormal behaviors in the brushing room can be represented; and then calculating the ratio of the abnormal number of people to the number of heartbeat people, namely obtaining the ratio of the user of the brushing amount behavior in the brushing amount room as an abnormal score.
That is to say, the higher the occupancy is, the more the number of the refresh users contained in the refresh room is, the less the corresponding popularity is, and the more the consumed resources are, so that in order to facilitate the subsequent dynamic adjustment of the transcoding resources, the abnormal degree of the refresh room can be represented by the abnormal score, and thus the transcoding processing of the video stream can be completed according to the number of the real users by selecting the corresponding transcoding strategy according to the abnormal score.
Along the above example, the number of heartbeats in the brushing volume live broadcast room is S1, and the number of bandwidth people is S2; on the basis, the difference between the number of heartbeat people S1 and the number of bandwidth people S2 can be calculated firstly to obtain the number of abnormal people S3 corresponding to the brushing volume live broadcast room, then the ratio of the number of abnormal people S3 to the number of heartbeat people S1 is calculated, the ratio of the number of abnormal people is obtained as X according to the calculation result, and therefore the dynamic adjustment of the transcoding mode of the brushing volume live broadcast room can be conveniently carried out according to the ratio of the number of abnormal people X.
In conclusion, the abnormal degree of the brushing volume room is determined by calculating the abnormal number ratio, and the proportion of the users in the brushing volume behavior in the brushing volume room can be reflected through the number of people, so that the subsequent transcoding resource adjustment can be accurately completed on the basis of the proportion, and the purpose of saving resources is achieved.
And S206, transcoding the source video stream of the brushing volume room according to the transcoding strategy corresponding to the abnormal score.
And S208, generating at least one playing address corresponding to the brushing volume room according to the transcoding result.
Specifically, after the abnormal score corresponding to the credit room is determined, a transcoding strategy corresponding to the abnormal score can be further selected to transcode the source video stream corresponding to the credit room, so that the playing addresses corresponding to different definitions can be obtained according to the transcoding result. That is to say, different abnormal scores correspond to different transcoding strategies, and when transcoding is performed on the source video stream corresponding to the brushing volume room, transcoding is performed according to different transcoding strategies, so that at least one playing address corresponding to different abnormal scores can be obtained according to a transcoding result.
That is to say, when transcoding is performed on the source video stream of the cursory room according to different transcoding strategies corresponding to different abnormal score values, one playing address corresponding to the cursory room, or two playing addresses corresponding to the cursory room, or three or more playing addresses corresponding to the cursory room may be obtained according to different transcoding strategies, that is, different transcoding strategies perform n-way transcoding processing on the source video stream by using different transcoding resources, where n is a positive integer greater than or equal to 1. When the source video stream is transcoded by the transcoding strategy to obtain two or more playing addresses, the source video stream is processed according to the code rate in the transcoding strategy to generate video streams with different definitions, so that in the two or more playing addresses corresponding to the refreshing room generated by the transcoding strategy, each playing address corresponds to the video stream with different definitions, and the purpose that when stream pushing is carried out on a client, the video stream with proper definition can be selected according to the playing requirement of the client is achieved.
The transcoding strategy specifically refers to a strategy for transcoding source video streams by different paths, and the abnormal score is inversely proportional to the number of transcoding paths, that is, the higher the abnormal score is, the fewer the transcoding paths corresponding to the transcoding strategy is, otherwise, the lower the abnormal score is, the more the transcoding paths corresponding to the transcoding strategy are, thereby achieving the purpose of saving resources. Correspondingly, the source video stream is specifically an original video stream corresponding to the anchor of the brushing volume room, and is not transcoded. Correspondingly, the playing address specifically refers to a playing address corresponding to a video stream with different definitions, and is used for feeding back the playing address with different definitions to the user according to the playing requirement of the user, so as to play the live broadcast picture corresponding to the definition required by the user in the player.
Further, when transcoding the source video stream according to the transcoding policy corresponding to the abnormal score, a transcoding scheme adapted to the current abnormal score is selected from a plurality of transcoding schemes, so as to achieve the purpose of saving resources, in this embodiment, the specific implementation manner is as follows:
comparing the abnormal score with a plurality of preset score intervals, and determining a target score interval in the score intervals according to a comparison result; determining a target abnormal grade corresponding to the target score interval based on a corresponding relation between pre-established score intervals and abnormal grades, and selecting the transcoding strategy according to the target abnormal grade; and transcoding the source video stream of the flash room by using the transcoding strategy.
Specifically, the score interval is an interval divided by two set score thresholds, is used for measuring the segment position to which the abnormal score belongs, and is used for determining a transcoding strategy of a corresponding brushing amount room; correspondingly, the target score interval specifically refers to a score interval to which the abnormal score belongs after being compared with the abnormal score in the multiple score intervals, and is used for determining the abnormal level of the measurement brushing room, so that the transcoding strategy corresponding to the level is selected. Correspondingly, the abnormal grade specifically refers to a grade representing the abnormal degree of the measurement refreshing room, and different abnormal grades correspond to different transcoding strategies, so that the transcoding strategy corresponding to the measurement refreshing room can be selected by determining the abnormal grade so as to be used for transcoding the source video stream of the measurement refreshing room.
The abnormal score is in a direct proportion relation with the abnormal grade, namely the higher the abnormal score is, the higher the abnormal grade of the brushing amount room is. The abnormal grade and the number of transcoding paths corresponding to the transcoding strategy are in an inverse relation, namely the higher the abnormal grade is, the fewer the number of transcoding paths corresponding to the transcoding strategy selected for the traffic brushing room is; correspondingly, the abnormal score and the number of transcoding paths corresponding to the transcoding strategy are in an inverse relation, namely the higher the abnormal score is, the fewer the number of transcoding paths corresponding to the transcoding strategy selected for the traffic brushing room is.
Correspondingly, the relationship between the score interval and the abnormal grade is a pre-established relationship, and different score intervals correspond to different abnormal grades, for example, if the score interval is S1-S2, the abnormal grade is A1 grade; the score interval is S2-S3, the exception grade is A2 grade, and so on; in practical application, the corresponding relationship between the score interval and the abnormal level may be established by selecting different granularities according to a practical application scenario, and this embodiment is not limited herein.
In practical applications, the setting of the multiple score intervals may be adjusted according to practical application scenarios, and the embodiment is not limited herein. The smaller the granularity of the score interval is, the more people really watching the live broadcast are, and on the basis, a corresponding multi-channel transcoding strategy can be selected to meet the watching requirements of different users by continuously improving the number of the transcoding definition.
Based on this, after the abnormal score is obtained, the abnormal score can be compared with a plurality of score intervals, a target score interval to which the abnormal score belongs can be determined according to a comparison result, then a target abnormal grade corresponding to the brush volume room can be determined through the target score interval by inquiring a corresponding relation between the pre-established score interval and the abnormal grade, so that a transcoding strategy of the brush volume room is positioned according to the target abnormal grade, and finally, a source video stream of the brush volume room is transcoded by using the transcoding strategy corresponding to the abnormal score.
In conclusion, the abnormal level of the refreshed volume room is reasonably positioned by setting a plurality of score intervals, so that transcoding processing on the source video stream by selecting a strategy closer to the refreshed volume room from a plurality of transcoding strategies can be realized, the resource utilization rate can be fully improved, and the purpose of saving resources is achieved.
Furthermore, considering that different score intervals correspond to different abnormal grades, and different abnormal grades correspond to different transcoding strategies, when performing comparison, a transcoding strategy corresponding to an abnormal grade needs to be selected according to a comparison result to perform transcoding processing, so as to generate playing addresses corresponding to different definitions, in this embodiment, a specific implementation manner is as follows:
(1) under the condition that the abnormal score is determined to be larger than or equal to the score threshold of the maximum score interval according to the comparison result, taking the maximum score interval as the target score interval; correspondingly, generating at least one play address corresponding to the brushing volume room according to the transcoding result comprises: and generating a source playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address is used as at least one playing address corresponding to the brushing volume room.
Specifically, the maximum score interval specifically refers to an interval in which the number of the brushing behavior users representing the brushing room is the highest, at this time, resource waste will be maximized, and in order to achieve the purpose of saving resources, a policy which saves the most resources is selected as a transcoding policy, that is, the transcoding policy will not transcode the source video stream; the score threshold of the maximum score interval refers to the lower limit score of the interval. Correspondingly, the source playing address is the playing address directly corresponding to the source video stream, and transcoding processing is not performed.
Based on this, when the abnormal score is determined to be greater than or equal to the score threshold of the maximum score interval according to the comparison result, it is indicated that the number of abnormal users in the brushing volume room exceeds the maximum upper limit, in order to save resources, a default transcoding strategy can be selected to process the source video stream at this time, that is, the source video stream is not transcoded, and a source playing address corresponding to the source video stream is directly generated as at least one playing address corresponding to the brushing volume room, so as to achieve the purpose of saving resources.
According to the above example, the ratio of the number of abnormal people is X, at the moment, the X is compared with the threshold value of each interval, the fact that the X is larger than the lower limit threshold value A of the maximum interval is determined according to the comparison result, it is shown that the number of abnormal people contained in the current volume brushing live broadcast room exceeds A, the number of people actually watched is not right, in order to save resources, transcoding can be carried out on the source video stream of the volume brushing live broadcast room, the playing address corresponding to the source video stream is directly generated and provided for audiences, at the moment, the audiences can only watch live broadcast through the definition corresponding to the source video stream, and switching of live broadcast definition cannot be carried out.
(2) Determining that the abnormal score is smaller than a score threshold of a maximum score interval according to a comparison result, and taking a middle score interval as the target score interval under the condition that the abnormal score is larger than or equal to the score threshold of the middle score interval; correspondingly, generating at least one play address corresponding to the brushing volume room according to the transcoding result comprises: and generating a source playing address and a reference definition playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address and the reference definition playing address are used as at least one playing address corresponding to the brushing volume room.
Specifically, the intermediate score interval specifically refers to an interval representing a moderate proportion of the number of the brushing behavior users in the brushing room, and at this time, a certain amount of resources are wasted; correspondingly, the reference definition playing address is a playing address obtained by transcoding the source video stream according to a reference transcoding mode.
Based on this, when the abnormal score is determined to be smaller than the lower limit score threshold of the maximum score interval according to the comparison result, and is greater than or equal to the lower limit score threshold of the middle score interval, it is described that the number of abnormal users in the brushing volume room is smaller than the maximum upper limit, but is still higher than the middle upper limit.
According to the above example, the ratio of the number of abnormal people is X, at the moment, the X is compared with the threshold value of each interval, the X is determined to be smaller than A and larger than B according to the comparison result, the fact that the number of the abnormal people contained in the current volume brushing live broadcast room exceeds B but is not larger than A is shown, the number of the real watching people is nearly half, in order to provide the playing address meeting the watching requirement of the user for the part of users, one path of transcoding can be carried out on the source video stream, the definition of the transcoding is very low, namely, the definition of the standard definition, the playing address corresponding to the definition is obtained according to the transcoding result, and the playing address corresponding to the source video stream is obtained, so that when the user watches the source video stream, the playing address of the standard definition can be selected, or the playing address of the source definition is watched by live broadcast.
(3) Under the condition that the abnormal score is smaller than a score threshold of a reference score interval according to the comparison result, taking the reference score interval as the target score interval; correspondingly, generating at least one play address corresponding to the brushing volume room according to the transcoding result comprises: and generating a source playing address corresponding to the source video stream according to the transcoding result, and at least two definition playing addresses corresponding to different definitions, wherein the source playing address and the at least two definition playing addresses serve as at least one playing address corresponding to the brushing volume room.
Specifically, the reference score interval specifically refers to an interval in which the number of the users representing the brushing behavior of the brushing room is relatively low, at this time, a certain waste of resources also exists, in order to achieve the purpose of saving resources, a policy including at least two transcoding numbers is selected as a transcoding policy, that is, the transcoding policy only transcodes the source video stream at least twice, correspondingly, the definition playing address specifically refers to a playing address corresponding to different definitions, and different definition playing addresses are playing addresses obtained after different transcoding processing is performed on the source video stream.
Based on this, when it is determined that the abnormal score is smaller than the upper limit score threshold of the reference score interval according to the comparison result, it is indicated that the number of abnormal users in the brushing volume room is small, but the abnormal users still exist, in order to save resources, a transcoding strategy including at least two transcoding numbers may be selected to process the source video stream, so as to generate a source playing address and at least two definition playing addresses corresponding to the source video stream according to the transcoding result, and it is sufficient to use the playing address as at least one playing address corresponding to the brushing volume room, so as to achieve the purpose of saving resources.
According to the above example, the ratio of the number of abnormal people is X, at the moment, the X is compared with the threshold value of each interval, the fact that the X is smaller than the C is determined according to the comparison result, it is stated that the number of abnormal people contained in the current brushing volume live broadcasting room is not large, in order to provide a playing address meeting the watching requirement of a real user, the source video stream can be subjected to multi-channel transcoding, the definition of each channel of transcoding is different, namely, the standard definition, the high definition and the ultra-high definition are contained, the playing address corresponding to the standard definition is obtained according to the transcoding result, the playing address of the high definition, the playing address corresponding to the ultra-high definition and the playing address corresponding to the source video stream are obtained, and therefore when the user watches the live broadcasting with the appropriate playing address selected according to the requirement.
In practical application, when a plurality of score intervals are set, the division granularity of the score intervals can be selected according to practical application scenes, and a set number of score intervals can be created by adopting division strategies with different granularities for different live broadcast scenes, so that in a transcoding stage, different levels of transcoding control can be performed for different traffic volume refreshing rooms with different traffic volume refreshing behaviors, and the embodiment is not limited herein.
On this basis, in the stream pushing stage, stream pushing is completed by analyzing the viewing request of the user, and in this embodiment, the specific implementation manner is as follows:
under the condition that a viewing request submitted by a user terminal aiming at the measurement brushing room is received, determining the target definition according to the viewing request; and selecting a target playing address corresponding to the target definition in the content distribution network, and pushing the stream to the user terminal according to the target playing address.
Specifically, the viewing request refers to a request submitted by a user for a measurement room, and the request includes identity information of a user holding the user terminal, request definition information and the like; correspondingly, the target definition specifically refers to the definition of the live content of the measurement room requested to be watched by the user terminal. Correspondingly, the target play address specifically refers to a play address corresponding to the definition of the target.
Based on this, under the condition that a user terminal submits a watching request aiming at the measurement brushing room, the watching request can be analyzed at this time, the target definition which needs to be watched by the user of the user terminal is determined, then a target playing address corresponding to the target definition is selected in the content distribution network, and stream pushing is carried out on the user terminal according to the target playing address, namely, a video stream corresponding to the target definition is pushed to the user terminal.
Following the above example, under the condition of receiving the request that user first got into live broadcast room A, this moment can be through resolving the request, confirm that the definition that user first watched live broadcast is high definition, then can select the broadcast address of high definition in the content distribution network according to high definition this moment to carry out the live broadcast stream to user first's terminal according to the broadcast address of high definition, so as to reach user first and can watch the live broadcast content in live broadcast room A through high definition at the terminal.
The video stream processing method provided by the application can be used for reducing resource consumption brought by a measurement brushing room, access information and bandwidth information corresponding to the measurement brushing room can be obtained firstly, abnormal scores corresponding to the measurement brushing room are determined according to the access information and the bandwidth information, abnormal degrees corresponding to the measurement brushing room are represented through the abnormal scores, at the moment, video streams of the measurement brushing room can be transcoded according to transcoding strategies corresponding to the abnormal scores, transcoding processing of the source video streams can be completed by adopting different strategies aiming at live broadcast rooms with different measurement brushing degrees, the purpose of dynamically adjusting and calculating resources is achieved, and finally at least one playing address corresponding to the measurement brushing room can be generated according to transcoding results. The abnormal score corresponding to the brush measurement rooms is calculated through the access information and the bandwidth information, the accuracy of the abnormal score can be guaranteed, and on the basis, transcoding strategies are dynamically selected to transcode the brush measurement rooms with different abnormal degrees, so that computing resources are effectively saved.
The following description will further describe the video stream processing method with reference to fig. 3 by taking an application of the video stream processing method provided by the present application in a live game scene as an example. Fig. 3 shows a processing flow chart of a video stream processing method applied in a game live scene according to an embodiment of the present application, which specifically includes the following steps:
step S302: and acquiring user access information corresponding to the plurality of initial service rooms respectively.
And step S304, determining access equipment information corresponding to each initial service room according to the user access information.
And step S306, comparing the access equipment information with the reference access equipment information, and determining a brushing volume room in a plurality of initial service rooms according to the comparison result.
And step S308, collecting the number of heartbeat people corresponding to the brushing room at the statistical time through a heartbeat statistical module to serve as access information.
Step S310, determining the global bandwidth and the average code rate corresponding to the brushing room at the statistical time through the content distribution network.
And step S312, calculating the bandwidth number corresponding to the brushing room according to the global bandwidth and the average code rate to serve as bandwidth information.
And step S314, calculating the difference between the number of the heartbeat people and the number of the bandwidth people, and obtaining the number of abnormal people corresponding to the brushing amount room.
Step S316, calculating the ratio of the abnormal number to the heartbeat number, and obtaining the ratio of the abnormal number corresponding to the brushing room as an abnormal score.
Step S318, comparing the abnormal score with a plurality of preset score intervals, and determining a target score interval among the plurality of score intervals according to the comparison result.
Step S320, determining a target abnormal level corresponding to the target score interval based on the pre-established correspondence between the score interval and the abnormal level, and selecting a transcoding policy according to the target abnormal level.
Step S322, transcoding the source video stream of the refresh volume room by using the transcoding strategy.
Step S324, at least one playing address corresponding to the brushing volume room is generated according to the transcoding result.
(1) Determining the maximum score interval as a target score interval under the condition that the abnormal score is determined to be more than or equal to the score threshold of the maximum score interval according to the comparison result; further, a source playing address corresponding to the source video stream is generated according to the transcoding result and serves as at least one playing address corresponding to the brushing volume room.
(2) Determining that the abnormal score is smaller than a score threshold of the maximum score interval according to the comparison result, and determining that the middle score interval is a target score interval under the condition that the abnormal score is larger than or equal to the score threshold of the middle score interval; further, a source playing address and a reference definition playing address corresponding to the source video stream are generated according to the transcoding result and serve as at least one playing address corresponding to the measurement brushing room.
(3) Determining the benchmark score interval as a target score interval under the condition that the abnormal score is smaller than the score threshold of the benchmark score interval according to the comparison result; further, a source playing address corresponding to the source video stream and at least two definition playing addresses corresponding to different definitions are generated according to the transcoding result and serve as at least one playing address corresponding to the brushing volume room.
And step S326, under the condition that the user terminal submits the viewing request aiming at the counting room is received, determining the target definition according to the viewing request.
Step S328, selecting a target play address corresponding to the target definition in the content distribution network, and performing stream pushing to the user terminal according to the target play address.
In summary, in order to reduce resource consumption caused by the measurement rooms, access information and bandwidth information corresponding to the measurement rooms may be obtained first, abnormal scores corresponding to the measurement rooms are determined according to the access information and the bandwidth information, abnormal degrees corresponding to the measurement rooms are represented by the abnormal scores, at this time, video streams of the measurement rooms may be transcoded according to transcoding strategies corresponding to the abnormal scores, transcoding processing of the source video streams may be completed by adopting different strategies for live broadcast rooms with different measurement degrees, the purpose of dynamically adjusting and calculating resources is achieved, and finally, at least one play address corresponding to the measurement rooms may be generated according to transcoding results. The abnormal score corresponding to the brush measurement rooms is calculated through the access information and the bandwidth information, the accuracy of the abnormal score can be guaranteed, and on the basis, transcoding strategies are dynamically selected to transcode the brush measurement rooms with different abnormal degrees, so that computing resources are effectively saved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a video stream processing apparatus, and fig. 4 shows a schematic structural diagram of a video stream processing apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
an obtaining module 402 configured to obtain access information and bandwidth information corresponding to a measurement room;
a calculation module 404 configured to calculate an anomaly score for the brush room based on the access information and the bandwidth information;
a transcoding module 406, configured to transcode the source video stream of the brush amount room according to a transcoding policy corresponding to the abnormal score;
the generating module 408 is configured to generate at least one play address corresponding to the swipe room according to the transcoding result.
In an optional embodiment, the obtaining module 402 is further configured to:
collecting the number of heartbeat people corresponding to the brushing room at a statistical moment through a heartbeat statistical module to serve as the access information; determining the global bandwidth and the average code rate corresponding to the brushing volume room at the statistical moment through a content distribution network; and calculating the bandwidth number corresponding to the brushing amount room according to the global bandwidth and the average code rate to serve as the bandwidth information.
In an optional embodiment, the video stream processing apparatus further includes:
the room determining module is configured to acquire user access information corresponding to the plurality of initial service rooms respectively; determining access equipment information corresponding to each initial service room according to the user access information; and comparing the access equipment information with reference access equipment information, and determining the brushing volume rooms in the plurality of initial service rooms according to the comparison result.
In an optional embodiment, the calculation module 404 is further configured to:
calculating the difference between the number of the heartbeat people and the number of the bandwidth people to obtain the number of abnormal people corresponding to the measurement brushing room; and calculating the ratio of the abnormal number of people to the number of heartbeat people, and obtaining the ratio of the abnormal number of people corresponding to the brushing room as the abnormal score.
In an optional embodiment, the transcoding module 406 is further configured to:
comparing the abnormal score with a plurality of preset score intervals, and determining a target score interval in the score intervals according to a comparison result; determining a target abnormal grade corresponding to the target score interval based on a corresponding relation between pre-established score intervals and abnormal grades, and selecting the transcoding strategy according to the target abnormal grade; and transcoding the source video stream of the flash room by using the transcoding strategy.
In an optional embodiment, the abnormal score and the abnormal grade are in a direct proportion relation, and the abnormal grade and the transcoding path number corresponding to the transcoding strategy are in an inverse proportion relation; correspondingly, the abnormal score and the number of transcoding paths corresponding to the transcoding strategy are in an inverse relation.
In an optional embodiment, the transcoding module 406 is further configured to:
under the condition that the abnormal score is determined to be larger than or equal to the score threshold of the maximum score interval according to the comparison result, taking the maximum score interval as the target score interval;
accordingly, the generation module 408 is further configured to:
and generating a source playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address is used as at least one playing address corresponding to the brushing volume room.
In an optional embodiment, the transcoding module 406 is further configured to:
determining that the abnormal score is smaller than a score threshold of a maximum score interval according to a comparison result, and taking a middle score interval as the target score interval under the condition that the abnormal score is larger than or equal to the score threshold of the middle score interval;
accordingly, the generation module 408 is further configured to:
and generating a source playing address and a reference definition playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address and the reference definition playing address are used as at least one playing address corresponding to the brushing volume room.
In an optional embodiment, the transcoding module 406 is further configured to:
under the condition that the abnormal score is smaller than a score threshold of a reference score interval according to the comparison result, taking the reference score interval as the target score interval;
accordingly, the generation module 408 is further configured to:
and generating a source playing address corresponding to the source video stream according to the transcoding result, and at least two definition playing addresses corresponding to different definitions, wherein the source playing address and the at least two definition playing addresses serve as at least one playing address corresponding to the brushing volume room.
In an optional embodiment, the video stream processing apparatus further includes:
the stream pushing module is configured to determine target definition according to a watching request when the watching request submitted by a user terminal aiming at the brushing amount room is received; and selecting a target playing address corresponding to the target definition in the content distribution network, and pushing the stream to the user terminal according to the target playing address.
The application provides a video stream processing device, in order to reduce the resource consumption that the brush volume room brought, can acquire the access information and the bandwidth information that the brush volume room corresponds earlier, in order to confirm the unusual score that the brush volume room corresponds according to access information and bandwidth information, in order to represent the unusual degree that the brush volume room corresponds through unusual score, can transcode the video stream in the brush volume room according to the transcoding strategy that the unusual score corresponds this moment, realize that the transcoding of source video stream can be accomplished to the different strategies of can adopting in the live room of different brush volume degrees, reach the purpose of dynamic adjustment calculation resources, can generate at least one broadcast address that the brush volume room corresponds according to the transcoding result finally. The abnormal score corresponding to the brush measurement rooms is calculated through the access information and the bandwidth information, the accuracy of the abnormal score can be guaranteed, and on the basis, transcoding strategies are dynamically selected to transcode the brush measurement rooms with different abnormal degrees, so that computing resources are effectively saved.
The above is a schematic scheme of a video stream processing apparatus of the present embodiment. It should be noted that the technical solution of the video stream processing apparatus and the technical solution of the video stream processing method belong to the same concept, and details that are not described in detail in the technical solution of the video stream processing apparatus can be referred to the description of the technical solution of the video stream processing method.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 540 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 5 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 500 may also be a mobile or stationary server.
Wherein the processor 520 implements the steps of the video stream processing method when executing the instructions.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the video stream processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the video stream processing method.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the instructions implement the steps of the video stream processing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the video stream processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the video stream processing method.
The foregoing description has been directed to specific embodiments of this application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.
Claims (13)
1. A video stream processing method is applied to a scheduling system and comprises the following steps:
acquiring access information and bandwidth information corresponding to a measurement brushing room;
calculating an abnormal score of the brushing room according to the access information and the bandwidth information;
transcoding the source video stream of the brushing volume room according to the transcoding strategy corresponding to the abnormal score;
and generating at least one playing address corresponding to the brushing volume room according to the transcoding result.
2. The method of claim 1, wherein obtaining access information and bandwidth information corresponding to a brushing room comprises:
collecting the number of heartbeat people corresponding to the brushing room at a statistical moment through a heartbeat statistical module to serve as the access information;
determining the global bandwidth and the average code rate corresponding to the brushing volume room at the statistical moment through a content distribution network;
and calculating the bandwidth number corresponding to the brushing amount room according to the global bandwidth and the average code rate to serve as the bandwidth information.
3. The method of claim 1, wherein before the step of obtaining access information and bandwidth information corresponding to a brushing volume room is performed, the method further comprises:
acquiring user access information corresponding to a plurality of initial service rooms respectively;
determining access equipment information corresponding to each initial service room according to the user access information;
and comparing the access equipment information with reference access equipment information, and determining the brushing volume rooms in the plurality of initial service rooms according to the comparison result.
4. The method of claim 2, wherein calculating the anomaly score for the brush room based on the access information and the bandwidth information comprises:
calculating the difference between the number of the heartbeat people and the number of the bandwidth people to obtain the number of abnormal people corresponding to the measurement brushing room;
and calculating the ratio of the abnormal number of people to the number of heartbeat people, and obtaining the ratio of the abnormal number of people corresponding to the brushing room as the abnormal score.
5. The method according to claim 1, wherein transcoding the source video stream of the cursory room according to the transcoding strategy corresponding to the abnormal score comprises:
comparing the abnormal score with a plurality of preset score intervals, and determining a target score interval in the score intervals according to a comparison result;
determining a target abnormal grade corresponding to the target score interval based on a corresponding relation between pre-established score intervals and abnormal grades, and selecting the transcoding strategy according to the target abnormal grade;
and transcoding the source video stream of the refreshing room by utilizing the transcoding strategy.
6. The method of claim 5, wherein the abnormal score is in direct proportion to the abnormal grade, and the abnormal grade is in inverse proportion to the number of transcoding paths corresponding to the transcoding strategy; correspondingly, the abnormal score and the number of transcoding paths corresponding to the transcoding strategy are in an inverse relation.
7. The method according to claim 5 or 6, wherein said determining a target score interval among said plurality of score intervals according to the comparison result comprises:
under the condition that the abnormal score is determined to be larger than or equal to the score threshold of the maximum score interval according to the comparison result, taking the maximum score interval as the target score interval;
correspondingly, generating at least one play address corresponding to the measurement room according to the transcoding result comprises:
and generating a source playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address is used as at least one playing address corresponding to the measurement refreshing room.
8. The method according to claim 5 or 6, wherein said determining a target score interval among said plurality of score intervals according to the comparison result comprises:
determining that the abnormal score is smaller than a score threshold of a maximum score interval according to a comparison result, and taking a middle score interval as the target score interval under the condition that the abnormal score is larger than or equal to the score threshold of the middle score interval;
correspondingly, generating at least one play address corresponding to the measurement room according to the transcoding result comprises:
and generating a source playing address and a reference definition playing address corresponding to the source video stream according to the transcoding result, wherein the source playing address and the reference definition playing address are used as at least one playing address corresponding to the brushing volume room.
9. The method according to claim 5 or 6, wherein said determining a target score interval among said plurality of score intervals according to the comparison result comprises:
under the condition that the abnormal score is smaller than a score threshold of a reference score interval according to the comparison result, taking the reference score interval as the target score interval;
correspondingly, generating at least one play address corresponding to the brushing volume room according to the transcoding result comprises:
and generating a source playing address corresponding to the source video stream according to the transcoding result, and at least two definition playing addresses corresponding to different definitions as at least one playing address corresponding to the brushing volume room.
10. The method of claim 1, wherein after the step of generating at least one play address corresponding to the brushing volume room according to the transcoding result is performed, the method further comprises:
under the condition that a viewing request submitted by a user terminal aiming at the measurement brushing room is received, determining the target definition according to the viewing request;
and selecting a target playing address corresponding to the target definition in the content distribution network, and pushing the stream to the user terminal according to the target playing address.
11. A video stream processing apparatus, applied to a scheduling system, comprising:
the acquisition module is configured to acquire access information and bandwidth information corresponding to the measurement room;
a calculation module configured to calculate an anomaly score for the brush room based on the access information and the bandwidth information;
the transcoding module is configured to transcode the source video stream of the measuring room according to a transcoding strategy corresponding to the abnormal score;
and the generating module is configured to generate at least one playing address corresponding to the brushing volume room according to the transcoding result.
12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 when executing the instructions.
13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210445632.3A CN114945097B (en) | 2022-04-26 | 2022-04-26 | Video stream processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210445632.3A CN114945097B (en) | 2022-04-26 | 2022-04-26 | Video stream processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114945097A true CN114945097A (en) | 2022-08-26 |
CN114945097B CN114945097B (en) | 2024-02-23 |
Family
ID=82907972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210445632.3A Active CN114945097B (en) | 2022-04-26 | 2022-04-26 | Video stream processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114945097B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115589489A (en) * | 2022-10-19 | 2023-01-10 | 抖音视界有限公司 | Video transcoding method, device, equipment, storage medium and video on demand system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277160A (en) * | 2017-07-12 | 2017-10-20 | 北京潘达互娱科技有限公司 | A kind of content delivery network node switching method and device |
CN107566897A (en) * | 2017-07-19 | 2018-01-09 | 北京奇艺世纪科技有限公司 | A kind of discrimination method, device and the electronic equipment of video brush amount |
CN109241343A (en) * | 2018-07-27 | 2019-01-18 | 北京奇艺世纪科技有限公司 | A kind of brush amount user identifying system, method and device |
CN109495343A (en) * | 2018-11-20 | 2019-03-19 | 网宿科技股份有限公司 | Processing method, device and the server of abnormal flow data |
CN112788357A (en) * | 2020-12-30 | 2021-05-11 | 北京达佳互联信息技术有限公司 | Network live broadcast method, device, server and computer readable storage medium |
CN112995689A (en) * | 2021-02-24 | 2021-06-18 | 上海哔哩哔哩科技有限公司 | Method and device for determining brushing amount of live broadcast room |
CN113068052A (en) * | 2021-03-15 | 2021-07-02 | 上海哔哩哔哩科技有限公司 | Method for determining brushing amount of live broadcast room, live broadcast method and data processing method |
CN113676754A (en) * | 2021-08-18 | 2021-11-19 | 上海哔哩哔哩科技有限公司 | Live video transcoding method and device |
CN114024737A (en) * | 2021-11-02 | 2022-02-08 | 上海哔哩哔哩科技有限公司 | Method and device for determining brushing amount of live broadcast room |
-
2022
- 2022-04-26 CN CN202210445632.3A patent/CN114945097B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277160A (en) * | 2017-07-12 | 2017-10-20 | 北京潘达互娱科技有限公司 | A kind of content delivery network node switching method and device |
CN107566897A (en) * | 2017-07-19 | 2018-01-09 | 北京奇艺世纪科技有限公司 | A kind of discrimination method, device and the electronic equipment of video brush amount |
CN109241343A (en) * | 2018-07-27 | 2019-01-18 | 北京奇艺世纪科技有限公司 | A kind of brush amount user identifying system, method and device |
CN109495343A (en) * | 2018-11-20 | 2019-03-19 | 网宿科技股份有限公司 | Processing method, device and the server of abnormal flow data |
CN112788357A (en) * | 2020-12-30 | 2021-05-11 | 北京达佳互联信息技术有限公司 | Network live broadcast method, device, server and computer readable storage medium |
CN112995689A (en) * | 2021-02-24 | 2021-06-18 | 上海哔哩哔哩科技有限公司 | Method and device for determining brushing amount of live broadcast room |
CN113068052A (en) * | 2021-03-15 | 2021-07-02 | 上海哔哩哔哩科技有限公司 | Method for determining brushing amount of live broadcast room, live broadcast method and data processing method |
CN113676754A (en) * | 2021-08-18 | 2021-11-19 | 上海哔哩哔哩科技有限公司 | Live video transcoding method and device |
CN114024737A (en) * | 2021-11-02 | 2022-02-08 | 上海哔哩哔哩科技有限公司 | Method and device for determining brushing amount of live broadcast room |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115589489A (en) * | 2022-10-19 | 2023-01-10 | 抖音视界有限公司 | Video transcoding method, device, equipment, storage medium and video on demand system |
CN115589489B (en) * | 2022-10-19 | 2024-04-19 | 抖音视界有限公司 | Video transcoding method, device, equipment, storage medium and video on demand system |
WO2024082770A1 (en) * | 2022-10-19 | 2024-04-25 | 抖音视界有限公司 | Video transcoding method and apparatus, and device, storage medium and video on-demand system |
Also Published As
Publication number | Publication date |
---|---|
CN114945097B (en) | 2024-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
He et al. | Rubiks: Practical 360-degree streaming for smartphones | |
CN113068052B (en) | Method for determining brushing amount of live broadcast room, live broadcast method and data processing method | |
US20210360224A1 (en) | Method and apparatus for transmission parameter distribution of video resource | |
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 | |
US11889133B2 (en) | Burst traffic processing method, computer device and readable storage medium | |
Park et al. | Mosaic: Advancing user quality of experience in 360-degree video streaming with machine learning | |
Molnar et al. | Cost-oriented adaptive multimedia delivery | |
CN113811013B (en) | Cluster capacity dynamic adjustment method, device, storage medium and communication system | |
CN113055692A (en) | Data processing method and device | |
CN113676754A (en) | Live video transcoding method and device | |
Wei et al. | A hybrid control scheme for 360-degree dynamic adaptive video streaming over mobile devices | |
CN110784731B (en) | Data stream transcoding method, device, equipment and medium | |
Ye et al. | VRCT: A viewport reconstruction-based 360 video caching solution for tile-adaptive streaming | |
CN114173160A (en) | Live broadcast stream pushing method and device | |
Sun et al. | Live 360 degree video delivery based on user collaboration in a streaming flock | |
Zhang et al. | Short video streaming with data wastage awareness | |
CN114363703B (en) | Video processing method, device and system | |
CN114945097A (en) | Video stream processing method and device | |
CN116088732A (en) | Multimedia playing method, device and equipment | |
CN111617466A (en) | Method and device for determining coding format and method for realizing cloud game | |
Li et al. | JUST360: Optimizing 360-Degree Video Streaming Systems With Joint Utility | |
CN106604085A (en) | Video sharing method and video sharing device | |
US10462248B2 (en) | Digital content sharing cloud service system, digital content sharing cloud service device, and method using the same | |
CN116980392A (en) | Media stream processing method, device, computer equipment and storage medium | |
CN116980662A (en) | Streaming media playing method, streaming media playing device, electronic equipment, storage medium and program product |
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 |