CN103686430A - Video file acquisition method and device - Google Patents
Video file acquisition method and device Download PDFInfo
- Publication number
- CN103686430A CN103686430A CN201310722769.XA CN201310722769A CN103686430A CN 103686430 A CN103686430 A CN 103686430A CN 201310722769 A CN201310722769 A CN 201310722769A CN 103686430 A CN103686430 A CN 103686430A
- Authority
- CN
- China
- Prior art keywords
- video
- source servers
- video file
- video source
- file
- 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
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a video file acquisition method and device. The method includes the steps: receiving video link requests transmitted by a network server and comprising address information corresponding to a plurality of video source servers storing target video files; establishing TCP (transmission control protocol) connection with the video source servers according to the address information, and acquiring video data of the target video files from the video source servers; recombining the video data acquired from the video source servers to obtain recombined video files, and playing the recombined video files. A browser is connected with the video source servers to simultaneously obtain the video data in the video source servers and subsequent video file recombination, and the playing efficiency of the client browser and the use ratio of network resources are increased.
Description
Technical field
The present invention relates to the communication technology, relate in particular to a kind of video file acquisition methods and device.
Background technology
Along with the development of technology, user is by browser access Internet resources, as browsing page, watch video, download document and obtain other multimedia messagess.
User, when the browser access Internet resources, client is sent request by browser, server end receive and examined request after process and return results to client, then client browser presents information.In prior art, client browser is realized the full-duplex communication between browser and server by websocket.
But in prior art, client is sent after request by browser, websocket only calls a TCP and connects, if video source server provides the bandwidth of video resource lower, will affect the playing efficiency of client browser.
Summary of the invention
The invention provides a kind of video file acquisition methods and device, to improve playing efficiency and the network resource utilization of client browser.
One aspect of the present invention is to provide a kind of video file acquisition methods, comprising:
Receive the video linking request that Website server sends, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file;
According to described address information, set up TCP with a plurality of described video source servers and be connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously;
The video data obtaining from a plurality of video source servers is recombinated and obtained the video file after restructuring, and play.
Another aspect of the present invention is to provide a kind of video file acquisition methods, comprising:
Receive the request of the broadcasting target video file of browser transmission;
To described browser, send video linking request, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described browser, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
Another aspect of the present invention is to provide a kind of subscriber equipment, comprising:
Video linking request receiver module, the video linking request sending for receiving Website server, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file;
Video data acquisition module, for according to described address information, sets up TCP with a plurality of described video source servers and is connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously;
Recombination module, obtains the video file restructuring for the video data obtaining from a plurality of video source servers is recombinated, and plays.
Another aspect of the present invention is to provide a kind of Website server, comprising:
Request receiving module, for receiving the request of the broadcasting target video file of subscriber equipment transmission;
Video linking request sending module, for sending video linking request to described subscriber equipment, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described subscriber equipment, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
Another aspect of the present invention is to provide a kind of video file and obtains system, comprising:
Above-mentioned subscriber equipment and above-mentioned Website server.
Video request program method of attachment provided by the invention and device, by browser and a plurality of video source server, connect, obtain the video data in a plurality of video source servers simultaneously, and follow-up video file restructuring, improved playing efficiency and the network resource utilization of client browser.
Accompanying drawing explanation
The video file acquisition methods flow chart that Fig. 1 provides for the embodiment of the present invention one;
The applicable network topological diagram of video file acquisition methods that Fig. 2 provides by the embodiment of the present invention one;
The video file acquisition methods flow chart that Fig. 3 provides for the embodiment of the present invention three;
The structure chart of the subscriber equipment that Fig. 4 provides for the embodiment of the present invention four;
The structure chart of the Website server that Fig. 5 provides for the embodiment of the present invention five;
Fig. 6 obtains system construction drawing for the video file that the embodiment of the present invention six provides.
Embodiment
Embodiment mono-
The video file acquisition methods flow chart that Fig. 1 provides for the embodiment of the present invention one.The embodiment of the present invention is applicable to click after video file by browser, browser and a plurality of video source server connect, obtain the video data in a plurality of video source servers, browser is recombinated the video data obtaining and is play the video after restructuring simultaneously.As shown in Figure 2, for the applicable network topological diagram of the embodiment of the present invention, user clicks target video file by browser 20, browser 20 sends the request of playing target video file to Website server 21, Website server 21 returns to response message to browser 20, browser 20 is set up TCP according to described response message with a plurality of video source server 22-24 and is connected, and obtains the video data of described target video file.The video file acquisition methods that the embodiment of the present invention provides is specific as follows:
The video linking request that step 101, reception Website server send, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file;
User clicks target video file by browser, is sent the solicited message of playing target video file by browser to Website server; Website server is according to solicited message, a plurality of video source servers that store target video file are obtained in inquiry, and sending video linking request to browser, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file.
Step 102, according to described address information, simultaneously set up TCP with a plurality of described video source servers and be connected, and from described a plurality of described video source servers, obtain the video data of described target video file;
Browser is according to address information corresponding to a plurality of video source servers, set up TCP with a plurality of video source servers is connected simultaneously, be specifically as follows browser a plurality of address informations that receive are handed down to the websocket in browser engine, websocket is by calling networking module, by networking module, according to a plurality of address informations, by a plurality of TCPsocket, set up many TCP with a plurality of video source servers that store target video file and be connected, and from described a plurality of described video source servers, obtain the video data of described target video file.
Step 103, the video file that the video data obtaining from a plurality of video source servers is recombinated after acquisition restructuring, and play.
Browser is recombinated and is obtained the video file after restructuring the video data obtaining from a plurality of video source servers, can be specifically networking module with after a plurality of video source servers are set up TCP and are connected, websocket reconfigures by calling networking module the video data obtaining from a plurality of TCP connect, video file after being recombinated, and play.
The embodiment of the present invention connects by browser and a plurality of video source server, obtains the video data in a plurality of video source servers simultaneously, and the restructuring of follow-up video file, has improved playing efficiency and the network resource utilization of client browser.
Embodiment bis-
On the basis of embodiment mono-, the described video data that obtains described target video file from described a plurality of described video source servers comprises according to load-balancing mechanism, obtains the video data of described target video file from described a plurality of described video source servers.
Browser obtains after the video data in a plurality of video source servers simultaneously, can be specifically according to load-balancing mechanism by websocket, from the higher more video data of video source server request of bandwidth, or according to the quality of target video file seed, from a plurality of video source servers, select to obtain the video data that image quality is higher.
The embodiment of the present invention, by load-balancing mechanism, is selected to obtain video data from a plurality of video source servers, has improved network resource utilization.
Embodiment tri-
The video file acquisition methods flow chart that Fig. 3 provides for the embodiment of the present invention three.The concrete steps of the video file acquisition methods that as shown in Figure 3, the embodiment of the present invention provides are as follows:
The request of the broadcasting target video file that step 301, reception browser send;
User clicks target video file by browser, and Website server receives the request of the broadcasting target video file being sent by browser.
Step 302, to described browser, send video linking request, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described browser, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
Website server sends the request of playing target video file to Website server according to browser, a plurality of video source servers that store target video file are obtained in inquiry, and sending video linking request to browser, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file.Browser is according to address information corresponding to a plurality of video source servers, set up TCP with a plurality of video source servers is connected simultaneously, be specifically as follows browser a plurality of address informations that receive are handed down to the websocket in browser engine, websocket is by calling networking module, by networking module, according to a plurality of address informations, by a plurality of TCPsocket, setting up many TCP with a plurality of video source servers that store target video file is connected, and from described a plurality of described video source servers, obtain the video data of described target video file, websocket reconfigures by calling networking module the video data obtaining from a plurality of TCP connect, video file after being recombinated, and play.
The embodiment of the present invention connects by browser and a plurality of video source server, obtains the video data in a plurality of video source servers simultaneously, and the restructuring of follow-up video file, has improved playing efficiency and the network resource utilization of client browser.
Embodiment tetra-
The structure chart of the subscriber equipment that Fig. 4 provides for the embodiment of the present invention four.The subscriber equipment that the embodiment of the present invention provides can be carried out the handling process that video file acquisition methods embodiment provides, as shown in Figure 4, the subscriber equipment 40 that the embodiment of the present invention provides comprises video linking request receiver module 41, video data acquisition module 42 and recombination module 43; Wherein, the video linking request that video linking request receiver module 41 sends for receiving Website server, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file; Video data acquisition module 42, for according to described address information, is set up TCP with a plurality of described video source servers and is connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; Recombination module 43 obtains the video file restructuring for the video data obtaining from a plurality of video source servers is recombinated, and plays.
The embodiment of the present invention connects by browser and a plurality of video source server, obtains the video data in a plurality of video source servers simultaneously, and the restructuring of follow-up video file, has improved playing efficiency and the network resource utilization of client browser.
In embodiments of the present invention, described video data acquisition module 42 also, specifically for according to load-balancing mechanism, obtains the video data of described target video file from described a plurality of described video source servers.
The embodiment of the present invention, by load-balancing mechanism, is selected to obtain video data from a plurality of video source servers, has improved network resource utilization.
Embodiment five
The structure chart of the Website server that Fig. 5 provides for the embodiment of the present invention five.The Website server that the embodiment of the present invention provides can be carried out the handling process that video file acquisition methods embodiment provides, and as shown in Figure 5, the Website server 50 that the embodiment of the present invention provides comprises request receiving module 51 and video linking request sending module 52; Wherein, request receiving module 51 is for receiving the request of the broadcasting target video file of subscriber equipment transmission; Video linking request sending module 52 is for sending video linking request to described subscriber equipment, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described subscriber equipment, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
The embodiment of the present invention connects by browser and a plurality of video source server, obtains the video data in a plurality of video source servers simultaneously, and the restructuring of follow-up video file, has improved playing efficiency and the network resource utilization of client browser.
Embodiment six
Fig. 6 obtains system construction drawing for the video file that the embodiment of the present invention six provides.The video file that the embodiment of the present invention provides obtains system can carry out the handling process that video file acquisition methods embodiment provides, as shown in Figure 6, the video file that the embodiment of the present invention provides obtains system 60 and comprises subscriber equipment 40 described in embodiment tetra-and the Website server 50 described in embodiment five.Wherein, the video linking request that subscriber equipment 40 sends for receiving Website server 50, and according to address information in video linking request, set up TCP with a plurality of described video source servers and be connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; The video data obtaining from a plurality of video source servers is recombinated and obtained the video file after restructuring, and play.Website server 50 is for receiving the request of the broadcasting target video file of subscriber equipment 40 transmissions, to subscriber equipment 40, send video linking request, for subscriber equipment 40, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
The system of obtaining the video file that the embodiment of the present invention provides can realize the handling process of video file acquisition methods embodiment of the present invention.
In sum, the embodiment of the present invention connects by browser and a plurality of video source server, obtain the video data in a plurality of video source servers simultaneously, and follow-up video file restructuring, improved the playing efficiency of client browser, by load-balancing mechanism, from a plurality of video source servers, select to obtain video data, improved network resource utilization.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (9)
1. a video file acquisition methods, is characterized in that, comprising:
Receive the video linking request that Website server sends, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file;
According to described address information, set up TCP with a plurality of described video source servers and be connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously;
The video data obtaining from a plurality of video source servers is recombinated and obtained the video file after restructuring, and play.
2. method according to claim 1, is characterized in that, according to described address information, sets up TCP be connected with a plurality of described video source servers simultaneously, comprising:
A plurality of described address informations are handed down to the websocket in browser engine, websocket, by calling networking module, sets up many TCPs by a plurality of TCPsocket with a plurality of video source servers that store target video file according to a plurality of address informations by networking module and is connected.
3. method according to claim 1, is characterized in that, the described video data that obtains described target video file from described a plurality of described video source servers, comprising:
According to load-balancing mechanism, from described a plurality of described video source servers, obtain the video data of described target video file.
4. a video file acquisition methods, is characterized in that, comprising:
Receive the request of the broadcasting target video file of browser transmission;
To described browser, send video linking request, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described browser, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
5. a subscriber equipment, is characterized in that, comprising:
Video linking request receiver module, the video linking request sending for receiving Website server, described video linking request comprises a plurality of corresponding address informations of video source server that store target video file;
Video data acquisition module, for according to described address information, sets up TCP with a plurality of described video source servers and is connected, and from described a plurality of described video source servers, obtain the video data of described target video file simultaneously;
Recombination module, obtains the video file restructuring for the video data obtaining from a plurality of video source servers is recombinated, and plays.
6. subscriber equipment according to claim 5, it is characterized in that, described video data acquisition module is specifically for being handed down to the websocket in browser engine by a plurality of described address informations, so that websocket, by calling networking module, sets up many TCPs by a plurality of TCPsocket with a plurality of video source servers that store target video file according to a plurality of address informations by networking module and is connected.
7. subscriber equipment according to claim 5, is characterized in that, described video data acquisition module, specifically for according to load-balancing mechanism, obtains the video data of described target video file from described a plurality of described video source servers.
8. a Website server, is characterized in that, comprising:
Request receiving module, for receiving the request of the broadcasting target video file of subscriber equipment transmission;
Video linking request sending module, for sending video linking request to described subscriber equipment, described video linking request comprises a plurality of corresponding address informations of video source server that store described target video file, for described subscriber equipment, according to described address information, set up TCP with a plurality of described video source servers and be connected, from described a plurality of described video source servers, obtain the video data of described target video file simultaneously; And, the video data obtaining from a plurality of video source servers is recombinated and play the video file after restructuring.
9. video file obtains a system, it is characterized in that, comprises subscriber equipment and Website server claimed in claim 8 as described in as arbitrary in claim 5 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722769.XA CN103686430A (en) | 2013-12-24 | 2013-12-24 | Video file acquisition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722769.XA CN103686430A (en) | 2013-12-24 | 2013-12-24 | Video file acquisition method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103686430A true CN103686430A (en) | 2014-03-26 |
Family
ID=50322490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310722769.XA Pending CN103686430A (en) | 2013-12-24 | 2013-12-24 | Video file acquisition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103686430A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225242A (en) * | 2020-01-17 | 2020-06-02 | 广州酷狗计算机科技有限公司 | Video playing disaster tolerance method and device and computer storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852307A (en) * | 2005-10-10 | 2006-10-25 | 华为技术有限公司 | Data downloading method |
CN1939036A (en) * | 2004-06-08 | 2007-03-28 | 国际商业机器公司 | Optimized concurrent data download within a grid computing environment |
CN101247402A (en) * | 2008-03-17 | 2008-08-20 | 腾讯科技(深圳)有限公司 | Multimedia files downloading and broadcasting system and method |
CN101616166A (en) * | 2008-06-25 | 2009-12-30 | 上海聚力传媒技术有限公司 | The method and apparatus that in the Internet, is used for the high-speed downloads content of multimedia |
CN101764807A (en) * | 2009-12-16 | 2010-06-30 | 北京邮电大学 | Multisource internet resource device and method based on meta search engine |
CN101883079A (en) * | 2009-05-08 | 2010-11-10 | 上海聚力传媒技术有限公司 | Method and device used for accelerating to request multimedia contents in internet |
US20110106964A1 (en) * | 2009-11-02 | 2011-05-05 | Broadcom Corporation | Media player with integrated parallel source download technology |
CN102307210A (en) * | 2011-01-13 | 2012-01-04 | 国云科技股份有限公司 | Data downloading system and data management and downloading method thereof |
CN102833293A (en) * | 2011-06-17 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Method for downloading resources in peer to server and peer (P2SP) network, and client |
-
2013
- 2013-12-24 CN CN201310722769.XA patent/CN103686430A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1939036A (en) * | 2004-06-08 | 2007-03-28 | 国际商业机器公司 | Optimized concurrent data download within a grid computing environment |
CN1852307A (en) * | 2005-10-10 | 2006-10-25 | 华为技术有限公司 | Data downloading method |
CN101247402A (en) * | 2008-03-17 | 2008-08-20 | 腾讯科技(深圳)有限公司 | Multimedia files downloading and broadcasting system and method |
CN101616166A (en) * | 2008-06-25 | 2009-12-30 | 上海聚力传媒技术有限公司 | The method and apparatus that in the Internet, is used for the high-speed downloads content of multimedia |
CN101883079A (en) * | 2009-05-08 | 2010-11-10 | 上海聚力传媒技术有限公司 | Method and device used for accelerating to request multimedia contents in internet |
US20110106964A1 (en) * | 2009-11-02 | 2011-05-05 | Broadcom Corporation | Media player with integrated parallel source download technology |
CN101764807A (en) * | 2009-12-16 | 2010-06-30 | 北京邮电大学 | Multisource internet resource device and method based on meta search engine |
CN102307210A (en) * | 2011-01-13 | 2012-01-04 | 国云科技股份有限公司 | Data downloading system and data management and downloading method thereof |
CN102833293A (en) * | 2011-06-17 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Method for downloading resources in peer to server and peer (P2SP) network, and client |
Non-Patent Citations (2)
Title |
---|
严清: ""P2SP文件分发系统的研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
周松: ""高性能多源下载系统关键技术研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225242A (en) * | 2020-01-17 | 2020-06-02 | 广州酷狗计算机科技有限公司 | Video playing disaster tolerance method and device and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102651861B (en) | Download method for mobile terminal, mobile terminal and proxy download server | |
CN103457993B (en) | Local cache device and the method that content caching service is provided | |
US20140165119A1 (en) | Offline download method, multimedia file download method and system thereof | |
CN101677325B (en) | Method, device and system for publishing media description information and acquiring media | |
CN102694831B (en) | Mobile terminal streaming compensation data method and system, content distributing network | |
CN102739717B (en) | Method for down loading, download agent server and network system | |
CN102271165B (en) | Device and method for sharing and managing resources searched on Internet | |
CN102055718B (en) | Method, device and system for layering request content in http streaming system | |
CN105025391A (en) | Video playing method and apparatus | |
CN103944994A (en) | Distributed resource obtaining method and device | |
CN102111426A (en) | Method, system and device for implementing point-to-point technology | |
CN103281382B (en) | A kind of document transmission method based on p2p and node | |
CN102098330A (en) | Method, device and system for asynchronous transmission based on json data format | |
CN105611422A (en) | Online live broadcast method based on multi-media list and apparatus thereof | |
CN109982152A (en) | P2P CDN method for processing business, intelligent gateway and CDN platform | |
CN102404616B (en) | Method and system for pushing data cloud based on digital television network | |
CN101656947B (en) | Establishing method, device and system of cross-heterogeneous-network service sharing | |
CN106330833A (en) | Communication method based on ICAP (Internet Content Adaptation Protocol), client and server | |
CN102571942A (en) | Method and device for pushing resource information and providing service in P2P (peer-to-peer) network | |
CN102571409A (en) | Service request management system and method for realizing service across-terminal application | |
WO2016180284A1 (en) | Service node allocation method, device, cdn management server and system | |
CN110519656A (en) | Playback method, system and the server of adaptive stream media | |
KR20090029113A (en) | Method for selecting a block of a file in parallel download, method for file parallel downloading using by the same and record media recorded program for realizing the same | |
CN112307058A (en) | Short link processing method and device, storage medium and computer equipment | |
CN109716731A (en) | For providing the system and method for functions reliably and efficiently data transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140326 |