CN107484040A - A kind of method for realizing network acceleration - Google Patents
A kind of method for realizing network acceleration Download PDFInfo
- Publication number
- CN107484040A CN107484040A CN201710757252.2A CN201710757252A CN107484040A CN 107484040 A CN107484040 A CN 107484040A CN 201710757252 A CN201710757252 A CN 201710757252A CN 107484040 A CN107484040 A CN 107484040A
- Authority
- CN
- China
- Prior art keywords
- data
- download
- burst
- proxy server
- local proxy
- 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
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000001133 acceleration Effects 0.000 title claims abstract description 11
- 230000011218 segmentation Effects 0.000 claims description 2
- 238000012163 sequencing technique Methods 0.000 claims description 2
- 239000003795 chemical substances by application Substances 0.000 claims 1
- 230000003139 buffering effect Effects 0.000 abstract description 10
- 239000012634 fragment Substances 0.000 description 8
- 230000006870 function Effects 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
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/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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23406—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving management of server-side video buffer
-
- 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/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 encoded video stream 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to multimedia play technology field, a kind of method for realizing network acceleration is disclosed, solves electronic product, buffering, the not smooth problem that audio-video document occurs in playing process in system platform.The present invention is in audio-video document playing process, audio, video data is downloaded by multiple threads, data after download are all put into a shared buffering area, extracted for local proxy server, the request of data of player is responded by home server, from shared buffering area, the data being ready for are taken out, there is provided played out to player.The present invention is applied to the multimedia play systems such as mobile phone, flat board, PC, intelligent television.
Description
Technical field
The present invention relates to multimedia play technology field, more particularly to a kind of method for realizing network acceleration.
Background technology
In recent years, with the rapid development of mobile Internet, the amusement function rapid development of internet, wherein, online sound
Video playback is one of the most frequently used function, and video website in the life of people, occupies sizable position.Network
The playback volume of media has become a big index of major film and television play and original video temperature.
Therefore, various lives conventional electronic product including mobile phone, flat board, PC, intelligent television etc., all broadcasts audio frequency and video
Putting as an important function, has many related app to carry out program request, live etc. for users to use.So user
Viewing experience just into app and a very important ring for electronic product, improves the viewing experience of user, can strengthen product
Likability, acceptance of the users is lifted, improve the competitiveness of product in market.So, in order to improve the viewing experience of user, it is necessary to
Related fields are accomplished more preferably, for example improve broadcasting speed, and increase plays fluency.
The present invention is directed to not smooth enough, the buffering phenomenon occurred in audio-video document playing process, it is proposed that one kind is realized
The method of network acceleration, in audio-video document playing process, when broadcasting speed is faster than data acquisition speed, obtained when the last time
Audio, video data finish after, can by network again to audio/video server carry out data acquisition, now will
There is buffering phenomenon, have impact on the fluency of video playback.By means of the invention it is also possible to the number of multiple fragments is obtained simultaneously
According to, and preserved in local buffer, it is supplied to player to carry out local express fast reading by local proxy server and takes broadcasting, reduce
The number that buffering occurs, the fluency of audio and video playing is improved, improve perception during the online audio and video playing of user.
The content of the invention
The technical problem to be solved in the present invention is:A kind of method for realizing network acceleration is provided, solves electronic product, system
Audio-video document occurs in playing process on platform buffering, not smooth problem.
To solve the above problems, the technical solution adopted by the present invention is:A kind of method for realizing network acceleration, including step
Suddenly:
Step 1, start local proxy server;
Step 2, local proxy server send control command to download module by network;
Step 3, download module get broadcasting network address from the order of local proxy server;
Step 4, fileinfo to be broadcast is obtained from network address, and judge that fileinfo to be broadcast is hls files or overstepping one's bounds
The unique file of piece, if the unique file of non-burst, then obtain file data from server by certain numerical value every time;If
Hls files, then m3u8 files are obtained from the webserver;
Step 5, m3u8 file contents are parsed, obtain the address list of each burst;
Step 6, it is segmented according to the single of the address list of each burst of parsing or non-slicing files and downloads length, according to
Each thread to current idle is sequentially allocated according to burst sequence number or by broadcasting sequencing, carries out data download;
Step 7, the download of multiple threads is carried out, the thread downloaded continues burst next time or segmentation is downloaded, such as
This circulation stops until receiving order;
Step 8, the data of download are put into shared buffer, and parameter downloading data and information are written to queue
In;
Step 9, local proxy server reads the data message of storage in queue, then in shared buffer
Take out data;
Step 10, by Cyber-service Patterns, data are returned to player by local proxy server;
Step 11, player play out to data.
Further, in step 2, local proxy server sends control command to download by network socket modes
Module.
Further, the information of downloading data includes initial address, the length of data, timestamp.
The beneficial effects of the invention are as follows:The present invention is in audio-video document playing process, by multiple threads to audio frequency and video
Data are downloaded, and the data after download are all put into a shared buffering area, extracted for local proxy server,
The request of data of player is responded by home server, from shared buffering area, the data being ready for taken out,
It is supplied to player to play out, therefore, reduces the number that player is asked by network to audio/video server in real time, add
The data access of speed player obtains, and reduces the probability for occurring buffering, and adds the fluency of video playback.
Brief description of the drawings
Fig. 1 is the flow chart of embodiment.
Embodiment
Below in conjunction with the implementation process figure of accompanying drawing 1, the embodiment of the present invention is described in detail.The present invention
A kind of method for realizing network acceleration is disclosed, its specific implementation comprises the following steps:
System starts:
Step 1, http server local proxy servers start, are always maintained at servicing in system;
Step 2, program request page selection of the user in upper strata app want the video seen, click on broadcasting, order and video address
Pass to player;
Step 3, player send commands to http server by network socket;
Step 4, http server start and downloaded, by the order of download and file to be downloaded according to play command
Location is sent to download module;
Step 5, download module judged file address, and judgement is the independent text of hls files or other not bursts
Part, if the unique file of non-burst, then come every time by certain numerical value from server acquisition file data;
Step 6, if hls files, then m3u8 files are obtained from the webserver;
Step 7, the content of m3u8 files is parsed, obtain duration information, burst information, the network of each burst
Address, burst address is all deposited in a list, used for follow-up download;
Whether step 8, judgement currently have idle thread to be downloaded, if not having, wait, and wait has idle thread to go out
It is existing;
Step 9, if there is idle thread to use, the fragment network address for needing to download is delivered in idle thread, entered
Row is downloaded.
Step 10, thread use the network address of fragment, the data of the fragment are downloaded, and download after completing, will
The data of the fragment, are written in shared buffer, and to the parameters assignment of caching list structure, the starting point of data
Location, the length of data, timestamp etc., record the data message of this fragment.
Step 11, when player plays out, the order for obtaining data is sent to http server local services
Device, http server find the initial address that data are deposited in shared buffer by the data message of fragment on chained list,
Then the data of fragment length are read, are returned to player.Player plays out to data.
Constantly circulated according to step 8 to step 11, until video file finish or user midway terminate play
Exit.
The general principle of the present invention and main feature are the foregoing described, the description of specification simply illustrates the original of the present invention
Reason, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes and improvements
It all fall within the protetion scope of the claimed invention.
Claims (3)
- A kind of 1. method for realizing network acceleration, it is characterised in that including step:Step 1, start local proxy server;Step 2, local proxy server send control command to download module by network;Step 3, download module get broadcasting network address from the order of local proxy server;Step 4, fileinfo to be broadcast is obtained from network address, and judge that fileinfo to be broadcast is hls files or non-burst Unique file, if the unique file of non-burst, then obtain file data from server by certain numerical value every time;If hls File, then m3u8 files are obtained from the webserver;Step 5, m3u8 file contents are parsed, obtain the address list of each burst;Step 6, according to the single of the address list of each burst of parsing or non-slicing files be segmented download length, according to point Piece sequence number is sequentially allocated each thread to current idle by broadcasting sequencing, carries out data download;Step 7, the download of multiple threads is carried out, the thread downloaded continues burst next time or segmentation is downloaded, and so follows Ring stops until receiving order;Step 8, the data of download are put into shared buffer, and parameter downloading data and information are written in queue;Step 9, local proxy server read the data message of storage in queue, then taken out in shared buffer Data;Step 10, by Cyber-service Patterns, data are returned to player by local proxy server;Step 11, player play out to data.
- A kind of 2. method for realizing network acceleration as claimed in claim 1, it is characterised in that in step 2, local agent clothes Business device sends control command to download module by network socket modes.
- 3. a kind of method for realizing network acceleration as claimed in claim 1, it is characterised in that the information of downloading data includes Beginning address, the length of data, timestamp.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710757252.2A CN107484040A (en) | 2017-08-29 | 2017-08-29 | A kind of method for realizing network acceleration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710757252.2A CN107484040A (en) | 2017-08-29 | 2017-08-29 | A kind of method for realizing network acceleration |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107484040A true CN107484040A (en) | 2017-12-15 |
Family
ID=60602941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710757252.2A Pending CN107484040A (en) | 2017-08-29 | 2017-08-29 | A kind of method for realizing network acceleration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107484040A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113284521A (en) * | 2021-05-19 | 2021-08-20 | 前海七剑科技(深圳)有限公司 | Audio playing method, device, equipment, storage medium and program product |
CN115334321A (en) * | 2022-08-10 | 2022-11-11 | 北京百度网讯科技有限公司 | Method and device for acquiring access heat of video stream, electronic equipment and medium |
CN118555449A (en) * | 2024-07-30 | 2024-08-27 | 四川天邑康和通信股份有限公司 | HLS video stream playing method, device, equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080059480A1 (en) * | 2006-09-06 | 2008-03-06 | Hon Hai Precision Industry Co., Ltd. | System and method for filtering contents of a web page |
CN101237561A (en) * | 2008-01-09 | 2008-08-06 | 北京捷报互动科技有限公司 | Network video acceleration system and control method |
CN102394908A (en) * | 2011-08-11 | 2012-03-28 | 杭州顺网科技股份有限公司 | Local area network-based network video acceleration method |
CN104506950A (en) * | 2014-12-29 | 2015-04-08 | 珠海全志科技股份有限公司 | Multithread download method and download device in network streaming media play, and download equipment |
CN106303587A (en) * | 2016-08-18 | 2017-01-04 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device downloading audio, video data |
CN106790525A (en) * | 2016-12-20 | 2017-05-31 | 广东小天才科技有限公司 | File downloading method and device |
-
2017
- 2017-08-29 CN CN201710757252.2A patent/CN107484040A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080059480A1 (en) * | 2006-09-06 | 2008-03-06 | Hon Hai Precision Industry Co., Ltd. | System and method for filtering contents of a web page |
CN101237561A (en) * | 2008-01-09 | 2008-08-06 | 北京捷报互动科技有限公司 | Network video acceleration system and control method |
CN102394908A (en) * | 2011-08-11 | 2012-03-28 | 杭州顺网科技股份有限公司 | Local area network-based network video acceleration method |
CN104506950A (en) * | 2014-12-29 | 2015-04-08 | 珠海全志科技股份有限公司 | Multithread download method and download device in network streaming media play, and download equipment |
CN106303587A (en) * | 2016-08-18 | 2017-01-04 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device downloading audio, video data |
CN106790525A (en) * | 2016-12-20 | 2017-05-31 | 广东小天才科技有限公司 | File downloading method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113284521A (en) * | 2021-05-19 | 2021-08-20 | 前海七剑科技(深圳)有限公司 | Audio playing method, device, equipment, storage medium and program product |
CN115334321A (en) * | 2022-08-10 | 2022-11-11 | 北京百度网讯科技有限公司 | Method and device for acquiring access heat of video stream, electronic equipment and medium |
CN115334321B (en) * | 2022-08-10 | 2024-04-09 | 北京百度网讯科技有限公司 | Method and device for acquiring access heat of video stream, electronic equipment and medium |
CN118555449A (en) * | 2024-07-30 | 2024-08-27 | 四川天邑康和通信股份有限公司 | HLS video stream playing method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108391179B (en) | Live broadcast data processing method and device, server, terminal and storage medium | |
CN102647634B (en) | Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video | |
US9473548B1 (en) | Latency reduction in streamed content consumption | |
JP5917508B2 (en) | Method and apparatus for synchronizing paused playback across platforms | |
CN109257631B (en) | Video carousel playing method and device, computer equipment and storage medium | |
US20180332316A1 (en) | Method and device for accelerating playback of a single-fragment video | |
WO2021159770A1 (en) | Video playback method, device, apparatus, and storage medium | |
CN105472401B (en) | The method and system of advertisement are played during network direct broadcasting | |
CN108769816B (en) | Video playing method, device and storage medium | |
EP2493191B1 (en) | Method, device and system for realizing hierarchically requesting content in http streaming system | |
WO2019128800A1 (en) | Content service implementation method and device, and content delivery network node | |
CN103686255A (en) | Video advertisement putting method and device based on HLS protocol | |
CN103686245A (en) | Video-on-demand and live broadcasting switching method and device based on HLS protocol | |
CN107333163A (en) | A kind of method for processing video frequency and device, a kind of terminal and storage medium | |
US20150268808A1 (en) | Method, Device and System for Multi-Speed Playing | |
CN106791930B (en) | Video processing method and device | |
CN103763609A (en) | HLS protocol-based channel switching method and apparatus | |
CN107484040A (en) | A kind of method for realizing network acceleration | |
CN108337553A (en) | A kind of multi-medium data pre-download method | |
CN113485972A (en) | Multimedia sharing method, device, mobile terminal and storage medium | |
CN111182331B (en) | Media data slicing method, system and storage medium | |
CN116088732A (en) | Multimedia playing method, device and equipment | |
CN105791987B (en) | media data playing method and terminal | |
CN103747280A (en) | Method for creating a program and device thereof | |
CN110582024A (en) | method and device for playing video |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171215 |
|
RJ01 | Rejection of invention patent application after publication |