CN103634616B - A kind of stream media ordering method and device based on cloud storage - Google Patents
A kind of stream media ordering method and device based on cloud storage Download PDFInfo
- Publication number
- CN103634616B CN103634616B CN201210307668.1A CN201210307668A CN103634616B CN 103634616 B CN103634616 B CN 103634616B CN 201210307668 A CN201210307668 A CN 201210307668A CN 103634616 B CN103634616 B CN 103634616B
- Authority
- CN
- China
- Prior art keywords
- file fragmentation
- file
- files
- stream media
- information
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of stream media ordering method and device based on cloud storage:RJ FAC receiving stream media file order requests, wherein carrying files in stream media ID and program request parameter;RJ FAC read the description information of corresponding All Files burst according to files in stream media ID to database, and the description information of purpose file fragmentation is searched according to program request parameter;RJ FAC read the storage information of corresponding All Files burst according to files in stream media ID to FLR, and the storage information of purpose file fragmentation is searched according to the description information of purpose file fragmentation;RJ FAC according to the purpose file fragmentation found store information to FAS read purpose file fragmentation data.By the invention it is possible in the case where network bandwidth and network side system are resource-constrained, realize that the quick of streaming media on demand redirects.
Description
Technical field
The present invention relates to computer networking technology, particularly relates to a kind of stream media ordering method and dress based on cloud storage
Put.
Background technology
With telecommunication service and the fusion of Internet service, the audio-visual service of audio and video is increasingly popularized, service form
It is varied, content information also explosive increase.Due to the change of user demand, the quantity of documents of multimedia messages is skyrocketed through
Meanwhile file size is also past hundreds and thousands of times.As reply, more and more multimedia files are stored in distributed text
In the cloud storage systems such as part system.
On the other hand, stream media play system is one of principal mode of internet multimedia application, be by network into
Row downloads the system played in real time.With the continuous improvement of the networked levels of social life, Streaming Media has become people day
Indispensable means in often life, amusement.During streaming media playing, one of most-often used function of people is that F.F. is fast
Move back, that is, fast skip part appreciated or uninterested, or quick playback Highlights.
Generally, it is definite in stream media information in order to accurately calculate jumped to part to redirect service for streaming media on demand
Position is, it is necessary to which terminal is by substantial amounts of calculating and is repeatedly interacted with streaming media server, and streaming media server is a large amount of
Caching reads and could complete, if situations such as network state is bad, concurrent users are excessive, file is too big exists, can also cause
Multiple caching waits.This user is redirected the stand-by period is longer, bad user experience is brought to user;At the same time into
Row is online play in when redirecting, it is necessary to repeatedly interacted with server, waste network side system resource.
Therefore, the disposal ability of network bandwidth and network side system resource etc. is limited to, for terminal plays such as PC, mobile phones
Whether device can also realize online quickly redirecting in playing, it is proposed that new challenge.
The content of the invention
In view of this, it is a primary object of the present invention to provide a kind of stream media ordering method and dress based on cloud storage
Put, in the case where network bandwidth and network side system are resource-constrained, to realize that the quick of streaming media on demand redirects.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The present invention provides a kind of stream media ordering method based on cloud storage, this method includes:
RJ-FAC receiving stream media file order requests, wherein carrying files in stream media ID and program request parameter;
RJ-FAC reads the description information of corresponding All Files burst according to the files in stream media ID to database, and
The description information of purpose file fragmentation is searched according to the program request parameter;
RJ-FAC reads the storage information of corresponding All Files burst, and root according to the files in stream media ID to FLR
The storage information of purpose file fragmentation is searched according to the description information of purpose file fragmentation;
RJ-FAC according to the purpose file fragmentation found store information to FAS read purpose file fragmentation data.
The program request parameter includes at least:Play instruction and redirect instruction;
It is described to redirect instruction and include:Broadcasting initial time and/or broadcasting end time and/or progress after redirecting start hundred
Ratio and/or progress is divided to terminate percentage.
The description information of the file fragmentation, including:Files in stream media ID, file fragmentation quantity, file fragmentation number of copies
Amount, file fragmentation sequence number, file fragmentation ID, file fragmentation size, broadcasting initial time, broadcasting end time, progress start hundred
Divide than terminating percentage with progress.
The storage information of the file fragmentation, including:Files in stream media ID, file fragmentation quantity, file fragmentation number of copies
Amount, file fragmentation sequence number, file fragmentation ID, file fragmentation size, compression instruction, encryption instruction and physics deposit position information.
The description information that purpose file fragmentation is searched according to the program request parameter, is:
The description information of the All Files burst is converted into Hash table, initial time will be played and/or played and terminated
Time and/or progress start percentage and/or progress terminates percentage as index;
Broadcasting initial time and/or broadcasting end time and/or progress after being redirected according to what is included in program request parameter are opened
Beginning percentage and/or progress terminate percentage and search the Hash table, obtain the description information of purpose file fragmentation.
The storage information of purpose file fragmentation is searched according to the description information of purpose file fragmentation, is:
The description information of purpose file fragmentation is compared with the storage information of each file fragmentation successively, works as Streaming Media
File ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation ID and file fragmentation size phase
Meanwhile then find the storage information of purpose file fragmentation.
The RJ-FAC according to the purpose file fragmentation found store information to FAS read purpose file fragmentation number
According to being:
RJ-FAC is according to the file fragmentation ID in the storage information of purpose file fragmentation and physics deposit position information to FAS
Read the data of purpose file fragmentation.
Before receiving stream media file order request, this method further includes:Files in stream media is write into cloud storage system.
It is described that files in stream media is write into cloud storage system, including:
RJ-FAC initiates write-in files in stream media request to FLR;
FLR returns to write-in file parameters response, informs that RJ-FAC provides FAS lists and the storage strategy of service;
RJ-FAC carries out burst according to storage strategy to the files in stream media of request write-in, obtains one or more files point
Piece;
The FAS that RJ-FAC is specified from FAS lists selection, and each file fragmentation is write into the FAS;
FAS returns to save file burst success response to RJ-FAC, and each file fragmentation is included in response message FAS's
Physics deposit position information;
RJ-FAC generates the corresponding description information of each file fragmentation, preserves in the database, and is noted to FLR application records
Volume, log-on message include:The storage information of files in stream media title and each file fragmentation;
FLR records the storage information of files in stream media and its corresponding each file fragmentation, and returns and write to RJ-FAC
File record success response.
Said write files in stream media is asked, including:The complete trails file name of files in stream media, file size, compression
Instruction, encryption instruction and spreading parameter file type;
The storage strategy, including:File fragmentation size, file fragmentation copy amount, compression instruction and encryption instruction.
Present invention also offers a kind of device of the streaming media on demand device based on cloud storage, including:Streaming Media interface mould
Block, quick jump module, file read-write interface module and index data module, wherein:
The Streaming Media interface module, for receiving stream media file order request, wherein carry files in stream media ID and
Program request parameter;And files in stream media order request is supplied to quick jump module;
The quick jump module, for controlling the file read-write interface mould according to the files in stream media order request
Block reads the description information of file fragmentation and the storage information of file fragmentation;
The file read-write interface module, for the control according to the quick jump module, to described in database reading
The description information of the corresponding All Files bursts of media file ID, and it is corresponding all to the FLR readings media file ID
The storage information of file fragmentation;
The index data module, the description information of the file fragmentation read for preserving the file read-write interface module
With the storage information of file fragmentation;
The quick jump module, be additionally operable to from the description information of file fragmentation described in the index data module loading and
The storage information of file fragmentation, the description information of purpose file fragmentation is searched according to the program request parameter;It is additionally operable to according to purpose
The description information of file fragmentation searches the storage information of purpose file fragmentation;
The file read-write interface module, is additionally operable to the control according to the quick jump module, and foundation quickly redirects mould
The data for storing information to FAS and reading purpose file fragmentation for the purpose file fragmentation that block provides.
The index data module, is additionally operable to the description information of the All Files burst being converted to Hash table, will broadcast
Put initial time and/or broadcasting end time and/or progress starts percentage and/or progress terminates percentage as index;
The speed jump module, is additionally operable to from the Kazakhstan of the description information of file fragmentation described in the index data module loading
Uncommon table, broadcasting initial time and/or broadcasting end time and/or progress after being redirected according to what is included in program request parameter start hundred
Divide ratio and/or progress to terminate the Hash table that percentage searches loading, obtain the description information of purpose file fragmentation.
The speed jump module, is additionally operable to the description information of the purpose file fragmentation successively storage with each file fragmentation
Information is compared, when files in stream media ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file point
When piece ID is identical with file fragmentation size, then the storage information of purpose file fragmentation is found.
The file read-write interface module, be additionally operable to file fragmentation ID in the storage information according to purpose file fragmentation and
Physics deposit position information reads the data of purpose file fragmentation to FAS.
Stream media ordering method and device of the invention based on cloud storage:RJ-FAC is according to files in stream media order request
(wherein carry files in stream media ID and program request parameter), to database read corresponding All Files burst description information and
The storage information of corresponding All Files burst is read to FLR, and the description letter of purpose file fragmentation is searched according to program request parameter
Breath, the storage information of purpose file fragmentation is searched further according to the description information of purpose file fragmentation;Read by storing information to FAS
The data of purpose file fragmentation are taken, the data of purpose file fragmentation are finally supplied to player by SS.In this process, play
Device no longer needs the repeatedly interactive sessions with streaming server, and only needs once to interact, and reduces streaming server and calculates money
Source expense, reduces the computing cost and computation complexity of player.Streaming media server no longer needs to continue repeatedly reading, delays
Deposit file content fragment, but the file fragmentation data provided by RJ-FAC be provided, reduce streaming server computing resource expense,
Caching expense is reduced, and reduces network bandwidth expense between streaming server and cloud storage system, it is totally concurrent to improve system
Performance.In addition, remain able to realize that the quick of files in stream media program request redirects by searching for the mode of file fragmentation.
Brief description of the drawings
Fig. 1 is the Streaming Media quick jump system general frame schematic diagram of the invention based on cloud storage.
Fig. 2 is typical files in stream media write-in cloud storage flow diagram of the invention.
Fig. 3 is the quick redirect procedure schematic diagram of typical streaming media on demand of the invention.
Fig. 4 is that the present invention typically quickly redirects RJ-FAC schematic devices.
Embodiment
The quick application for redirecting scheme of the present invention is related to following several parts:Application terminal, streaming media on demand platform
And cloud storage platform composition.
Application terminal, includes the application of the client of all kinds terminal or application program or application server
Program, is primarily referred to as streaming media playing module, such as player.
Streaming media on demand platform, has the function of program request streaming media service, is responsible for performing and managing streaming media on demand function, main
It is worth streaming server (SS)
Cloud storage platform, including cloud storage meta data server (FLR, File Location Register) server,
Cloud storage node server (FAS, File Access Server) cluster etc., is responsible for the Streaming Media texts such as burst storage audio and video
Part, and the corresponding description information of burst of stored stream media file.
Except above three part, the invention further relates to quickly redirect FAC:It is denoted as RJ-FAC (Rapid Jump
FAC)。
It is the general frame of streaming media on demand of the embodiment of the present invention based on cloud storage as shown in Figure 1, mainly includes:
Player (M1), the files in stream media such as discovery and order video, performs user's program request jump request.
Streaming server (SS, Streaming Server) (M2), major function are that streaming media files are acquired, delay
Broadcasting, including response jump request are deposited, dispatched and transmitted, quickly redirects, read and cache the streaming medium content in cloud storage.Tool
Body:
1st, receive the streaming media on demand of player, the request such as redirect;
2nd, read from cloud storage, cache all or part of files in stream media;
3rd, read from cloud storage, cache the corresponding description information of files in stream media;
4th, it is player transmission, playing stream media file;
5th, the jump request of player is responded, quickly redirects, read and cache the Streaming Media in cloud storage.
Quickly redirect FAC (M3):Be denoted as RJ-FAC (Rapid Jump FAC), comprising cloud storage client (FAC,
FileAccess Client) function, cloud storage Client Agent function is completed, on the one hand provides file operation to application process
Api interface;On the other hand the interaction with FLR and FAS is completed, completes moving for data.
FLR(M4):It is responsible for file access control, data file distribution and the management of various metadata.
FAS(M5):It is responsible for carrying out the access of file fragmentation with storage hardware equipment layer interface, moves operation.Including response
The File read operation of streaming server, and when storage of cloud storage in itself is balanced, copy is safeguarded, carry out read-write of data etc..
Based on above-mentioned framework, the stream media ordering method provided by the invention based on cloud storage, includes the following steps:
First, RJ-FAC receiving stream medias file order request, wherein carrying files in stream media ID and program request parameter;
2nd, RJ-FAC reads the description information of corresponding All Files burst according to files in stream media ID to database, and
The description information of purpose file fragmentation is searched according to program request parameter;
3rd, storage information of the RJ-FAC according to files in stream media ID to the corresponding All Files burst of FLR readings, and according to
The description information of purpose file fragmentation searches the storage information of purpose file fragmentation;
4th, RJ-FAC according to the purpose file fragmentation found store information to FAS read purpose file fragmentation number
According to.
Wherein, program request parameter includes at least:Play instruction and redirect instruction;
Redirecting instruction includes:Broadcasting initial time and/or broadcasting end time and/or progress after redirecting start percentage
And/or progress terminates percentage.
The description information of file fragmentation, including:Files in stream media ID, file fragmentation quantity, file fragmentation copy amount, text
Part burst sequence number, file fragmentation ID, file fragmentation size, play initial time, play end time, progress start percentage and
Progress terminates percentage.
The storage information of file fragmentation, including:Files in stream media ID, file fragmentation quantity, file fragmentation copy amount, text
Part burst sequence number, file fragmentation ID, file fragmentation size, compression instruction, encryption instruction and physics deposit position information.
Preferably, the description information of purpose file fragmentation is searched according to program request parameter, is:
The description information of All Files burst is converted into Hash table, initial time will be played and/or played the end time
And/or progress starts percentage and/or progress terminates percentage as index;
Broadcasting initial time and/or broadcasting end time and/or progress after being redirected according to what is included in program request parameter are opened
Beginning percentage and/or progress terminate percentage and search Hash table, obtain the description information of purpose file fragmentation.
Preferably, the storage information of purpose file fragmentation is searched according to the description information of purpose file fragmentation, is:
The description information of purpose file fragmentation is compared with the storage information of each file fragmentation successively, works as Streaming Media
File ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation ID and file fragmentation size phase
Meanwhile then find the storage information of purpose file fragmentation.
Preferably, RJ-FAC reads purpose file fragmentation according to the FAS that stores information to of the purpose file fragmentation found
Data, be:
RJ-FAC is according to the file fragmentation ID in the storage information of purpose file fragmentation and physics deposit position information to FAS
Read the data of purpose file fragmentation.
Before receiving stream media file order request, this method further includes:Files in stream media is write into cloud storage system,
Including:
RJ-FAC initiates write-in files in stream media request to FLR;
FLR returns to write-in file parameters response, informs that RJ-FAC provides FAS lists and the storage strategy of service;
RJ-FAC carries out burst according to storage strategy to the files in stream media of request write-in, obtains one or more files point
Piece;
The FAS that RJ-FAC is specified from FAS lists selection, and each file fragmentation is write into FAS;
FAS returns to save file burst success response to RJ-FAC, and each file fragmentation is included in response message FAS's
Physics deposit position information;
RJ-FAC generates the corresponding description information of each file fragmentation, preserves in the database, and is noted to FLR application records
Volume, log-on message include:The storage information of files in stream media title and each file fragmentation;
FLR records the storage information of files in stream media and its corresponding each file fragmentation, and returns and write to RJ-FAC
File record success response.
Wherein, files in stream media request is write, including:The complete trails file name of files in stream media, file size, compression
Instruction, encryption instruction and spreading parameter file type;
Storage strategy, including:File fragmentation size, file fragmentation copy amount, compression instruction and encryption instruction.
Illustrate the above-mentioned technical proposal of the present invention below by specific embodiment.
Embodiment one
It is provided by the invention by files in stream media write-in cloud storage system flow as shown in Fig. 2, including:
Step 201, RJ-FAC initiates write-in files in stream media request to FLR;Request message includes the stream matchmaker of request write-in
Complete trails file name, file size, compression instruction, encryption instruction and spreading parameter file type of body file etc..Extension
When the type of the files in stream media of Parameter File type instruction request write-in is program request, it is necessary to which RJ-FAC is produced in follow-up process
The description information of the burst of the files in stream media.
Step 202, FLR returns to write-in file parameters response, informs the service available FAS lists of RJ-FAC and storage plan
Slightly etc..Wherein, storage strategy includes:File fragmentation size, file fragmentation copy amount, compression instruction and encryption instruction etc..Text
Part burst size is determined by storage strategy completely, does not require all the same size of All Files burst.
RJ-FAC carries out burst according to storage strategy to the files in stream media of request write-in, obtains one or more files point
Piece.Wherein, if the files in stream media of write-in is video file, it is preferable that carried out according to independent decoded fragment partitioning scheme
Burst, can also carry out burst according to absolute size or time span.
Step 203, RJ-FAC is carried out at burst, compression and encryption the files in stream media of request write-in according to storage strategy
After reason, according to specified rule, corresponding FAS is selected from FAS lists, and each file fragmentation is write into the FAS.
Step 204, write after the completion of file fragmentation, FAS returns to save file burst success response to RJ-FAC, and response disappears
Physics deposit position information of each file fragmentation in FAS is included in breath.
Then, RJ-FAC generates the corresponding description information of each file fragmentation, including:Files in stream media ID, file fragmentation
Quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation ID, file fragmentation size, broadcasting initial time, broadcasting
End time, progress start percentage and progress terminates percentage etc..
Wherein, for a file fragmentation, the implication of its corresponding description information is:
Files in stream media ID, indicates the ID of the files in stream media belonging to this document burst;
File fragmentation quantity, indicates the file fragmentation quantity for obtaining the files in stream media burst belonging to this document burst;
File fragmentation copy amount, refers to the copy amount of this document burst;
File fragmentation size, refers to the data volume of this document burst;
Sequence in file fragmentation sequence number, as the All Files burst of files in stream media of this document burst belonging to it
Number;
File fragmentation ID, the as ID for this document burst;
Initial time is played, indicates the initial time in files in stream media of this document burst belonging to it;
The end time is played, indicates the end time in files in stream media of this document burst belonging to it;
Progress originate percentage, indicate initial position in files in stream media of this document burst belonging to it is corresponding into
Spend percentage;
Progress terminates percentage, indicate end position in files in stream media of this document burst belonging to it is corresponding into
Spend percentage;
For example, a files in stream media is divided into 4 file fragmentations, wherein the progress starting percentage of second file fragmentation
Than for 25%, progress terminates percentage as 50%, that is, the files in stream media is from being second between progress 25% to 50%
Slicing files.
The description information of file fragmentation can be stored in database special in cloud storage system as file, can also
It is stored in other structures data-storage system, such as relevant database etc..
Step 205, registered for the write-in of files in stream media, RJ-FAC to FLR application records, log-on message includes:Stream
Storage information of media file name and each file fragmentation etc., wherein the storage information of each file fragmentation includes:Streaming Media
File ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation ID, file fragmentation size, pressure
Contracting instruction, encryption instruction and physics deposit position information etc..
Step 206, FLR records the storage information of files in stream media and its corresponding each file fragmentation.
Step 207, FLR returns to write-in file record success response to RJ-FAC.
Embodiment two
The quick redirect procedure of streaming media on demand provided by the invention as shown in figure 3, including:
Step 301, player initiates files in stream media order request to SS, which includes the stream matchmaker of request program request
Body file ID and program request parameter etc..Program request parameter includes:The operation instruction such as play and redirect.Instruction is redirected, for example, after redirecting
Play initial time or progress starting percentage etc..
Step 302, SS is to RJ-FAC forwarding stream media file order requests.
Step 303, RJ-FAC according to files in stream media ID in order request to database (special number in cloud storage system
According to storehouse or structural data storage system) description information of corresponding All Files burst is obtained, further, according to program request
Parameter, such as broadcasting initial time or progress starting percentage after redirecting, search the description information of purpose file fragmentation.
Step 304, files in stream media IDs of the RJ-FAC in order request reads corresponding All Files burst to FLR
Storage information, and according to the description information of purpose file fragmentation search purpose file fragmentation storage information.
Step 305, RJ-FAC (refers mainly to file fragmentation ID, thing according to the storage information of the purpose file fragmentation found
Manage deposit position information etc.), to the data of FAS reading purpose file fragmentations.
Alternatively, RJ-FAC reads the data of purpose file fragmentation and its follow-up continuous some file fragmentations to FAS.
Step 306, RJ-FAC is by the data of the purpose file fragmentation of acquisition or purpose file fragmentation and its subsequently continuous
The data of some file fragmentations return to SS, SS is cached.
Step 307, SS provides the transmission broadcasting service for redirecting rear target location for player.
In order to realize it is above-mentioned quickly redirect, the present invention provides device as shown in Figure 4, apply in RJ-FAC, including:
Streaming Media interface module 1, quick jump module 2, file read-write interface module 3 and index data module 4, wherein:
Streaming Media interface module 1, for receiving stream media file order request, wherein carrying files in stream media ID and program request
Parameter;And by files in stream media order request be supplied to quick jump module 2 (herein, Streaming Media interface module 1 can according to
Put and be made whether to perform the function of quickly redirecting, if so, files in stream media order request is supplied to quick jump module 2);
Quick jump module 2, for controlling file read-write interface module 3 to read file according to files in stream media order request
The description information of burst and the storage information of file fragmentation;
File read-write interface module 3, for the control according to quick jump module 2, to database reading media file ID
The description information of corresponding All Files burst, and the storage to the corresponding All Files burst of FLR reading media file IDs
Information;
Index data module 4, the description information and file of the file fragmentation read for save file read-write interface module 3
The storage information of burst;
Quick jump module 2, is additionally operable to from the description information of 4 load document burst of index data module and file fragmentation
Information is stored, the description information of purpose file fragmentation is searched according to program request parameter;It is additionally operable to the description according to purpose file fragmentation
The storage information of information searching purpose file fragmentation;
File read-write interface module 3, is additionally operable to the control according to quick jump module 2, is provided according to quick jump module 2
Purpose file fragmentation store information to FAS read purpose file fragmentation data.
Further, after file read-write interface module 3 reads the data of purpose file fragmentation, there is provided to SS, be by SS
Player provides the transmission broadcasting service for redirecting rear target location.
Index data module 4, is additionally operable to the description information of All Files burst being converted to Hash table, when will play starting
Between and/or play that end time and/or progress start percentage and/or progress terminates percentage as index;
Quick jump module 2, is additionally operable to the Hash table of the description information from 4 load document burst of index data module, according to
Strong point broadcast included in parameter redirect after broadcasting initial time and/or play end time and/or progress start percentage and/
Or progress terminates the Hash table that percentage searches loading, obtains the description information of purpose file fragmentation.
Quick jump module 2, is additionally operable to the description information of the purpose file fragmentation successively storage with each file fragmentation
Information is compared, when files in stream media ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file point
When piece ID is identical with file fragmentation size, then the storage information of purpose file fragmentation is found.
File read-write interface module 3, file fragmentation ID and the thing being additionally operable in the storage information according to purpose file fragmentation
Manage the data that deposit position information reads purpose file fragmentation to FAS.
Further, during files in stream media writes cloud storage system:
File read-write interface module 3 sends write-in files in stream media request to FLR;And receive the write-in file of FLR returns
Parameter responds, wherein carrying FAS lists and the storage strategy of the service of offer;Streaming Media text according to storage strategy to request write-in
Part carries out burst, obtains one or more file fragmentations;And the FAS specified from FAS lists selection, and each file fragmentation is write
Enter FAS;
File read-write interface module 3 receives FAS and returns to save file burst success response, wherein including each file fragmentation
In the physics deposit position information of FAS;The corresponding description information of each file fragmentation is generated, is preserved in the database;And to FLR
Application record is registered, and log-on message includes:The storage information of files in stream media title and each file fragmentation;Flowed when FLR is recorded
After the storage information of media file and its corresponding each file fragmentation, the write-in file record success response that FLR is returned is received.
Above-mentioned, file read-write interface module 3 each file fragmentation is write FAS and reads purpose file point to FAS
, it is necessary to be interacted with burst storage processing module 5 during the data of piece, since burst storage processing module 5 carries out the reading of file fragmentation
Take and write.
In such scheme, player no longer needs the repeatedly interactive sessions with streaming server, and only needs once to interact
, reduce streaming server computing resource expense, reduce the computing cost and computation complexity of player.Streaming media service
Device no longer needs to continue repeatedly reading, cache file contents fragment, but obtains the file fragmentation data provided by RJ-FAC, subtracts
Lack streaming server computing resource expense, reduced caching expense, and reduce Netowrk tape between streaming server and cloud storage system
Wide expense, improves system totality concurrency performance.In addition, remain able to realize Streaming Media text by searching for the mode of file fragmentation
The quick of part program request redirects.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (12)
1. a kind of stream media ordering method based on cloud storage, it is characterised in that this method includes:
Cloud storage client RJ-FAC receiving stream media file order requests quickly are redirected, wherein carrying files in stream media ID and point
Broadcast parameter;
Description informations of the RJ-FAC according to the files in stream media ID to the corresponding All Files burst of database reading, and according to
The program request parameter searches the description information of purpose file fragmentation;
RJ-FAC reads corresponding All Files burst according to the files in stream media ID to cloud storage meta data server FLR
Information is stored, and the storage information of purpose file fragmentation is searched according to the description information of purpose file fragmentation;
RJ-FAC reads purpose file according to the cloud storage node server FAS that stores information to of the purpose file fragmentation found
The data of burst;
Wherein, before receiving stream media file order request, this method further includes:Files in stream media is write into cloud storage system;
It is described that files in stream media is write into cloud storage system, including:
RJ-FAC initiates write-in files in stream media request to FLR;
FLR returns to write-in file parameters response, informs that RJ-FAC provides FAS lists and the storage strategy of service;
RJ-FAC carries out burst according to storage strategy to the files in stream media of request write-in, obtains one or more file fragmentations;
The FAS that RJ-FAC is specified from FAS lists selection, and each file fragmentation is write into the FAS;
FAS returns to save file burst success response to RJ-FAC, and physics of each file fragmentation in FAS is included in response message
Deposit position information;
RJ-FAC generates the corresponding description information of each file fragmentation, preserves in the database, and is registered to FLR application records,
Log-on message includes:The storage information of files in stream media title and each file fragmentation;
FLR records the storage information of files in stream media and its corresponding each file fragmentation, and returns to write-in file to RJ-FAC
Record success response.
2. the stream media ordering method based on cloud storage according to claim 1, it is characterised in that the program request parameter is at least
Including:Play instruction and redirect instruction;
It is described to redirect instruction and include:Broadcasting initial time and/or broadcasting end time and/or progress after redirecting start percentage
And/or progress terminates percentage.
3. the stream media ordering method based on cloud storage according to claim 2, it is characterised in that the file fragmentation is retouched
Information is stated, including:Files in stream media ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation
ID, file fragmentation size, play initial time, play the end time, progress starts percentage and progress terminates percentage.
4. the stream media ordering method based on cloud storage according to claim 3, it is characterised in that the file fragmentation is deposited
Information is stored up, including:Files in stream media ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation
ID, file fragmentation size, compression instruction, encryption instruction and physics deposit position information.
5. the stream media ordering method based on cloud storage according to claim 4, it is characterised in that described according to the program request
Parameter searches the description information of purpose file fragmentation, is:
The description information of the All Files burst is converted into Hash table, initial time will be played and/or played the end time
And/or progress starts percentage and/or progress terminates percentage as index;
Broadcasting initial time and/or broadcasting end time and/or progress after being redirected according to what is included in program request parameter start hundred
Point ratio and/or progress terminate the percentage lookup Hash table, obtain the description information of purpose file fragmentation.
6. the stream media ordering method based on cloud storage according to claim 5, it is characterised in that according to purpose file fragmentation
Description information search purpose file fragmentation storage information, be:
The description information of purpose file fragmentation is compared with the storage information of each file fragmentation successively, works as files in stream media
When ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation ID are identical with file fragmentation size,
Then find the storage information of purpose file fragmentation.
7. the stream media ordering method based on cloud storage according to claim 6, it is characterised in that the RJ-FAC is according to looking into
The data for storing information to FAS and reading purpose file fragmentation of the purpose file fragmentation found, are:
RJ-FAC is read according to the file fragmentation ID in the storage information of purpose file fragmentation and physics deposit position information to FAS
The data of purpose file fragmentation.
8. the stream media ordering method based on cloud storage according to claim 1, it is characterised in that
Said write files in stream media is asked, including:The complete trails file name of files in stream media, file size, compression instruction,
Encryption instruction and spreading parameter file type;
The storage strategy, including:File fragmentation size, file fragmentation copy amount, compression instruction and encryption instruction.
A kind of 9. streaming media on demand device based on cloud storage, it is characterised in that including:Streaming Media interface module, quickly redirect
Module, file read-write interface module and index data module, wherein:
The Streaming Media interface module, for receiving stream media file order request, wherein carrying files in stream media ID and program request
Parameter;And files in stream media order request is supplied to quick jump module;
The quick jump module, for controlling the file read-write interface module to read according to the files in stream media order request
Take the description information of file fragmentation and the storage information of file fragmentation;
The file read-write interface module, for the control according to the quick jump module, the media are read to database
The description information of the corresponding All Files burst of file ID, and read the media text to cloud storage meta data server FLR
The storage information of the corresponding All Files bursts of part ID;
The index data module, the description information and text of the file fragmentation read for preserving the file read-write interface module
The storage information of part burst;
The quick jump module, is additionally operable to description information and file from file fragmentation described in the index data module loading
The storage information of burst, the description information of purpose file fragmentation is searched according to the program request parameter;It is additionally operable to according to purpose file
The description information of burst searches the storage information of purpose file fragmentation;
The file read-write interface module, is additionally operable to the control according to the quick jump module, is carried according to quick jump module
The data for storing information to cloud storage node server FAS and reading purpose file fragmentation of the purpose file fragmentation of confession;
Wherein, the file read-write interface module is additionally operable to send write-in files in stream media to cloud storage meta data server FLR
Request;And the write-in file parameters response of FLR returns is received, wherein, the cloud storage node server FAS row for providing and servicing are provided
Table and storage strategy;Burst is carried out to the files in stream media of request write-in according to storage strategy, obtains one or more files point
Piece;And the FAS specified from FAS lists selection, and each file fragmentation is write into FAS;
The file read-write interface module is additionally operable to receive FAS return save file burst success responses comprising each text
Physics deposit position information of the part burst in FAS;The corresponding description information of each file fragmentation is generated, is preserved in the database;
And registered to FLR application records, log-on message includes:The storage information of files in stream media title and each file fragmentation;Work as FLR
After the storage information for recording files in stream media and its corresponding each file fragmentation, receive write-in file record that FLR returns into
Work(responds.
10. the streaming media on demand device based on cloud storage according to claim 9, it is characterised in that
The index data module, is additionally operable to the description information of the All Files burst being converted to Hash table, will play
Time beginning and/or broadcasting end time and/or progress start percentage and/or progress terminates percentage as index;
The quick jump module, is additionally operable to the Hash from the description information of file fragmentation described in the index data module loading
Table, broadcasting initial time and/or broadcasting end time and/or progress after being redirected according to what is included in program request parameter start percentage
Than and/or progress terminate percentage search loading Hash table, obtain the description information of purpose file fragmentation.
11. the streaming media on demand device based on cloud storage according to claim 10, it is characterised in that
The quick jump module, is additionally operable to believe storage of the description information of purpose file fragmentation successively with each file fragmentation
Breath is compared, when files in stream media ID, file fragmentation quantity, file fragmentation copy amount, file fragmentation sequence number, file fragmentation
When ID is identical with file fragmentation size, then the storage information of purpose file fragmentation is found.
12. the streaming media on demand device based on cloud storage according to claim 11, it is characterised in that the file read-write connects
Mouth mold block, the file fragmentation ID being additionally operable in the storage information according to purpose file fragmentation and physics deposit position information are to FAS
Read the data of purpose file fragmentation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210307668.1A CN103634616B (en) | 2012-08-27 | 2012-08-27 | A kind of stream media ordering method and device based on cloud storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210307668.1A CN103634616B (en) | 2012-08-27 | 2012-08-27 | A kind of stream media ordering method and device based on cloud storage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634616A CN103634616A (en) | 2014-03-12 |
CN103634616B true CN103634616B (en) | 2018-04-17 |
Family
ID=50215184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210307668.1A Active CN103634616B (en) | 2012-08-27 | 2012-08-27 | A kind of stream media ordering method and device based on cloud storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103634616B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104469391B (en) * | 2014-11-21 | 2018-02-27 | 深圳市天威视讯股份有限公司 | A kind of digital TV contents dissemination system and method based on cloud platform |
CN104837029B (en) * | 2015-05-08 | 2018-07-03 | 厦门大学 | A kind of storage of resource hard disk of HD video VOD system and access method |
CN105898352A (en) * | 2015-11-13 | 2016-08-24 | 乐视云计算有限公司 | m3u8-based streaming media file direct broadcast method and system |
CN105554149A (en) * | 2015-12-31 | 2016-05-04 | 康佳集团股份有限公司 | Video cloud storage load equalizing method and system based on video ranks |
CN108737908B (en) * | 2018-05-21 | 2021-11-30 | 腾讯科技(深圳)有限公司 | Media playing method, device and storage medium |
CN112118461B (en) * | 2020-09-22 | 2022-10-18 | 湖南快乐阳光互动娱乐传媒有限公司 | Audio and video file storage and distribution method and device |
CN113485978B (en) * | 2021-06-23 | 2023-07-21 | 华泰证券股份有限公司 | Method, system and memory for improving read-write throughput capacity of file storage NAS |
CN114840487A (en) * | 2022-03-25 | 2022-08-02 | 阿里巴巴(中国)有限公司 | Metadata management method and device for distributed file system |
CN117395451A (en) * | 2023-09-13 | 2024-01-12 | 重庆数智融合创新科技有限公司 | Video file access method and system based on cloud storage |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193273A (en) * | 2006-11-20 | 2008-06-04 | 中兴通讯股份有限公司 | A storage and playing method for real time multimedia image information |
CN101534326A (en) * | 2009-04-21 | 2009-09-16 | 华为技术有限公司 | An access method, a device and a system for an RTSP terminal |
CN101677325A (en) * | 2008-09-16 | 2010-03-24 | 华为技术有限公司 | Method, device and system for publishing media description information and acquiring media |
CN102004760A (en) * | 2010-11-03 | 2011-04-06 | 深圳市同洲电子股份有限公司 | Multimedia file storing and applying method, related device and system |
-
2012
- 2012-08-27 CN CN201210307668.1A patent/CN103634616B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193273A (en) * | 2006-11-20 | 2008-06-04 | 中兴通讯股份有限公司 | A storage and playing method for real time multimedia image information |
CN101677325A (en) * | 2008-09-16 | 2010-03-24 | 华为技术有限公司 | Method, device and system for publishing media description information and acquiring media |
CN101534326A (en) * | 2009-04-21 | 2009-09-16 | 华为技术有限公司 | An access method, a device and a system for an RTSP terminal |
CN102004760A (en) * | 2010-11-03 | 2011-04-06 | 深圳市同洲电子股份有限公司 | Multimedia file storing and applying method, related device and system |
Also Published As
Publication number | Publication date |
---|---|
CN103634616A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634616B (en) | A kind of stream media ordering method and device based on cloud storage | |
CN101447994B (en) | Method for downloading and playing multimedia file and equipment thereof | |
US10296325B2 (en) | Method of consolidating, synchronizing, and streaming production content for distributed editing of media compositions | |
CA2661066C (en) | Auto-selection of media files | |
JP4859943B2 (en) | Media file management using metadata injection | |
KR101977773B1 (en) | Media content voting, ranking, and playing system | |
US20090070673A1 (en) | System and method for presenting multimedia content and application interface | |
US20080028023A1 (en) | Sharing commentaries synchronized with video content | |
US20120203932A1 (en) | Multi-master media metadata synchronization | |
US20080263010A1 (en) | Techniques to selectively access meeting content | |
US10628385B2 (en) | Virtual collection of entities in sync process | |
CN102624768B (en) | Carry out the method and system of file synchronization process between different devices | |
JP2011517816A (en) | Distributed media fingerprint repository | |
KR20080109077A (en) | Client side editing application for optimizing editing of media assets originating from client and server | |
EP3471421B1 (en) | Live broadcast video replay method, server, and system | |
US8806051B2 (en) | Multimedia file sharing method and system thereof | |
JP6182609B2 (en) | Subtitle processing method, apparatus, system, and storage medium | |
US20080005028A1 (en) | Contents metadata registering method, registering system, and registering program | |
US20040158579A1 (en) | Server side play-list | |
WO2014065165A1 (en) | Information processing device, information processing method and program, and information processing system | |
JP2007066315A (en) | Shared white board history reproduction method, shared white board system, program and recording medium | |
GB2483452A (en) | Delivering a media file stored by a content provider to a client, with the media index being sent first | |
KR100706406B1 (en) | User interactive streaming service system and its method | |
Xia et al. | Research and Design of Campus Network VOD System | |
KR20100001599A (en) | System and method for providing contents service using virtual area and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |