CN101197840A - Method, system and device for downloading and storing files and method for generating identification - Google Patents

Method, system and device for downloading and storing files and method for generating identification Download PDF

Info

Publication number
CN101197840A
CN101197840A CNA2007103078489A CN200710307848A CN101197840A CN 101197840 A CN101197840 A CN 101197840A CN A2007103078489 A CNA2007103078489 A CN A2007103078489A CN 200710307848 A CN200710307848 A CN 200710307848A CN 101197840 A CN101197840 A CN 101197840A
Authority
CN
China
Prior art keywords
file
multimedia
media segment
mother
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007103078489A
Other languages
Chinese (zh)
Inventor
李金波
胡茂伟
李彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology Co Ltd
Priority to CNA2007103078489A priority Critical patent/CN101197840A/en
Publication of CN101197840A publication Critical patent/CN101197840A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a file downloading and storing method, a system, a device and a mark generating method, which is used to solve the problem that the prior art causes network bandwidth and storage resource waste because of mutually independent multimedia original files and multimedia fragment files. A multimedia original file downloading method comprises that: according to established corresponding relation of the multimedia original file mark and the multimedia fragment file mark, a multimedia fragment file mark to which a multimedia original file mark corresponds is determined; according to position labels, the multimedia fragment file data to which the multimedia fragment file mark corresponds is downloaded as the partial data source of a multimedia original file. A multimedia fragment file storing method comprises that: the position label of a multimedia fragment file in the multimedia original file is placed in a file mark of the multimedia fragment file; the corresponding relation between a URL address storing the multimedia original file and the file mark of the multimedia fragment file is established. Adopting the present invention can improve network bandwidth utilization ratio and save storage resources.

Description

The method of the method for download and storage file, system, device and generation sign
Technical field
The present invention relates to the network communications technology, the method for the method of particularly a kind of download and storage file, system, device and generation sign.
Background technology
Present the Internet has become an indispensable part in a lot of user's lives, along with the increase of the network bandwidth, is accepted by increasing user by the Internet download multimedia resource.A large amount of users searches the multimedia mother file that oneself needs in the Internet, download.
Now, many websites all provide the fragment of some multimedia mother files (as vidclip) in order to improve user experience, and the user can download this fragment earlier and watch, and selects whether to download complete multimedia mother file again according to the quality of fragment.
Existing file downloading mode often adopts the mode of multi-source download to improve speed of download, promptly downloads simultaneously from a plurality of addresses of having stored same file.
By prior art when the fragment of intercepting multimedia mother file, the clip file that is truncated to will with the renunciation of former multimedia mother file.For example, for a multimedia mother file A, two clip file A1, A2 have been intercepted, then A1, A2 and multimedia mother file A are in isolated mutually state, promptly when the user when downloading multimedia mother file A, though A1, A2 as the part of file A, can't download for the user as data source;
For example: certain server is preserved one section complete video, certain client downloads this complete video, intercept fragment in this complete video and it is saved as a video segment, delete the complete video file of being downloaded then, because complete video and video segment are separate, can not know the pairing complete video file of this fragment from video segment, so have the one or more fragment clients in this complete video, can not provide the client of downloading this complete video and upload resource.
In addition, present server need be preserved multimedia mother file A respectively, and multi-media segment file A1, A2, these independently the multi-media segment file will cause great waste of storage space;
For example: deposited one section complete video on the server of download providing, and one or more fragments of having deposited this complete video were carried out preview for the user earlier before downloading complete video, but because complete video and video segment are separate, though each video segment is the part of complete video, still need to preserve each video segment, thereby cause repeated storage.
In sum, when downloading multimedia mother file and storage multi-media segment file,, thereby cause the waste of the network bandwidth and storage resources at present because multimedia mother file and this multi-media segment file are separate.
Summary of the invention
The embodiment of the invention provides method, system, the device of a kind of download and storage file and generates the method for sign, in order to solve exist in the prior art when downloading multimedia mother file and storage multi-media segment file, because multimedia mother file and this multi-media segment file are separate, thus the problem that causes the network bandwidth and storage resources to waste.
A kind of method of downloading the multimedia mother file that the embodiment of the invention provides comprises:
Definite multimedia mother file sign that needs the multimedia mother file correspondence of download;
According to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of described multimedia mother file sign, described multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data;
According to described location label,, download as the partial data source of described multimedia mother file with the data of the multi-media segment file of described multi-media segment file identification correspondence.
A kind of method of storing the multi-media segment file that the embodiment of the invention provides comprises:
Obtain the location label of a multi-media segment file in its multimedia mother file;
This location label is placed the file identification of multi-media segment file;
The corresponding relation of the file identification of the uniform resource locator URL address of this multimedia mother file and this multi-media segment file is deposited in foundation.
A kind of system that downloads the multimedia mother file that the embodiment of the invention provides comprises:
Server, the multimedia mother file sign that is used for the multimedia mother file correspondence of definite client downloads, according to the corresponding relation of the multimedia mother file sign of preserving with the multi-media segment file identification, determine the corresponding multi-media segment file identification of described multimedia mother file sign, described multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data;
Client is used for according to described location label, with the data of the multi-media segment file of described multi-media segment file identification correspondence, downloads as the partial data source of described multimedia mother file.
A kind of system that stores the multi-media segment file that the embodiment of the invention provides comprises:
Server is used for obtaining the location label of a multi-media segment file at its multimedia mother file; This location label is placed the file identification of multi-media segment file; The corresponding relation of the file identification of the uniform resource locator URL address of this multimedia mother file and this multi-media segment file is deposited in foundation.
A kind of server that the embodiment of the invention provides comprises:
Mother file sign determination module, the multimedia mother file that is used for the multimedia mother file correspondence of definite client downloads identifies;
Clip file sign determination module, be used for according to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of multimedia mother file sign that described mother file sign determination module is determined, described multi-media segment file identification comprises the location label of multi-media segment file in the multimedia mother file.
A kind of client that the embodiment of the invention provides comprises:
The label determination module, the location label of the media fragment file identification that is used for determining that server is determined;
Download module is used for the location label according to described label determination module, and the data of the multi-media segment file of the multi-media segment file identification correspondence that this server is definite are downloaded as the partial data source of described multimedia mother file.
The embodiment of the invention also provides a kind of server to comprise:
Acquisition module is used for obtaining the location label of a multi-media segment file at its multimedia mother file;
Set up module, be used for this location label is placed the file identification of multi-media segment file, set up the corresponding relation of the file identification of the uniform resource locator URL address deposit this multimedia mother file and this multi-media segment file.
The method of a kind of spanned file sign that the embodiment of the invention provides comprises:
From multimedia mother file intercepting multi-media segment file the time, obtain the location label of this clip file in mother file;
With the file identification of multimedia mother file and this location label jointly as the file identification of multi-media segment file.
The embodiment of the invention has increased the location label of multi-media segment file in the multimedia mother file in the multi-media segment file identification, the multi-media segment file is associated with the multimedia mother file, when user's download multimedia mother file, according to location label, determine the correspondence position of multi-media segment file in the multimedia mother file, the data of multi-media segment file be can be used as a part of data source confession user's download of this multimedia mother file; When preserving the multi-media segment file, the corresponding relation that only needs the file identification of preservation URL address and this multi-media segment file, when the user selects to download the multi-media segment file, partial data according to the multimedia mother file of download location, URL address label correspondence, thereby the multi-media segment file can be downloaded the client downloads of corresponding multimedia mother file as data source for other, speed of download and utilization of network bandwidth have been improved, and do not need in the server to repeat again to preserve the multi-media segment file, saved storage resources.
Description of drawings
Figure 1A generates the method flow schematic diagram of the file identification of multi-media segment file for the embodiment of the invention;
The schematic diagram of the multi-media segment file identification of Figure 1B embodiment of the invention;
Fig. 2 A is the method flow schematic diagram that the embodiment of the invention is downloaded the multimedia mother file;
Fig. 2 B is the system configuration schematic diagram that the embodiment of the invention is downloaded the multimedia mother file;
Fig. 2 C is first kind of server architecture schematic diagram of the embodiment of the invention;
Fig. 2 D is an embodiment of the invention client terminal structure schematic diagram;
Fig. 3 A is the method flow schematic diagram of embodiment of the invention storage multi-media segment file;
Fig. 3 B is the system configuration schematic diagram of embodiment of the invention storage multi-media segment file;
Fig. 3 C is second kind of server architecture schematic diagram of the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of file identification method of multi-media segment file, it is associated the multi-media segment file by increased multi-media segment file location label in the multimedia mother file under it in the multi-media segment file identification with the multimedia mother file.By using this method, when user's download multimedia mother file, can determine the correspondence position of multi-media segment file in the multimedia mother file according to location label, with a part of data source confession user's download of multi-media segment file as this multimedia mother file; And when user's download multi-media segment file, according to location label, determine the correspondence position of multi-media segment file in the multimedia mother file, with a part of data source confession user's download of appropriate section data in the multimedia mother file, thereby improved speed of download as this multi-media segment file.
The embodiment of the invention also provides a kind of storage means of multi-media segment file, server does not need multimedia mother file and multi-media segment file are stored simultaneously, only need storage multimedia mother file and the location label of multi-media segment file in the multimedia mother file, when needs use the multi-media segment file, the part that only need obtain the location label correspondence from the multimedia mother file gets final product, thereby has saved the server stores resource.
Wherein, the multimedia mother file includes but not limited to a kind of in the following files:
Video file, audio file or the like.
The multi-media segment file intercepts a part of data file and forms from the multimedia mother file.With the video file is example, and the video file of most of forms mainly is made up of file header, frame data and three parts of index.Wherein file header has been described this video file and the overall information of data wherein, as medium type, play total duration, maximal rate, the wide height of video image, frame number; Frame data have comprised the data of each video and audio frame; The timestamp of each frame and it corresponding relation of position hereof preserved in index.
When the video mother file being carried out the video segment intercepting, at first set the time period of desire intercepting, be assumed to be 20 seconds to 40 seconds; By to the reading and analyzing of index structure, can find key frame of video and these frame the position in video mother file of timestamp respectively 20 seconds and 40 seconds.Different-format is different to the storage mode of frame, what have opens into a frame branch fixed-size a plurality of bag (Packet, or piece Chunk), or combine by a plurality of frames and to put into a fixed-size bag, have then by the concrete data that contain in header packet information indication bag size and the bag.Behind the frame data in obtaining setting-up time section 20 to 40 seconds, each bag in the frame data is handled, saved as new frame data after revising the frame information (for example the temporal information with each frame data was revised as 0 to 20 second) of each bag.At last, for frame is provided with new index, and add new file header.File header, frame data and index three just can form a new video file, also are a video segment file of video mother file.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
Shown in Figure 1A, the method that the embodiment of the invention generates the file identification of multi-media segment file comprises:
Step S 1, from multimedia mother file intercepting multi-media segment file the time, obtain the location label of this clip file in mother file.
This location label is the start-stop positional information of this clip file in mother file, specifically can be the frame of data information of frame data in mother file of clip file, or frame data time information corresponding in mother file, shown in Figure 1B, 000003 to 000075 frame in the intercepting mother file generates a clip file, and then its location label is " 000003 to 000075 ".If 000003 frame time information corresponding is the 2nd second, 000075 time information corresponding is the 13rd second, and then location label also can be " the 2nd second to the 13rd second " (when location label occurring hereinafter, all anticipate for this reason, will no longer do explanation).
Step S2, with the file identification of multimedia mother file and this location label jointly as the file identification of multi-media segment file.
For example, the file identification of multimedia mother file is ID-A, and the file identification that then intercepts the clip file that its 000003rd to 000075 frame generated can be ID-A (000003-000075).
Described multimedia mother file sign can be filename, and URL(uniform resource locator) that file is deposited (URL) or content signature (Content Identity, CID) etc.Wherein, content signature is according to default algorithm the content-data of file to be calculated the back to obtain.Default algorithm can be the arbitrary algorithm that different data processing is obtained different results, its result, and promptly content is signed, but the processed file of unique identification; Perhaps, default algorithm also can be that the result repetition rate is extremely low, the algorithm in tolerance interval (when file identification occurring hereinafter, all anticipate for this reason, will no longer do explanation).
The method of determining content signature has multiple, such as: the content-data to each binary file carries out Hash operation, obtains the cryptographic Hash of file content, and the cryptographic Hash of this document content can unique representative this document content information.Hash algorithm can adopt md5-challenge (Message-Digest Algorithm, MD) 5, MD4, SHA (Secure Hash Algorithm, SHA), (SecureHash Standard, SHS) scheduling algorithm is as formula for SHA.
One of them calculation document content signature way: choose each 32KB data before, during and after the whole data resource, also can choose other any several sections of file, utilize aforementioned algorithm respectively these three parts to be calculated, after resulting three values are linked in sequence, utilizing aforementioned algorithm that the data after connecting are calculated once more, is the content signature with the value that obtains at last as the CID of this data resource;
Another calculation document content signature way is: the content-data of binary file is equally divided into N part with certain length, this length can be 20K, 30K or other any values, utilize aforementioned algorithm that it is carried out Hash calculation respectively, obtain a value, become the piecemeal user supplied video content using fingerprints (Block ContentIdentity, BCID); Same carries out hash algorithm one time to all BCID, a value that obtains, and (Global Content Identity GCID), signs as the content of this document with this GCID to be called global user supplied video content using fingerprints.
When the content signature that adopts data resource comes the described data resource of unique identification as file identification, because being the content according to file, file identification draws, like this, even the title of two data resources, the URL difference of depositing, as long as its content does not change, their file identification all is consistent, all it is considered as same data resource in the embodiment of the invention.
Shown in Fig. 2 A, the method that the embodiment of the invention is downloaded the multimedia mother file comprises the following steps:
Step 200, server are determined the multimedia mother file sign of the multimedia mother file correspondence that client need be downloaded.
Wherein, step 200 can further include:
When client was set up multimedia mother file downloading task, server was determined the multimedia mother file sign of multimedia mother file correspondence.
Certainly, in the step 200, server determines that method that multimedia mother file sign adopted must be identical with the method that the multimedia mother file sign in the corresponding relation of multimedia mother file sign and multi-media segment file identification is determined.
Such as: the definite multimedia mother file sign in the corresponding relation adopts the data of each 32k byte of head, centre and afterbody of getting a file, utilize its file identification of MD5 algorithm computation respectively, to calculate resulting three MD5 values is linked in sequence, and calculate with the data of DM5 algorithm after to this connection once more, with the file identification of this result of calculation as file; The method of then determining multimedia mother file sign in the step 200 also must be the data of obtaining each 32k byte of head, centre and afterbody of downloaded files, utilize its file identification of MD5 algorithm computation respectively, to calculate resulting three MD5 values is linked in sequence, and calculate with the data of DM5 algorithm after to this connection once more, with the file identification of this result of calculation as this file in download.
Step 201, server are according to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, multimedia mother file in the determining step 200 identifies corresponding multi-media segment file identification, and this multi-media segment file identification is sent to client.
Wherein, the multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data.
The corresponding relation of multimedia mother file sign and multi-media segment file identification can be with multimedia mother file sign and described location label jointly as the multi-media segment file identification, the ID-A among Figure 1B (000003-000075) for example, then the forward part " ID-A " of this clip file sign is a multimedia mother file sign; Also can set up the corresponding relation of multimedia mother file sign and multi-media segment file identification according to the tabulation mode.
Concrete, can adopt database or file or other forms to set up the corresponding relation of multimedia mother file sign and multi-media segment file identification.
Certainly, present embodiment is not limited to above-mentioned dual mode, as long as can find corresponding multimedia mother file label manner all to be suitable for the present invention according to the multi-media segment file identification.
The multimedia mother file sign of setting up can be saved in the server with the corresponding relation of multi-media segment file identification; Also can be saved in other entities, for server lookup.
Step 202, client be according to the location label in the multi-media segment file identification of determining in the step 201, with the data of the multi-media segment file of multi-media segment file identification correspondence, downloads as the partial data source of multimedia mother file.
Wherein, after the step 201, can further include before the step 202:
S201, server are determined the URL address of this multi-media segment file identification correspondence according to the multi-media segment file identification of setting up and the corresponding relation of URL address, and this URL address is sent to client.
Then in the step 202, client, is downloaded as the partial data source of multimedia mother file the multi-media segment file of the URL address correspondence among the step S201 according to the location label in the multi-media segment file identification of determining in the step 201.
Concrete, client is determined the position of data in the multimedia mother file of multi-media segment file according to location label, thereby can download multi-media segment file and multimedia mother file at the same time the time, can not duplicate the situation of download.
Wherein, can further include after the step 202:
Client is according to the location label in the multi-media segment file identification of determining in the step 201, revise to download the data message in the multi-media segment file of finishing, the data of amended multi-media segment file are placed on the correspondence position of multimedia mother file of download.
Because the multi-media segment file is when intercepting, the frame data bag that is intercepted is handled, save as new frame data after having revised the frame information of each bag, so after clip file is downloaded as data source, the frame data temporal information and the mother file of clip file are inconsistent, can not directly be reduced in the mother file, so need make amendment.It specifically can be: for example, the file identification of a clip file is ID-1 (005-020), and the actual frame data information of this clip file may be the 1st frame to the 14 frames, then the frame data in the clip file is revised as the 5th frame to the 20 frames according to location label.
Need to prove, the possible corresponding a plurality of multi-media segment files of multimedia mother file, at this moment, server can be determined each multi-media segment file identification in the step 201, and client can be downloaded each media fragment file in the step 202 as the data source of multimedia mother file, specific implementation process and said process are similar, repeat no more.
Shown in Fig. 2 B, the system that the embodiment of the invention is downloaded the multimedia mother file comprises: server 10 and client 11.
Server 10, be connected with client 11, the multimedia mother file sign that is used for the multimedia mother file correspondence of definite client 11 downloads, according to the corresponding relation of the multimedia mother file sign of preserving, determine the corresponding multi-media segment file identification of multimedia mother file sign that client 11 is determined with the multi-media segment file identification.
Wherein, server 10 can further include: mother file sign determination module 100 and clip file sign determination module 101.
Mother file sign determination module 100, the multimedia mother file that is used for the multimedia mother file correspondence of definite client 11 downloads identifies.
Certainly, mother file sign determination module 100 determines that the method that the multimedia mother file sign of download is adopted must be identical with the method that generates multimedia mother file sign.
Clip file sign determination module 101, be used for according to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of multimedia mother file sign that mother file sign determination module 100 is determined, this multi-media segment file identification is sent to client 11.
Wherein, the multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data.
The corresponding relation of multimedia mother file sign and multi-media segment file identification can be with multimedia mother file sign and described location label jointly as the multi-media segment file identification, the ID-A among Figure 1B (000003-000075) for example, then the forward part " ID-A " of this clip file sign is a multimedia mother file sign; Also can set up the corresponding relation of multimedia mother file sign and multi-media segment file identification according to the tabulation mode.
Certainly, present embodiment is not limited to above-mentioned dual mode, as long as can find corresponding multimedia mother file label manner all to be suitable for the present invention according to the multi-media segment file identification.
Wherein, server 10 can further include: first determination module 102.
First determination module 102, be used for according to the multi-media segment file identification of setting up and the corresponding relation of URL address, determine the URL address of the multi-media segment file identification correspondence that clip file sign determination module 101 is determined, this URL address is sent to client 11.
Client 11, be connected with server 10, the multimedia mother file sign that is used for definite multimedia mother file correspondence of downloading, and the location label in the multi-media segment file identification of determining according to server 10, with the data of the multi-media segment file of multi-media segment file identification correspondence, download as the partial data source of multimedia mother file.
Wherein, client 11 can further include: label determination module 110 and download module 111.
Label determination module 110, the location label that is used for determining receiving from the multi-media segment file identification of server 10.
Download module 111 is used for the location label determined according to label determination module 110, with the data of the multi-media segment file of multi-media segment file identification correspondence, downloads as the partial data source of multimedia mother file.
Concrete, download module 111 is determined the data of multi-media segment file in the position of multimedia mother file according to location label, thereby can download multi-media segment file and multimedia mother file at the same time the time, can not duplicate the situation of download.
Wherein, download module 111 can further include: second determination module 1110 and processing module 1111.
Second determination module 1110, the multi-media segment file that is used to determine to receive from the URL address correspondence of server.
Processing module 1111 is used for according to the location label of receiving from the multi-media segment file identification of server 10, with the multi-media segment file that second determination module 1110 is determined, downloads as the partial data source of multimedia mother file.
Wherein, client 11 can further include: composite module 112.
Composite module 112, be used for location label according to the multi-media segment file identification, revise the data message that download module 111 is downloaded in the multi-media segment file of finishing, the data of amended multi-media segment file are placed on the correspondence position of multimedia mother file.
Need to prove, the possible corresponding a plurality of multi-media segment files of multimedia mother file, at this moment, server 10 can be determined each multi-media segment file identification, and client 20 can be downloaded each media fragment file as the data source of multimedia mother file, specific implementation process and said process are similar, repeat no more.
Shown in Fig. 2 C, first kind of server architecture of the embodiment of the invention comprises: mother file sign determination module 200 and clip file sign determination module 201.
First kind of server of present embodiment can further include: first determination module 202.
Wherein, it is identical that the mother file sign determination module 100 among mother file sign determination module 200 and clip file sign determination module 201 and Fig. 2 B and clip file identify determination module 101 functions, repeats no more.
Shown in Fig. 2 D, first kind of client terminal structure of the embodiment of the invention comprises: label determination module 210 and download module 211.
First kind of client of present embodiment can further include: composite module 212.
Wherein, label determination module 210, download module 211 and composite module 212 are identical with composite module 112 functions with label determination module 110, download module 111 among Fig. 2 B, repeat no more.
As shown in Figure 3A, the method for embodiment of the invention storage multi-media segment file comprises:
Step 300, server obtain the location label of a multi-media segment file in its multimedia mother file.
Step 301, server place this location label the file identification of multi-media segment file.
Step 302, server are set up the corresponding relation of the file identification of the URL address of depositing this multimedia mother file and this multi-media segment file.
Wherein, the corresponding relation of URL address and multi-media segment file identification can the URL address is corresponding multimedia mother file sign and described location label jointly as the multi-media segment file identification, the ID-A among Figure 1B (000003-000075) for example, then the forward part " ID-A " of this clip file sign is a multimedia mother file sign; Also can set up the corresponding relation of URL address and multi-media segment file identification according to the tabulation mode.
Certainly, present embodiment is not limited to above-mentioned dual mode, as long as can find corresponding multimedia mother file label manner all to be suitable for the present invention according to the multi-media segment file identification.
Concrete, can adopt database or file or other forms to set up the corresponding relation of URL address and multi-media segment file identification.
The corresponding relation of the URL address of setting up and the file identification of this multi-media segment file can be saved in the server; Also can be saved in other entities, for server lookup.
Wherein, can further include after the step 302:
Step a302, server be according to the corresponding relation of the URL address of setting up with the file identification of this multi-media segment file, need to determine the multi-media segment file identification of the URL address correspondence of download.
In specific implementation process, server can be determined the multi-media segment file identification of the URL address correspondence in the client downloads task when client is set up multi-media segment file downloading task, the multi-media segment file identification is sent to client.
With the data of the multimedia mother file of the location label correspondence in the multi-media segment file identification, download as data source the URL address that step b302, client determine according to server.
Concrete, when needs use this multi-media segment file, the multimedia mother file of this multi-media segment file is found in the URL address that can pass through to be write down, and can be by the location label in the file identification of this multi-media segment file, know the Data Position of this multi-media segment file in the multimedia mother file, then can from the multimedia mother file, obtain the data content of multi-media segment file.
Wherein, after obtaining the data content of clip file, also needing data are handled, is new video file with the data encapsulation of being obtained.Then can further include after the step b302:
Data downloaded is encapsulated as the multi-media segment file.
Save as new frame data after being specially the frame information of revising in each packet,, and add new file header for frame data are provided with new index.File header, frame data and index three just can form a new video file, also are the video segment file.
With the video file is example: if file A comprises 100 frames, the 1st frame to the 100 frames, fragment data B are the 3rd frame to the 75 frames of file A, after downloading fragment data B, frame of data information among the fragment data B is revised as the 1st frame to the 73 frames successively, to form new video file B.
In the present embodiment, download the URL address of multi-media segment file, identical with the URL address of multimedia mother file, client can be according to location label, download multimedia mother file data of corresponding positions, like this, server only need be preserved the multimedia mother file, does not need to preserve the multi-media segment file.
Shown in Fig. 3 B, the system that the embodiment of the invention is downloaded the multi-media segment file comprises: server 40.
Server 40, be used for obtaining the location label of a multi-media segment file at its multimedia mother file, this location label is placed the file identification of multi-media segment file, set up the corresponding relation of the file identification of the URL address of depositing this multimedia mother file and this multi-media segment file.
Wherein, server 40 can further include: acquisition module 400 and set up module 401.
Acquisition module 400 is used for obtaining the location label of a multi-media segment file at its multimedia mother file.
Set up module 401, be used for the location label that acquisition module 400 obtains is placed the file identification of this multi-media segment file, set up the corresponding relation of the file identification of the URL address of the multimedia mother file deposit multi-media segment file correspondence and this multi-media segment file.
Wherein, the corresponding relation of URL address and multi-media segment file identification can the URL address is corresponding multimedia mother file sign and described location label jointly as the multi-media segment file identification, the ID-A among Figure 1B (000003-000075) for example, then the forward part " ID-A " of this clip file sign is a multimedia mother file sign; Also can set up the corresponding relation of URL address and multi-media segment file identification according to the tabulation mode.
Certainly, present embodiment is not limited to above-mentioned dual mode, as long as can find corresponding multimedia mother file label manner all to be suitable for the present invention according to the multi-media segment file identification.
Concrete, can adopt database or file or other forms to set up the corresponding relation of URL address and multi-media segment file identification.
The corresponding relation of the URL address of setting up and the file identification of this multi-media segment file can be saved in the server; Also can be saved in other entities, for server 40 inquiries.
Wherein, server 40 can further include: clip file sign determination module 402.
Clip file sign determination module 402 is used for the corresponding relation according to the file identification of the URL address of setting up and this multi-media segment file, definite multi-media segment file identification that needs the URL address correspondence of download.
In specific implementation process, server 40 can be when client 41 be set up multi-media segment file downloading task, determine the multi-media segment file identification of the URL address correspondence in client 41 downloading task, the multi-media segment file identification is sent to server 40.
Then the system of embodiment of the invention download multi-media segment file can further include: client 41.
Client 41 is used for the URL address determined according to server 40, and the data of the multimedia mother file of the location label correspondence in the multi-media segment file identification that server 40 is determined are downloaded as data source.
Concrete, when needs use this multi-media segment file, the multimedia mother file of this multi-media segment file is found in the URL address that can pass through to be write down, and can be by the location label in the file identification of this multi-media segment file, know the Data Position of this multi-media segment file in the multimedia mother file, then can from the multimedia mother file, obtain the data content of multi-media segment file.
Client 41 also is used for data downloaded is encapsulated as the multi-media segment file after the data of having downloaded multimedia mother file correspondence.
Save as new frame data after being specially the frame information of revising in each packet,, and add new file header for frame data are provided with new index.File header, frame data and index three just can form a new video file, also are the video segment file.
Shown in Fig. 3 C, second kind of server architecture of the embodiment of the invention comprises: acquisition module 500 and set up module 501.
Second kind of server of present embodiment can further include: clip file sign determination module 502.
Wherein, acquisition module 500, set up acquisition module 400 among module 501 and clip file sign determination module 502 and Fig. 3 B, setting up module 401 and clip file, to identify determination module 402 functions identical, repeat no more.
From the foregoing description as can be seen: the embodiment of the invention is downloaded in the multimedia mother file, need to determine the multimedia mother file sign of the multimedia mother file correspondence downloaded; According to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of described multimedia mother file sign, described multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data; According to described location label,, download as the partial data source of described multimedia mother file with the data of the multi-media segment file of described multi-media segment file identification correspondence; In the embodiment of the invention storage multi-media segment file, obtain the location label of a multi-media segment file in its multimedia mother file; This location label is placed the file identification of multi-media segment file; The corresponding relation of the file identification of the uniform resource locator URL address of this multimedia mother file and this multi-media segment file is deposited in foundation, thereby the multi-media segment file can be downloaded the client downloads of corresponding multimedia mother file as data source for other, speed of download and utilization of network bandwidth have been improved, and do not need in the server to repeat again to preserve the multi-media segment file, saved storage resources.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (23)

