CN114945097B - Video stream processing method and device - Google Patents

Video stream processing method and device Download PDF

Info

Publication number
CN114945097B
CN114945097B CN202210445632.3A CN202210445632A CN114945097B CN 114945097 B CN114945097 B CN 114945097B CN 202210445632 A CN202210445632 A CN 202210445632A CN 114945097 B CN114945097 B CN 114945097B
Authority
CN
China
Prior art keywords
score
transcoding
room
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.)
Active
Application number
CN202210445632.3A
Other languages
Chinese (zh)
Other versions
CN114945097A (en
Inventor
孙袁袁
廖大达
温武汉
朱翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210445632.3A priority Critical patent/CN114945097B/en
Publication of CN114945097A publication Critical patent/CN114945097A/en
Application granted granted Critical
Publication of CN114945097B publication Critical patent/CN114945097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring 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 device, wherein the video stream processing method comprises the following steps: acquiring access information and bandwidth information corresponding to the 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 room according to a transcoding strategy corresponding to the abnormal score; and generating at least one play address corresponding to the brushing room according to the transcoding result.

Description

Video stream processing method and device
Technical Field
The present invention 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 ordering live broadcast hotness on a live broadcast platform. In general, the higher the popularity the more likely the anchor is to be viewed by the user. The basic data of the popularity is the number of live persons, namely the number of persons determines the size of the popularity. However, in order to enable a part of abnormal anchor to have higher popularity, the air brushing amount can be performed by an abnormal means so as to improve the heat of the anchor, which greatly influences the fairness of live broadcasting. On this basis, the live platform consumes more resources to complete when transcoding the video stream of the anchor.
Disclosure of Invention
In view of this, the embodiment of the 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, so as to solve the problem that the brushing amount room consumes more computing resources in the prior art.
According to a first aspect of an embodiment 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 the 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 room according to a transcoding strategy corresponding to the abnormal score;
and generating at least one play address corresponding to the brushing room according to the transcoding result.
According to a second aspect of 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 brushing room;
a calculation module configured to calculate an anomaly score for the swipe room from the access information and the bandwidth information;
The transcoding module is configured to transcode the source video stream of the brushing room according to a transcoding strategy corresponding to the abnormal score;
and the generating module is configured to generate at least one play address corresponding to the brushing room according to the transcoding result.
According to a third aspect of embodiments of the present application, 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.
In order to reduce resource consumption caused by the brushing room, the video stream processing method provided by the application can firstly acquire the access information and the bandwidth information corresponding to the brushing room, determine the abnormal score corresponding to the brushing room according to the access information and the bandwidth information, and represent the abnormal degree corresponding to the brushing room through the abnormal score, at this time, the video stream of the brushing room can be transcoded according to the transcoding strategy corresponding to the abnormal score, so that the transcoding processing of the source video stream can be completed by adopting different strategies aiming at live broadcasting rooms with different brushing degrees, the purpose of dynamically adjusting the computing resources is achieved, and at least one play address corresponding to the brushing room can be generated according to the transcoding result. The accuracy of the abnormal score can be ensured by calculating the abnormal score corresponding to the brushing room through the access information and the bandwidth information, and on the basis, the transcoding strategy is dynamically selected to transcode brushing rooms with different abnormal degrees, so that the computing resource is 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 process flow diagram of a video stream processing method applied in a live game scene according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video stream processing device according to an embodiment of the present application;
FIG. 5 is a block diagram of a computing device according to one 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, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The terminology used in one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the application. As used in this application in one or more embodiments 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 or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may 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 "at … …" or "responsive to a determination", depending on the context.
First, terms related to one or more embodiments of the present application will be explained.
Live stream: the transmission of video-on-demand data, which can be transmitted as a steady and continuous stream over a network to a viewer for viewing.
CDN: the content distribution network (Content Delivery Network) is an intelligent virtual network built on the basis of the existing network, and by means of the edge servers deployed in various places, a user can obtain required content nearby through load balancing, content distribution, scheduling and other functional modules of the center platform, network congestion is reduced, and user access response speed and hit rate are improved.
Transcoding: it means that the compressed encoded video stream is converted into another video stream in order to accommodate different network bandwidths, different terminal processing capabilities 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.
Under a live scene, the higher the popularity the more likely the anchor is to be viewed by the user. The basic data of the popularity is the number of live persons, namely the number of persons determines the size of the popularity. However, in order to enable a part of abnormal anchor to have higher popularity, the air brushing amount can be performed by an abnormal means so as to improve the heat of the anchor, which greatly influences the fairness of live broadcasting. On this basis, the live platform consumes more resources to complete when transcoding the video stream of the anchor. When the number of people in the live broadcasting room is large, transcoding can be automatically conducted, so that CDN bandwidth is reduced, the purpose of transcoding is to reduce the code rate of a source stream, different clients can watch under different networks, and bandwidth can be reduced. That is, the higher the popularity of the live broadcast, the more complex the transcoding strategy, but if the live broadcast is doped with the popularity of the live broadcast, more resources are consumed for transcoding, so an effective solution is needed to solve the above problem.
Referring to the schematic diagram shown in fig. 1, the heartbeat statistics service determines the access information of the room with the brushing behavior, and determines the bandwidth information through the content distribution network, then the scheduling system determines the abnormal score corresponding to the brushing room according to the access information and the bandwidth information, so as to represent the abnormal degree corresponding to the brushing room through the abnormal score, at this time, the video stream of the brushing room can be transcoded according to the transcoding strategy corresponding to the abnormal score, so that the transcoding processing of the source video stream can be completed by adopting different strategies for the live broadcasting room with different brushing degrees, the purpose of dynamically adjusting the computing resource is achieved, and at least one play address corresponding to the brushing room can be generated according to the transcoding result. The accuracy of the abnormal score can be ensured by calculating the abnormal score corresponding to the brushing room through the access information and the bandwidth information, and on the basis, the transcoding strategy is dynamically selected to transcode brushing rooms with different abnormal degrees, so that the computing resource is effectively saved.
On the basis, when the user watches live broadcast, the corresponding play address can be determined according to the access request of the user, so that stream pushing is performed to the user according to the play 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 shows a flowchart of 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:
step S202, access information and bandwidth information corresponding to the brushing room are obtained.
Specifically, the brushing room refers to a live broadcast room with brushing behavior, and the live broadcast room can be any type of live broadcast room, such as a game live broadcast room, a food live broadcast room, a science popularization live broadcast room, and the like, and the embodiment is not limited in any way. Accordingly, the behavior of the volume of the live broadcast is to improve the popularity of the live broadcast room by using abnormal means, such as simulating the virtual user to access the live broadcast room, or accessing the live broadcast room through a plurality of devices under the same IP address. Correspondingly, the access information specifically refers to information including user information for accessing the brushed rooms, access addresses of users, the number of people accessing the rooms and the like; accordingly, the bandwidth information specifically refers to information including the bandwidth used by the room to be refreshed, the number of people corresponding to the bandwidth, and the like.
Based on the method, in order to accurately position the abnormal degree corresponding to the brushing room, the resource adjustment can be conveniently carried out according to the abnormal degree of the brushing room, the transcoding resource is saved, the access information and the bandwidth information corresponding to the brushing room can be acquired first, and therefore the abnormal degree of the brushing room is determined according to the access information and the bandwidth information dual authentication mode.
Before that, considering that the live broadcasting rooms carried by the live broadcasting platform are more, normal rooms and brushing rooms exist, and the popularity corresponding to the normal rooms is obtained by the access of real users, so that the transcoding requirement of the normal rooms is determined by the number of the real users. The transcoding requirement of the brushing room is affected by the brushing behavior of the abnormal user, so that the brushing room needs to be determined from a plurality of live rooms of the live platform, and then the subsequent processing operation is performed, and in this embodiment, the specific implementation manner 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; comparing the access device information with reference access device information, and determining the brushing room in the plurality of initial business rooms according to the comparison result.
Specifically, the initial business room specifically refers to a plurality of live rooms in which the live platform is live broadcasting; accordingly, the user access information specifically refers to information corresponding to the access user of each live broadcast room, including, but not limited to, equipment information, identity information, IP address, etc. of the user. Correspondingly, the access device information specifically refers to information corresponding to the device of the user accessing the initial service room, and the terminal related information of the user watching the live broadcasting 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 amount behaviors exist in each initial business room.
Based on this, since the live broadcast platform includes a plurality of initial service rooms, in order to screen out rooms with the brushing amount behaviors from the rooms, user access information corresponding to the plurality of initial service rooms can be acquired first, and access equipment information corresponding to each initial service room is determined according to the user access information, so as to determine the number of equipment and the equipment type corresponding to each initial service room according to the access equipment information. And comparing the access equipment information with the reference access equipment information, determining whether the brushing amount behaviors exist in each initial service room according to the comparison result, and finally selecting a live broadcast room with the brushing amount behaviors as the brushing amount room to facilitate the subsequent adjustment of transcoding resources.
In the implementation, when the access equipment information and the reference access equipment information are compared, whether the equipment proportion in each initial service room is similar to the real equipment proportion is actually compared, so that the purpose of determining the brushing amount room is achieved.
In addition, the determination of the brushing room may be implemented in other manners, for example, detecting whether the number of users belonging to the same IP address in the initial service room is greater than a threshold, or detecting whether the ratio of the number of popup curtains to the number of visitors in the initial service room meets the threshold, or the like. In practical application, the detection mode of the brushing room can be set according to the practical application scene, and the embodiment is not limited in any way.
The method comprises the steps of obtaining user access information corresponding to a live broadcast room A and a live broadcast room B in a live broadcast platform, determining according to the user access information of the live broadcast room A, wherein the number of people watching live broadcast in the live broadcast room through android system equipment is Ra1, the number of people watching live broadcast through IOS system equipment is Ra2, and the number of people watching live broadcast through a webpage is Ra3; according to the user access information of the live broadcasting room B, the number of people watching live broadcasting through android system equipment in the live broadcasting room is Rb1, the number of people watching live broadcasting through IOS system equipment is Rb2, and the number of people watching live broadcasting through webpages is Rb3.
Further, the ratio of the android system, the IOS system and the webpage in the live broadcasting room A is determined to be Ra1 by calculation: ra2: ra 3. Apprxeq.5:1:1; the proportion of the android system, the IOS system and the webpage in the live broadcasting room B is calculated and determined to be Rb1: rb2: rb3 is approximately equal to 5:2:1; and the reference proportion is 5:2:1, and the live broadcast room A is determined to have the brushing amount behavior by comparison, and the live broadcast room B is determined to have no brushing amount behavior, so that the live broadcast room A is determined to be the brushing amount live broadcast room, and the subsequent dynamic adjustment of transcoding resources is facilitated.
In sum, the brushing amount behaviors of all the initial service rooms are determined based on the access equipment information, so that the brushing amount rooms can be accurately screened out from the initial service rooms, the subsequent dynamic adjustment of transcoding resources can be conveniently carried out, and the resource utilization rate is improved.
Further, in the process of acquiring the access information and the bandwidth information, the abnormal degree of the brushing room is considered to be positioned through the access information and the bandwidth information, and the abnormal degree of the brushing room is reflected in the popularity, and the popularity is directly influenced by the population, so that the abnormal degree of the brushing room can be fed back through determining the heartbeat population and the bandwidth population, and in the embodiment, the specific implementation mode is as follows:
collecting the number of heartbeat people corresponding to the brushing room at the counting time through a heartbeat counting module, and taking the number of heartbeat people as the access information; determining a global bandwidth and an average code rate corresponding to the brushing room at the statistical moment through a content distribution network; and calculating the bandwidth number corresponding to the brushing room according to the global bandwidth and the average code rate, and taking the bandwidth number as the bandwidth information.
Specifically, the heartbeat statistics module is a module for counting the number of visitors of the live broadcasting room in the appointed time, and the number of visitors of the live broadcasting room can be fed back through reporting the heartbeat to the heartbeat access module; correspondingly, the number of heartbeat people specifically refers to the number of visitors corresponding to the counted time brushing rooms; accordingly, the statistical time is specifically the time of reporting the heartbeat, which can be set according to the actual requirement, and the embodiment is not limited in any way. 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 content distribution network carries out transcoding processing on the video stream at the statistical moment; correspondingly, the bandwidth number of people specifically refers to the number of people who draw streams at the statistical moment.
It should be noted that, the number of heartbeat is the heartbeat reported by the user who is watching the live broadcast room, which is more close to the real number of people; the bandwidth number is the number of the pull-stream feedback, and is farther from the real number on the basis of the brushing behavior.
Based on the method, in order to accurately determine the abnormal degree of the brushing room, the heartbeat number corresponding to the brushing room can be collected at the counting moment by the heartbeat counting module and used as access information; and 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 by calculating the ratio of the global bandwidth to the average code rate, namely the number of bandwidth people and is used as bandwidth information, so that the subsequent calculation of abnormal scores is facilitated.
That is, the user actually initiates a viewing request to the player, which requests the actual play address from the scheduling system, and the different resolutions correspond to different play addresses. Therefore, after the player receives the playing address, a long link is established with the content distribution network, the content distribution network feeds back live pictures in real time to be pulled and watched from the content distribution network, and the content distribution network generates bandwidth. If the bandwidth of the stream of the watched 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 watching behavior, the bandwidth generated by the content distribution network is far less than 500M.
Therefore, the global bandwidth generated by the brushing amount room and the average code rate of the room flow are required to be obtained from the content distribution network in real time to calculate, and then the total number of the streaming at the current moment, namely the bandwidth number, can be obtained according to the average code rate on the global bandwidth ratio, so that the subsequent use is convenient. It should be noted that, since the stream rate of the room fluctuates within a certain range, there will be a certain error in the average rate with respect to the true rate.
Along the above example, after the brushing live broadcasting room is determined, determining that the number of heartbeat people corresponding to the brushing live broadcasting room at the moment T is S1 according to the heartbeat reported by the brushing live broadcasting room timing heartbeat statistical service; meanwhile, according to the real bandwidth M generated by the content distribution network at the moment T and the average code rate N, the bandwidth number is calculated to be M to N, namely S2, so that the subsequent determination of the abnormality degree is convenient.
In sum, by adopting the heartbeat statistics module to determine the number of heartbeat people and the content distribution network to determine the number of bandwidth people, the relative number of the brushing room at the current moment can be respectively determined from the two dimensions of pulling and accessing, so that the subsequent calculation of the abnormal degree of the brushing room based on the relative number of the brushing room is convenient, and the transcoding resource 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 brushed room, the abnormal score of the brushed room can be calculated by combining the access information and the bandwidth information, so that the abnormal degree of the brushed room is represented by the abnormal score, and the subsequent dynamic allocation of the transcoding resource can be completed through the abnormal score. The abnormal score specifically refers to a score representing the abnormal degree of the brushing room, and the higher the abnormal score is, the higher the abnormal degree of the brushing room is, and further the stronger brushing behavior is included.
Further, as can be seen from the description 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, so that the abnormal score corresponding to the brushing room can be obtained by calculating the duty ratio of the access information and the bandwidth information, and in this embodiment, the specific implementation manner is as follows:
calculating the difference between the number of heartbeats and the number of bandwidth people to obtain the abnormal number corresponding to the brushing room; and calculating the ratio of the abnormal number of people to the heartbeat number of people, and obtaining the abnormal number ratio corresponding to the brushing room as the abnormal score.
Specifically, the abnormal population specifically refers to the difference between the number of heartbeats and the number of bandwidth population, and is used for representing the difference between the two, so that the number of users with brushing behaviors in brushing rooms is represented; correspondingly, the abnormal population ratio specifically refers to the ratio between the abnormal population and the heartbeat population, and is used for representing the ratio of the number of users in the brushing room for representing brushing behaviors, and is used for representing the abnormal degree of the brushing room, namely an abnormal score.
Based on the above, after the heartbeat number and the bandwidth number are obtained, the heartbeat number is considered to be close to the real number, so that the abnormal number corresponding to the brushing room can be determined through the difference value between the heartbeat number and the bandwidth number, namely, the number of users with abnormal behaviors in the brushing room can be represented; and then calculating the ratio of the abnormal number of people to the heartbeat number of people, and obtaining the ratio of the brushing behavior user in the brushing room to be used as the abnormal score.
That is, the higher the duty ratio is, the more the brush users are contained in the brush room, the more the corresponding popularity is, and the more the consumed resources are, so in order to be convenient for the subsequent dynamic adjustment of the transcoding resources, the anomaly degree of the brush room can be represented by the anomaly score, and the corresponding transcoding strategy is selected according to the anomaly score, so that the transcoding processing of the video stream according to the number of the real users is realized.
Along the use example, the number of heartbeat in the live broadcasting room is S1, and the number of bandwidth is S2; on the basis, the difference between the heartbeat number S1 and the bandwidth number S2 can be calculated firstly to obtain the abnormal number S3 corresponding to the live broadcasting room, then the ratio of the abnormal number S3 to the heartbeat number S1 is calculated, the abnormal number ratio is obtained as X according to the calculation result, and the subsequent dynamic adjustment of the transcoding mode of the live broadcasting room according to the abnormal number ratio X is facilitated.
In sum, the abnormal degree of the brushing room is determined by adopting a mode of calculating the ratio of the abnormal number of people, and the ratio of brushing behavior users in the brushing room can be shown by the number of people, so that the subsequent accurate adjustment of transcoding resources can be conveniently completed on the basis, and the aim of saving resources is fulfilled.
And S206, transcoding the source video stream of the brushing room according to the transcoding strategy corresponding to the abnormal score.
Step S208, generating at least one play address corresponding to the brushing room according to the transcoding result.
Specifically, after the abnormal scores corresponding to the brushing rooms are determined, further, a transcoding strategy corresponding to the abnormal scores can be selected to transcode the source video stream corresponding to the brushing rooms, so that play addresses corresponding to different definitions are obtained according to transcoding results. That is, different abnormal scores will correspond to different transcoding strategies, when the source video stream corresponding to the swipe room is transcoded, the source video stream is transcoded according to different transcoding strategies, and at least one play address corresponding to the different abnormal scores can be obtained according to the transcoding result.
That is, when the source video stream in the brushing room is transcoded according to the transcoding strategies corresponding to different anomaly scores, one play address corresponding to the brushing room or two play addresses corresponding to the brushing room can be obtained according to the different transcoding strategies, or three or more play addresses corresponding to the brushing room can be obtained, that is, different transcoding strategies will utilize different transcoding resources to perform n-way transcoding processing on the source video stream, where n is a positive integer greater than or equal to 1. When two or more play addresses are obtained after the source video stream is transcoded through the transcoding strategy, the source video stream is processed according to the code rate in the transcoding strategy to generate video streams with different definition, so that each play address corresponds to the video stream with different definition in the two or more play addresses corresponding to the brushing room generated through the transcoding strategy, and when the client is pushed, the video stream with proper definition can be selected according to the play requirement of the client to finish.
The transcoding strategy specifically refers to a strategy of transcoding the source video stream with different paths, the abnormal score is inversely proportional to the number of transcoding paths, that is, the higher the abnormal score is, the fewer the number of transcoding paths corresponding to the transcoding strategy is, otherwise, the lower the abnormal score is, the more the number of transcoding paths corresponding to the transcoding strategy is, so that the aim of saving resources is achieved. Correspondingly, the source video stream specifically refers to an original video stream corresponding to the anchor in the brushing room, and transcoding is not performed. Correspondingly, the playing address specifically refers to a playing address of a video stream corresponding to different definition, and is used for feeding back the playing address of different definition to the user according to the playing requirement of the user, so as to realize playing of 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 strategy corresponding to the abnormal score, a transcoding scheme adapted to the current abnormal score is actually selected from a plurality of transcoding schemes, so as to achieve the purpose of saving resources, and 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 pre-established corresponding relation between the score interval and the abnormal grade, and selecting the transcoding strategy according to the target abnormal grade; and transcoding the source video stream of the swipe room by using the transcoding strategy.
Specifically, the score interval is specifically an interval divided by two set score thresholds, is used for measuring the segment bit to which the abnormal score belongs and is used for determining a transcoding strategy of a corresponding brushing 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 the score interval is used for determining the abnormal grade of the brushing room, so that the transcoding strategy corresponding to the grade is selected. Correspondingly, the abnormal level specifically refers to a level representing the abnormal degree of the brushing room, and different abnormal levels correspond to different transcoding strategies, so that the transcoding strategy of the corresponding brushing room can be selected by determining the abnormal level so as to be used for transcoding the source video stream of the brushing room.
Wherein, the abnormality score is in direct proportion to the abnormality grade, namely, the higher the abnormality score is, the higher the abnormality grade of the room is. The abnormal level and the number of the transcoding paths corresponding to the transcoding strategy are in inverse proportion, namely, the higher the abnormal level is, the fewer the number of the transcoding paths corresponding to the transcoding strategy selected for the brushing room is; correspondingly, the abnormal score is inversely related to the number of the transcoding paths corresponding to the transcoding strategies, namely, the higher the abnormal score is, the fewer the number of the transcoding paths corresponding to the transcoding strategies selected for the brushing room is.
Correspondingly, the relation between the score interval and the abnormal grade is a pre-established relation, 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 abnormal grade is A2 grade, and the like; in practical application, the correspondence between the score interval and the abnormal level may be established by selecting different granularities according to the practical application scenario, which is not limited in this embodiment.
In practical application, the setting of the multiple score intervals can be adjusted according to the practical application scenario, and the embodiment is not limited in any way. The smaller the granularity of the score interval, the more the number of people actually watching live broadcast is, and on the basis, a corresponding multi-channel transcoding strategy can be selected, so that the watching requirements of different users can be met by continuously improving the number of transcoded definition.
Based on the above, after obtaining the abnormal score, the abnormal score and a plurality of score intervals can be compared, a target score interval to which the abnormal score belongs can be determined according to the comparison result, then a corresponding relation between the score interval and the abnormal grade established in advance is queried, a target abnormal grade corresponding to the brushing room can be determined through the target score interval, so that the transcoding strategy of the brushing room is positioned according to the target abnormal grade, and finally the source video stream of the brushing room is transcoded by utilizing the transcoding strategy corresponding to the abnormal score.
In sum, the abnormal level of the brushing room is reasonably positioned by setting a plurality of score intervals, so that the transcoding processing of the source video stream by selecting a strategy closer to the brushing room from a plurality of transcoding strategies can be realized, the resource utilization rate can be fully improved, and the aim of saving resources is fulfilled.
Further, considering that different score intervals correspond to different abnormal grades, and different abnormal grades correspond to different transcoding strategies, when comparing, the transcoding strategies corresponding to the abnormal grades need to be selected according to the comparison result for transcoding so as to generate play addresses corresponding to different definitions, and in this embodiment, the specific implementation manner is as follows:
(1) Under the condition that the abnormal score is greater than or equal to the score threshold value of the maximum score interval according to the comparison result, the maximum score interval is taken as the target score interval; correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including: and generating a source play address corresponding to the source video stream according to the transcoding result, and taking the source play address as at least one play address corresponding to the brushing room.
Specifically, the maximum score interval specifically refers to an interval with the highest user quantity ratio representing the brushing behavior of the brushing room, at this time, the resource waste is maximized, and in order to achieve the purpose of saving resources, the strategy with the most resource saving is selected as a transcoding strategy, i.e. the transcoding strategy will not transcode the source video stream; the score threshold value of the maximum score interval refers to the lower limit score of the interval. Correspondingly, the source play address is the play address directly corresponding to the source video stream, and transcoding is not performed.
Based on the above, when it is determined according to the comparison result that the abnormal score is greater than or equal to the score threshold of the maximum score interval, it is indicated that the number of abnormal users in the brushing room has exceeded the maximum upper limit, in order to save resources, at this time, a default transcoding strategy may be selected to process the source video stream, that is, the source video stream is not transcoded, and a source play address corresponding to the source video stream may be directly generated as at least one play address corresponding to the brushing room, so as to achieve the purpose of resource saving.
Along the above example, the ratio of the abnormal number of people is X, at this time, X is compared with the threshold value of each section, and the fact that X is greater than the lower limit threshold value A of the maximum section is determined according to the comparison result, which means that the abnormal number of people contained in the current live broadcasting room exceeds A, the number of people actually watched is not right, in order to save resources, the source video stream in the live broadcasting room can not be transcoded, the play address corresponding to the source video stream can be directly generated and provided for the audience, at this time, the audience can only watch live broadcasting through the definition corresponding to the source video stream, and the switching of live broadcasting definition can not be performed.
(2) Determining that the abnormal score is smaller than the score threshold value of the maximum score interval according to the comparison result, and taking the intermediate score interval as the target score interval when the abnormal score is larger than or equal to the score threshold value of the intermediate score interval; correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including: and generating a source play address and a reference definition play address corresponding to the source video stream according to the transcoding result, and taking the source play address and the reference definition play address as at least one play address corresponding to the brushing room.
Specifically, the intermediate score interval specifically refers to an interval representing the brushing behavior of a brushing room, wherein the number of users is medium, and at the moment, certain waste exists in resources, so that in order to achieve the purpose of saving resources, a strategy containing one-way transcoding number is selected as a transcoding strategy, namely the transcoding strategy is used for carrying out one-way transcoding on a source video stream; correspondingly, the reference definition play address is a play address obtained by transcoding the source video stream according to a reference transcoding mode.
Based on the above, when the abnormal score is determined to be smaller than the lower limit score threshold of the maximum score interval and greater than or equal to the lower limit score threshold of the intermediate score interval according to the comparison result, the number of abnormal users in the brushing room is smaller than the maximum upper limit, but is still higher than the intermediate upper limit, so that in order to save resources, a transcoding strategy only comprising one path of transcoding number can be selected to process the source video stream, so that a source play address and a reference definition play address corresponding to the source video stream are generated according to the transcoding result, and the source play address and the reference definition play address are taken as at least one play address corresponding to the brushing room, so that the purpose of saving resources can be achieved.
According to the method, the abnormal number ratio is X, at the moment, X is compared with the threshold value of each section, and according to the comparison result, X is determined to be smaller than A and larger than B, so that the abnormal number contained in the current live broadcasting room is larger than B, but not larger than A, the actual watching number is close to half, in order to provide the part of users with the playing address meeting the watching requirement of the users, one path of transcoding can be carried out on the source video stream, the sharpness of the transcoding is very low, namely the standard definition, the playing address corresponding to the standard definition and the playing address corresponding to the source video stream are obtained according to the transcoding result, and when the users watch, the playing address of the standard definition or the playing address of the source definition can be selected for live broadcasting.
(3) Under the condition that the abnormal score is smaller than a score threshold value of a reference score interval according to a comparison result, the reference score interval is taken as the target score interval; correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including: and generating a source play address corresponding to the source video stream and at least two definition play addresses corresponding to different definition according to the transcoding result, wherein the source play address and the at least two definition play addresses are used as at least one play address corresponding to the brushing room.
Specifically, the reference score interval specifically refers to an interval in which the number of brushing behavior users representing brushing rooms is relatively low, at this time, resources are wasted to a certain extent, and in order to achieve the purpose of saving resources, a strategy including at least two paths of transcoding numbers is selected as a transcoding strategy, that is, the transcoding strategy will transcode a source video stream at least twice, and accordingly, the definition play address specifically refers to a play address corresponding to different definitions, and the different definition play addresses are play addresses obtained after different transcoding processes are performed on the source video stream.
Based on this, when it is determined according to the comparison result that the abnormal score is smaller than the upper limit score threshold of the reference score interval, it is explained that the number of abnormal users in the brushing room is small, but still exists, in order to be able to save resources, at this time, a transcoding strategy including at least two paths of transcoding numbers may be selected to process the source video stream, so as to generate a source play address and at least two definition play addresses corresponding to the source video stream according to the transcoding result, and the play address may be used as at least one play address corresponding to the brushing room, so as to achieve the purpose of saving resources.
According to the method, the abnormal number ratio is X, at the moment, X is compared with the threshold value of each section, and the fact that X is smaller than C is determined according to the comparison result, so that the existence of abnormal numbers contained in the current live broadcasting room with the brushing amount is indicated, but not much, in order to provide the real user with the playing address meeting the watching requirement of the real user, the source video stream can be subjected to multi-channel transcoding, the definition of each way of transcoding is different, namely standard definition, high definition and ultrahigh definition are included, the playing address corresponding to the standard definition, the playing address of the high definition, the playing address of the ultrahigh definition and the playing address corresponding to the source video stream are obtained according to the transcoding result, and when the user watches, the user can select the proper playing address to conduct live broadcasting watching according to the requirement.
In practical application, when setting up multiple score intervals, the division granularity can be selected according to practical application scenes, and a set number of score intervals can be created by adopting division strategies with different granularity for different live broadcast scenes, so that in a transcoding stage, different levels of transcoding control can be performed for the brushing rooms with different brushing behaviors, and the embodiment is not limited in any way.
On the basis, in the push stage, push is completed by analyzing the user viewing request, and in this embodiment, the specific implementation manner is as follows:
under the condition that a user terminal submits a viewing request aiming at the brushing room, determining target definition according to the viewing request; and selecting a target play address corresponding to the target definition in a content distribution network, and pushing the stream to the user terminal according to the target play address.
Specifically, the viewing request specifically refers to a request submitted by a user for a brushing room, wherein the request comprises identity information of a holding user of a user terminal, request definition information and the like; correspondingly, the target definition specifically refers to the definition of the live broadcast content of the brushing room requested to be watched by the user terminal. Correspondingly, the target play address specifically refers to a play address corresponding to the target definition.
Based on the above, when receiving the viewing request submitted by the user terminal for the swipe-volume room, the viewing request can be parsed to determine the target definition that the user of the user terminal needs to view, then the target playing address corresponding to the target definition is selected in the content distribution network, and the streaming is performed to the user terminal according to the target playing address, that is, the video stream corresponding to the target definition is pushed to the user terminal.
According to the above example, when a request that the user A enters the live broadcasting room A is received, the request can be analyzed at this time, and the definition of the live broadcasting watched by the user A is determined to be high definition, then a playing address of the high definition can be selected in the content distribution network according to the high definition at this time, and a live stream is pushed to the terminal of the user A according to the playing address of the high definition, so that the user A can watch the live broadcasting content in the live broadcasting room A through the high definition at the terminal.
In order to reduce resource consumption caused by the brushing room, the video stream processing method provided by the application can firstly acquire the access information and the bandwidth information corresponding to the brushing room, determine the abnormal score corresponding to the brushing room according to the access information and the bandwidth information, and represent the abnormal degree corresponding to the brushing room through the abnormal score, at this time, the video stream of the brushing room can be transcoded according to the transcoding strategy corresponding to the abnormal score, so that the transcoding processing of the source video stream can be completed by adopting different strategies aiming at live broadcasting rooms with different brushing degrees, the purpose of dynamically adjusting the computing resources is achieved, and at least one play address corresponding to the brushing room can be generated according to the transcoding result. The accuracy of the abnormal score can be ensured by calculating the abnormal score corresponding to the brushing room through the access information and the bandwidth information, and on the basis, the transcoding strategy is dynamically selected to transcode brushing rooms with different abnormal degrees, so that the computing resource is effectively saved.
The application of the video stream processing method in the live game scene is taken as an example, and the video stream processing method is further described below with reference to fig. 3. Fig. 3 shows a processing flow chart of a video stream processing method applied to a live game 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.
Step S304, access equipment information corresponding to each initial business room is determined according to the user access information.
Step S306, the access device information is compared with the reference access device information, and a brushing room is determined in a plurality of initial business rooms according to the comparison result.
Step S308, collecting the number of heartbeat people corresponding to the brushing room at the counting time through a heartbeat counting module as access information.
And step S310, determining the global bandwidth and the average code rate corresponding to the brushing room at the statistical moment through the content distribution network.
Step S312, bandwidth number corresponding to the brushing amount room is calculated according to the global bandwidth and the average code rate and is used as bandwidth information.
Step S314, calculating the difference between the number of heart beats and the number of bandwidth to obtain the abnormal number of people corresponding to the brushing room.
Step S316, calculating the ratio of the abnormal number of people to the heart beat number of people, and obtaining the abnormal number ratio 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 from the score intervals according to the comparison result.
Step S320, determining a target abnormal grade corresponding to the target score interval based on the pre-established corresponding relation between the score interval and the abnormal grade, and selecting a transcoding strategy according to the target abnormal grade.
Step S322, transcode the source video stream of the swipe room using the transcoding strategy.
Step S324, at least one play address corresponding to the brushing room is generated according to the transcoding result.
(1) Under the condition that the abnormal score is greater than or equal to the score threshold value of the maximum score interval according to the comparison result, the maximum score interval is determined to be a target score interval; further, a source play address corresponding to the source video stream is generated according to the transcoding result and is used as at least one play address corresponding to the brushing room.
(2) Determining the middle score interval as a target score interval under the condition that the abnormal score is smaller than the score threshold of the maximum score interval and is larger than or equal to the score threshold of the middle score interval according to the comparison result; further, a source play address and a reference definition play address corresponding to the source video stream are generated according to the transcoding result and serve as at least one play address corresponding to the brushing room.
(3) Under the condition that the abnormal score is smaller than the score threshold value of the reference score interval according to the comparison result, the reference score interval is determined to be a target score interval; further, a source play address corresponding to the source video stream and at least two definition play addresses corresponding to different definition are generated according to the transcoding result and used as at least one play address corresponding to the brushing room.
Step S326, in the case that the user terminal submits a viewing request for the swipe volume room, the target definition is determined according to the viewing request.
Step S328, selecting a target play address corresponding to the target definition in the content distribution network, and pushing the stream to the user terminal according to the target play address.
In summary, in order to reduce resource consumption caused by the brushing room, access information and bandwidth information corresponding to the brushing room may be obtained first, so as to determine an abnormal score corresponding to the brushing room according to the access information and the bandwidth information, so as to represent an abnormal degree corresponding to the brushing room by the abnormal score, at this time, the video stream of the brushing room may be transcoded according to a transcoding policy corresponding to the abnormal score, so that transcoding processing of the source video stream may be completed by adopting different policies for live broadcasting rooms with different brushing degrees, thereby achieving the purpose of dynamically adjusting computing resources, and at least one play address corresponding to the brushing room may be generated according to a transcoding result. The accuracy of the abnormal score can be ensured by calculating the abnormal score corresponding to the brushing room through the access information and the bandwidth information, and on the basis, the transcoding strategy is dynamically selected to transcode brushing rooms with different abnormal degrees, so that the computing resource is 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 according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
an acquisition module 402 configured to acquire access information and bandwidth information corresponding to the swipe volume room;
a calculation module 404 configured to calculate an anomaly score for the swipe room from the access information and the bandwidth information;
a transcoding module 406, configured to transcode the source video stream of the brushing room according to a transcoding strategy corresponding to the abnormal score;
the generating module 408 is configured to generate at least one play address corresponding to the brushing room according to the transcoding result.
In an alternative embodiment, the acquisition module 402 is further configured to:
collecting the number of heartbeat people corresponding to the brushing room at the counting time through a heartbeat counting module, and taking the number of heartbeat people as the access information; determining a global bandwidth and an average code rate corresponding to the brushing room at the statistical moment through a content distribution network; and calculating the bandwidth number corresponding to the brushing room according to the global bandwidth and the average code rate, and taking the bandwidth number as the bandwidth information.
In an alternative embodiment, the video stream processing apparatus further includes:
the room determining module is configured to acquire user access information corresponding to a plurality of initial business rooms respectively; determining access equipment information corresponding to each initial service room according to the user access information; comparing the access device information with reference access device information, and determining the brushing room in the plurality of initial business rooms according to the comparison result.
In an alternative embodiment, the computing module 404 is further configured to:
calculating the difference between the number of heartbeats and the number of bandwidth people to obtain the abnormal number corresponding to the brushing room; and calculating the ratio of the abnormal number of people to the heartbeat number of people, and obtaining the abnormal number ratio corresponding to the brushing room as the abnormal score.
In an alternative 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 pre-established corresponding relation between the score interval and the abnormal grade, and selecting the transcoding strategy according to the target abnormal grade; and transcoding the source video stream of the swipe room by using the transcoding strategy.
In an alternative embodiment, the anomaly score is in a direct proportion to an anomaly grade, and the anomaly grade is in an inverse proportion to the number of transcoding paths corresponding to the transcoding strategy; correspondingly, the abnormal score is inversely related to the number of transcoding paths corresponding to the transcoding strategy.
In an alternative embodiment, the transcoding module 406 is further configured to:
under the condition that the abnormal score is greater than or equal to the score threshold value of the maximum score interval according to the comparison result, the maximum score interval is taken as the target score interval;
accordingly, the generation module 408 is further configured to:
and generating a source play address corresponding to the source video stream according to the transcoding result, and taking the source play address as at least one play address corresponding to the brushing room.
In an alternative embodiment, the transcoding module 406 is further configured to:
determining that the abnormal score is smaller than the score threshold value of the maximum score interval according to the comparison result, and taking the intermediate score interval as the target score interval when the abnormal score is larger than or equal to the score threshold value of the intermediate score interval;
accordingly, the generation module 408 is further configured to:
and generating a source play address and a reference definition play address corresponding to the source video stream according to the transcoding result, and taking the source play address and the reference definition play address as at least one play address corresponding to the brushing room.
In an alternative embodiment, the transcoding module 406 is further configured to:
under the condition that the abnormal score is smaller than a score threshold value of a reference score interval according to a comparison result, the reference score interval is taken as the target score interval;
accordingly, the generation module 408 is further configured to:
and generating a source play address corresponding to the source video stream and at least two definition play addresses corresponding to different definition according to the transcoding result, wherein the source play address and the at least two definition play addresses are used as at least one play address corresponding to the brushing room.
In an alternative embodiment, the video stream processing apparatus further includes:
the plug flow module is configured to determine target definition according to a viewing request when receiving the viewing request submitted by a user terminal for the brushing room; and selecting a target play address corresponding to the target definition in a content distribution network, and pushing the stream to the user terminal according to the target play address.
According to the video stream processing device, in order to reduce resource consumption caused by the brushing room, access information and bandwidth information corresponding to the brushing room can be acquired firstly, abnormal scores corresponding to the brushing room are determined according to the access information and the bandwidth information, the abnormal degree corresponding to the brushing room is represented by the abnormal scores, at this time, the video streams in the brushing room can be transcoded according to transcoding strategies corresponding to the abnormal scores, transcoding processing of source video streams can be completed by adopting different strategies for live broadcasting rooms with different brushing degrees, the purpose of dynamically adjusting computing resources is achieved, and at least one play address corresponding to the brushing room can be generated according to transcoding results. The accuracy of the abnormal score can be ensured by calculating the abnormal score corresponding to the brushing room through the access information and the bandwidth information, and on the basis, the transcoding strategy is dynamically selected to transcode brushing rooms with different abnormal degrees, so that the computing resource is effectively saved.
The above is a schematic solution 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 of the technical solution of the video stream processing apparatus, which are not described in detail, 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 in accordance with 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 hold 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, wired or wireless (e.g., a Network Interface Card (NIC)), 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 present application, the above-described components of computing device 500, as well as 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 illustrated in FIG. 5 is for exemplary purposes only and is not intended to limit 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., smart phone), wearable computing device (e.g., smart watch, smart glasses, 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 foregoing is a schematic illustration of a computing device of this 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 of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the video stream processing method.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of a video stream processing method as described above.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the video stream processing method belong to the same concept, and details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the video stream processing method.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can 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 are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all necessary for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The above-disclosed preferred embodiments of the present application are provided only as an aid to the elucidation of the present application. Alternative embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. 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 invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. This application is to be limited only by the claims and the full scope and equivalents thereof.

Claims (12)

1. A video stream processing method, applied to a scheduling system, comprising:
acquiring access information and bandwidth information corresponding to the 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 room according to a transcoding strategy corresponding to the abnormal score, wherein the transcoding of the source video stream of the brushing room according to the transcoding strategy corresponding to the abnormal score comprises the steps of comparing the abnormal score with a plurality of preset score intervals, 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 the pre-established score interval and the abnormal grade, selecting the transcoding strategy according to the target abnormal grade, and transcoding the source video stream of the brushing room by utilizing the transcoding strategy, wherein the transcoding strategy is a strategy for transcoding the source video stream with different paths;
and generating at least one play address corresponding to the brushing room according to the transcoding result.
2. The method according to claim 1, wherein the obtaining access information and bandwidth information corresponding to the swipe room comprises:
Collecting the number of heartbeat people corresponding to the brushing room at the counting time through a heartbeat counting module, and taking the number of heartbeat people as the access information;
determining a global bandwidth and an average code rate corresponding to the brushing room at the statistical moment through a content distribution network;
and calculating the bandwidth number corresponding to the brushing room according to the global bandwidth and the average code rate, and taking the bandwidth number as the bandwidth information.
3. The method of claim 1, wherein the step of obtaining access information and bandwidth information corresponding to the swipe volume room further comprises, prior to performing:
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;
comparing the access device information with reference access device information, and determining the brushing room in the plurality of initial business rooms according to the comparison result.
4. The method of claim 2, wherein the calculating the anomaly score for the swipe room based on the access information and the bandwidth information comprises:
calculating the difference between the number of heartbeats and the number of bandwidth people to obtain the abnormal number corresponding to the brushing room;
And calculating the ratio of the abnormal number of people to the heartbeat number of people, and obtaining the abnormal number ratio corresponding to the brushing room as the abnormal score.
5. The method of claim 1, wherein the anomaly score is proportional to an anomaly level, the anomaly level being inversely proportional to a number of transcoding paths corresponding to the transcoding strategy; correspondingly, the abnormal score is inversely related to the number of transcoding paths corresponding to the transcoding strategy.
6. The method of claim 1 or 5, wherein determining a target score interval from the plurality of score intervals based on the comparison result comprises:
under the condition that the abnormal score is greater than or equal to the score threshold value of the maximum score interval according to the comparison result, the maximum score interval is taken as the target score interval;
correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including:
and generating a source playing address corresponding to the source video stream according to the transcoding result, and taking the source playing address as the playing address corresponding to the brushing room.
7. The method of claim 1 or 5, wherein determining a target score interval from the plurality of score intervals based on the comparison result comprises:
Determining that the abnormal score is smaller than the score threshold value of the maximum score interval according to the comparison result, and taking the intermediate score interval as the target score interval when the abnormal score is larger than or equal to the score threshold value of the intermediate score interval;
correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including:
and generating a source play address and a reference definition play address corresponding to the source video stream according to the transcoding result, and taking the source play address and the reference definition play address as at least one play address corresponding to the brushing room.
8. The method of claim 1 or 5, wherein determining a target score interval from the plurality of score intervals based on the comparison result comprises:
under the condition that the abnormal score is smaller than a score threshold value of a reference score interval according to a comparison result, the reference score interval is taken as the target score interval;
correspondingly, generating at least one play address corresponding to the swipe-volume room according to the transcoding result, including:
and generating a source play address corresponding to the source video stream and at least two definition play addresses corresponding to different definition according to the transcoding result, wherein the source play address and the at least two definition play addresses are used as at least one play address corresponding to the brushing room.
9. The method of claim 1, further comprising, after the step of generating at least one play address corresponding to the swipe room according to the transcoding result, the step of:
under the condition that a user terminal submits a viewing request aiming at the brushing room, determining target definition according to the viewing request;
and selecting a target play address corresponding to the target definition in a content distribution network, and pushing the stream to the user terminal according to the target play address.
10. A video stream processing apparatus, for use in a scheduling system, comprising:
the acquisition module is configured to acquire access information and bandwidth information corresponding to the brushing room;
a calculation module configured to calculate an anomaly score for the swipe room from the access information and the bandwidth information;
the transcoding module is configured to transcode the source video stream of the brushing room according to the transcoding strategy corresponding to the abnormal score, wherein the transcoding of the source video stream of the brushing room according to the transcoding strategy corresponding to the abnormal score comprises the steps of comparing the abnormal score with a plurality of preset score intervals, determining a target score interval in the plurality of score intervals according to a comparison result, determining a target abnormal grade corresponding to the target score interval based on a corresponding relation between the pre-established score interval and the abnormal grade, selecting the transcoding strategy according to the target abnormal grade, and transcoding the source video stream of the brushing room by utilizing the transcoding strategy, wherein the transcoding strategy is a strategy for transcoding the source video stream in different paths;
And the generating module is configured to generate at least one play address corresponding to the brushing room according to the transcoding result.
11. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor, when executing the instructions, implements the steps of the method of any of claims 1-9.
12. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 9.
CN202210445632.3A 2022-04-26 2022-04-26 Video stream processing method and device Active CN114945097B (en)

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 CN114945097A (en) 2022-08-26
CN114945097B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115589489B (en) * 2022-10-19 2024-04-19 抖音视界有限公司 Video transcoding method, device, equipment, storage medium and video on demand system

Citations (9)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN114945097A (en) 2022-08-26

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
CN112995689B (en) Method and device for determining brushing amount of live broadcast room
US20210360224A1 (en) Method and apparatus for transmission parameter distribution of video resource
Chen et al. T-gaming: A cost-efficient cloud gaming system at scale
CN110418153B (en) Watermark adding method, device, equipment and storage medium
CN110392274B (en) Information processing method, equipment, client, system and storage medium
CN110178377A (en) Initial bit rate selection for video transmission session
CN113055692A (en) Data processing method and device
CN113891175B (en) Live broadcast push flow method, device and system
Xu et al. A cost-efficient cloud gaming system at scale
CN110087081A (en) Method for video coding, device, server and storage medium
Wang et al. SalientVR: Saliency-driven mobile 360-degree video streaming with gaze information
CN114945097B (en) Video stream processing method and device
CN115865518A (en) Cloud platform data processing method and system based on big data
WO2023077813A1 (en) Method and apparatus for determining fake traffic in live broadcast room
CN114173160B (en) Live broadcast push flow method and device
CN114363703B (en) Video processing method, device and system
Sun et al. Live 360 degree video delivery based on user collaboration in a streaming flock
Feng et al. Perceptual quality aware adaptive 360-degree video streaming with deep reinforcement learning
Wang et al. Robust saliency-driven quality adaptation for mobile 360-degree video streaming
Zhang et al. Quality-of-Experience Evaluation for Digital Twins in 6G Network Environments
CN113068075B (en) Live broadcast stream pushing method and device, computer equipment and storage medium
Ye et al. VRCT: A Viewport Reconstruction-Based 360$^{\circ} $ Video Caching Solution for Tile-Adaptive Streaming
WO2023151415A1 (en) Data processing methods and apparatuses

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