CN113038186A - Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network - Google Patents

Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network Download PDF

Info

Publication number
CN113038186A
CN113038186A CN202110187831.4A CN202110187831A CN113038186A CN 113038186 A CN113038186 A CN 113038186A CN 202110187831 A CN202110187831 A CN 202110187831A CN 113038186 A CN113038186 A CN 113038186A
Authority
CN
China
Prior art keywords
video
speed
speed limit
limiting
limit
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.)
Pending
Application number
CN202110187831.4A
Other languages
Chinese (zh)
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.)
Hangzhou Upyun Technology Co ltd
Original Assignee
Hangzhou Upyun 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 Hangzhou Upyun Technology Co ltd filed Critical Hangzhou Upyun Technology Co ltd
Priority to CN202110187831.4A priority Critical patent/CN113038186A/en
Publication of CN113038186A publication Critical patent/CN113038186A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Abstract

The invention discloses a method and a configuration for automatically analyzing video code rate to carry out flexible speed limit in a content distribution network, and a technology for limiting the video transmission speed within a reasonable range. The method comprises the following steps: determining the type of the video file; determining speed limit information corresponding to the video according to the type of the video file; and according to the speed limit information, when a user requests, carrying out speed limit on the speed limit video on a speed limit node. The invention supports that the download speed of the video file is limited after the appointed time, and supports that the appointed download speed is the multiple of the video code rate. Namely, when a user accesses a video file, the content distribution network platform automatically analyzes the code rate of the current video file, and limits the transmission speed of the video according to the setting specified by the client, so that on one hand, the access experience of the terminal user can be improved, on the other hand, the transmission bandwidth waste caused by the video during the peak access period is reduced, and the cost is saved for the client.

Description

Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network
Technical Field
The invention relates to the technical field of network video, in particular to a method and configuration for automatically analyzing video code rate to carry out flexible speed limit in a content distribution network.
Background
Cdn (content Delivery network), i.e., a content Delivery network. By the platform, the content of the source station can be quickly and stably distributed to the node closest to the user, the response speed and the success rate of access are improved, and access delay caused by regional distribution, server performance, bandwidth problems and the like is solved. However, for some clients with video playing services, if the video speed is too fast to download, the amount of downloaded data is much larger than the amount of data required for playing, which causes waste of traffic; meanwhile, when playing the online video, the player needs to download a part of the content as the initial buffer before playing the subsequent content. Therefore, the online video playing website has the requirement of speed limit and needs to reduce the influence of the speed limit on the initial buffering effect.
The chinese patent application with application publication No. CN 106034083a (application No. 201510109232.5) discloses a CDN network system and a speed limit control method thereof, a CDN node, and a server. The method comprises the following steps: a node internal central control server in each CDN node sends flow information and domain name information of each CDN node to a global central summarizing server, and the global central summarizing server generates a speed limit instruction comprising an actual provided bandwidth value of a corresponding CDN node for a supported domain name according to the flow information and the domain name information; the central control server in the node receives the speed limit instruction, and calculates the bandwidth value provided by each WEB server in the CDN node for the supported domain name according to the actually provided bandwidth value; and the central control server in the node sends the bandwidth value provided by each WEB server in the CDN node aiming at the supported domain name to each WEB server so as to control each WEB server according to the bandwidth value. According to the technical scheme, the domain name is prevented from occupying too much bandwidth resources of the CDN node, but the speed cannot be limited according to the video code rate, and the video access experience of a user is poor.
Disclosure of Invention
The invention aims to provide a method for automatically analyzing video code rate to carry out flexible speed limit in a content distribution network, and the technology limits the video transmission speed within a reasonable range by automatically analyzing the code rate of a video file in the content distribution network.
The transmission speed of the video is limited according to the setting specified by the client, so that the access experience of the terminal user can be improved, the transmission bandwidth waste caused by the video during peak access is reduced, and the cost is saved for the client.
A method for automatically analyzing video code rate to carry out flexible speed limit in a content distribution network comprises the following steps:
1.1 determining the type of the video file;
1.2, determining speed limit information corresponding to the video according to the type of the video file;
the speed limit information corresponding to the video comprises:
and the corresponding speed-limiting video, the code rate of the speed-limiting video, the speed-limiting starting time and the speed-limiting factor of the speed-limiting video and the speed-limiting node.
And 1.3, according to the speed limit information, when a user requests, carrying out speed limit on the speed limit video on a speed limit node (an edge node of a content distribution network).
In step 1.1, the type of the video file is MP4, and the header of the video file needs metadata moov (movie box) information.
Determining the type of the video file specifically comprises the following steps:
and determining the type of the video file according to Content-type field information in a response header acquired when the video file is accessed and the header information of the video file.
In step 1.2, the speed limit information corresponding to the video has a default value.
Determining speed limit information corresponding to the video according to the type of the video file, which specifically comprises the following steps:
1.2.1 determining a corresponding speed limit video according to the type of the video file;
1.2.2, analyzing the speed-limiting video to obtain the code rate of the speed-limiting video;
1.2.3, acquiring the speed limit starting time of the speed limit video and a speed limit factor for calculating the speed limit speed by acquiring the configuration of a client on a speed limit node;
the speed limit speed refers to the speed limit factor configured by the client multiplied by the speed limit video code rate.
And determining the corresponding speed limit starting time, namely, starting to limit the speed, according to the speed limit information, and starting to limit the speed when the playing time exceeds the configured speed limit starting time. The speed limit starting time is the speed limit which is not started, and when the playing time exceeds the configured speed limit starting time, the speed limit is started.
The speed limit information corresponding to the video comprises:
and the corresponding video to be speed-limited and the code rate information, the speed-limiting starting time, the speed-limiting speed and the speed-limiting node of the video to be speed-limited in the content distribution network.
In step 1.3, all edge nodes in the content distribution network are speed-limiting nodes corresponding to the video to be speed-limited; one or more nearby nodes are selected from the content distribution network, typically based on the region of the visiting user, operator affiliation, and returned to the user.
In step 1.3, when a user requests, the speed limit is performed on the speed limit video on a speed limit node (an edge node of a content distribution network), and the method specifically includes:
carrying out speed limiting on the speed limiting video according to the following formula;
byterate=r->headers_out.content_length_n*1.0/duration/timescale;
r->limit_rate=(size_t)(limit_rate_factor/1000.0*byterate);
r->limit_start_sec=r->start_sec+limit_rate_after/1000;
wherein, byte is the video code rate;
content _ length _ n represents a video resource size;
duration represents a time value indicating the duration of the video in time scale units;
timeclock represents a time value indicating the time scale of this video, i.e. the number of time units elapsed per second in the time coordinate system of the video. For example, the time scale of a time coordinate system measuring time in sixty-one second is 60; duration and timescale are obtained by parsing moov (movie box) header information of a video file.
r- > limit _ rate represents the currently requested download speed limit;
size _ t represents a globally defined type;
limit _ rate _ factor represents the incoming rate-limiting factor;
r- > limit _ start _ sec represents the time when the speed limit is requested to start currently;
r- > start _ sec represents the current request start time;
the limit _ rate _ after represents the incoming parameter speed limit start time.
A speed limit configuration for video speed limiting in a content distribution network, wherein the speed limit configuration comprises:
the file type determining configuration is used for determining the file type of the video;
and the speed limit information configuration is used for determining corresponding speed limit information according to the file type of the access video, wherein the video speed limit information comprises a corresponding video to be speed limited, code rate information of the video to be speed limited in a content distribution network, speed limit starting time, speed limit speed and speed limit nodes.
The speed limiting device is used for limiting the speed of the speed limiting video on the speed limiting node according to the speed limiting information;
a speed limit configuration for automatically analyzing video bitrate for video speed limit in a content distribution network, wherein the speed limit configuration comprises:
the file type determining configuration is used for determining the file type of the video;
and the speed limit information configuration is used for determining corresponding speed limit information according to the file type of the access video, and the speed limit information comprises code rate information, speed limit starting time, speed limit speed and speed limit nodes of the speed limit video.
And the speed limiting device is used for limiting the speed of the speed limiting video on the speed limiting node according to the speed limiting information.
The video access types include at least the following two: :
the type of the video needs to be MP 4;
the header of the video file needs moov (movie box) information
The file type determination is configured to:
determining the file type of the video according to Content-type field information in a response header acquired when the video file is accessed and header information of the video file;
the configuration of the speed limit information comprises the following steps:
the video determining module is used for determining the corresponding speed-limiting video according to the type of the video file;
and the speed limit information determining module is used for analyzing the speed limit video to obtain the code rate of the video, and obtaining the speed limit starting time of the speed limit video and the speed limit factor for calculating the speed limit speed by obtaining the configuration of the client on the speed limit node, wherein the speed limit speed is obtained by multiplying the code rate of the speed limit video by the speed limit factor configured by the client.
The speed limiting device comprises:
determining corresponding speed limit starting time according to the configuration of the speed limit time; and determining the corresponding speed limiting speed according to the configuration of the speed limiting factor, and then starting to limit the speed of the video on the speed limiting node.
Compared with the prior art, the invention has the following advantages:
compared with the prior art, the speed limit information corresponding to the video is determined according to the type of the video file, wherein the video speed limit information comprises the corresponding video to be speed limited, and the code rate information, the speed limit starting time, the speed limit speed and the speed limit node of the video to be speed limited in the content distribution network. Therefore, the downloading speed is limited within a reasonable range according to the file type of the video and the code rate information of the video, on one hand, the access experience of a terminal user is improved, and on the other hand, the bandwidth waste caused by video on demand in a peak period is reduced.
The method supports the limitation of the downloading speed of the video file after the appointed time, and supports the appointed downloading speed which is twice of the video code rate. Namely, when a user accesses a video file, the content distribution network platform automatically analyzes the code rate of the current video file, and limits the transmission speed of the video according to the setting specified by the client, so that on one hand, the access experience of the terminal user can be improved, on the other hand, the transmission bandwidth waste caused by the video during the peak access period is reduced, and the cost is saved for the client.
In addition, the invention can also confirm the corresponding speed limit starting time according to the speed limit information, namely, the speed limit is not started at first, and when the playing time exceeds the configured speed limit starting time, the speed limit is started. When the online video playing is realized, the player can firstly and quickly download a part of content as initial buffer under the condition of unlimited speed, then speed limit is started, and the video access experience of the user is improved.
Drawings
Other features, objects and advantages of the invention will become apparent from a reading of the following detailed description of examples taken in conjunction with the following drawings:
FIG. 1 is a schematic diagram of an arrangement for rate limiting video according to bit rate in a content distribution network according to the present invention;
FIG. 2 is a flow chart for rate limiting video according to bit rate in a content distribution network according to the present invention;
fig. 3 is a flow chart of a preferred example for rate limiting video according to bitrate in a content distribution network according to the invention.
Detailed Description
The invention is described in further detail below with reference to the attached drawing
Fig. 1 is a configuration a for limiting the speed of a video according to the bitrate in a content distribution network according to the present invention, and specifically, a file type determination configuration a1 determines the file type of the video; the speed limit information configuration A2 determines speed limit information corresponding to a video according to the type of a video file, wherein the video speed limit information comprises a corresponding video to be speed limited, and code rate information, speed limit starting time, speed limit speed and speed limit nodes of the video to be speed limited in the content distribution network; and the speed limiting device A3 limits the speed of the speed limiting video on the speed limiting node according to the speed limiting information.
Specifically, the file type determination configuration a1 determines the file type of the video. The file types are various, and the video file types accessed by users in the same region are different, so the video access types at least comprise the following two items: 1) the type of the video needs to be MP 4; 2) the header of the video file needs moov (movie box) information;
here, the file type determination configuration a1 determines the type of video in such a manner that: and determining the file type of the video according to Content-type field information in a response header acquired when the video file is accessed and the header information of the parsed video file. For example: for a certain video file, the access url is http:// www.example.com/test.mp4, when the url is accessed, the response header contains a Content-Type: video/MP4 field, which indicates that the file is an MP4 file; then, whether moov (movie box) information exists is judged by analyzing the metadata of the MP4 header. If both are satisfied, the video file supports flexible speed limiting according to the code rate of the video file.
And then, the speed limit information configuration A2 determines the speed limit information corresponding to the video according to the type information of the video file, wherein the video speed limit information comprises the corresponding video to be speed limited and the code rate information, the speed limit starting time, the speed limit speed and the speed limit node of the video to be speed limited in the content distribution network. If the speed-limiting video is analyzed to obtain the code rate of the video, the speed-limiting starting time and the speed-limiting factor of the video are obtained by obtaining the configuration of the client on the speed-limiting node and are used for calculating the speed-limiting speed, and the speed-limiting speed refers to the multiplication of the code rate of the speed-limiting video and the speed-limiting factor configured by the client. The speed limiting device A3 limits the speed of the speed limiting video on the speed limiting node according to the speed limiting information, for example, for a video file test. mp4, the speed limiting information configuration a2 determines that the video file is the speed limiting video, when the user accesses the file, the speed limiting device A3 responds to the user according to the speed limiting information, and the start time of the speed limit and the speed limiting speed are calculated according to the following formulas:
byterate=r->headers_out.content_length_n*1.0/duration/timescale;
r->limit_rate=(size_t)(limit_rate_factor/1000.0*byterate);
r->limit_start_sec=r->start_sec+limit_rate_after/1000;
the byte is the video code rate; content _ length _ n represents a video resource size; duration represents a time value indicating the duration of the video in time scale units; timeclock represents a time value indicating the time scale of this video, i.e. the number of time units elapsed per second in the time coordinate system of the video. For example, the time scale of a time coordinate system measuring time in sixty-one second is 60; duration and timescale are obtained by parsing moov (movie box) header information of a video file. r- > limit _ rate represents the currently requested download speed limit; limit _ rate _ factor represents the incoming rate-limiting factor; r- > limit _ start _ sec represents the time when the speed limit is requested to start currently; r- > start _ sec represents the current request start time; the limit _ rate _ after represents the incoming parameter speed limit start time.
The speed limit configuration A is continuously operated among all the configurations. Specifically, the file type determination configuration a1 continuously determines the type of access video; and the speed limit information configuration A2 continuously determines corresponding speed limit information according to the file type of the video, wherein the video speed limit information comprises a corresponding video to be speed limited, code rate information, speed limit starting time, speed limit speed and speed limit nodes of the video to be speed limited in the content distribution network. And the speed limiting device A3 continuously limits the speed of the speed limiting video on the speed limiting node according to the speed limiting information.
In addition, the configuration of the speed limit starting time in the speed limit configuration A is used for determining the corresponding speed limit starting time according to the speed limit information, namely, the speed limit is not started at first, and when the playing time exceeds the configured speed limit starting time, the speed limit is started. The relevant parameters involved are: the limit _ rate _ after represents how long the speed limit is started.
Fig. 2 is a flow chart for rate limiting video according to bit rate in a content distribution network according to the present invention.
Specifically, in process P1, the speed limit configuration a determines the file type of the video; in the process P2, the speed limit configuration a determines corresponding speed limit information according to the file type of the video, where the video speed limit information includes a video to be speed limited and code rate information, speed limit start time, speed limit speed, and speed limit node of the video to be speed limited in the content distribution network.
In the process P3, the speed limit configuration a performs speed limit on the speed limit video on the speed limit node according to the speed limit information.
Specifically, in process P1, the speed limit configuration a determines the file type of the video. The file types are various, and the video file types accessed by users in the same region are different, so the video access types at least comprise the following two items: 1) the type of the video needs to be MP 4; 2) the header of the video file needs moov (movie box) information;
specifically, in the process P1, the speed limit configuration a determines the type of the video in the following manner: and determining the file type of the video according to Content-type field information in a response header acquired when the video file is accessed and the header information of the parsed video file. For example: for a certain video file, the access url is http:// www.example.com/test.mp4, when the url is accessed, the response header contains a Content-Type: video/MP4 field, which indicates that the file is an MP4 file; then, whether moov (movie box) information exists is judged by solving the metadata at the head of the MP 4. If both are satisfied, the video file supports flexible speed limiting according to the code rate of the video file.
Next, in process P2, the speed limit configuration a determines speed limit information corresponding to the video according to the type information of the video file, where the video speed limit information includes a video to be speed limited and code rate information, speed limit start time, speed limit speed, and speed limit node of the video to be speed limited in the content distribution network. If the speed-limiting video is analyzed to obtain the code rate of the video, the speed-limiting starting time and the speed-limiting factor of the video are obtained by obtaining the configuration of the client on the speed-limiting node and are used for calculating the speed-limiting speed, and the speed-limiting speed refers to the multiplication of the code rate of the speed-limiting video and the speed-limiting factor configured by the client.
In process P3, the speed limit configuration a performs speed limit on the speed limit video on the speed limit node according to the speed limit information, for example, for a video file test. mp4, it is determined in process P2 to be the speed limit video, when the user accesses this file, the user is responded to the speed limit video according to the speed limit information in process P3, and the speed limit start time and the speed limit speed are calculated according to the following formulas:
byterate=r->headers_out.content_length_n*1.0/duration*timescale;
r->limit_rate=(size_t)(limit_rate_factor/1000.0*byterate);
r->limit_start_sec=r->start_sec+limit_rate_after/1000;
the byte is the video code rate; content _ length _ n represents a video resource size; duration represents a time value indicating the duration of the video in time scale units; timeclock represents a time value indicating the time scale of this video, i.e. the number of time units elapsed per second in the time coordinate system of the video. For example, the time scale of a time coordinate system measuring time in sixty-one second is 60; duration and timescale are obtained by parsing moov (movie box) header information of a video file. r- > limit _ rate represents the currently requested download speed limit; limit _ rate _ factor represents the incoming rate-limiting factor; r- > limit _ start _ sec represents the time when the speed limit is requested to start currently; r- > start _ sec represents the current request start time; the limit _ rate _ after represents the incoming parameter speed limit start time.
The speed limit configuration A is continuously operated among all the configurations. Specifically, the speed limit configuration a continuously determines the type of the access video in the process P1; in the process P2, the speed limit configuration a continuously determines the corresponding speed limit information according to the file type of the video, where the video speed limit information includes the video to be speed limited and the code rate information, the speed limit start time, the speed limit speed, and the speed limit node of the video to be speed limited in the content distribution network; in the process P3, the speed limit configuration a continuously limits the speed of the speed limit video on the speed limit node according to the speed limit information.
In addition, in the process P2, the configuration of the speed limit start time in the speed limit configuration a is used to determine the corresponding speed limit start time, that is, the speed limit is not started at first, according to the speed limit information, and when the playing time length exceeds the configured time, the speed limit is started. The relevant parameters involved are: the limit _ rate _ after represents how long the speed limit is started.
FIG. 3 is a flow chart of a preferred embodiment for rate limiting video according to bitrate in a content distribution network according to the invention
The method comprises a process P-1, a process P-2 and a process P-3, wherein the process P-2 comprises a process P-21, a process P-22 and a process P-23. Specifically, in the process P-1, the speed limit configuration a determines the file type of the access video; in the process P-21, the speed limit configuration A determines a corresponding speed limit video according to the file type of the video; in the process P-22, the speed limit configuration A analyzes the speed limit video to obtain the code rate of the video. In the process P-23, the speed limit configuration a acquires the speed limit start time and the speed limit factor of the video by acquiring the configuration of the client on the speed limit node for calculating the speed limit speed, where the speed limit speed is the speed limit factor obtained by multiplying the speed limit video code rate by the client configuration. In the process P-3, the speed limit configuration A limits the speed of the speed limit video on the speed limit node according to the speed limit information. Here, the process P-1 and the process P-3 are the same or substantially the same as the corresponding steps in the embodiment of fig. 2, and are not described again here.
Specifically, in the process P-21, the speed limit configuration a determines the corresponding speed limit video according to the file type of the video. Here, in the process P-21, the way of determining the file type of the corresponding video by the speed limit configuration a is the same as or substantially the same as the way of determining the file type of the corresponding video in the process P2 in fig. 2, and therefore, the description thereof is omitted.
In the process P-22, the speed limit configuration A analyzes the speed limit video to obtain the code rate of the video. The method comprises the steps of firstly, obtaining moov (movie box) information by analyzing metadata of an MP4 header, then, taking out a duration field and a time field from the moov (movie box) information, and obtaining the bitrate of the video according to a formula (byte) r- > heads _ out content _ length _ n 1.0/duration time.
In the process P-23, the speed limit configuration a acquires the speed limit start time of the video and the speed limit factor by acquiring the configuration of the client on the speed limit node for calculating the speed limit speed. For example:
1) the client does not limit the speed at the beginning, and when the playing time exceeds 3 seconds, the speed limit of the code rate of 1.1 times is carried out. The start time of the speed limit to be configured is 3 seconds, the speed limit factor is 1.1, and if the code rate of a certain video is 2337Kbps, the downloading speed of the video is changed to (2337/8) × 1.1 ═ 321.3 KB/s;
2) assuming no speed limit, the normal download speed for the user to access the video is 500 KB/s.
3) Within 5 minutes, assuming 10000 people access the video, the bandwidth values generated are:
bandwidth after speed limiting: 321.3 × 300 × 8/300 × 10000/1024/1024 ═ 24.5 Mbps;
bandwidth without speed limit: 500 × 300 × 8/300 × 10000/1024/1024 ═ 38.1 Mbps;
therefore, after the technology of automatically analyzing the video code rate to carry out flexible speed limit is started in the content distribution network, the bandwidth cost can be reduced for the client.

