CN108574883A - The method for realizing multiple CDN Parallel downloads video segments - Google Patents
The method for realizing multiple CDN Parallel downloads video segments Download PDFInfo
- Publication number
- CN108574883A CN108574883A CN201810143488.1A CN201810143488A CN108574883A CN 108574883 A CN108574883 A CN 108574883A CN 201810143488 A CN201810143488 A CN 201810143488A CN 108574883 A CN108574883 A CN 108574883A
- Authority
- CN
- China
- Prior art keywords
- cdn
- fragment
- video
- download
- logic
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content 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/26208—Content 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Abstract
The embodiment of the invention discloses a kind of methods for realizing multiple CDN Parallel downloads video segments, including:TS video files are subjected to logic fragment, each logic fragment is subjected to the ID definition of logic fragment;Player carries out multi-thread concurrent acquisition, and the logic fragment ID obtained to the incoming needs of CDN when playing TS video files, to each logic fragment;CDN caches each logic fragment according to logic fragment ID, avoids carrying out Hui Yuan by CDN node every time;CDN handles logic fragment ID, and required TS video flowings are calculated according to TS video files names and logic fragment ID;Player precalculates each fragment and needs the time downloaded, and carries out logic fragment download;Player records the downloading rate of each CDN, and the intelligence switching of CDN is carried out when downloading rate is less than some threshold value.The present invention can accelerate the downloading rate of video segment, and when some CDN is second-rate, can also ensure the fluency of video playing.
Description
Technical field
The present invention relates to field of computer technology, especially a kind of method for realizing multiple CDN Parallel downloads video segments.
Background technology
The video flowing transmission technology of IP based network is that internet video/TV brings new transmission mode of televising,
PC, pad and smart mobile phone can watch radio and television, video on demand etc., but broadband networks by fixed or mobile broadband network
Formula TCP/IP communication network, is transmitted as principle as possible, for live video stream transmission due to network there may be congestion, when
Prolonging, shaking etc. can cause video image interim card, frame losing, re-transmission etc. to seriously affect the case where watching broadcasting, in order to avoid as possible mutually
Be possible in networking influence data transmission bauds and stability bottleneck and link, make content transmission faster, it is more stable, structure
CDN (Content Delivery Network, content distributing network) system, CDN system can be in real time according to network flow
Connection, load state with each node, and to the integrated informations such as the distance of user and corresponding time by the request weight of user
Newly on the service node nearest from user.
In the prior art, there are blind spots for CDN service, if when encountering channel congestion, time delay, shake, it can not
It ensures that the broadcasting of video is smooth, causes Video service quality undesirable.
Therefore, the prior art needs to improve.
Invention content
A technical problem to be solved of the embodiment of the present invention is:A kind of multiple CDN Parallel downloads videos of realization are provided
The method of slice, the method packet of realizing multiple CDN Parallel download video segments of the existing technology to solve the problems, such as
It includes:
TS video files are subjected to logic fragment, each logic fragment is subjected to the ID definition of logic fragment, the logic point
Piece ID is played device and is identified with CDN;
Player carries out multi-thread concurrent acquisition when playing TS video files, to each logic fragment, and incoming to CDN
Need the logic fragment ID obtained;
CDN caches each logic fragment according to logic fragment ID, avoids being returned by CDN node every time
Source;
CDN handles logic fragment ID, and required TS video flowings are calculated according to TS video files names and logic fragment ID;
Player precalculates each fragment and needs the time downloaded, and carries out logic fragment download;
Player records the downloading rate of each CDN, and the intelligence that CDN is carried out when downloading rate is less than given threshold is cut
It changes.
In another embodiment of the method based on the above-mentioned multiple CDN Parallel downloads video segments of realization of the present invention, institute
Stating the sources CDN function includes:
Identify the logic fragment ID of each TS video files;
TS video files and logic fragment ID are completed, plug-flow is carried out according to fragment rule.
In another embodiment of the method based on the above-mentioned multiple CDN Parallel downloads video segments of realization of the present invention, institute
Stating CDN requirements function includes:
Identify the logic fragment ID of each TS video files;
It completes according to TS video files and logic fragment ID, plug-flow is carried out according to fragment rule;
Fragment cache memory is carried out according to TS video files and logic fragment ID;
When for different fragments while plug-flow, logic fragment number is adjusted, it is ensured that do not influence concurrent capability;
In another embodiment of the method based on the above-mentioned multiple CDN Parallel downloads video segments of realization of the present invention, institute
Stating player function includes:
Open multithreading logic fragment pre-download mechanism;
Record the smooth degree of the current plug-flows of each CDN;
According to speed of download, automated intelligent switches CDN.
In another embodiment of the method based on the above-mentioned multiple CDN Parallel downloads video segments of realization of the present invention, institute
The downloading rate that player records each CDN is stated, the intelligence switching that CDN is carried out when downloading rate is less than given threshold includes:
Player obtains the downloading video files of each CDN, sets the speed of download threshold value of video file, and carries out video
File download;
Player detects video file speed of download;
Judge whether the speed of download of video file is less than the speed of download threshold value of setting;
If it is not, then continuing to download;
If it is, player cancels the CDN automatically, turns to backup CDN and send video segment download request.
In another embodiment of the method based on the above-mentioned multiple CDN Parallel downloads video segments of realization of the present invention, institute
It states player and precalculates the time that each fragment needs are downloaded, and carry out the download of logic fragment and include:
Player calculates each fragment and needs the time downloaded, and sets fragment download time according to the time of calculating;
If next fragment of currently playing TS video flowings is not downloaded according to the download time of setting and is finished, eventually
The only download of this fragment;
Player carries out CDN and intelligently switches, and others CDN is called to carry out TS video flowing downloads;
CDN finishes the download of TS video flowings within the download time of setting, and is sent to player, completes to video playing
Smooth connection.
Compared with prior art, the present invention has the following advantages:
The present invention proposes a kind of method for realizing multiple CDN Parallel downloads video segments, by being carried out to video file
Fragment, player obtains the video file after fragment by multithreading, and records the downloading rate of each CDN, in downloading rate
The intelligence switching of CDN is carried out when less than given threshold, it is ensured that smoothness when video file plays, when video is downloaded, player is pre-
It first calculates each fragment and needs the time downloaded, when download time being more than the time of setting, the smart download for carrying out CDN is cut
It changes, ensures broadcast quality, the method for the present invention is simple, practicality and high efficiency.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Description of the drawings
The attached drawing of a part for constitution instruction describes the embodiment of the present invention, and together with description for explaining
The principle of the present invention.
The present invention can be more clearly understood according to following detailed description with reference to attached drawing, wherein:
Fig. 1 is the flow chart of one embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention;
Fig. 2 is the flow chart of another embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention;
Fig. 3 is the flow chart of another embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention.
Specific implementation mode
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should be noted that:Unless in addition having
Body illustrates that the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Simultaneously, it should be appreciated that for ease of description, the size of attached various pieces shown in the drawings is not according to reality
Proportionate relationship draw.
It is illustrative to the description only actually of at least one exemplary embodiment below, is never used as to the present invention
And its application or any restrictions that use.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
Fig. 1 is the flow chart of one embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention, such as
Shown in Fig. 1, the method for realizing multiple CDN Parallel downloads video segments includes:
10, TS video files are subjected to logic fragment, each logic fragment is subjected to the ID definition of logic fragment, the logic
Fragment ID is played device and is identified with CDN;
20, player carries out multi-thread concurrent acquisition when playing TS video files, to each logic fragment, and to CDN
The incoming logic fragment ID for needing to obtain;
30, CDN, according to logic fragment ID, cache each logic fragment, avoid carrying out by CDN node every time
Hui Yuan;
40, CDN processing logic fragment ID, required TS videos are calculated according to TS video files names and logic fragment ID
Stream;
50, player precalculates each fragment and needs the time downloaded, and carries out logic fragment download;
60, player records the downloading rate of each CDN, and the intelligence of CDN is carried out when downloading rate is less than given threshold
Switching.
The sources CDN function includes:
Identify the logic fragment ID of each TS video files;
TS video files and logic fragment ID are completed, plug-flow is carried out according to fragment rule.
The CDN requires the function to include:
Identify the logic fragment ID of each TS video files;
It completes according to TS video files and logic fragment ID, plug-flow is carried out according to fragment rule;
Fragment cache memory is carried out according to TS video files and logic fragment ID;
When for different fragments while plug-flow, logic fragment number is adjusted, it is ensured that do not influence concurrent capability;
The player function includes:
Open multithreading logic fragment pre-download mechanism;
Record the smooth degree of the current plug-flows of each CDN;
According to speed of download, automated intelligent switches CDN.
Fig. 2 is the flow chart of another embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention,
As shown in Fig. 2, the player records the downloading rate of each CDN, the intelligence of CDN is carried out when downloading rate is less than given threshold
It can switch and include:
101, player obtains the downloading video files of each CDN, sets the speed of download threshold value of video file, and carries out
Video file is downloaded;
102, player detects video file speed of download;
103, judge whether video file speed of download is less than the speed of download threshold value of setting;
104, if it is not, then continuing to download;
105, if it is, player cancels the CDN automatically, turns to backup CDN and send video segment download request.
Fig. 3 is the flow chart of another embodiment of the method for the multiple CDN Parallel downloads video segments of realization of the present invention,
As shown in figure 3, the player, which precalculates each fragment, needs the time downloaded, and carries out the download of logic fragment and include:
201, player calculates each fragment and needs the time downloaded, and when being downloaded according to the time of calculating setting fragment
Between;
202, it is finished if next fragment of currently playing TS video flowings is not downloaded according to the download time of setting,
Then terminate the download of this fragment;
203, player carries out CDN and intelligently switches, and others CDN is called to carry out TS video flowing downloads;
204, CDN finish the download of TS video flowings within the download time of setting, and are sent to player, complete to video
The smooth connection played.
Each embodiment is described in a progressive manner in this specification, the highlights of each of the examples are with its
The difference of its embodiment, same or analogous part cross-reference between each embodiment.For system embodiment
For, since it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
It defends oneself bright.
Description of the invention provides for the sake of example and description, and is not exhaustively or will be of the invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches
It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage
Various embodiments with various modifications of the solution present invention to design suitable for special-purpose.
Claims (6)
1. a kind of method for realizing multiple CDN Parallel downloads video segments, which is characterized in that including:
TS video files are subjected to logic fragment, each logic fragment is subjected to the ID definition of logic fragment, the logic fragment ID
Device is played to identify with CDN;
Player carries out multi-thread concurrent acquisition when playing TS video files, to each logic fragment, and is needed to CDN is incoming
The logic fragment ID of acquisition;
CDN caches each logic fragment according to logic fragment ID, avoids carrying out Hui Yuan by CDN node every time;
CDN handles logic fragment ID, and required TS video flowings are calculated according to TS video files names and logic fragment ID;
Player precalculates each fragment and needs the time downloaded, and carries out logic fragment download;
Player records the downloading rate of each CDN, and the intelligence switching of CDN is carried out when downloading rate is less than given threshold.
2. the method according to claim 1 for realizing multiple CDN Parallel downloads video segments, which is characterized in that the CDN
Source function includes:
Identify the logic fragment ID of each TS video files;
TS video files and logic fragment ID are completed, plug-flow is carried out according to fragment rule.
3. the method according to claim 1 for realizing multiple CDN Parallel downloads video segments, which is characterized in that the CDN
It is required that function includes:
Identify the logic fragment ID of each TS video files;
It completes according to TS video files and logic fragment ID, plug-flow is carried out according to fragment rule;
Fragment cache memory is carried out according to TS video files and logic fragment ID;
When for different fragments while plug-flow, logic fragment number is adjusted, it is ensured that do not influence concurrent capability.
4. the method according to claim 1 for realizing multiple CDN Parallel downloads video segments, which is characterized in that described to broadcast
Putting device function includes:
Open multithreading logic fragment pre-download mechanism;
Record the smooth degree of the current plug-flows of each CDN;
According to speed of download, automated intelligent switches CDN.
5. the method according to claim 1 for realizing multiple CDN Parallel downloads video segments, which is characterized in that described to broadcast
The downloading rate that device records each CDN is put, the intelligence switching that CDN is carried out when downloading rate is less than given threshold includes:
Player obtains the downloading video files of each CDN, sets the speed of download threshold value of video file, and carries out video file
It downloads;
Player detects video file speed of download;
Judge whether the speed of download of video file is less than the speed of download threshold value of setting;
If it is not, then continuing to download;
If it is, player cancels the CDN automatically, turns to backup CDN and send video segment download request.
6. the method according to claim 3 for realizing multiple CDN Parallel downloads video segments, which is characterized in that described to broadcast
It puts device and precalculates the time that each fragment needs are downloaded, and carry out the download of logic fragment and include:
Player calculates each fragment and needs the time downloaded, and sets fragment download time according to the time of calculating;
If next fragment of currently playing TS video flowings is not downloaded according to the download time of setting and finished, this is terminated
The download of secondary fragment;
Player carries out CDN and intelligently switches, and others CDN is called to carry out TS video flowing downloads;
CDN finishes the download of TS video flowings within the download time of setting, and is sent to player, completes to the suitable of video playing
Smooth connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810143488.1A CN108574883A (en) | 2018-02-11 | 2018-02-11 | The method for realizing multiple CDN Parallel downloads video segments |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810143488.1A CN108574883A (en) | 2018-02-11 | 2018-02-11 | The method for realizing multiple CDN Parallel downloads video segments |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108574883A true CN108574883A (en) | 2018-09-25 |
Family
ID=63576630
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810143488.1A Pending CN108574883A (en) | 2018-02-11 | 2018-02-11 | The method for realizing multiple CDN Parallel downloads video segments |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108574883A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587580A (en) * | 2018-11-15 | 2019-04-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Video segmentation method for down loading and system based on adaptive CDN |
CN111770186A (en) * | 2020-07-03 | 2020-10-13 | 珠海金山网络游戏科技有限公司 | Multi-content distribution network load balancing method and device |
CN112199340A (en) * | 2020-10-23 | 2021-01-08 | 深圳市欢太科技有限公司 | Multithreading file downloading method and device, electronic equipment and storage medium |
CN114268631A (en) * | 2021-12-13 | 2022-04-01 | 湖北云务通网络科技有限公司 | Low-delay network system, communication connection method thereof and readable storage medium |
CN114268631B (en) * | 2021-12-13 | 2024-05-10 | 湖北云务通网络科技有限公司 | Low-delay network system, communication connection method thereof and readable storage medium |
-
2018
- 2018-02-11 CN CN201810143488.1A patent/CN108574883A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587580A (en) * | 2018-11-15 | 2019-04-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Video segmentation method for down loading and system based on adaptive CDN |
CN111770186A (en) * | 2020-07-03 | 2020-10-13 | 珠海金山网络游戏科技有限公司 | Multi-content distribution network load balancing method and device |
CN112199340A (en) * | 2020-10-23 | 2021-01-08 | 深圳市欢太科技有限公司 | Multithreading file downloading method and device, electronic equipment and storage medium |
CN114268631A (en) * | 2021-12-13 | 2022-04-01 | 湖北云务通网络科技有限公司 | Low-delay network system, communication connection method thereof and readable storage medium |
CN114268631B (en) * | 2021-12-13 | 2024-05-10 | 湖北云务通网络科技有限公司 | Low-delay network system, communication connection method thereof and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109246462B (en) | Seamless switching method and device for video stream | |
CN105657578B (en) | Live broadcasting method, system and client based on HLS protocol | |
CN107566918B (en) | A kind of low delay under video distribution scene takes the neutrel extraction of root | |
CN110177310A (en) | A kind of content distribution system and method | |
CN111836059B (en) | Media stream sending method, device and equipment | |
CN106803974A (en) | The real-time retransmission method of live video stream | |
US10225319B2 (en) | System and method of a link surfed http live streaming broadcasting system | |
CN106303682B (en) | Method, apparatus, terminal and the server of channel switching | |
CN103081461B (en) | For the method and apparatus providing flow-medium performance and targeted advertisements | |
CN105556922B (en) | DASH in network indicates adaptive | |
CN108574883A (en) | The method for realizing multiple CDN Parallel downloads video segments | |
JP6257611B2 (en) | Provision of media and content for individuals | |
CN105376176B (en) | Ensure the methods, devices and systems of mobile Internet video traffic service quality | |
CN110022482A (en) | Video plays broadcasting method, video service system and storage medium | |
CN107295364B (en) | For the real-time streaming transport control method of barrage video, control device | |
CN108933764A (en) | It is a kind of to realize the method and apparatus for quickly rising and broadcasting | |
CN110198311A (en) | A kind of data flow processing method, device, equipment and medium | |
CN113316263A (en) | Data transmission method, device, equipment and storage medium | |
CN106105145A (en) | For operation along the method for the buffer of the transmission paths arrangement between client terminal and at least one server and corresponding buffer | |
CN105898390A (en) | Virtual video bus-based multi-channel rapid switching method and system | |
US20190342585A1 (en) | System and Method for Intelligent Delivery of Segmented Media Streams | |
CN107318052A (en) | Player method, television set and the storage medium of television video | |
CN108124192A (en) | The playback method and system of HLS Streaming Medias | |
CN111835697B (en) | Media stream sending method, device, equipment and system | |
CN105812838B (en) | A kind of multi-screen interactive data sharing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180925 |
|
WD01 | Invention patent application deemed withdrawn after publication |