CN110430480A - A kind of system and method that Streaming Media cloud storage is synchronous - Google Patents
A kind of system and method that Streaming Media cloud storage is synchronous Download PDFInfo
- Publication number
- CN110430480A CN110430480A CN201910733225.0A CN201910733225A CN110430480A CN 110430480 A CN110430480 A CN 110430480A CN 201910733225 A CN201910733225 A CN 201910733225A CN 110430480 A CN110430480 A CN 110430480A
- Authority
- CN
- China
- Prior art keywords
- cloud storage
- media
- data
- module
- media stream
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of synchronous systems of Streaming Media cloud storage, including web camera, media server, cloud storage service device, the web camera, media server, cloud storage service device are interconnected by IP network and a kind of web camera of Streaming Media cloud storage synchronization system batch index mends the method passed, a kind of method that the order method for cloud storage synchronizing function of Streaming Media cloud storage synchronization system is synchronous with a kind of cloud storage missing data of Streaming Media cloud storage synchronization system.The pretreatment that the present invention passes through the fragment of streaming media, grouping and label, so that it is more precisely quick to carry out program request, search operaqtion in terminal, the storage location information of equipment end is grouped in by the time point of the grouping finally received or finally in the case where unstable networks, using terminal location as initial conditions, carry out breakpoint transmission, and while may be implemented in program request, the update for carrying out stream medium data is synchronous.
Description
Technical field
The invention belongs to stream media technology fields, more particularly, to a kind of synchronous system and method for Streaming Media cloud storage.
Background technique
With the prevalence of web camera, people require higher and higher, current big portion to the reliability preservation of Video data
Subnetwork video camera is supported to save video recording in the SD card of video camera and in local NVR equipment;But due to local video camera
Equipment and NVR equipment are easily damaged or are easy to be destroyed, and cloud storage service device generally has high-performance, and high reliability is special
Point, and facilitate and realize that the circle of friends recorded a video is shared, so the demand that people save video recording on cloud is being continuously increased.But it records a video
It saves, is needed using public network in cloud storage, and network bandwidth, network stabilization, network interruption just becomes in data cloud most
Stern challenge.The common cloud storage system of industry does not have data synchronizing capacity at present, causes cloud storage data in network state
When bad, often data are imperfect.It is that there is a very strong adaptability in market there is an urgent need to a kind of pair of network state and support cloud simultaneously
The system of storing data synchronizing capacity.
Summary of the invention
The present invention for overcome the deficiencies in the prior art, provides a kind of system and method that Streaming Media cloud storage is synchronous, solution
Certainly because network state is bad, the incomplete problem of data is transmitted.
To achieve the goals above, the invention adopts the following technical scheme: a kind of synchronous system of Streaming Media cloud storage,
Be characterized in that comprising web camera, media server, cloud storage service device, the web camera, media server,
Cloud storage service device is interconnected by IP network;
Stream medium data is uploaded to media server for generating stream medium data by the web camera;
The media server is used to receive the stream medium data of web camera upload, to requiring to be saved in cloud storage
Media data is screened and is transferred to cloud storage service device;The playing request of client is handled;
Wherein, the web camera includes that module, Media Stream cloud storage is locally stored in Media Stream sampling module, Media Stream
Management module, media streaming on demand module and/or Media Stream live streaming module and local with Media Stream sampling module, Media Stream respectively
The network shooting that memory module, Media Stream cloud storage management module, media streaming on demand module and/or Media Stream live streaming module are connected
Machine central controller;
The media server includes cloud storage media channel management module, cloud storage Media Stream memory management module, cloud
Storage point broadcasting module and respectively with cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage
The media server central controller of point broadcasting module;
The cloud storage service device is for providing the access and retrieval service of stream medium data.
The Media Stream sampling module is used for:
Acquire Media Stream;
Media Stream is subjected to fragment and packet transaction;
Signature is respectively set and is numbered;
Media Stream live streaming module finally is sent by fragment and module is locally stored in Media Stream;
The signature is the label including mobile detection label, cloud video recording label.
Media Stream live streaming module is used to receive the input that Media Stream uses module, and according to Media Stream be broadcast live condition or
The connection of Media Stream cloud storage management module, which controls, to be required, Media Stream uploaded in real time by set strategy media server or
Client end of playing back;
The set strategy are as follows:
The missing data of user's program request cloud storage video clip is preferential;
New missing data is preferential.
Media Stream live streaming module is also used to when live stream passes through media server, and the media channel of cloud storage can be with
With live media channel and with a channel.
Module is locally stored in the Media Stream: the management for local storage medium;It is also used to real-time media stream data
Write-in is locally stored or retrieves, extracts the media data being stored in;Storage when, media stream data be organized into packet index with
After packet data two parts, deposit respectively;Index part can be used for according to the time, and packet marking information carries out retrieval extraction;Especially
It is the cloud video recording label in index, can be used as the retrieval foundation of the synchronous data of cloud storage;
The media streaming on demand module: the creation of the media channel for program request, the management work of deletion;It is also used to basis
The condition of program request is locally stored in module from Media Stream and retrieves qualified media data, and media data is passed through program request
Media channel is issued client or is forwarded via media server;Media server also can use program request module synchronization cloud storage
The media data of upper missing;
The Media Stream cloud storage management module: for the connection management with media server, configuration management;Cloud storage record
As the generation strategy of label;And the batch synchronization function of cloud storage missing data index information.
The cloud storage media channel management module: for managing cloud storage media channel, cloud is realized with set strategy
Store the data sharing and shunting of the living broadcast channel of media channel and media server;It is also used to the relevant Media Stream of cloud storage
It is transmitted to cloud storage Media Stream memory management module;
The set strategy are as follows:
The missing data of user's program request cloud storage video clip is preferential;
New missing data is preferential.
The cloud storage Media Stream memory management module: for cloud storage media flow fragmentation the whole sequence of reception and grouping it is complete
Whole property verifying work;It is also used to Media Stream being respectively written into cloud storage service device by index and data two parts;It is also used to initiate
The sync retransmission management work of cloud storage missing data;
The cloud storage point broadcasting module: the on-demand playback for cloud storage video recording;It is also used to there was only rope when the data of program request
Fuse breath when corresponding data is not synchronized to cloud storage also, initiates missing data program request to corresponding web cam device
Request.
A kind of method that the web camera batch index of Streaming Media cloud storage synchronization system mends biography:
It periodically attempts to be attached with media server;
After successful connection, to media server, sends out cloud storage batch index and mend biography request, and enclose current storage media
ID parameter is formatted, cloud storage synchronous regime enters index batch and mends the biography stage;
Receive media server about cloud storage interruption position information and/or finally receive grouping time point and/
Or the storage location information in equipment end being finally grouped;With interruption position information and/or finally receive grouping time point and/
Or the storage location information in equipment end being finally grouped is initial conditions, to being locally stored, module request acquisition is all cloud record
As the packet index information of label, if obtained if packet index entry data are huge in batches;
The packet index list that will acquire issues media server after compression is packaged, after media server receives message,
Respond a confirmation message;
Packet index list is successively sent in batches, until all packet indexes are all sent, enters real-time synchronization rank
Section;
Media Stream is broadcast live module and carries out uploading live media flow data in real time, be locally stored module by live media flow point
The storage index information of group is uploaded by signalling path.
A kind of order method for cloud storage synchronizing function of Streaming Media cloud storage synchronization system:
On-demand request is received, inspection required parameter is the discovery that the synchronous on-demand request of cloud storage, extracts and format number and divide
Group location information information is recorded in on-demand request control block structure.Judge format number whether with local storage medium
It is consistent to format number.If it is inconsistent, the data of request are no longer valid, then mistake is returned;If consistent, according to grouping
Location information, get the index information of grouping;If obtaining failure, illustrate that packet data has been capped, returns to failure, such as
Fruit obtains successfully, according to index information, reads fragment data, and upload each slice header letter by cloud storage on-demand media channel
Breath all filling fragment numbers, packet numbering and packet positions information, by classified statistic information, server carries out data integrity
Verification;If media channel does not support incidental information, uploaded by media-signaling channel;
Thumbnail fragment data is read, and is uploaded by cloud storage on-demand media channel;Fragment number is inserted when upload, point
Group location information, stamps thumbnail marker bit, identifies this special fragment for media server;
It is finished until the grouping of all requests all uploads, closes on-demand media channel.
A method of cloud storage missing data that stating Streaming Media cloud storage synchronization system is synchronous:
User issues cloud storage on-demand request, and on-demand request is sent to media server;
Media server searches the index of certain data in cloud storage service device, by certain priority ranking strategy to net
Network video camera initiates cloud storage on-demand request, carries out the synchronization of missing data;
The priority ranking strategy of the missing data are as follows:
The missing data of user's program request cloud storage video clip is preferential;
New missing data is preferential;
Net slightly video camera receives the synchronous on-demand request of cloud storage, returns to media server and sends program request broadcast address letter
Breath;
Media server connects broadcast address, establishes and plays media channel, carries out program request broadcasting, meanwhile, from broadcasting stream
It is proposed the index information and heavy constituent group data of each grouping;
The index for matching certain data writes data into cloud storage service device, completes the update synchronous working of missing data.
The beneficial effects of the present invention are:
The present invention not only to be broadcast live by the fragment of streaming media, the pretreatment of grouping and label, and local video recording is deposited
Storage, the control of cloud storage is mutually indepedent, and can share a data source, reduces the transmitting redundancy of data;By that will count
According to index and data itself two parts are divided into, when cloud storage is synchronous, first synchronous index, rear synchrodata ensure that client cloud
When storage access, the rapidity and integrality of data retrieval;The cloud storage method of data synchronization of learning on demand mode, that is, guarantee with
When can breakpoint transmission and maximum smooth network bandwidth, and can be accomplished in real time in client terminal playing cloud storage video
High preferential synchronizes the data promptly lacked.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is the system group network figure of the embodiment of the present invention;
Fig. 2 is the module relation diagram of the embodiment of the present invention;
Fig. 3 is the fragment composition sequence schematic diagram that a real-time media stream of the embodiment of the present invention is grouped;
Fig. 4 is the synchronous flow diagram of the cloud storage missing data of the embodiment of the present invention;
Fig. 5 is that the cloud storage batch of the embodiment of the present invention indexes the flow diagram mended and passed.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.Obviously, described embodiment is only section Example of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, those of ordinary skill in the art's every other implementation obtained under that premise of not paying creative labor
Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, the system that a kind of Streaming Media cloud storage is synchronous, which is characterized in that it includes web camera, media
Server, cloud storage service device, the web camera, media server, cloud storage service device are interconnected by IP network;
Stream medium data is uploaded to media server for generating stream medium data by web camera;
Media server is used to receive the stream medium data of web camera upload, to requiring the media for being saved in cloud storage
Data are screened and are transferred to cloud storage service device;The playing request of client is handled;
Embodiment 1: as shown in Fig. 2, web camera includes that module, matchmaker is locally stored in Media Stream sampling module, Media Stream
Body stream cloud storage management module, media streaming on demand module, Media Stream live streaming module and respectively with Media Stream sampling module, media
Stream is locally stored the connected network of module, Media Stream cloud storage management module, media streaming on demand module, Media Stream live streaming module and takes the photograph
Camera central controller;
Media server includes cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage
Point broadcasting module and respectively with cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage program request
The media server central controller of module;
Cloud storage service device is for providing the access and retrieval service of stream medium data.
Embodiment 2: web camera includes that module, Media Stream cloud storage is locally stored in Media Stream sampling module, Media Stream
Management module, media streaming on demand module and module is locally stored with Media Stream sampling module, Media Stream respectively, Media Stream cloud is deposited
Store up the connected web camera central controller of management module, media streaming on demand module;
Media server includes cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage
Point broadcasting module and respectively with cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage program request
The media server central controller of module;
Cloud storage service device is for providing the access and retrieval service of stream medium data.
Embodiment 3: web camera includes that module, Media Stream cloud storage is locally stored in Media Stream sampling module, Media Stream
Management module, Media Stream live streaming module and module is locally stored with Media Stream sampling module, Media Stream respectively, Media Stream cloud is deposited
Store up the connected web camera central controller of management module, Media Stream live streaming module;
Media server includes cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage
Point broadcasting module and respectively with cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage program request
The media server central controller of module;
Cloud storage service device is for providing the access and retrieval service of stream medium data.
Here retrieval service is user by the information such as signature or name word information, is carried out on cloud storage service device
The service of retrieval.This is the conventional techniques of those skilled in the art, is not illustrated here.
Embodiment 4: Media Stream sampling module is used for
Acquire Media Stream;
Media Stream is subjected to fragment and packet transaction;
It is upper respectively that signature (label etc. including mobile detection label, cloud video recording label) is set and is numbered;
Media Stream live streaming module finally is sent by fragment and module is locally stored in Media Stream.
Such as Fig. 3, in the Media Stream sampling module of web camera, media stream data is fragmented and is grouped, and carries out
Number.BTU Basic Transmission Unit of the fragment as media stream data, such as a video I frame, P frame or audio frame;Grouping is one group
The set of fragment, the fragment for being divided in a grouping have identical packet numbering.Different grouping has different numbers.One point
Group is by I frame fragment, followed by all audios in relative P frame slicing sequence and this packet time section
Fragment composition.Grouping is to be locally stored or the basic unit of cloud storage, and description information, that is, index information of Media Stream storage is exactly
It is described based on grouping.
Media flow fragmentation adds fragment header information before former fragment data.Fragment head includes following information: fragment
Type, fragment time stamp, the affiliated packet numbering of fragment, fragment number, fragment mark, code stream channel etc. where fragment;Each module according to
Media stream data forwarding, the operation such as publication and storage judgement are carried out according to slice header.
Fragment mark is made of multiple marker bits;Wherein there is a cloud video recording marker bit, for marking whether this fragment is permitted
Perhaps cloud storage is uploaded, there are also mobile detection label, Face datection labels etc. also respectively to account for a position for other similar marker bits.Cloud
The generation source of video recording marker bit is Media Stream cloud storage management module.Cloud video recording marker bit is locally stored in Media Stream deposit
When, it is necessary to it is stored in, cannot lack together.The foundation in relation to the relevant data of cloud storage will be locally stored as retrieval in it.
Embodiment 5: Media Stream live streaming module is used to receive the input that Media Stream uses module, and item is broadcast live according to Media Stream
The connection of part or Media Stream cloud storage management module, which controls, to be required, by set strategy (user's program request cloud storage video clip
Missing data is preferential;New missing data is preferential)
Media Stream is uploaded to media server or client end of playing back in real time;
Media Stream live streaming module is also used to when live stream passes through media server, the media channel of cloud storage can with it is straight
Broadcast media channel and with a channel.
In the Media Stream live streaming module of web camera, media slicing is often received, requires to traverse all live medias
Then the media channel of stream fragment is written one by one.Wherein, if the media channel of cloud storage has built up and fragment has cloud record
As flag bit, then fragment can be also written in the media channel of cloud storage.
In the Media Stream live streaming module of web camera, if fragment belongs to high definition code stream channel, with the institute of grouping
When having fragment to be sent, the browsing thumbnail that a low clear thumbnail is grouped as this can be actively generated, this thumbnail can quilt
It is encoded into a video slicing and stamps thumbnail marker bit, insertion is grouped the end of Media Stream herein, and by media server
Identification.The insertion position of thumbnail fragment can also be grouped the starting position or intermediate any position of Media Stream herein, if this
Kind position then should should just generate thumbnail when receiving the I frame fragment of this grouping.The generation method of thumbnail can be from
It is extracted in low clear code stream channel, or generates a low resolution snapshot picture at once after the generation of grouping I frame herein.Thumbnail exists
It is generated on IP Camera and is sent to cloud storage, it is convenient to omit media server is transcoded into low clear breviary by high definition media stream
The process of figure, to mitigate the burden of media server.
Module is broadcast live in the Media Stream of web camera, after the relevant media stream packet data transmission of each cloud storage is complete,
The statistical information about this grouping can be generated.Statistical information includes: packet data total length, packet video fragment quantity and length
It sums it up, there is the fragment quantity and total length adduction of cloud video recording label, grouping flag information etc., the affiliated grouping of statistical information in grouping
Number etc..This classified statistic information can be attached on thumbnail fragment or next fragment (if cloud storage does not need thumbnail
Words), it is sent together by media channel.It, can also be logical by media signaling if media channel does not support the transmission of statistical data
Road is sent to media server.Media server can verify the integrality of the packet data received according to this statistical information.
Module is broadcast live in the Media Stream of web camera, to all live media channels for being sent to same media server and
Cloud storage channel carries out data-reusing.To guarantee to be broadcast live in multichannel with cloud storage and when depositing, a live media flow data is only needed
It uploads, to substantially reduce the demand to network bandwidth.Its key is that cloud video recording label and live streaming are arranged on media slicing
Video recording label.There are when live media channel and cloud storage channel while media server, web camera will uniformly be counted
According to write-in live media channel (or cloud storage channel), media server carries out multichannel distribution processor by marker bit.
Embodiment 6: module is locally stored in Media Stream: the management for local storage medium;It is also used to real-time media stream
Data write-in is locally stored or retrieves, extracts the media data being stored in;In storage, media stream data is organized into grouping rope
Draw with after packet data two parts, deposits respectively;Index part can be used for according to the time, and packet marking information carries out retrieval extraction;
Cloud especially in index, which is recorded a video, to be marked, and can be used as the retrieval foundation of the synchronous data of cloud storage.
Module is locally stored in the Media Stream of web camera, is to be grouped as storage unit.According to classified statistic information
Generate packet index information;It is retained separately on a storage medium with packet data.Packet index information data amount is small, for quick
Retrieval.It include packet data location information in packet index information, grouping mark is grouped the beginning of video recording and terminates time stamp,
Block length and other classified statistic information.Location information has unique number information in this storage medium.Grouping mark be by
The mark of fragment carries out or operation obtains, wherein the marker bit that must record a video containing cloud.
Module is locally stored in the Media Stream of web camera, management storage medium in formatted storage medium, meeting
A random formatting number is generated, some fixation position of storage medium is stored in.This formats number and divides for solving
The problem only effective after once format of group index location information.
It is locally stored in module in the Media Stream of web camera, after a grouping is written to storage medium every time,
Judge whether this grouping has cloud video recording label, if so, then the index information of this grouping can be passed through cloud storage signalling path
Issue media server.If media server when there is loss of data, can first record this point when collecting live stream grouping
The index information of group, then by point broadcast mode, retransmits the packet data of loss to cloud storage.The packet index information of upload,
It should include formatting number information.When to prevent the re-transmission of media server program request afterwards, the media medium of equipment by
In the case where replacement or reformatting, the data of mistake are got.
It is locally stored in module in Media Stream, needs to save the browsing thumbnail of grouping, and generate fragment, be inserted in grouping
The beginning of data, or be appended at ending.And the Data Position of thumbnail is recorded in packet index information.
Embodiment 7: media streaming on demand module: the creation of the media channel for program request, the management work of deletion;It is also used to
It according to the condition of program request, is locally stored in module from Media Stream and retrieves qualified media data, and media data is passed through
It issues client or is forwarded via media server in on-demand media channel;Media server also can use program request module synchronization cloud
The media data lacked in storage.
In media streaming on demand module, the order program service for cloud storage synchronizing function is provided.
A kind of order method for cloud storage synchronizing function of Streaming Media cloud storage synchronization system, its step are as follows:
Step 1: receiving on-demand request, check required parameter, be the discovery that the synchronous on-demand request of cloud storage, extract to format and compile
Number and the information such as packet positions information, be recorded in on-demand request control block structure.Judge to format whether number deposits with local
The formatting number of storage media is consistent.If it is inconsistent, the data of request are no longer valid, then mistake is returned;If consistent,
Go to step 2
Step 2: according to the location information of grouping, getting the index information of grouping.If obtaining failure, illustrate packet data
It has been be capped that, return to failure.If obtained successfully, further according to index information, fragment data is read one by one, and pass through cloud storage
On-demand media channel uploads;When upload, each slice header information filling fragment is numbered, packet numbering and packet positions information.
These information will help media server recombination packet data and match with the grouping of missing.Classified statistic information and complete
Index information can also be attached to this grouping some fragment on upload together, but suggest be attached on key frame fragment.Pass through grouping
Statistical information facilitates server to carry out data integrity verifying.If media channel does not support incidental information, matchmaker can be passed through
Body signalling path uploads.
Step 3: reading thumbnail fragment data, and uploaded by cloud storage on-demand media channel;It is not only inserted when upload
Fragment number, packet positions information can also stamp thumbnail marker bit, identify this special fragment for media server.
Step 4: repeating step 2-3;It is finished until the grouping of all requests all uploads, closes on-demand media channel.
Embodiment 8:: Media Stream cloud storage management module: for the connection management with media server, configuration management;Cloud
The generation strategy of storage video recording label;And the batch synchronization function of cloud storage missing data index information.
The Media Stream cloud storage management module of web camera can mend from the breakpoint location of network interruption and pass local cloud
All index informations of storage video recording grouping.These index informations will help media server further to complete missing data
It mends and passes work.A kind of synchronous method of cloud storage missing data including Streaming Media cloud storage synchronization system.
Such as Fig. 4, a kind of method that the cloud storage missing data of Streaming Media cloud storage synchronization system is synchronous, its step are as follows:
Step 1: periodically attempting to be attached with media server.
Step 2: after successful connection, to media server, sending out cloud storage synchronization request, and enclose the lattice of current storage media
Formula ID parameter.Cloud storage synchronous regime enters the index breakpoint transmission stage at this time.
Step 3: receive media server about cloud storage interruption position information (interruption position information either it is last
The time point of grouping is received, or the storage location information in equipment end being finally grouped);Then it is with interruption position information
Initial conditions obtain all packet index information for having cloud video recording label to module request is locally stored.This packet index entry
If data are huge, may obtain in batches.
Step 4: the packet index list that will acquire issues media server, media server receives report after compression is packaged
Wen Hou responds a confirmation message.
Step 5: packet index list is successively sent in batches, until all packet indexes are all sent.It enters in real time
Synchronous phase.
After entering the real-time synchronization stage.Media Stream live streaming module can upload live media flow data in real time, this
Ground memory module also starts constantly constantly to upload the storage index information of live media flow point group by signalling path.
The Media Stream cloud storage management module of web camera can switch whole day video recording and upload according to the setting of user
Cloud storage mode, or by various other events (such as mobile detection event) triggering certain time length video recording on cloud mode, this
A little modes or event finally control a cloud write switch variable when generating.Then the value of the on or off of cloud write switch can pass through
In the setting to the marker bit of media slicing of Media Stream acquisition module.
Embodiment 9: it cloud storage media channel management module: for managing cloud storage media channel, (is used with set strategy
The missing data of family program request cloud storage video clip is preferential;New missing data is preferential) realize that cloud storage media channel and media take
The data sharing and shunting of the living broadcast channel of business device;It is also used to deposit the relevant forwarding media stream of cloud storage to cloud storage Media Stream
Store up management module;
The cloud storage media channel management module of media server, when receiving cloud video media flow fragmentation, it can root
According to the subsidiary grouping real-time statistics of fragment and fragment number information, media stream packet is recombinated, and verifies the integrality of grouping;
Embodiment 10: cloud storage Media Stream memory management module: for cloud storage media flow fragmentation the whole sequence of reception and point
The completeness check work of group;It is also used to Media Stream being respectively written into cloud storage service device by index and data two parts;Also use
In the sync retransmission management work for initiating cloud storage missing data;
The cloud storage Media Stream memory management module of media server, when having received media stream packet data, if number
According to imperfect, it can understand the missing degree of data by analysis classified statistic information, and whether decision tolerate its imperfection, and one
As in the case of, if only losing a small amount of P frame fragment or a small amount of audio data, it is believed that data are substantially complete;Determining number
According under missing serious situation, it can abandon this grouping, and can be indexed according to the storage of this grouping reached by signalling path
Information, label cloud storage respective packets are missing, and the storage index information that this is grouped is stored in cloud storage service device index area,
Then synchronous mend of data is initiated in the subsequent time passes request.
The media stream packet data received can be indexed by the cloud storage Media Stream memory management module of media server
Information and date unpack is stored into cloud storage.Index information is used for quick cloud storage video retrieval.
The cloud storage Media Stream memory management module of media server connects rigid establishment stage in cloud storage, it can be received
The cloud storage index breakpoint transmission request of web camera, and return to the time point of breakpoint or the storage index bit confidence of breakpoint
Breath.When batch index data after breakpoint reaches, the index information of grouping can be labeled as shortage of data state by it, and be protected
There are in the index area of cloud storage service device.
The cloud storage Media Stream memory management module of media server, the cloud storage data that can receive web camera are synchronous
Then request is searched the index of missing data in cloud storage, and is sent out by certain priority ranking strategy to web camera
Cloud storage on-demand request is played, the synchronization of progress missing data in batches.The priority ranking strategy of missing data are as follows: (1) user
The new missing data of the missing data of program request cloud storage video clip preferential (2) is preferential,
Embodiment 11: the cloud storage point broadcasting module: the on-demand playback for cloud storage video recording;It is also used to the number when program request
According to only index information, when corresponding data is not synchronized to cloud storage also, missing is initiated to corresponding web cam device
Data-on-demand request.
Embodiment 12:
Such as Fig. 5, a kind of web camera batch index of Streaming Media cloud storage synchronization system mends the method passed:
It periodically attempts to be attached with media server;
After successful connection, to media server, sends out cloud storage batch index and mend biography request, and enclose current storage media
ID parameter is formatted, cloud storage synchronous regime enters index batch and mends the biography stage;
The interruption position information about cloud storage for receiving media server (finally receives the time point of grouping, finally divides
The storage location information in equipment end of group);With interruption position information (finally receive the time point of grouping, be finally grouped
The storage location information of equipment end) it is initial conditions, all groupings for having cloud video recording label are obtained to module request is locally stored
Index information, if obtained if packet index entry data are huge in batches;
The packet index list that will acquire issues media server after compression is packaged, after media server receives message,
Respond a confirmation message;
Packet index list is successively sent in batches, until all packet indexes are all sent, enters real-time synchronization rank
Section;
Media Stream is broadcast live module and carries out uploading live media flow data in real time, be locally stored module by live media flow point
The storage index information of group is uploaded by signalling path.
In conclusion fragment of the present invention by streaming media, the pretreatment of grouping and label, not only to be broadcast live, this
Ground video recording storage, the control of cloud storage is mutually indepedent, and can share a data source, reduces the transmitting redundancy of data;
By splitting data into index and data itself two parts, when cloud storage is synchronous, first synchronous index, rear synchrodata be ensure that
When client cloud storage accesses, the rapidity and integrality of data retrieval;The cloud storage method of data synchronization of learning on demand mode,
Guarantee at any time can breakpoint transmission and maximum smooth network bandwidth, and can in client terminal playing cloud storage video,
It accomplishes and high preferential in real time synchronizes the data promptly lacked.
Embodiments described above does not constitute the restriction to the technical solution protection scope.It is any in above-mentioned implementation
Made modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution within the spirit and principle of mode
Within enclosing.
Claims (9)
1. a kind of synchronous system of Streaming Media cloud storage, which is characterized in that it includes web camera, media server, Yun Cun
Server is stored up, the web camera, media server, cloud storage service device are interconnected by IP network;
Stream medium data is uploaded to media server for generating media stream data by the web camera;
The media server is used to receive the stream medium data of web camera upload, to requiring the media for being saved in cloud storage
Flow data is screened and is transferred to cloud storage service device;The playing request of client is handled;
Wherein, the web camera includes that module, Media Stream cloud storage management is locally stored in Media Stream sampling module, Media Stream
Module, media streaming on demand module and/or Media Stream are broadcast live module and are locally stored respectively with Media Stream sampling module, Media Stream
In the web camera that module, Media Stream cloud storage management module, media streaming on demand module and/or Media Stream live streaming module are connected
Entreat controller;
The media server includes cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage
Point broadcasting module and respectively with cloud storage media channel management module, cloud storage Media Stream memory management module, cloud storage program request
The media server central controller of module;
The cloud storage service device is used to provide stream medium data access and retrieval service in cloud storage.
2. the synchronous system such as a kind of Streaming Media cloud storage of claim 1, which is characterized in that the Media Stream sampling module is used
In:
Acquire Media Stream;
Media Stream is subjected to fragment and packet transaction;
Signature is set on fragment respectively and is numbered;
Media Stream live streaming module is sent by fragment and module is locally stored in Media Stream;
The signature is the label including mobile detection label, local video recording label, cloud video recording label.
3. the synchronous system such as a kind of Streaming Media cloud storage of claim 1, which is characterized in that the Media Stream live streaming module is used for
The input of Media Stream sampling module is received, and is controlled according to the connection that condition or Media Stream cloud storage management module is broadcast live in Media Stream
It is required that Media Stream to be uploaded to media server or client end of playing back in real time by set strategy;
The set strategy are as follows:
The missing data of user's program request cloud storage video clip is preferential;
New missing data is preferential.
4. the synchronous system such as a kind of Streaming Media cloud storage of claim 1, which is characterized in that the Media Stream live streaming module is used for
When live stream passes through media server, the media channel of cloud storage can be with live media channel and with a channel.
5. the synchronous system such as a kind of Streaming Media cloud storage of claim 1, which is characterized in that mould is locally stored in the Media Stream
Block: the management for local storage medium;It is also used to be written real-time media stream data and is locally stored or retrieves, extracts and be stored in
Media data;In storage, after media stream data is organized into packet index and packet data two parts, store respectively;
And/or the media streaming on demand module: the creation of the media channel for program request, the management work of deletion;It is also used to root
The condition that strong point is broadcast is locally stored in module from Media Stream and retrieves qualified media data, and media data is passed through a little
Media channel is broadcast to issue client or forward via media server;Media server is lacked using in program request module synchronization cloud storage
The media data of mistake;
And/or the Media Stream cloud storage management module: for the connection management with media server, configuration management;Cloud storage
The generation strategy of video recording label;And the batch synchronization function of cloud storage missing data index information.
6. the synchronous system such as a kind of Streaming Media cloud storage of claim 1, which is characterized in that the cloud storage media channel management
Module: for managing cloud storage media channel, the live streaming of cloud storage media channel and media server is realized with set strategy
The data sharing and shunting in channel;It is also used to give the relevant forwarding media stream of cloud storage to cloud storage Media Stream storage management mould
Block;
The set strategy are as follows:
The missing data of user's program request cloud storage video clip is preferential;
New missing data is preferential.
And/or the cloud storage Media Stream memory management module: reception whole sequence and grouping for cloud storage media flow fragmentation
Completeness check work;It is also used to Media Stream being respectively written into cloud storage service device by index and data two parts;It is also used to send out
Play the sync retransmission management work of cloud storage missing data;
And/or the cloud storage point broadcasting module: the on-demand playback for cloud storage video recording;It is also used to there was only rope when the data of program request
Fuse breath when corresponding data is not synchronized to cloud storage also, initiates missing data program request to corresponding web cam device
Request.
7. such as a kind of web camera batch index of Streaming Media cloud storage synchronization system as claimed in any one of claims 1 to 6
Mend the method passed:
It periodically attempts to be attached with media server;
After successful connection, to media server, sends out cloud storage batch index and mend biography request, and enclose the format of current storage media
Change ID parameter, cloud storage synchronous regime enters index batch and mends the biography stage;
Receive media server about cloud storage interruption position information and/or finally receive time point and/or most of grouping
The storage location information in equipment end being grouped afterwards;With interruption position information and/or the last time point for receiving grouping and/or most
The storage location information in equipment end being grouped afterwards is initial conditions, and to being locally stored, module request acquisition is all cloud video recording mark
The packet index information of note, if obtained if packet index entry data are huge in batches;
The packet index list that will acquire issues media server after compression is packaged, and after media server receives message, responds
One confirmation message;
Packet index list is successively sent in batches, until all packet indexes are all sent, enters the real-time synchronization stage;
Media Stream is broadcast live module and carries out uploading live media flow data in real time, be locally stored module by live media flow point group
Index information is stored to upload by signalling path.
8. a kind of Streaming Media cloud storage synchronization system such as claimed in any one of claims 1 to 6 is directed to cloud storage synchronizing function
Order method:
On-demand request is received, checks required parameter, is the discovery that the synchronous on-demand request of cloud storage, extracts and formats number and grouping position
Information is set, is recorded in on-demand request control block structure;
Judge whether formatting number is consistent with the formatting number of local storage medium, if it is inconsistent, the data of request
It is no longer valid, then return to mistake;If consistent, according to the location information of grouping, the index information of grouping is got;If obtained
Failure, illustrates that packet data has been capped, and returns to failure, if obtained successfully, according to index information, reads fragment data,
And each slice header information is uploaded by cloud storage on-demand media channel and inserts fragment number, packet numbering and packet positions letter
Breath, by classified statistic information, server carries out data integrity verifying;If media channel does not support incidental information, lead to
Cross media-signaling channel upload;
Thumbnail fragment data is read, and is uploaded by cloud storage on-demand media channel;Fragment number is inserted when upload, is grouped position
Confidence breath, stamps thumbnail marker bit, identifies this special fragment for media server;
It is finished until the grouping of all requests all uploads, closes on-demand media channel.
9. as a kind of cloud storage missing data for stating Streaming Media cloud storage synchronization system as claimed in any one of claims 1 to 6 is same
The method of step:
User issues cloud storage on-demand request, and on-demand request is sent to media server;
Media server searches the index of certain data in cloud storage service device, takes the photograph by certain priority ranking strategy to network
Camera initiates cloud storage on-demand request, carries out the synchronization of missing data;
The priority ranking strategy of the missing data are as follows: the missing data of user's program request cloud storage video clip is preferential;It is new to lack
Lose high priority data;
Web camera receives the synchronous on-demand request of cloud storage, returns to media server and sends program request broadcast address information;
Media server connects broadcast address, establishes and plays media channel, carries out program request broadcasting, meanwhile, it is proposed from playing in stream
The index information and heavy constituent group data of each grouping;
The index for matching certain data writes data into cloud storage service device, completes the update synchronous working of missing data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910733225.0A CN110430480B (en) | 2019-08-09 | 2019-08-09 | System and method for streaming media cloud storage synchronization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910733225.0A CN110430480B (en) | 2019-08-09 | 2019-08-09 | System and method for streaming media cloud storage synchronization |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110430480A true CN110430480A (en) | 2019-11-08 |
CN110430480B CN110430480B (en) | 2022-02-18 |
Family
ID=68413504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910733225.0A Active CN110430480B (en) | 2019-08-09 | 2019-08-09 | System and method for streaming media cloud storage synchronization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110430480B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432151A (en) * | 2020-01-20 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Video data storage method, device, equipment and storage medium |
CN111629283A (en) * | 2020-05-14 | 2020-09-04 | 武汉群宇科技有限公司 | Multi-stream media gateway service system and method |
CN112118085A (en) * | 2020-09-01 | 2020-12-22 | 中国电子科技集团公司第二十八研究所 | Reliable transmission device and method under short wave channel |
CN114157678A (en) * | 2020-09-08 | 2022-03-08 | ***通信有限公司研究院 | Data transmission method, terminal equipment and data storage system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009003358A1 (en) * | 2007-06-29 | 2009-01-08 | The Chinese University Of Hong Kong | Systems and methods for universal real-time media transcoding |
CN101754001A (en) * | 2008-11-29 | 2010-06-23 | 华为技术有限公司 | Video data priority confirming method, device and system |
CN103136242A (en) * | 2011-11-28 | 2013-06-05 | 上海可鲁***软件有限公司 | Method and device for storing and reading multi-source data index |
US20140085501A1 (en) * | 2010-02-26 | 2014-03-27 | Bao Tran | Video processing systems and methods |
CN104469395A (en) * | 2014-12-12 | 2015-03-25 | 华为技术有限公司 | Image transmission method and device |
EP2999210A1 (en) * | 2010-02-11 | 2016-03-23 | Microsoft Technology Licensing, LLC | Generic platform video image stabilization |
CN105808589A (en) * | 2014-12-31 | 2016-07-27 | 中国电信股份有限公司 | File processing method and apparatus |
CN106060173A (en) * | 2016-07-22 | 2016-10-26 | 恒业智能信息技术(深圳)有限公司 | Cluster type photographing data storage system based on cloud storage |
CN106301708A (en) * | 2016-07-28 | 2017-01-04 | 乐视控股(北京)有限公司 | Processing method and processing device when a kind of information sends unsuccessfully |
CN107404525A (en) * | 2017-07-24 | 2017-11-28 | 郑州云海信息技术有限公司 | Video data access method, platform and system |
CN107566321A (en) * | 2016-06-30 | 2018-01-09 | 南京中兴新软件有限责任公司 | The sending method of file, apparatus and system |
US20180290054A1 (en) * | 2015-08-19 | 2018-10-11 | Sony Interactive Entertainment America Llc | Stream testing for cloud gaming |
-
2019
- 2019-08-09 CN CN201910733225.0A patent/CN110430480B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009003358A1 (en) * | 2007-06-29 | 2009-01-08 | The Chinese University Of Hong Kong | Systems and methods for universal real-time media transcoding |
CN101754001A (en) * | 2008-11-29 | 2010-06-23 | 华为技术有限公司 | Video data priority confirming method, device and system |
EP2999210A1 (en) * | 2010-02-11 | 2016-03-23 | Microsoft Technology Licensing, LLC | Generic platform video image stabilization |
US20140085501A1 (en) * | 2010-02-26 | 2014-03-27 | Bao Tran | Video processing systems and methods |
CN103136242A (en) * | 2011-11-28 | 2013-06-05 | 上海可鲁***软件有限公司 | Method and device for storing and reading multi-source data index |
CN104469395A (en) * | 2014-12-12 | 2015-03-25 | 华为技术有限公司 | Image transmission method and device |
CN105808589A (en) * | 2014-12-31 | 2016-07-27 | 中国电信股份有限公司 | File processing method and apparatus |
US20180290054A1 (en) * | 2015-08-19 | 2018-10-11 | Sony Interactive Entertainment America Llc | Stream testing for cloud gaming |
CN107566321A (en) * | 2016-06-30 | 2018-01-09 | 南京中兴新软件有限责任公司 | The sending method of file, apparatus and system |
CN106060173A (en) * | 2016-07-22 | 2016-10-26 | 恒业智能信息技术(深圳)有限公司 | Cluster type photographing data storage system based on cloud storage |
CN106301708A (en) * | 2016-07-28 | 2017-01-04 | 乐视控股(北京)有限公司 | Processing method and processing device when a kind of information sends unsuccessfully |
CN107404525A (en) * | 2017-07-24 | 2017-11-28 | 郑州云海信息技术有限公司 | Video data access method, platform and system |
Non-Patent Citations (1)
Title |
---|
陈通: ""云存储手机视频监控***设计"", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432151A (en) * | 2020-01-20 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Video data storage method, device, equipment and storage medium |
CN111432151B (en) * | 2020-01-20 | 2022-08-23 | 杭州海康威视数字技术股份有限公司 | Video data storage method, device, equipment and storage medium |
CN111629283A (en) * | 2020-05-14 | 2020-09-04 | 武汉群宇科技有限公司 | Multi-stream media gateway service system and method |
CN112118085A (en) * | 2020-09-01 | 2020-12-22 | 中国电子科技集团公司第二十八研究所 | Reliable transmission device and method under short wave channel |
CN112118085B (en) * | 2020-09-01 | 2023-03-03 | 中国电子科技集团公司第二十八研究所 | Reliable transmission device and method under short wave channel |
CN114157678A (en) * | 2020-09-08 | 2022-03-08 | ***通信有限公司研究院 | Data transmission method, terminal equipment and data storage system |
Also Published As
Publication number | Publication date |
---|---|
CN110430480B (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110430480A (en) | A kind of system and method that Streaming Media cloud storage is synchronous | |
CN114079660B (en) | High-performance distributed storage block data, time stamp, cross-chain communication and data collaboration method | |
US9391676B2 (en) | Network audio distribution system and method | |
CN102882703B (en) | A kind of system and method for the URL automatic classification classification based on HTTP analysis | |
JP3793941B2 (en) | Video server device and video delivery method thereof in video delivery system | |
CN103078847B (en) | Method for storing and reading multi-code-rate stream file and relevant device | |
CN107251562A (en) | Low latency video streaming | |
CN102550020A (en) | Method for retransmission using checksums for identifying lost data packets | |
CN109634988B (en) | Monitoring polling method and device | |
CN105308974A (en) | Transmission apparatus, transmission method, reproduction apparatus, reproduction method and reception apparatus | |
CN110300120A (en) | The hierarchical synchronization method and system of reverse data under the conditions of a kind of physical isolation | |
WO2014200386A1 (en) | Data transmission from a web-server to terminal devices by means of a wireless network | |
CN100527704C (en) | Stream medium server and stream medium transmitting and storaging method | |
CN104661042A (en) | Method, device and system for transmitting transport stream | |
CN110489484A (en) | Method of data synchronization, device, readable storage medium storing program for executing and electronic equipment | |
CN108093016A (en) | A kind of picture storage method, device and video monitoring system | |
CN110381128B (en) | Uploading method and cloud storage model suitable for streaming media file | |
CN109802992B (en) | Method and device for reading and writing resource change log | |
KR20190081048A (en) | Method And Apparatus for Repairing and Detecting Packet Loss | |
CN110601857A (en) | Data interaction method based on local-global block chain cooperation | |
CN1244218C (en) | Handling broadcast data tokens | |
CN104639613A (en) | Realizing method for mobile data synchronization middleware based on improved network protocol | |
CN109802990B (en) | Resource log reading and writing method and device for reducing data redundancy | |
CN103227934A (en) | Method and server for videorecording television programs | |
CN106603977B (en) | Video acquisition method and device based on Linux multi-core environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |