CN103685427A - A network caching method based on a cloud platform - Google Patents

A network caching method based on a cloud platform Download PDF

Info

Publication number
CN103685427A
CN103685427A CN201210361609.2A CN201210361609A CN103685427A CN 103685427 A CN103685427 A CN 103685427A CN 201210361609 A CN201210361609 A CN 201210361609A CN 103685427 A CN103685427 A CN 103685427A
Authority
CN
China
Prior art keywords
cloud platform
view data
frame number
video frame
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210361609.2A
Other languages
Chinese (zh)
Other versions
CN103685427B (en
Inventor
李磊
见良
刘铁华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201210361609.2A priority Critical patent/CN103685427B/en
Publication of CN103685427A publication Critical patent/CN103685427A/en
Application granted granted Critical
Publication of CN103685427B publication Critical patent/CN103685427B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a network caching method based on a cloud platform. The network caching method comprises: initializing a cloud platform and preconfiguring a path directing to a disk of the cloud platform on a cloud platform terminal; reserving file header space of a cache file on the disk of a cloud platform server and customizing a file version number and encoding and decoding modes in the file header space; using the cloud platform terminal to save description of local image data in a local memory; recording video frame number in the file header space after the local image data is written in the file header space; using the cloud platform terminal to write the description of every frame of image data saved in the memory of the cloud platform terminal in the file header space when the cloud platform terminal saves a project; and using the cloud platform terminal to insert an invalid video frame number used for recording an invalid video section between the video frame numbers and the encoding and decoding modes in the file header space. The method disclosed in the invention achieves that a terminal directly loads the cache file saved last time, and that every terminals share the cache file in order to improve cooperative work efficiency.

Description

A kind of caching method based on cloud platform network
Technical field
The present invention relates to special video effect processes and synthetic a kind of platform technology field, particularly the network-caching method based on cloud platform of making.
Background technology
In the prior art in video later stage special effect processing and synthetic making, normally one group of computer collaborative work in same group of networks.Special video effect is processed with synthetic making the cache file generating in video post process is left on local computer, improve the post-production efficiency of local computer, but the computer in consolidated network group intercepts each other on buffer memory, cannot for make the computer of same video lens or fragment in consolidated network group, provide corresponding buffer memory service each other.
Cloud platform allows developers or the program of finishing writing is placed on to " cloud " inner operation, or " cloud " the inner service providing of use, or the two all, turns to cloud computing, is the great change that industry will face.
In realizing process of the present invention, inventor finds to exist in prior art following shortcoming:
In prior art, worked in coordination with while processing with each synthetic computer starting project file to special video effect and all needed to generate buffer memory one time, and each intercomputer cannot share the cache file of generation, the editor's progress that cannot upgrade in time, has reduced the efficiency of collaborative work.
Summary of the invention
In order to solve above technical problem, the invention provides a kind of network-caching method based on cloud platform, the method comprises:
Initialization cloud platform terminal, on described cloud platform terminal, pre-configured sensing is for preserving the path of disk of the cloud Platform Server of cache file;
Cloud Platform Server described in initialization, the file header space of reserved described cache file on the disk of described cloud Platform Server; Fileversion number and the code encoding/decoding mode of self-defined described cache file in described file header space;
Described cloud platform terminal is kept at the description of each frame image data of this locality in local internal memory;
Described cloud platform terminal is write described each frame image data of this locality behind described file header space, and in described file header space recording of video frame number;
Described cloud platform terminal, when preserving engineering, writes the description of described each frame image data of preserving in the local internal memory of described cloud platform terminal in described file header space;
Between the described video frame number of described cloud platform terminal in described file header space and described code encoding/decoding mode, insert the invalid video frame number for protocol failure video section;
Described cloud platform terminal completes and writes described cache file to the disk of described cloud Platform Server.
When the data volume of the description of described view data is greater than reserved described file header space, calculate the space size that the description of described view data also needs, the view data of the space size that the description that and then occupies described view data in described cache file after the description of described view data is also needed moves to the end of described cache file, revises the description of described view data simultaneously.
When described invalid video section comprises continuous section, using the frame number of the first frame of described invalid video section and the frame number of last frame as described invalid video frame number.
According to the pre-configured sensing of described cloud platform terminal, for preserving the path of disk of the cloud Platform Server of cache file, find corresponding described cache file; Read described fileversion number; Judge that whether described fileversion number is identical with the version number of described cloud platform terminal, if so, read described video frame number; Judge that whether described video frame number is non-vanishing, if so, read and record the description of described code encoding/decoding mode and described view data; Judge whether to read the description of whole described view data; If so, read invalid video frame number; According to described invalid video frame number, deleting the view data that described invalid video frame number is corresponding describes; According to the view data except view data corresponding to described invalid video frame number described, describe and obtain view data.
The described description that judges whether to read whole described view data, is specially: Yi Zhengwei unit starts from scratch and reads until reach described video frame number.
Compared with prior art, the embodiment of the present invention has the following advantages: by cache file is kept on cloud Platform Server, make each terminal of collaborative work equal.When terminal, open project file used while making video last time, will automatically load the corresponding cache file of preserving on cloud Platform Server, needn't again take time and generate a buffer memory.So can save the operating time, raise the efficiency.Simultaneously, because cache file is placed on cloud Platform Server, and cache file itself has designed a kind of fixing file format, so terminal all can recognize corresponding cache file when opening project file on each computer of collaborative work, reading information, the cache file that a certain terminal like this generates in manufacturing process can be used for other people, and service, has improved collaborative work efficiency rate mutually.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only one embodiment of the present of invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to accompanying drawing below other accompanying drawing.
Fig. 1: the flow chart of writing for the cache file of a kind of network-caching method based on cloud platform of the present invention;
Fig. 2: the flow chart of reading for the cache file of a kind of network-caching method based on cloud platform of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obvious described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment
The embodiment of the present invention provides a kind of network-caching method based on cloud platform.As shown in Figure 1, be the flow chart that the cache file of a kind of network-caching method based on cloud platform of the present invention is write, the method comprises:
Step S101, initialization cloud platform terminal, on described cloud platform terminal, pre-configured sensing is for preserving the path of disk of the cloud Platform Server of cache file;
Step S102, cloud Platform Server described in initialization, the file header space of reserved described cache file on the disk of described cloud Platform Server; Fileversion number and the code encoding/decoding mode of self-defined described cache file in described file header space;
Step S103, described cloud platform terminal is kept at the description of each frame image data of this locality in local internal memory;
Step S104, described cloud platform terminal is write described each frame image data of this locality behind described file header space, and in described file header space recording of video frame number;
Step S105, described cloud platform terminal, when preserving engineering, writes the description of described each frame image data of preserving in the local internal memory of described cloud platform terminal in described file header space;
When the data volume of the description of described view data is greater than reserved described file header space, calculate the space size that the description of described view data also needs, the view data of the space size that the description that and then occupies described view data in described cache file after the description of described view data is also needed moves to the end of described cache file, revises the description of described view data simultaneously.
Step S106, inserts the invalid video frame number for protocol failure video section between the described video frame number of described cloud platform terminal in described file header space and described code encoding/decoding mode.
When described invalid video section comprises continuous section, using the frame number of the first frame of described invalid video section and the frame number of last frame as described invalid video frame number.
As shown in table 1, described cache file structure is as follows:
Step S107, described cloud platform terminal completes and writes described cache file to the disk of described cloud Platform Server.
As shown in Figure 2, be the flow chart that the cache file of a kind of network-caching method based on cloud platform of the present invention is read, the method comprises:
Step S2001, described cloud platform terminal finds corresponding described cache file according to the pre-configured sensing of described cloud platform terminal for preserving the path of disk of the cloud Platform Server of cache file;
Step S2002, reads described fileversion number;
Step S2003, judges that whether described fileversion number is identical with the version number of described cloud platform terminal;
If not, forward step S2012 to;
If so, step S2004, reads described video frame number;
Step S2005, judges that whether described video frame number is non-vanishing;
If not, forward step S2012 to;
If so, step S2006, the description of reading and recording described code encoding/decoding mode and described view data;
Step S2007, judges whether to read the description of whole described view data;
The described description that judges whether to read whole described view data, is specially: Yi Zhengwei unit starts from scratch and reads until reach described video frame number;
If not, forward step S2006 to;
If so, step S2008, reads invalid video frame number;
Step S2009, deletes according to described invalid video frame number the view data that described invalid video frame number is corresponding and describes;
Step S2010, describes and obtains view data according to the view data except view data corresponding to described invalid video frame number described;
Step S2011, describes and obtains view data according to the view data except view data corresponding to described invalid video frame number described;
Step S2012, described cloud platform terminal completes from the disk of described cloud Platform Server and reads described cache file.
The embodiment of the present invention has the following advantages: by cache file is kept on cloud Platform Server, make each terminal of collaborative work equal.When terminal, open project file used while making video last time, will automatically load the corresponding cache file of preserving on cloud Platform Server, needn't again take time and generate a buffer memory.So can save the operating time, raise the efficiency.Simultaneously, because cache file is placed on cloud Platform Server, and cache file itself has designed a kind of fixing file format, so terminal all can recognize corresponding cache file when opening project file on each computer of collaborative work, reading information, the cache file that a certain terminal like this generates in manufacturing process can be used for other people, and service, has improved collaborative work efficiency rate mutually.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, and the mode that also can add necessary general hardware platform by software realizes.Understanding based on such, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the unit in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Above embodiment is only non-limiting in order to technical scheme of the present invention to be described, only with reference to preferred embodiment, the present invention is had been described in detail.Those of ordinary skill in the art should be appreciated that and can modify or be equal to replacement technical scheme of the present invention, and do not depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of claim scope of the present invention.

Claims (5)

1. the network-caching method based on cloud platform, is characterized in that, the method comprises:
Initialization cloud platform terminal, on described cloud platform terminal, pre-configured sensing is for preserving the path of disk of the cloud Platform Server of cache file;
Cloud Platform Server described in initialization, the file header space of reserved described cache file on the disk of described cloud Platform Server; Fileversion number and the code encoding/decoding mode of self-defined described cache file in described file header space;
Described cloud platform terminal is kept at the description of each frame image data of this locality in local internal memory;
Described cloud platform terminal is write described each frame image data of this locality behind described file header space, and in described file header space recording of video frame number;
Described cloud platform terminal, when preserving engineering, writes the description of described each frame image data of preserving in the local internal memory of described cloud platform terminal in described file header space;
Between the described video frame number of described cloud platform terminal in described file header space and described code encoding/decoding mode, insert the invalid video frame number for protocol failure video section;
Described cloud platform terminal completes and writes described cache file to the disk of described cloud Platform Server.
2. method as claimed in claim 1, is characterized in that, the method also comprises:
When the data volume of the description of described view data is greater than reserved described file header space, calculate the space size that the description of described view data also needs, the view data of the space size that the description that and then occupies described view data in described cache file after the description of described view data is also needed moves to the end of described cache file, revises the description of described view data simultaneously.
3. method as claimed in claim 1, is characterized in that, the method also comprises:
When described invalid video section comprises continuous section, using the frame number of the first frame of described invalid video section and the frame number of last frame as described invalid video frame number.
4. method as claimed in claim 1, is characterized in that, the method also comprises:
Described cloud platform terminal finds corresponding described cache file according to the pre-configured sensing of described cloud platform terminal for preserving the path of disk of the cloud Platform Server of cache file;
Read described fileversion number;
Judge that whether described fileversion number is identical with the version number of described cloud platform terminal,
If so, read described video frame number;
Judge that whether described video frame number is non-vanishing,
If so, read and record the description of described code encoding/decoding mode and described view data;
Judge whether to read the description of whole described view data,
If so, read invalid video frame number;
According to described invalid video frame number, deleting the view data that described invalid video frame number is corresponding describes;
According to the view data except view data corresponding to described invalid video frame number described, describe and obtain view data;
Described cloud platform terminal completes from the disk of described cloud Platform Server and reads described cache file.
5. method as claimed in claim 4, is characterized in that, described in judge whether to read to be specially the description of whole described view data: Yi Zhengwei unit starts from scratch and reads until reach described video frame number.
CN201210361609.2A 2012-09-25 2012-09-25 A kind of caching method based on cloud platform network Expired - Fee Related CN103685427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210361609.2A CN103685427B (en) 2012-09-25 2012-09-25 A kind of caching method based on cloud platform network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210361609.2A CN103685427B (en) 2012-09-25 2012-09-25 A kind of caching method based on cloud platform network

Publications (2)

Publication Number Publication Date
CN103685427A true CN103685427A (en) 2014-03-26
CN103685427B CN103685427B (en) 2018-03-16

Family

ID=50321723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210361609.2A Expired - Fee Related CN103685427B (en) 2012-09-25 2012-09-25 A kind of caching method based on cloud platform network

Country Status (1)

Country Link
CN (1) CN103685427B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107431708A (en) * 2015-03-31 2017-12-01 微软技术许可有限责任公司 Session Hand-off between resource
CN111581018A (en) * 2020-04-20 2020-08-25 深圳震有科技股份有限公司 Data recovery method, intelligent terminal and storage medium
CN112235598A (en) * 2020-09-27 2021-01-15 深圳云天励飞技术股份有限公司 Video structured processing method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825960A (en) * 2006-03-31 2006-08-30 清华大学 Multi-pipeline phase information sharing method based on data buffer storage
CN102325173A (en) * 2011-08-30 2012-01-18 重庆抛物线信息技术有限责任公司 Mixed audio and video sharing method and system
CN102568525A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公 Intelligent buffer method on flow chart and time line
EP2480004A2 (en) * 2011-01-19 2012-07-25 EMC SatCom Technologies, LLC System and method for tero latency browsing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825960A (en) * 2006-03-31 2006-08-30 清华大学 Multi-pipeline phase information sharing method based on data buffer storage
CN102568525A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公 Intelligent buffer method on flow chart and time line
EP2480004A2 (en) * 2011-01-19 2012-07-25 EMC SatCom Technologies, LLC System and method for tero latency browsing
CN102325173A (en) * 2011-08-30 2012-01-18 重庆抛物线信息技术有限责任公司 Mixed audio and video sharing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢小竹: "基于云台控制的实时视频拼接", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107431708A (en) * 2015-03-31 2017-12-01 微软技术许可有限责任公司 Session Hand-off between resource
CN107431708B (en) * 2015-03-31 2020-09-22 微软技术许可有限责任公司 Session transfer between resources
US11159626B2 (en) 2015-03-31 2021-10-26 Microsoft Technology Licensing, Llc Session transfer between resources
CN111581018A (en) * 2020-04-20 2020-08-25 深圳震有科技股份有限公司 Data recovery method, intelligent terminal and storage medium
CN111581018B (en) * 2020-04-20 2023-08-01 深圳震有科技股份有限公司 Data recovery method, intelligent terminal and storage medium
CN112235598A (en) * 2020-09-27 2021-01-15 深圳云天励飞技术股份有限公司 Video structured processing method and device and terminal equipment

Also Published As

Publication number Publication date
CN103685427B (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN103703441B (en) Hard disk and data processing method
US9164892B2 (en) Writing data to solid state drives
JP2005321952A (en) Data access device and recording medium
US10884926B2 (en) Method and system for distributed storage using client-side global persistent cache
CN103577516A (en) Method and device for displaying contents
CN104063284B (en) The method and apparatus running application program
CN103685427A (en) A network caching method based on a cloud platform
CN107798063B (en) Snapshot processing method and snapshot processing device
CN113608695A (en) Data processing method, system, device and medium
CN102306162A (en) Implementation method for storing and playing back multimedia objects
CN105681893A (en) Method and device for decoding stream media video data
CN109416617A (en) Duplication between heterogeneous storage system
TW201729209A (en) Erasing method for memory device
CN110019086A (en) More copy read methods, equipment and storage medium based on distributed file system
CN109976686A (en) Distributed display system and method
US9671973B2 (en) Data storage in degraded solid state memory
CN104699727A (en) Data storage method and device
US9122474B2 (en) Apparatus and method for reducing overhead caused by communication between clusters
CN102724426A (en) Method for carrying out real-time interaction on special effect processing system and clip system and system thereof
CN111090396A (en) File processing method and device and electronic equipment
CN104618644A (en) Method and terminal for writing image data into file
WO2020024197A1 (en) Video processing method and apparatus, and computer readable medium
CN112256206A (en) IO processing method and device
JP2006244017A (en) Data copy method
CN111399774A (en) Data processing method and device based on snapshot under distributed storage system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180316

Termination date: 20180925

CF01 Termination of patent right due to non-payment of annual fee