CN101557407A - Transmission and storage method of program-ordering data of high definition media P2P - Google Patents

Transmission and storage method of program-ordering data of high definition media P2P Download PDF

Info

Publication number
CN101557407A
CN101557407A CNA2008100432550A CN200810043255A CN101557407A CN 101557407 A CN101557407 A CN 101557407A CN A2008100432550 A CNA2008100432550 A CN A2008100432550A CN 200810043255 A CN200810043255 A CN 200810043255A CN 101557407 A CN101557407 A CN 101557407A
Authority
CN
China
Prior art keywords
file
branch
high definition
disk
transmission
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.)
Granted
Application number
CNA2008100432550A
Other languages
Chinese (zh)
Other versions
CN101557407B (en
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.)
Shanda Computer Shanghai Co Ltd
Original Assignee
Shanda Computer Shanghai 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 Shanda Computer Shanghai Co Ltd filed Critical Shanda Computer Shanghai Co Ltd
Priority to CN 200810043255 priority Critical patent/CN101557407B/en
Publication of CN101557407A publication Critical patent/CN101557407A/en
Application granted granted Critical
Publication of CN101557407B publication Critical patent/CN101557407B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a transmission and storage method of program-ordering data of high definition media P2P. Data files to be downloaded are divided into a plurality of sub-files in sequence, the residual space of each compact disk is detected, the sub-files are sequentially downloaded to the plurality of compact disks with residual spaces, and then the sub-files downloaded in the compact disks are sequentially played. By dividing the data files to be downloaded into the sub-files and storing the sub-files compact disks with residual spaces, the invention greatly improves the utilization rate of the spaces of the compact disks and solves the problem that a high definition media file cannot be downloaded and played due to the lack of the spaces of the compact disks.

Description

Transmission and storage method of program-ordering data of high definition media P 2 P
Technical field
The present invention relates to a kind of transfer of data storage means, especially a kind of transmission and storage method of program-ordering data of high definition media P 2 P.
Background technology
The development of multimedia technology and Internet technology has promoted people to network flow-medium, and particularly complicated audio-video frequency content presents the raising of demand.The program request technology of P2P allows the user can watch the film of high definition more glibly.The current program request scheme based on P2P download principle is the temporary file that generated a correspondence before playing mostly, constantly downloads and fill this file then in broadcast subsequently.But, download principle with P2P and carry out order video, because file is big, and relate to switching film function, so just a film file generates a Torrent file, resemble the film of high definition, general size has 700M 1G~2G even.Therefore, carrying out high definition media point sowing time, needing has enough big space to hold these very large video files as buffer memory on user's the computer disk, this just makes downloads the P2P program request technology of principle when playing the high definition film based on the P2P file, exist because the phenomenon that the broadcast high definition film that disk read-write causes blocks, and as buffering Insufficient disk space and can not play other phenomenon such as film.
Summary of the invention
Technical problem to be solved by this invention provides a kind of transmission and storage method of program-ordering data of high definition media P 2 P, can utilize the little disk space of trying one's best, the high definition media file that quick and smooth played data amount is very big.
For solving the problems of the technologies described above, the technical scheme of transmission and storage method of program-ordering data of high definition media P 2 P of the present invention is, will be divided into a plurality of minutes files in order by the data downloaded file earlier, detect the remaining space of each disk then, minute file is downloaded in order in a plurality of disks of remaining space, play the branch file that downloads in the different disk afterwards successively.
Be as a further improvement on the present invention, set up a boot files before downloading the branch file, described boot files has write down the position of each minute file storage, and the guiding player finds the branch file that needs broadcast when playing.
The present invention stores in the disk of remaining space then by being divided into the branch file by the data downloaded file, has improved the utilance of disk space greatly, solved can't downloading and playing high definition media file because of Insufficient disk space problem.
Description of drawings
The present invention is further detailed explanation below in conjunction with drawings and Examples:
Fig. 1 and Fig. 2 are the flow chart of transmission and storage method of program-ordering data of high definition media P 2 P embodiment of the present invention;
Fig. 3 is stored in the schematic diagram of the structure on the disk for the data file that adopts transmission and storage method of program-ordering data of high definition media P 2 P of the present invention.
Embodiment
The invention provides a kind of transmission and storage method of program-ordering data of high definition media P 2 P, will be divided into a plurality of minutes files in order by the data downloaded file earlier, detect the remaining space of each disk then, minute file is downloaded in order in a plurality of disks of remaining space, play the branch file that downloads in the different disk afterwards successively.
In downloading the process of dividing file, if current disk is full, then need to detect other disk and whether also have remaining space, follow-up branch file is downloaded in other disk that remaining space is arranged, these all branch files that will cause being downloaded may be on same disk.Therefore, can set up a boot files before downloading the branch file, described boot files has write down the position of each minute file storage, and the guiding player finds the branch file that needs broadcast when playing, thereby makes that the high definition media file can be by the broadcast of smoothness.
After all branch files all finish, divide the file deletion with all.Like this, when the user watches after the high definition media file finishes, do not compare before the disk space of user computer and the program request and change, made things convenient for user's other use computer.
Perhaps, after all branch files all finish, divide file to derive all, be merged into original complete media file.Like this, when the user watches after the high definition media file finishes, the high definition media file is watched to make things convenient for later the repeating of user also by on the complete computer disk that is kept at the user.
According to user's setting, described minute file only downloads in the disk that the user allows to download.The specific disk of user's computer may have specific purposes, and needs enough remaining spaces, and for example system disk just needs enough disk bufferings.Therefore the user can be provided with the disk that the branch file is downloaded, and minute file is downloaded in the disk of appointment.
Download in the process of dividing file in order, if the disk that the user allows to download the branch file does not all have remaining space, then detect which disk storage the branch file of having play is arranged, thereby remaining space is reserved in the branch file deletion of this broadcast, and the branch file that will continue to download stores in this disk of having reserved remaining space into.Watch for the user, the branch file of having play is useless, can make disk vacate more spaces its deletion and download follow-up branch file.So, according to this technical scheme provided by the invention, less space is arranged as long as only need user computer to be used for downloading on the disk of branch file, just can make the user can watch the very big high definition media file of data volume.
Will the data downloaded file division be when dividing file, the size of described minute file is controlled in the suitable scope, described control divides the size of file to realize by the quantity that controls piece in the branch file, if divide file excessive, then reduces the quantity that each divides piece in the file; If divide file too small, then increase the quantity that each divides piece in the file.
It below is the specific embodiment of high definition media transmission and storage method of program-ordering data of the present invention.
As shown in Figure 1, the number of a Piece that file occupied (piece) being set earlier, for example getting 100 pieces, the size of branch file is set simultaneously, for example is 20M~100M; Calculate to divide the size of file then,, make it can reach 20M,, make it can be less than 100M if a branch file just reduces the quantity of piece in this minute file greater than 100M if a branch file just increases the quantity of piece in this minute file less than 20M.If divide file too little, may cause branch number of files amount too much on disk, to take too much non-essential space, if divide file too big, may cause the less disk of some remaining spaces to be utilized fully again.As for the magnitude range of minute file, can set according to the size of actual disk and the situation of remaining space.
The size of minute file is determined to calculate afterwards the quantity of dividing file, generate in order then and divide file.After downloading a branch file and finishing, judge whether this minute file is that last divides file, if not, continue to download the next file that divides.
When storing the branch file of being downloaded, as shown in Figure 2, find a disk that enough spaces are arranged earlier, the branch file of downloading is stored in this disk.If all disks have not all had the space, then check whether the file that can replace is arranged, if having, this document is replaced with newly downloaded file.Open the branch file that this is downloaded at last, play and finish to be directed to afterwards the next file that divides.
Adopt transmission and storage method of program-ordering data of high definition media P 2 P of the present invention to download the media file that obtains, its be stored on the disk structure as shown in Figure 3, divide file to be distributed on the disk with remaining space.
In sum, the present invention stores in the disk of remaining space then by being divided into the branch file by the data downloaded file, has improved the utilance of disk space greatly, solved can't downloading and playing high definition media file because of Insufficient disk space problem.

Claims (7)

1. high definition media point P2P unicast data transmission storage means, it is characterized in that, will be divided into a plurality of minutes files in order by the data downloaded file earlier, detect the remaining space of each disk then, minute file is downloaded in order in a plurality of disks of remaining space, play the branch file that downloads in the different disk afterwards successively.
2. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 1, it is characterized in that, set up a boot files before downloading the branch file, described boot files has write down the position of each minute file storage, and the guiding player finds the branch file that needs broadcast when playing.
3. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 1 is characterized in that, after all branch files all finish, divides the file deletion with all.
4. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 1 is characterized in that, after all branch files all finish, divides file to derive all, is merged into original complete media file.
5. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 1 is characterized in that, according to user's setting, described minute file only downloads in the disk that the user allows to download.
6. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 5, it is characterized in that, download in the process of dividing file in order, if the disk that the user allows to download the branch file does not all have remaining space, then detect which disk storage the branch file of having play is arranged, thereby remaining space is reserved in the branch file deletion of this broadcast, and the branch file that will continue to download stores in this disk of having reserved remaining space into.
7. transmission and storage method of program-ordering data of high definition media P 2 P according to claim 1, it is characterized in that, will the data downloaded file division be when dividing file, the size of described minute file is controlled in the suitable scope, described control divides the size of file to realize by the quantity that controls piece in the branch file, if divide file excessive, then reduce the quantity that each divides piece in the file; If divide file too small, then increase the quantity that each divides piece in the file.
CN 200810043255 2008-04-11 2008-04-11 Transmission and storage method of program-ordering data of high definition media P2P Expired - Fee Related CN101557407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810043255 CN101557407B (en) 2008-04-11 2008-04-11 Transmission and storage method of program-ordering data of high definition media P2P

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810043255 CN101557407B (en) 2008-04-11 2008-04-11 Transmission and storage method of program-ordering data of high definition media P2P

Publications (2)

Publication Number Publication Date
CN101557407A true CN101557407A (en) 2009-10-14
CN101557407B CN101557407B (en) 2013-07-10

Family

ID=41175350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810043255 Expired - Fee Related CN101557407B (en) 2008-04-11 2008-04-11 Transmission and storage method of program-ordering data of high definition media P2P

Country Status (1)

Country Link
CN (1) CN101557407B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622185A (en) * 2011-01-27 2012-08-01 北京东方广视科技股份有限公司 Method for storing document in plurality of storage units and storage allocation method
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server
CN107463332A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of file splitting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622185A (en) * 2011-01-27 2012-08-01 北京东方广视科技股份有限公司 Method for storing document in plurality of storage units and storage allocation method
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server
CN107463332A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of file splitting method and device
CN107463332B (en) * 2016-06-03 2020-12-29 阿里巴巴集团控股有限公司 File segmentation method and device

Also Published As

Publication number Publication date
CN101557407B (en) 2013-07-10

Similar Documents

Publication Publication Date Title
US20170034233A1 (en) Pre-Buffering Audio Streams
CN102622185B (en) The method of storage file and storage allocation method in multiple storage unit
CN100477787C (en) Disk buffering method in use for video on demand system of peer-to-peer network
US20140245346A1 (en) Overwriting existing media content with viewer-specific advertisements
CN101873355A (en) Method, device and system for downloading file
CN100393068C (en) Method for buffering data in stream media
US10628385B2 (en) Virtual collection of entities in sync process
CN104284216A (en) Method and system for generating video highlight clip
CN101635734A (en) Method and device for storing and managing downloaded data on non-volatile storage medium
CN104202655B (en) A kind of audio-video document method for down loading and device
KR101742419B1 (en) Video playback control program, video playback control method, video delivery server, transmission program and transmission apparatus
CN102664032A (en) Live broadcast time shifting play progress slider and control method thereof
TW201234194A (en) Data stream management system for accessing mass data
CN101557407B (en) Transmission and storage method of program-ordering data of high definition media P2P
EP1287425A2 (en) System for and method of accessing blocks on a storage medium
CN101695123A (en) Media broadcasting system and method for respectively customizing broadcast strategy for media segment
CN103716573A (en) Video playback method and device
CN103365977A (en) Storage processing method and device for data on nonvolatile storage medium
CN101459678B (en) Fusion implementation method for digital media ordering and digital resource downloading
CN101448139B (en) A P2P network based digital media program order method
CN101110844B (en) Program fragment prefetching method and peer-to-peer network node
CN103559896A (en) Audio and video playing method for multimedia terminal external memorizer
KR101742420B1 (en) Video data file generation program, video data file generation method and video data file generation apparatus
CN102215366A (en) Methods and systems for generating and playing multimedia file
CN104038771B (en) A kind of high-effect files in stream media distributed memory system and method based on Hadoop2

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130710

Termination date: 20140411