Claims (10)

1. A method for automatically analyzing video code rate to carry out flexible speed limit in a content distribution network is characterized by comprising the following steps:
1.1 determining the type of the video file;
1.2, determining speed limit information corresponding to the video according to the type of the video file;
the speed limit information corresponding to the video comprises:
the corresponding speed-limiting video, the code rate of the speed-limiting video, the speed-limiting starting time and the speed-limiting factor of the speed-limiting video and the speed-limiting node;
and 1.3, according to the speed limit information, when a user requests, carrying out speed limit on the speed limit video on a speed limit node.
2. The method for automatically analyzing video bitrate for flexible rate limiting in a content distribution network according to claim 1, wherein in step 1.1, the type of the video file is MP4, and the header of the video file needs metadata moov information.
3. The method for automatically analyzing video bitrate for flexible speed limitation in a content distribution network according to claim 1, wherein in step 1.1, determining the type of the video file specifically comprises:
and determining the type of the video file according to Content-type field information in a response header acquired when the video file is accessed and the header information of the video file.
4. The method for automatically analyzing video bitrate for flexible rate limiting in a content distribution network according to claim 1, wherein in step 1.2, the rate limiting information corresponding to the video is determined according to the type of the video file, and specifically comprises:
1.2.1 determining a corresponding speed limit video according to the type of the video file;
1.2.2, analyzing the speed-limiting video to obtain the code rate of the speed-limiting video;
1.2.3, acquiring the speed limit starting time of the speed limit video and a speed limit factor for calculating the speed limit speed by acquiring the configuration of a client on a speed limit node.
5. The method for automatically analyzing video bitrate for flexible rate limiting in a content distribution network according to claim 1, wherein in step 1.2.3, the rate-limiting speed is the rate-limiting video bitrate multiplied by a rate-limiting factor.
6. The method for automatically analyzing video bitrate for flexible rate limiting in a content distribution network according to claim 1, wherein in step 1.3, when a user requests, the rate limiting is performed on the rate-limited video at a rate-limited node, which specifically comprises:
carrying out speed limiting on the speed limiting video according to the following formula;
byterate=r->headers_out.content_length_n*1.0/duration/timescale;
r->limit_rate=(size_t)(limit_rate_factor/1000.0*byterate);
r->limit_start_sec=r->start_sec+limit_rate_after/1000;
wherein, byte is the video code rate;
content _ length _ n represents a video resource size;
duration represents the duration of the video indicated in units of time scale;
timescale represents the time value of the time scale of this video;
r- > limit _ rate represents the currently requested download speed limit;
size _ t represents a globally defined type;
limit _ rate _ factor represents the incoming rate limiting factor;
r- > limit _ start _ sec represents the time when the speed limit is currently requested to start;
r- > start _ sec represents the current request start time;
the limit _ rate _ after represents the incoming parameter speed limit start time.
7. A speed limit configuration for video speed limiting in a content distribution network, the speed limit configuration comprising:
the file type determining configuration is used for determining the file type of the video;
and the speed limit information configuration is used for determining corresponding speed limit information according to the file type of the access video, and the speed limit information comprises code rate information, speed limit starting time, speed limit speed and speed limit nodes of the speed limit video.
And the speed limiting device is used for limiting the speed of the speed limiting video on the speed limiting node according to the speed limiting information.
8. The speed limit configuration for video speed limiting in a content distribution network according to claim 7, wherein the file type determination configuration is for:
and determining the file type of the video according to Content-type field information in a response header acquired when the video file is accessed and the header information of the parsed video file.
9. The speed limit configuration for video speed limit in a content distribution network according to claim 7, wherein the speed limit information configuration comprises:
the video determining module is used for determining the corresponding speed-limiting video according to the type of the video file;
and the speed limit information determining module is used for analyzing the speed limit video to obtain the code rate of the video, and obtaining the speed limit starting time of the speed limit video and a speed limit factor for calculating the speed limit speed through obtaining the configuration of a client on a speed limit node, wherein the speed limit speed is obtained by multiplying the code rate of the speed limit video by the speed limit factor.
10. The speed limit configuration for video speed limit in a content distribution network according to claim 7, wherein the speed limit device comprises:
determining corresponding speed limit starting time according to the configuration of the speed limit time; and determining the corresponding speed limiting speed according to the configuration of the speed limiting factor, and then starting to limit the speed of the video on the speed limiting node.
CN202110187831.4A 2021-02-07 2021-02-07 Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network Pending CN113038186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110187831.4A CN113038186A (en) 2021-02-07 2021-02-07 Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110187831.4A CN113038186A (en) 2021-02-07 2021-02-07 Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network

Publications (1)

Publication Number Publication Date
CN113038186A true CN113038186A (en) 2021-06-25

Family

ID=76461302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110187831.4A Pending CN113038186A (en) 2021-02-07 2021-02-07 Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network

Country Status (1)

Country Link
CN (1) CN113038186A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034083A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 CDN system and rate-limiting control method thereof, CND node, and server
US20170164020A1 (en) * 2015-12-08 2017-06-08 Le Holdings (Beijing) Co., Ltd. Content delivery method for content delivery network platform and scheduling proxy server
WO2017161773A1 (en) * 2016-03-25 2017-09-28 乐视控股(北京)有限公司 Method and device for playing online video
CN107635144A (en) * 2017-10-25 2018-01-26 暴风集团股份有限公司 Server output stream amount method for limiting speed, device, server and DNS systems
CN110740174A (en) * 2019-09-30 2020-01-31 北京字节跳动网络技术有限公司 File downloading speed limiting method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034083A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 CDN system and rate-limiting control method thereof, CND node, and server
US20170164020A1 (en) * 2015-12-08 2017-06-08 Le Holdings (Beijing) Co., Ltd. Content delivery method for content delivery network platform and scheduling proxy server
WO2017161773A1 (en) * 2016-03-25 2017-09-28 乐视控股(北京)有限公司 Method and device for playing online video
CN107635144A (en) * 2017-10-25 2018-01-26 暴风集团股份有限公司 Server output stream amount method for limiting speed, device, server and DNS systems
CN110740174A (en) * 2019-09-30 2020-01-31 北京字节跳动网络技术有限公司 File downloading speed limiting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
Thang et al. Adaptive streaming of audiovisual content using MPEG DASH
CN109756757B (en) Live broadcast data processing method and device, live broadcast method and device and live broadcast server
CN102611945B (en) Streaming media slicing method, slicing server and streaming media demand system
US7783773B2 (en) Glitch-free media streaming
KR100993955B1 (en) Multimedia presentation
EP2169914B1 (en) Content delivery network and related method
CN110933517B (en) Code rate switching method, client and computer readable storage medium
US20160134900A1 (en) Streaming media processing method, apparatus, and system
EP2493191B1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
CN101146110A (en) A method, system and device for playing stream media
KR20120092622A (en) Streaming with optional broadcast delivery of data segments
US20160261895A1 (en) Video analysis method and system
JP5477655B2 (en) Information processing method and recording medium
US20080133771A1 (en) Accelerated multimedia file download and playback
CN102790779B (en) A kind of live video resource downloading method and device
CN110557689B (en) Video playing method and device
KR102493871B1 (en) Packager for segmenter fluidity
WO2018087275A1 (en) Content-aware optimized delivery of personalized ads in a cdn
CN107040615B (en) Downloading method of media fragment, terminal and computer readable storage medium
CN111510790B (en) Video request method, system, computer device and computer readable storage medium
CN107888941A (en) Video segment transmission method, device and system
CN110832821A (en) Method and apparatus for downloading audiovisual content
CN113038186A (en) Method and configuration for flexible speed limit by automatically analyzing video code rate in content distribution network
CN110300308B (en) Streaming media playback method and device
CN111417031B (en) File transmission method and device and electronic equipment

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