1. a method of downloading the multimedia mother file is characterized in that, this method comprises:
Definite multimedia mother file sign that needs the multimedia mother file correspondence of download;
According to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of described multimedia mother file sign, described multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data;
According to described location label,, download as the partial data source of described multimedia mother file with the data of the multi-media segment file of described multi-media segment file identification correspondence.
2. the method for claim 1 is characterized in that, described file identification is the title of file, the uniform resource position mark URL or the file content signature of file; Wherein, this document content signature obtains for by pre-defined algorithm the content-data of binary file being calculated the back, and this pre-defined algorithm is for to handle the algorithm that obtains different results to the content-data of different binary files.
3. the method for claim 1 is characterized in that, this method also comprises:
According to the multi-media segment file identification of setting up and the corresponding relation of uniform resource locator URL address, determine the URL address of described multi-media segment file identification correspondence;
According to described location label,, download as the partial data source of described multimedia mother file with the multi-media segment file of described URL address correspondence.
4. the method for claim 1 is characterized in that, this method also comprises:
According to described location label, revise to download the data message in the described multi-media segment file of finishing, the data of amended multi-media segment file are placed on the correspondence position of described multimedia mother file.
5. a method of storing the multi-media segment file is characterized in that, this method comprises:
Obtain the location label of a multi-media segment file in its multimedia mother file;
This location label is placed the file identification of multi-media segment file;
The corresponding relation of the file identification of the uniform resource locator URL address of this multimedia mother file and this multi-media segment file is deposited in foundation.
6. method as claimed in claim 5 is characterized in that, described file identification is the title of file, the uniform resource position mark URL or the file content signature of file; Wherein, this document content signature obtains for by pre-defined algorithm the content-data of binary file being calculated the back, and this pre-defined algorithm is for to handle the algorithm that obtains different results to the content-data of different binary files.
7. method as claimed in claim 5 is characterized in that, this method also comprises:
According to described corresponding relation, the URL address of the multimedia mother file of the file identification correspondence of the definite described multi-media segment file that need download;
According to this URL address,, download as data source with the data of the described multimedia mother file of the described location label correspondence in the described multi-media segment file identification.
8. method as claimed in claim 7 is characterized in that, this method also comprises:
Data downloaded is encapsulated as the multi-media segment file.
9. a system that downloads the multimedia mother file is characterized in that, this system comprises:
Server, the multimedia mother file sign that is used for the multimedia mother file correspondence of definite client downloads, according to the corresponding relation of the multimedia mother file sign of preserving with the multi-media segment file identification, determine the corresponding multi-media segment file identification of described multimedia mother file sign, described multi-media segment file identification comprises the location label of multi-media segment file data in multimedia mother file data;
Client is used for according to described location label, with the data of the multi-media segment file of described multi-media segment file identification correspondence, downloads as the partial data source of described multimedia mother file.
10. system as claimed in claim 9 is characterized in that, described file identification is the title of file, the uniform resource position mark URL or the file content signature of file; Wherein, this document content signature obtains for by pre-defined algorithm the content-data of binary file being calculated the back, and this pre-defined algorithm is for to handle the algorithm that obtains different results to the content-data of different binary files.
11. system as claimed in claim 9 is characterized in that, described server comprises:
Mother file sign determination module, the multimedia mother file that is used for the multimedia mother file correspondence of definite client downloads identifies;
Clip file sign determination module is used for determining the corresponding multi-media segment file identification of multimedia mother file sign that described mother file sign determination module is determined according to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification;
Described client comprises:
The label determination module is used for determining the location label of described media fragment file identification;
Download module is used for according to described location label, with the data of the multi-media segment file of described multi-media segment file identification correspondence, downloads as the partial data source of described multimedia mother file.
12. system as claimed in claim 11 is characterized in that, described server also comprises:
First determination module is used for determining the URL address of described multi-media segment file identification correspondence according to the multi-media segment file identification of setting up and the corresponding relation of URL address;
Then described download module comprises:
Second determination module is used for determining the multi-media segment file of described URL address correspondence;
Processing module is used for according to described location label, with the multi-media segment file that described second determination module is determined, downloads as the partial data source of described multimedia mother file.
13. system as claimed in claim 10 is characterized in that, described client also comprises:
Composite module is used for according to described location label, revises described download module and downloads data message in the described multi-media segment file of finishing, and the data of amended multi-media segment file are placed on the correspondence position of described multimedia mother file.
14. a system that stores the multi-media segment file is characterized in that, this system comprises:
Server is used for obtaining the location label of a multi-media segment file at its multimedia mother file; This location label is placed the file identification of multi-media segment file; The corresponding relation of the file identification of the uniform resource locator URL address of this multimedia mother file and this multi-media segment file is deposited in foundation.
15. system as claimed in claim 14 is characterized in that, described file identification is the title of file, the uniform resource position mark URL or the file content signature of file; Wherein, this document content signature obtains for by pre-defined algorithm the content-data of binary file being calculated the back, and this pre-defined algorithm is for to handle the algorithm that obtains different results to the content-data of different binary files.
16. system as claimed in claim 14 is characterized in that, described server comprises:
Acquisition module is used for obtaining the location label of a multi-media segment file at its multimedia mother file;
Set up module, be used for this location label is placed the file identification of multi-media segment file, set up the corresponding relation of the file identification of the URL address deposit this multimedia mother file and this multi-media segment file.
17. system as claimed in claim 16 is characterized in that, described server also comprises:
Clip file sign determination module is used for according to described corresponding relation, the URL address of the multimedia mother file of the file identification correspondence of the definite described multi-media segment file that need download;
Then described system also comprises:
Client is used for according to the described URL address of determining, with the data of the described multimedia mother file of the described location label correspondence in the described multi-media segment file identification, downloads as data source.
18. system as claimed in claim 17 is characterized in that, described client also is used for:
Data downloaded is encapsulated as the multi-media segment file.
19. a server is characterized in that, described server comprises:
Mother file sign determination module, the multimedia mother file that is used for the multimedia mother file correspondence of definite client downloads identifies;
Clip file sign determination module, be used for according to the corresponding relation of the multimedia mother file sign of setting up with the multi-media segment file identification, determine the corresponding multi-media segment file identification of multimedia mother file sign that described mother file sign determination module is determined, described multi-media segment file identification comprises the location label of multi-media segment file in the multimedia mother file.
20. a client is characterized in that, described client comprises:
The label determination module, the location label of the media fragment file identification that is used for determining that server is determined;
Download module is used for the location label according to described label determination module, and the data of the multi-media segment file of the multi-media segment file identification correspondence that this server is definite are downloaded as the partial data source of described multimedia mother file.
21. a server is characterized in that, described server comprises:
Acquisition module is used for obtaining the location label of a multi-media segment file at its multimedia mother file;
Set up module, be used for this location label is placed the file identification of multi-media segment file, set up the corresponding relation of the file identification of the uniform resource locator URL address deposit this multimedia mother file and this multi-media segment file.
22. the method for a spanned file sign is characterized in that, comprising:
From multimedia mother file intercepting multi-media segment file the time, obtain the location label of this clip file in mother file;
With the file identification of multimedia mother file and this location label jointly as the file identification of multi-media segment file.
23. method as claimed in claim 22 is characterized in that, described file identification is the title of file, the uniform resource position mark URL or the file content signature of file; Wherein, this document content signature obtains for by pre-defined algorithm the content-data of binary file being calculated the back, and this pre-defined algorithm is for to handle the algorithm that obtains different results to the content-data of different binary files.
CNA2007103078489A 2007-12-29 2007-12-29 Method, system and device for downloading and storing files and method for generating identification Pending CN101197840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007103078489A CN101197840A (en) 2007-12-29 2007-12-29 Method, system and device for downloading and storing files and method for generating identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007103078489A CN101197840A (en) 2007-12-29 2007-12-29 Method, system and device for downloading and storing files and method for generating identification

