CN102355504A - Online flash video (FLV) cache method and device - Google Patents
Online flash video (FLV) cache method and device Download PDFInfo
- Publication number
- CN102355504A CN102355504A CN201110314322XA CN201110314322A CN102355504A CN 102355504 A CN102355504 A CN 102355504A CN 201110314322X A CN201110314322X A CN 201110314322XA CN 201110314322 A CN201110314322 A CN 201110314322A CN 102355504 A CN102355504 A CN 102355504A
- Authority
- CN
- China
- Prior art keywords
- flv
- url
- video file
- flv video
- 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
Abstract
The invention provides an online flash video (FLV) cache method and device. The method comprises the following steps of: 1, identifying different uniform resource locators (URLs) which represent the same FLV request; 2, analyzing the URLs and extracting a starting position of video playback; 3, sending a redirect message of a pseudo hyper text transport protocol (HTTP) request to a client according to the URLs and the starting position; and 4, extracting data acquired by the URLs and the starting position from the pseudo HTTP request so as to read a local FLV file and reconstructing the FLV file sent to the client. By the method, FLV-form video data which are repeatedly required from a network outlet can be directly acquired from a local server, so the burden of the network outlet is relieved, bandwidth consumption and flow consumption of a network are reduced, and running cost is saved.
Description
Technical field
The present invention relates to networking technology area, relate in particular to a kind of FLV Online Video caching method and device.
Background technology
At present a lot of Online Video websites use the mode of Flash plug-in unit to play the Online Video file, and browser is as long as support that Flash just can play Online Video.Owing to the professional platform independence of Flash, greatly facilitate the deployment of service provider like this, the digital data form that Flash supports also becomes actual Online Video standard.
Video data is generally all bigger, and for the user, much all is the data of repeatability, and this has brought great burden for user's network egress, has consumed the network bandwidth, has also consumed the flow of network, has increased the cost of operation.
Summary of the invention
In order to address the above problem, the invention provides a kind of FLV Online Video caching method and device, but this FLV Online Video caching method and device check and analysis Online Video URL characteristic, and according to the characteristic of URL, buffer memory, parsing, reconstruct FLV video data.
Concrete technical scheme is following:
A kind of FLV Online Video caching method of an embodiment of the present invention comprises:
The different URL of S1, the same FLV video request of identification expression;
S2, analyze said URL, and extract the original position of video playback;
S3, according to said URL and said original position, send pseudo-HTTP request redirection message to client;
S4, from said pseudo-HTTP request, extract the data that said URL and said original position obtain, to read local FLV video file, the FLV video file that reconstruct is sent to client.
As further improvement of the present invention, said S1 step specifically comprises:
S11, listens for network packet grasp the HTTP request of FLV video;
S12, according to feature database, extract the unique characteristic of sign FLV video features among the URL;
S13, said characteristic is reassembled into inner URL sign, and calculate cryptographic hash, the unique FLV video file of said cryptographic hash sign.
As further improvement of the present invention, said S2 step specifically comprises:
S21, listens for network packet grasp the HTTP request of FLV video;
S22, according to feature database, extract the variate-value of the URL of appointment;
S23, according to said variate-value, zero-time or the original position in the FLV video file that confirm to play.
As further improvement of the present invention, said " the FLV video file that reconstruct is sent to client " specifically comprises:
S41, the unique URL sign of the FLV video file that obtains are inquired about local URL index;
S42, judge whether local FLV video file exists;
S43, if do not exist, then obtain the FLV video file, and be sent to client from public network;
S44, if exist, then, read local FLV file header according to unique URL sign of FLV video file;
S45, according to the original position value of the corresponding FLV video file of the data computation of file header;
S46, according to the original position value of the FLV video file that obtains, read local FLV video file, and merge with the FLV file header, regenerate an interim FLV video file.
A kind of FLV Online Video buffer storage of an embodiment of the present invention comprises:
Recognition unit is used to discern the different URL that representes same FLV video request;
Analytic unit is used to analyze said URL, and extracts the original position of video playback;
Be redirected the unit, be used for, send pseudo-HTTP request redirection message to client according to said URL and said original position;
Reconfiguration unit is used for extracting the data of said URL and the acquisition of said original position from said pseudo-HTTP request, to read local FLV video file, the FLV video file that reconstruct is sent to client.
As further improvement of the present invention, said recognition unit comprises:
Listening components is used for the listens for network packet, grasps the HTTP request of FLV video;
Extraction assembly is used for the unique characteristic of sign FLV video features according to feature database extraction URL;
Analytic unit is used for said characteristic is reassembled into an inner URL sign, and calculates cryptographic hash, the unique FLV video file of said cryptographic hash sign.
As further improvement of the present invention, said analytic unit comprises:
Listening components is used for the listens for network packet, grasps the HTTP request of FLV video;
Extraction assembly is used for the variate-value according to the URL of feature database extraction appointment;
Analytic unit is used for according to said variate-value, confirms zero-time or the original position in the FLV video file play.
As further improvement of the present invention, said reconfiguration unit comprises:
Enquiring component, the unique URL sign of the FLV video file that is used to obtain is inquired about local URL index;
Determination component is used to judge whether local FLV video file exists; If do not exist, then obtain the FLV video file, and be sent to client from public network; If exist, then, read local FLV file header according to unique URL sign of FLV video file;
Analytic unit is used for the original position value according to the corresponding FLV video file of the data computation of file header;
Re-generate assembly, be used for original position value, read local FLV video file, and merge, regenerate an interim FLV video file with the FLV file header according to the FLV video file that obtains.
Can find out by above technical scheme; The present invention can allow originally the video data of the FLV form that need obtain through network egress repeatability directly obtain from home server; Alleviate the burden of network egress, reduced the consumption of the network bandwidth, flow, and practiced thrift the cost of operation.
[description of drawings]
Fig. 1 is the flow chart of an embodiment of the present invention FLV Online Video caching method;
Fig. 2 is the flow chart of S1 concrete steps in an embodiment of the present invention;
Fig. 3 is the flow chart of S2 concrete steps in an embodiment of the present invention;
Fig. 4 is to the flow chart of Online Video data reconstruction in an embodiment of the present invention;
Fig. 5 is the module diagram of an embodiment of the present invention FLV Online Video buffer storage.
[embodiment]
In order to make the object of the invention, technical scheme and advantage clearer, describe the present invention below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1, in one embodiment of the present invention, said FLV Online Video caching method comprises:
The different URL of S1, the same FLV video request of identification expression;
S2, analyze said URL, and extract the original position of video playback;
S3, according to said URL and said original position, send pseudo-HTTP request redirection message to client;
S4, from said pseudo-HTTP request, extract the data that said URL and said original position obtain, to read local FLV video file, the FLV video file that reconstruct is sent to client.Preferably, local FLV video file is through Intranet user being provided HTTP service, accept the FLV Online Video request of Intranet, and sends to outer net that the request data download obtains.This FLV video stream file of asking first is stored in this locality; For follow-up identical FLV video request provides service.
As shown in Figure 2, in one embodiment of the present invention, said S1 step specifically comprises:
S11, listens for network packet grasp the HTTP request of FLV video; Preferably, detect the label mode of engine through DFA deep layer bag the FLV video request message based on http protocol is discerned, whether to judge Intranet user in request FLV video stream file;
S12, according to feature database, extract the unique characteristic of sign FLV video features among the URL;
S13, said characteristic is reassembled into inner URL sign, and calculate cryptographic hash, the unique FLV video file of said cryptographic hash sign.
As shown in Figure 3, in one embodiment of the present invention, said S2 step specifically comprises:
S21, listens for network packet grasp the HTTP request of FLV video; Preferably, detect the label mode of engine through DFA deep layer bag the FLV video request message based on http protocol is discerned, whether to judge Intranet user in request FLV video stream file;
S22, according to feature database, extract the variate-value of the URL of appointment;
S23, according to said variate-value, zero-time or the original position in the FLV video file that confirm to play.
As shown in Figure 4, in one embodiment of the present invention, said " the FLV video file that reconstruct is sent to client " specifically comprises:
S41, the unique URL sign of the FLV video file that obtains are inquired about local URL index;
S42, judge whether local FLV video file exists;
S43, if do not exist, then obtain the FLV video file, and be sent to client from public network;
S44, if exist, then, read local FLV file header according to unique URL sign of FLV video file;
S45, according to the original position value of the corresponding FLV video file of the data computation of file header;
S46, according to the original position value of the FLV video file that obtains, read local FLV video file, and merge with the FLV file header, regenerate an interim FLV video file.
As shown in Figure 5, in one embodiment of the present invention, said FLV Online Video buffer storage comprises:
Recognition unit is used to discern the different URL that representes same FLV video request;
Analytic unit is used to analyze said URL, and extracts the original position of video playback;
Be redirected the unit, be used for, send pseudo-HTTP request redirection message to client according to said URL and said original position;
Reconfiguration unit is used for extracting the data of said URL and the acquisition of said original position from said pseudo-HTTP request, to read local FLV video file, the FLV video file that reconstruct is sent to client.Preferably, local FLV video file is through Intranet user being provided HTTP service, accept the FLV Online Video request of Intranet, and sends to outer net that the request data download obtains.This FLV video stream file of asking first is stored in this locality; For follow-up identical FLV video request provides service.
Preferably, in one embodiment of the present invention, said recognition unit also is used for:
The listens for network packet grasps the HTTP request of FLV video; Preferably, detect the label mode of engine through DFA deep layer bag the FLV video request message based on http protocol is discerned, whether to judge Intranet user in request FLV video stream file;
According to feature database, extract the unique characteristic of sign FLV video features among the URL;
Said characteristic is reassembled into an inner URL sign, and calculate cryptographic hash, the unique FLV video file of said cryptographic hash sign.
Preferably, in one embodiment of the present invention, said analytic unit also is used for:
The listens for network packet grasps the HTTP request of FLV video; Preferably, detect the label mode of engine through DFA deep layer bag the FLV video request message based on http protocol is discerned, whether to judge Intranet user in request FLV video stream file;
According to feature database, extract the variate-value of the URL of appointment;
According to said variate-value, confirm zero-time or the original position in the FLV video file play.
Preferably, in one embodiment of the present invention, said reconfiguration unit also is used for:
The unique URL sign of the FLV video file that obtains is inquired about local URL index;
Judge whether local FLV video file exists;
If do not exist, then obtain the FLV video file, and be sent to client from public network;
If exist, then, read local FLV file header according to unique URL sign of FLV video file;
Original position value according to the corresponding FLV video file of the data computation of file header;
Original position value according to the FLV video file that obtains reads local FLV video file, and merges with the FLV file header, regenerates an interim FLV video file.
Can know through above description; The present invention can allow originally the video data of the FLV form that need obtain through network egress repeatability directly obtain from home server; Alleviate the burden of network egress, reduced the consumption of the network bandwidth, flow, and practiced thrift the cost of operation.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Description through above execution mode can know, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that the application's technical scheme contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium; Like ROM/RAM, magnetic disc, CD etc.; Comprise that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each execution mode of the application or execution mode.
Device embodiments described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can realize the purpose of this execution mode scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment or the like.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the application, in these distributed computing environment (DCE), by through communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
Be to be understood that; Though this specification is described according to execution mode; But be not that each execution mode only comprises an independently technical scheme; This narrating mode of specification only is for clarity sake; Those skilled in the art should make specification as a whole; Technical scheme in each execution mode also can form other execution modes that it will be appreciated by those skilled in the art that through appropriate combination.
Above listed a series of detailed description only is specifying to feasibility execution mode of the present invention; They are not in order to restriction protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill of the present invention spirit done and all should be included within protection scope of the present invention.
Claims (5)
1. a FLV Online Video caching method is characterized in that, may further comprise the steps:
The different URL of S1, the same FLV video request of identification expression;
S2, analyze said URL, and extract the original position of video playback;
S3, according to said URL and said original position, send pseudo-HTTP request redirection message to client;
S4, from said pseudo-HTTP request, extract the data that said URL and said original position obtain, to read local FLV video file, the FLV video file that reconstruct is sent to client;
Said S1 step specifically comprises:
S11, listens for network packet grasp the HTTP request of FLV video;
S12, according to feature database, extract the unique characteristic of sign FLV video features among the URL;
S13, said characteristic is reassembled into inner URL sign, and calculate cryptographic hash, the unique FLV video file of said cryptographic hash sign;
Said S2 step specifically comprises:
S21, listens for network packet grasp the HTTP request of FLV video;
S22, according to feature database, extract the variate-value of the URL of appointment;
S23, according to said variate-value, zero-time or the original position in the FLV video file that confirm to play;
" the FLV video file that reconstruct is sent to client " specifically comprises in the said S4 step:
S41, the unique URL sign of the FLV video file that obtains are inquired about local URL index;
S42, judge whether local FLV video file exists;
S43, if do not exist, then obtain the FLV video file, and be sent to client from public network;
S44, if exist, then, read local FLV file header according to unique URL sign of FLV video file;
S45, according to the original position value of the corresponding FLV video file of the data computation of file header;
S46, according to the original position value of the FLV video file that obtains, read local FLV video file, and merge with the FLV file header, regenerate an interim FLV video file.
2. a FLV Online Video buffer storage is characterized in that, said FLV Online Video buffer storage comprises:
Recognition unit is used to discern the different URL that representes same FLV video request;
Analytic unit is used to analyze said URL, and extracts the original position of video playback;
Be redirected the unit, be used for, send pseudo-HTTP request redirection message to client according to said URL and said original position;
Reconfiguration unit is used for extracting the data of said URL and the acquisition of said original position from said pseudo-HTTP request, to read local FLV video file, the FLV video file that reconstruct is sent to client.
3. FLV Online Video buffer storage according to claim 2 is characterized in that said recognition unit comprises:
Listening components is used for the listens for network packet, grasps the HTTP request of FLV video;
Extraction assembly is used for the unique characteristic of sign FLV video features according to feature database extraction URL;
Analytic unit is used for said characteristic is reassembled into an inner URL sign, and calculates cryptographic hash, the unique FLV video file of said cryptographic hash sign.
4. FLV Online Video buffer storage according to claim 2 is characterized in that said analytic unit comprises:
Listening components is used for the listens for network packet, grasps the HTTP request of FLV video;
Extraction assembly is used for the variate-value according to the URL of feature database extraction appointment;
Analytic unit is used for according to said variate-value, confirms zero-time or the original position in the FLV video file play.
5. FLV Online Video buffer storage according to claim 2 is characterized in that said reconfiguration unit comprises:
Enquiring component, the unique URL sign of the FLV video file that is used to obtain is inquired about local URL index;
Determination component is used to judge whether local FLV video file exists; If do not exist, then obtain the FLV video file, and be sent to client from public network; If exist, then, read local FLV file header according to unique URL sign of FLV video file;
Analytic unit is used for the original position value according to the corresponding FLV video file of the data computation of file header;
Re-generate assembly, be used for original position value, read local FLV video file, and merge, regenerate an interim FLV video file with the FLV file header according to the FLV video file that obtains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110314322XA CN102355504A (en) | 2011-10-17 | 2011-10-17 | Online flash video (FLV) cache method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110314322XA CN102355504A (en) | 2011-10-17 | 2011-10-17 | Online flash video (FLV) cache method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102355504A true CN102355504A (en) | 2012-02-15 |
Family
ID=45578998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110314322XA Pending CN102355504A (en) | 2011-10-17 | 2011-10-17 | Online flash video (FLV) cache method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102355504A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843615A (en) * | 2012-09-05 | 2012-12-26 | 北京星网锐捷网络技术有限公司 | Cache indexing method of online video files and cache server |
CN105117350A (en) * | 2015-08-25 | 2015-12-02 | 摩贝(上海)生物科技有限公司 | Configurable caching system and method |
WO2017129130A1 (en) * | 2016-01-29 | 2017-08-03 | 腾讯科技(深圳)有限公司 | Audio processing method, server, user equipment, and system |
CN108322762A (en) * | 2017-12-20 | 2018-07-24 | 湖北鸿云科技股份有限公司 | High-performance media-on-demand server based on flv files and order program service method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635826A (en) * | 2008-07-21 | 2010-01-27 | 中国科学院计算技术研究所 | Method for acquiring addresses of network video programs |
CN101848156A (en) * | 2010-05-19 | 2010-09-29 | 苏州迈科网络安全技术有限公司 | Method of FLV (Flash Video) flow localization |
-
2011
- 2011-10-17 CN CN201110314322XA patent/CN102355504A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635826A (en) * | 2008-07-21 | 2010-01-27 | 中国科学院计算技术研究所 | Method for acquiring addresses of network video programs |
CN101848156A (en) * | 2010-05-19 | 2010-09-29 | 苏州迈科网络安全技术有限公司 | Method of FLV (Flash Video) flow localization |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102843615A (en) * | 2012-09-05 | 2012-12-26 | 北京星网锐捷网络技术有限公司 | Cache indexing method of online video files and cache server |
CN105117350A (en) * | 2015-08-25 | 2015-12-02 | 摩贝(上海)生物科技有限公司 | Configurable caching system and method |
CN105117350B (en) * | 2015-08-25 | 2018-08-24 | 摩贝(上海)生物科技有限公司 | A kind of configurable caching system and method |
WO2017129130A1 (en) * | 2016-01-29 | 2017-08-03 | 腾讯科技(深圳)有限公司 | Audio processing method, server, user equipment, and system |
US11182425B2 (en) | 2016-01-29 | 2021-11-23 | Tencent Technology (Shenzhen) Company Limited | Audio processing method, server, user equipment, and system |
CN108322762A (en) * | 2017-12-20 | 2018-07-24 | 湖北鸿云科技股份有限公司 | High-performance media-on-demand server based on flv files and order program service method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216700B (en) | System of cloud-computing-based HTML5 application packaging, installation, unloading and operation method | |
CN102135892B (en) | Application program running method, device and system | |
US7702317B2 (en) | System and method to query wireless network offerings | |
CN102473171B (en) | Information about local machine is conveyed to browser application | |
CN106878074B (en) | Flow filtering method and device | |
CN102646135B (en) | Webpage collecting method, device and system | |
CN102904959B (en) | Network accelerating method and gateway | |
CN104683407B (en) | A kind of transmission method and equipment of page data and application data | |
CN102098327A (en) | Method and device for downloading online video sniffer | |
CN103139137B (en) | Network service provider method and device | |
CN105068876B (en) | Method based on distributed deployment prototype collection cell phone application performance data | |
CN102868909A (en) | Method and device for caching MP4 online video | |
CN103944944A (en) | Webpage link sharing method and system, and electronic device | |
CN103095839A (en) | System and method of client data presentation | |
CN105426549A (en) | Method and device for reading webpage resources and electronic equipment | |
CN102932471B (en) | Browser logon server and realize browser log in method and system | |
CN102355504A (en) | Online flash video (FLV) cache method and device | |
CN104361007B (en) | The processing method of browser and its collection | |
CN107370628B (en) | Log processing method and system based on embedded points | |
US8990266B2 (en) | Dynamic data transformations for network transmissions | |
CN108345606A (en) | The acquisition methods and device of web page resources | |
CN103401931B (en) | A kind of method and system for downloading file | |
CN105100291A (en) | Resource address generating method, device and system | |
CN104158697B (en) | A kind of dead chain detection method and device | |
CN104796279A (en) | Request packet processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120215 |