Publications (1)

Publication Number Publication Date
CN101197840A true CN101197840A (en) 2008-06-11

Family

ID=39547986

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007103078489A Pending CN101197840A (en) 2007-12-29 2007-12-29 Method, system and device for downloading and storing files and method for generating identification

Country Status (1)

Country Link
CN (1) CN101197840A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945032A (en) * 2009-07-07 2011-01-12 上海聚力传媒技术有限公司 File downloading method and device in point to point network
CN102193943A (en) * 2010-03-12 2011-09-21 腾讯科技(深圳)有限公司 Method and device for providing media data for user
CN103634383A (en) * 2013-11-21 2014-03-12 北京奇虎科技有限公司 Mobile terminal-based multi-link subsection downloading method and mobile terminal
CN103747065A (en) * 2013-12-27 2014-04-23 河海大学 Client HTTP retrieval full-index container format media resource time slice method
CN104123341A (en) * 2014-06-26 2014-10-29 小米科技有限责任公司 Method and device for downloading file and route device
CN105204914A (en) * 2015-10-23 2015-12-30 中国联合网络通信集团有限公司 Downloading method and device of application software
WO2017020809A1 (en) * 2015-08-03 2017-02-09 中兴通讯股份有限公司 Video file storage method and device for same
CN106411987A (en) * 2016-01-06 2017-02-15 平安科技(深圳)有限公司 File uploading monitoring method and apparatus
US10855736B2 (en) 2009-09-22 2020-12-01 Qualcomm Incorporated Enhanced block-request streaming using block partitioning or request controls for improved client-side handling
CN113301095A (en) * 2020-12-08 2021-08-24 阿里巴巴集团控股有限公司 Method and device for providing data of cloud object
US11477253B2 (en) 2006-06-09 2022-10-18 Qualcomm Incorporated Enhanced block-request streaming system using signaling or block creation

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11477253B2 (en) 2006-06-09 2022-10-18 Qualcomm Incorporated Enhanced block-request streaming system using signaling or block creation
CN101945032A (en) * 2009-07-07 2011-01-12 上海聚力传媒技术有限公司 File downloading method and device in point to point network
US10855736B2 (en) 2009-09-22 2020-12-01 Qualcomm Incorporated Enhanced block-request streaming using block partitioning or request controls for improved client-side handling
US11770432B2 (en) 2009-09-22 2023-09-26 Qualcomm Incorporated Enhanced block-request streaming system for handling low-latency streaming
US11743317B2 (en) 2009-09-22 2023-08-29 Qualcomm Incorporated Enhanced block-request streaming using block partitioning or request controls for improved client-side handling
CN102193943A (en) * 2010-03-12 2011-09-21 腾讯科技(深圳)有限公司 Method and device for providing media data for user
CN102193943B (en) * 2010-03-12 2013-10-30 腾讯科技(深圳)有限公司 Method and device for providing media data for user
CN103634383A (en) * 2013-11-21 2014-03-12 北京奇虎科技有限公司 Mobile terminal-based multi-link subsection downloading method and mobile terminal
CN103634383B (en) * 2013-11-21 2016-11-23 北京奇虎科技有限公司 Multi-link subsection method for down loading based on mobile terminal and mobile terminal
CN103747065A (en) * 2013-12-27 2014-04-23 河海大学 Client HTTP retrieval full-index container format media resource time slice method
CN104123341A (en) * 2014-06-26 2014-10-29 小米科技有限责任公司 Method and device for downloading file and route device
WO2017020809A1 (en) * 2015-08-03 2017-02-09 中兴通讯股份有限公司 Video file storage method and device for same
CN105204914B (en) * 2015-10-23 2018-06-19 中国联合网络通信集团有限公司 Application software method for down loading and device
CN105204914A (en) * 2015-10-23 2015-12-30 中国联合网络通信集团有限公司 Downloading method and device of application software
CN106411987B (en) * 2016-01-06 2019-05-31 平安科技(深圳)有限公司 File uploads monitoring method and device
CN106411987A (en) * 2016-01-06 2017-02-15 平安科技(深圳)有限公司 File uploading monitoring method and apparatus
CN113301095A (en) * 2020-12-08 2021-08-24 阿里巴巴集团控股有限公司 Method and device for providing data of cloud object

Similar Documents

Publication Publication Date Title
CN101197840A (en) Method, system and device for downloading and storing files and method for generating identification
US10445380B2 (en) System and method for direct storage access in a content-centric network
CN103067353B (en) The method that data stream from long-range sender is delivered to long-range destination
CN102355426B (en) Method for transmitting off-line file and system
CN108133008B (en) Method, device, equipment and storage medium for processing service data in database
EP2383941B1 (en) Client terminal, method and system for downloading streaming media
CN109714330B (en) Cross-network breakpoint resume method and system
TW201317799A (en) Sharing control system and method for network resources download information
US20060176902A1 (en) Method of processing a multimedia message, a storage medium, and an associated processing system
EP2988512B1 (en) System and method for reconstructable all-in-one content stream
CN102708192B (en) A kind of method and system of document sharing, equipment
CN103457993A (en) Local caching device and method for providing content caching service
CN108563771B (en) Block chain-based large file management system and method
WO2021237467A1 (en) File uploading method, file downloading method and file management apparatus
KR101743228B1 (en) Streaming apparatus and method thereof, streaming service system using the streaming apparatus and computer readable recording medium
US10104092B2 (en) System and method for parallel secure content bootstrapping in content-centric networks
CN103812881B (en) Offline download control method and device
CN114428972A (en) Privacy protection query method and device supporting outsourcing calculation and related equipment
CN109214855B (en) Material receiving method, device and system
JP2000516751A (en) Periodic transmission of interrelated objects
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
US9621354B2 (en) Reconstructable content objects
US20150095483A1 (en) Communications terminal, transfer terminal, and content publication method
CN108769789B (en) RTP streaming media storage and reading method and device based on slices
US20240031615A1 (en) Media file play method and apparatus, electronic device, server, and medium

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

Open date: 20080611