CN114205641A - Video data processing method and device - Google Patents
Video data processing method and device Download PDFInfo
- Publication number
- CN114205641A CN114205641A CN202111440068.8A CN202111440068A CN114205641A CN 114205641 A CN114205641 A CN 114205641A CN 202111440068 A CN202111440068 A CN 202111440068A CN 114205641 A CN114205641 A CN 114205641A
- Authority
- CN
- China
- Prior art keywords
- video data
- index
- cloud server
- deleted
- identification 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 41
- 238000012545 processing Methods 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims description 17
- 230000000737 periodic effect Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 11
- 238000012544 monitoring process Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000013523 data management Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23109—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion by placing content in organized collections, e.g. EPG data repository
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/7867—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Library & Information Science (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The application provides a video data processing method and device, which relate to the field of image processing, wherein a cloud server can receive video data; determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data; determining the storage capacity of the video data according to the index; if the storage capacity does not exceed the preset storage space, storing the index into a first database of the cloud server, and storing the storage capacity into a second database of the cloud server; and if the storage capacity is determined to exceed the preset storage space, writing the identification information of the video data to be deleted into the second database, and deleting the video data corresponding to the identification information. By means of the method, the storage space of the cloud server is managed, and the data processing efficiency can be improved.
Description
Technical Field
The present application relates to the field of image processing, and in particular, to a method and an apparatus for processing video data.
Background
In the current security and protection equipment, video monitoring is widely applied to families and enterprises, and video images in a monitoring area can be previewed in real time by adding video monitoring equipment through software Application (APP). The video image data can be stored locally (stored in the storage device of the monitoring device) or stored in the cloud.
Video data is accumulated continuously, the storage space of the video data may be insufficient, and when local storage is adopted, the storage device needs to be updated regularly, but the cost for updating the storage device regularly is high. When the cloud storage is adopted, the storage space can be increased or updated, but how to better maintain the cloud storage space is not provided in the related technology, so that the data processing efficiency is low, and the service experience of a user is not good, therefore, the method is not beneficial to the long-term maintenance of the cloud storage space.
Disclosure of Invention
The application provides a video data processing method and device, which are used for improving the data processing efficiency.
In a first aspect, the present application provides a video data processing method, where the method may be performed by a cloud server and a cloud storage, where the method is not specifically limited herein, and is described by taking the cloud server as an example, and the cloud server may receive video data; determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data; determining the storage capacity of the video data according to the index; if the storage capacity does not exceed the preset storage space, storing the index into a first database of the cloud server, and storing the storage capacity into a second database of the cloud server; and if the storage capacity is determined to exceed the preset storage space, deleting the video data corresponding to the identification information of the video data to be deleted.
It should be noted that, in the present application, after the cloud server receives the video data, an index of the video data is determined, the storage capacity of the video data is determined according to the index, and whether the storage capacity exceeds a preset storage space is judged, if not, the index is stored in the first database, the storage capacity is stored in the second database, if yes, the video data corresponding to the identification information of the video data to be deleted is deleted, when the storage space of the cloud server is managed by this way, the index of the video data is stored separately, so that when the video data is searched, the video data can be positioned quickly by the index, the search or traversal speed of the data is improved, the storage capacity of the video data is stored separately so as to be compared quickly with the preset storage space, rather than determining whether a storage space exists by traversing all the storage data in the cloud server to store new video data, by the method, the data processing efficiency can be improved, and the service experience of the user can be improved by managing the cloud server in the method.
In an optional manner, the attribute information of the video data further includes one or more of the following information: a storage path of the video data, a duration of the video data, and a type of the video data.
It should be noted that the storage path of the video data may indicate which link table or queue the video data is stored in which memory of the cloud server, the duration of the video data is also the time interval between the start time of the video data and the end time of the video data, and the type of the video data is also the spatial region monitored by the video or the specific content information of the video, for example, the video data is street monitoring, the video data is garage monitoring, the video data is dance, and the like, which is not specifically limited herein. The attribute information of the video data comprises the information, so that the video data which is responded can be inquired quickly, and the inquiry speed of the video data can be improved.
In an alternative manner, the identification information of the video data to be deleted is identification information of video data of a first time period, and the first time period is a time period before the current time.
It should be noted that, the video data of the time period before the current time period (that is, the historical video data) may have a small influence on the user, and therefore, the video data may be deleted, and the time period before the current time period may be 1 month, 1 week, 2 months, and the like. By the method, the storage space of the cloud server can be fully and reasonably utilized.
In an optional manner, the identification information of the video data to be deleted is identification information of video data screened by the cloud service, and the identification information of the video data screened by the cloud service includes one or more of the following: the cloud server is marked, the cloud server is obtained from the second database, and the cloud server is determined by periodic scanning.
It should be noted that the cloud server can automatically traverse the storage space at an idle time to screen out the identification information of the video data, and can delete the video data periodically, and also can delete the screened video data when judging that the storage space is insufficient after receiving new video data, and the storage space of the cloud server can be fully and reasonably utilized by the method.
In an optional mode, the cloud server may query the first database according to the identification information, and determine an index of the video data to be deleted; determining a storage path of the data to be deleted according to the index of the video data to be deleted; and deleting the video data to be deleted in the storage path of the data to be deleted.
It should be noted that the cloud server may determine the index of the video data to be deleted by querying the first database, and based on the index of the video data to be deleted, may quickly locate the video data to be deleted, and delete the video data to be deleted, and by this means, the data processing efficiency may be improved.
In an alternative mode, the cloud server may determine an index of the video data to be queried according to the first database; and determining the video data to be inquired according to the index of the video data to be inquired. By the method, the data query efficiency can be improved.
In an optional manner, after receiving the video data, the cloud server stores the video data if a video format of the video data conforms to a preset video transmission rule, and/or a transmission time of the video data exceeds a preset time interval.
It should be noted that when the video format of the video data conforms to the preset video transmission rule, and/or the transmission time of the video data exceeds the preset time interval, the video data is stored, which can ensure that the data stored in the cloud server is more reliable.
In a second aspect, the present application provides a video data processing apparatus comprising:
a receiving unit for receiving video data; an index determining unit for determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data; a storage capacity determination unit configured to determine a storage capacity of the video data according to the index; the processing unit is used for storing the index into a first database of a cloud server and storing the storage capacity into a second database of the cloud server if the storage capacity is determined not to exceed a preset storage space; or if the storage capacity is determined to exceed the preset storage space, deleting the video data corresponding to the identification information of the video data to be deleted.
In an optional manner, the attribute information of the video data further includes one or more of the following information: a storage path of the video data, a duration of the video data, and a type of the video data.
In an alternative manner, the identification information of the video data to be deleted is identification information of video data of a first time period, and the first time period is a time period before the current time.
In an optional manner, the identification information of the video data to be deleted is identification information of video data screened by the cloud service, and the identification information of the video data screened by the cloud service includes one or more of the following: the cloud server is marked, the cloud server is obtained from the second database, and the cloud server is determined by periodic scanning.
In an alternative mode, the processing unit may query the first database according to the identification information, and determine an index of the video data to be deleted; determining a storage path of the data to be deleted according to the index of the video data to be deleted; and deleting the video data to be deleted in the storage path of the data to be deleted.
In an optional manner, the apparatus further includes a query unit, where the query unit is configured to determine an index of the video data to be queried according to the first database; and determining the video data to be inquired according to the index of the video data to be inquired.
In an alternative mode, the processing unit is configured to store the video data if a video format of the video data conforms to a preset video transmission rule, and/or a transmission time of the video data exceeds a preset time interval.
In a third aspect, the present application provides a computing device comprising: a memory and a processor; a memory for storing program instructions; a processor for calling the program instructions stored in the memory and executing the method of the first aspect according to the obtained program.
In a fourth aspect, the present application provides a computer storage medium storing computer-executable instructions for performing the method of the first aspect.
For technical effects that can be achieved by the second aspect to the fourth aspect, please refer to a description of the technical effects that can be achieved by a corresponding possible design scheme in the first aspect, and the description of the technical effects is not repeated herein.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of video data processing according to an embodiment of the present application;
fig. 2 is a schematic diagram of a video data processing system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a video data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of deleting video data according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a video data processing method according to an embodiment of the present application;
fig. 6 is a schematic view of an operation interface for video data processing according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a video data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
It should be noted that the terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Cloud storage is a mode of online storage on the internet, namely, data are stored in a plurality of virtual servers hosted by a third party, but not on exclusive servers. At present, various cloud manufacturers provide cloud storage capability for storing various files. A general cloud video storage mechanism can be combined with a commercial package, the general package is managed in a day number mode, for example, 7 days and 30 days, and after the time comes, a storage space is recovered and deleted by a cloud. However, this method is limited by the time limit, and the user experience is not good, and in the security field, the user experience of managing the cloud storage space through time may be degraded. Similarly, there is also a method for managing a cloud storage space in a spatial manner, that is, a user selects to purchase a certain space, and when a cloud video file exceeds the size of the space, a cloud video file is recovered by a cloud end to release the cloud storage space.
The following describes the video data processing procedure in detail. In the following embodiments of the present application, "and/or" describes an association relationship of associated objects, indicating that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. The singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. And, unless stated to the contrary, the embodiments of the present application refer to the ordinal numbers "first", "second", etc., for distinguishing a plurality of objects, and do not limit the sequence, timing, priority, or importance of the plurality of objects. For example, the first task execution device and the second task execution device are only for distinguishing different task execution devices, and do not indicate a difference in priority, degree of importance, or the like between the two task execution devices.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
An application scenario of video data processing is shown in fig. 1, and includes a cloud server and N image capture devices (e.g., cameras), where N is a positive integer, the N image capture devices may capture video images of a monitoring area in real time and transmit the captured video images to the cloud server, and the cloud server may classify and process the received video images. It should be noted that the N image capturing devices may be image capturing devices of the same user, and may also be image capturing devices of different users, which is not specifically limited herein. In addition, the cloud server may also be a cloud storage, a data storage center, an edge cloud, and the like, which are not specifically limited herein.
Based on the application scenario in fig. 1, the present application provides a video data processing method, which can be applied to the video data processing system shown in fig. 2, where the system includes an image capturing device and a cloud server. In order to better describe the management functions that the cloud service can implement in the present application, the cloud service may be divided into a plurality of processing modules, a video data storage module, a video data index storage module, and a video data management module, but in actual application, the processing modules may not exist, and the functions of the processing modules are implemented by the same or different processors. In addition, in order to adapt to the requirements of the processing module, a memory, a first database and a second database are further provided in the cloud server, and the second database may be Redis, which is not specifically limited herein.
The video data storage module can receive the video image from the image acquisition equipment and store the video image into a memory of the cloud server. The video data index module can extract the index of the video image transmitted by the image acquisition equipment, store the index into the first database and store the size information of the video image into the second database. The video data management module can monitor the size of the storage space of the cloud server in real time, and when the space of a certain user reaches the preset size, management and control are carried out.
How to manage specifically can be explained with reference to fig. 3, and this manner can be performed by the cloud server, and can be performed as follows:
step 301: video data is received.
Step 302: determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data.
It should be noted that the cloud server may extract features of the video data by using a machine learning method to determine an index of the video data, may also determine features of the video data by using a classification algorithm, and may also determine an index of the video data by using other data processing methods, which is not specifically limited herein. The index may indicate attribute information of the video data, and the attribute information may include storage capacity of the video data (i.e., information of video size) and identification information (i.e., which image capturing device the video data is from or which monitoring area the video data is captured from, etc., and is not specifically limited herein).
Step 303: the storage capacity of the video data is determined based on the index.
Step 304: and determining whether the storage capacity exceeds a preset storage space, if not, executing step 305, and if so, executing step 306.
Step 305: and storing the index into a first database of the cloud server, and storing the storage capacity into a second database of the cloud server.
Step 306: and deleting the video data corresponding to the identification information of the video data to be deleted.
It should be noted that the identification information of the video data to be deleted may be identification information of video data of a first time period, where the first time period is a time period before the current time. The video data (i.e., the historical video data) of the time period before the current time period may have a small influence on the user, and therefore may be deleted, and the time period before the current time period may be 1 month, 1 week, 2 months, and the like. By the method, the storage space of the cloud server can be fully and reasonably utilized.
In addition, the identification information of the video data to be deleted may also be identification information of video data screened by the cloud service, and the identification information of the video data screened by the cloud service may include one or more of the following: the cloud server is marked, the cloud server is obtained from the second database, and the cloud server is determined by periodic scanning. The cloud server can automatically traverse the storage space to screen out the identification information of the video data to be deleted at an idle time (such as 0-3 point in the morning), the video data can be deleted periodically, and the screened video data can be deleted when the storage space is judged to be insufficient after new video data is received.
The identification information of the video data to be deleted may be data marked by the cloud server and can be deleted, for example: the cloud service stores a large amount of user data, including user 1, user 2, and user 3, the cloud server marks the video data of user 1, that is, the cloud server may delete all the video data corresponding to user 1, and certainly in actual application, other video data may be deleted except that the marked video data cannot be deleted, and the application is not specifically limited herein. The storage space of the cloud server may not be insufficient, but the cloud service may continuously scan indexes of video storage data, write some identification information of the video data that can be deleted into the second database, and when the storage space of the cloud server is insufficient, preferentially delete the video data corresponding to the identification information stored in the second database.
In an optional mode, the cloud server may query the first database according to the identification information, and determine an index of the video data to be deleted; determining a storage path of the data to be deleted according to the index of the video data to be deleted; and deleting the video data to be deleted in the storage path of the data to be deleted. It should be noted that the cloud server may determine the index of the video data to be deleted by querying the first database, and based on the index of the video data to be deleted, may quickly locate the video data to be deleted, and delete the video data to be deleted, and by this means, the data processing efficiency may be improved. In actual execution, the video data may be deleted from the memory of the cloud server in a manner shown in fig. 4, which is merely exemplary and not limited to this, the cloud service periodically polls the identification information in the second database, the cloud service traverses the index of the video data during an idle time, and the like to determine the identification information of the data to be deleted, and then the cloud service may select the identification information of the video data with the longest history and determine the index thereof, and query the storage path of the video data with the longest history through the index corresponding to the identification information with the longest history, delete the video data with the longest history, and update the size of the storage space of the cloud server.
It should be noted that, in the present application, after the cloud server receives the video data, an index of the video data is determined, the storage capacity of the video data is determined according to the index, and whether the storage capacity exceeds a preset storage space is judged, if not, the index is stored in the first database, the storage capacity is stored in the second database, and if yes, the video data corresponding to the identification information of the video data to be deleted is deleted, and when the storage space of the cloud server is managed by this way, the index of the video data is stored separately, so that when the video data is searched, the video data can be located quickly by the index, the search or traversal speed of the data is improved, the storage capacity of the video data is stored separately, so that the video data can be compared with the preset storage space quickly, rather than determining whether a storage space exists by traversing all the storage data in the cloud server to store new video data, by the method, the data processing efficiency can be improved, and the service experience of the user can be improved by managing the cloud server in the method.
In addition, it should be noted that the video data is generally formed by multiple frames of images, the image capturing device generally captures images of the monitored area in real time, and if the data captured by the image capturing device is directly transmitted to the cloud server and the cloud server directly stores the data, the stored data may be image data rather than video data. In addition, under the condition that the image acquisition equipment is powered off or damaged, the cloud service may not be capable of receiving complete video data, and if the cloud server waits for the image acquisition equipment to continuously transmit data and stores the data after the requirements for forming a video are met, processing resources of the cloud server are wasted.
In view of the above situation, the cloud server according to the present application may store the video data after receiving the video data, if a video format of the video data conforms to a preset video transmission rule, and/or a transmission time of the video data exceeds a preset time interval. It should be noted that, if the video format of the video data is that 4 frames of images can constitute a video or data acquired by the image acquisition device within 2 seconds can constitute a video, the cloud server can first determine whether the video data transmitted by the image acquisition device meets the requirements, and if so, the video data is stored. In practical application, the cloud server may also perform a judgment according to a preset time interval, for example: the preset time interval is 5 seconds, the cloud server does not receive any data after receiving the data transmitted by the image acquisition equipment for 5 seconds, the data transmitted by the image acquisition equipment can be stored, the preset time interval can be set according to the performance of the cloud server, and can also be flexibly set according to the actual requirements of users, and the application is not particularly limited herein. In addition, the cloud service can determine whether to store data transmitted by the image acquisition device or not by judging whether the video format of the video data conforms to a preset video transmission rule or not and judging whether the transmission time of the video data exceeds a preset time interval or not.
In view of the above determination steps in receiving data, the video data may be processed with reference to fig. 5, the cloud server may receive the video data and determine whether the video data is completely received, and the determination may be performed according to the transmission time of the video format video data of the video data, which may not be described herein with reference to the above description. And if the receiving is complete, storing the video data and the index of the video data, recording the storage capacity of the video data, and if the receiving is not complete, continuously receiving the video data. When the video data are stored, whether the preset storage space of the cloud storage is exceeded or not is judged, if not, the video data are directly stored, and if yes, the video data to be deleted are deleted.
In an alternative embodiment, the attribute information of the video data may further include one or more of the following information: a storage path of the video data, a duration of the video data, and a type of the video data.
The storage path of the video data may indicate which link list or queue the video data is stored in which memory of the cloud server, the duration of the video data is also the time interval between the start time of the video data and the end time of the video data, and the type of the video data is also the spatial region monitored by the video or the specific content information of the video, for example, the video data is street monitoring, the video data is garage monitoring, the video data is dance, and the like, which is not specifically limited herein. The attribute information of the video data comprises the information, so that the video data which is responded can be inquired quickly, and the inquiry speed of the video data can be improved.
In an alternative mode, the cloud server may determine an index of the video data to be queried according to the first database; and determining the video data to be inquired according to the index of the video data to be inquired. By the method, the data query efficiency can be improved.
It should be noted that, when a user actually applies the cloud server provided in the present application to process data, the APP may be downloaded, or an applet and the like may be added to a software application to apply services provided by the cloud server in the present application. For example, an APP is downloaded in a mobile phone, an APP interface may be as shown in fig. 6, a user may query the current history of video data through the APP, when the user queries video data, a query instruction may be sent to the cloud server, and the cloud server may quickly query video data required by the user according to an index of the video data and feed the video data back to the user. Certainly, the user can also inquire the currently held storage space, and can also set a storage space management and control rule by himself, which video data can be deleted and which data cannot be deleted are marked, the information is synchronized to the cloud server, and the cloud server can update the video data management policy based on the information. When the storage space of the cloud server is insufficient, the user may also be reminded through the APP, and the user may also choose to pay a certain electronic resource to expand the storage space if the user does not want to delete the video data.
Based on the same concept, an embodiment of the present application provides a video data processing apparatus, as shown in fig. 7, including: a receiving unit 71, an index determining unit 72, a storage capacity determining unit 73, and a processing unit 74.
Wherein, the receiving unit 71 is configured to receive video data and store the video data; an index determining unit 72 for determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data; a storage capacity determining unit 73 for determining a storage capacity of the video data based on the index; a processing unit 74, configured to store the index into a first database of a cloud server and store the storage capacity into a second database of the cloud server if it is determined that the storage capacity does not exceed a preset storage space; or if the storage capacity is determined to exceed the preset storage space, deleting the video data corresponding to the identification information of the video data to be deleted.
It should be noted that, in the present application, after the cloud server receives the video data, an index of the video data is determined, the storage capacity of the video data is determined according to the index, and whether the storage capacity exceeds a preset storage space is judged, if not, the index is stored in the first database, the storage capacity is stored in the second database, if yes, the video data corresponding to the identification information of the video data to be deleted is deleted, when the storage space of the cloud server is managed by this way, the index of the video data is stored separately, so that when the video data is searched, the video data can be positioned quickly by the index, the search or traversal speed of the data is improved, the storage capacity of the video data is stored separately so as to be compared quickly with the preset storage space, rather than determining whether a storage space exists by traversing all the storage data in the cloud server to store new video data, by the method, the data processing efficiency can be improved, and the service experience of the user can be improved by managing the cloud server in the method.
In an optional manner, the attribute information of the video data further includes one or more of the following information: a storage path of the video data, a duration of the video data, and a type of the video data.
It should be noted that the storage path of the video data may indicate which link table or queue the video data is stored in which memory of the cloud server, the duration of the video data is also the time interval between the start time of the video data and the end time of the video data, and the type of the video data is also the spatial region monitored by the video or the specific content information of the video, for example, the video data is street monitoring, the video data is garage monitoring, the video data is dance, and the like, which is not specifically limited herein. The attribute information of the video data comprises the information, so that the video data which is responded can be inquired quickly, and the inquiry speed of the video data can be improved.
In an alternative manner, the identification information of the video data to be deleted is identification information of video data of a first time period, and the first time period is a time period before the current time. It should be noted that, the video data of the time period before the current time period (that is, the historical video data) may have a small influence on the user, and therefore, the video data may be deleted, and the time period before the current time period may be 1 month, 1 week, 2 months, and the like. By the method, the storage space of the cloud server can be fully and reasonably utilized.
In an optional manner, the identification information of the video data to be deleted is identification information of video data screened by the cloud service, and the identification information of the video data screened by the cloud service includes one or more of the following: the cloud server is marked, the cloud server is obtained from the second database, and the cloud server is determined by periodic scanning. It should be noted that the cloud server can automatically traverse the storage space at an idle time to screen out the identification information of the video data, and can delete the video data periodically, and also can delete the screened video data when judging that the storage space is insufficient after receiving new video data, and the storage space of the cloud server can be fully and reasonably utilized by the method.
In an alternative manner, the processing unit 74 may query the first database according to the identification information, and determine an index of the video data to be deleted; determining a storage path of the data to be deleted according to the index of the video data to be deleted; and deleting the video data to be deleted in the storage path of the data to be deleted. It should be noted that the cloud server may determine the index of the video data to be deleted by querying the first database, and based on the index of the video data to be deleted, may quickly locate the video data to be deleted, and delete the video data to be deleted, and by this means, the data processing efficiency may be improved.
In an optional manner, the apparatus further includes a query unit, where the query unit is configured to determine an index of the video data to be queried according to the first database; and determining the video data to be inquired according to the index of the video data to be inquired. By the method, the data query efficiency can be improved.
In an alternative manner, the receiving unit 71 may be used to receive video data; and if the video format of the video data accords with a preset video transmission rule and/or the transmission time of the video data exceeds a preset time interval, storing the video data. It should be noted that when the video format of the video data conforms to the preset video transmission rule, and/or the transmission time of the video data exceeds the preset time interval, the video data is stored, which can ensure that the data stored in the cloud server is more reliable.
Having described the video data processing method and apparatus in the exemplary embodiments of the present application, a computing device of another exemplary embodiment of the present application is described next.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to the present application may include at least one processor, and at least one memory. Wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of the video data processing method according to various exemplary embodiments of the present application described above in the present specification. For example, the processor may perform steps 301-306 as shown in FIG. 3.
The computing device 130 according to this embodiment of the present application is described below with reference to fig. 8. The computing device 130 shown in fig. 8 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present application. As shown in fig. 8, the computing device 130 is embodied in the form of a general purpose smart terminal. Components of computing device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 that connects the various system components (including the memory 132 and the processor 131).
In some possible embodiments, the aspects of the transaction data backup method provided by the present application may also be implemented in the form of a program product including a computer program for causing a computer device to perform the steps in the video data processing method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device. For example, the processor may perform steps 301-306 as shown in FIG. 3.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for three-dimensional visual repositioning of embodiments of the present application may employ a portable compact disc read-only memory (CD-ROM) and include a computer program, and may be run on a smart terminal. The program product of the present application is not so limited, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with a readable computer program embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A method of processing video data, comprising:
receiving video data;
determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data;
determining the storage capacity of the video data according to the index;
if the storage capacity does not exceed the preset storage space, storing the index into a first database of a cloud server, and storing the storage capacity into a second database of the cloud server;
and if the storage capacity is determined to exceed the preset storage space, deleting the video data corresponding to the identification information of the video data to be deleted.
2. The method of claim 1, wherein the attribute information of the video data further comprises one or more of the following information: a storage path of the video data, a duration of the video data, and a type of the video data.
3. The method according to claim 1, wherein the identification information of the video data to be deleted is identification information of video data of a first time period, and the first time period is a time period before a current time.
4. The method according to claim 1 or 3, wherein the identification information of the video data to be deleted is identification information of video data screened by the cloud service, and the identification information of the video data screened by the cloud service includes one or more of the following: the cloud server is marked, the cloud server is obtained from the second database, and the cloud server is determined by periodic scanning.
5. The method according to any one of claims 1-3, wherein the deleting the video data corresponding to the identification information comprises:
inquiring the first database according to the identification information, and determining the index of the video data to be deleted;
determining a storage path of the data to be deleted according to the index of the video data to be deleted;
and deleting the video data to be deleted in the storage path of the data to be deleted.
6. The method according to any one of claims 1-3, further comprising:
determining an index of video data to be queried according to the first database;
and determining the video data to be inquired according to the index of the video data to be inquired.
7. The method according to any of claims 1-3, wherein after receiving the video data, further comprising:
and if the video format of the video data conforms to a preset video transmission rule and/or the transmission time of the video data exceeds a preset time interval, storing the video data.
8. A video data processing apparatus, comprising:
a receiving unit for receiving video data;
an index determining unit for determining an index of the video data; the index indicates attribute information of the video data; the attribute information includes: the storage capacity of the video data and the identification information of the video data;
a storage capacity determination unit configured to determine a storage capacity of the video data according to the index;
the processing unit is used for storing the index into a first database of a cloud server and storing the storage capacity into a second database of the cloud server if the storage capacity is determined not to exceed a preset storage space; or if the storage capacity is determined to exceed the preset storage space, deleting the video data corresponding to the identification information of the video data to be deleted.
9. A computing device, comprising: a memory and a processor;
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 7 in accordance with the obtained program.
10. A computer storage medium storing computer-executable instructions for performing the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111440068.8A CN114205641A (en) | 2021-11-30 | 2021-11-30 | Video data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111440068.8A CN114205641A (en) | 2021-11-30 | 2021-11-30 | Video data processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114205641A true CN114205641A (en) | 2022-03-18 |
Family
ID=80649645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111440068.8A Pending CN114205641A (en) | 2021-11-30 | 2021-11-30 | Video data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114205641A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816275A (en) * | 2022-06-28 | 2022-07-29 | 广东欧谱曼迪科技有限公司 | Perfusion data storage method and device, electronic equipment and storage medium |
CN117201053A (en) * | 2023-04-03 | 2023-12-08 | 杭州水务数智科技股份有限公司 | Video security-based transmission and storage method and system |
CN117632953A (en) * | 2023-11-20 | 2024-03-01 | 广州致远电子股份有限公司 | Data cycle storage method, device, server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168434A (en) * | 2014-08-28 | 2014-11-26 | 深圳市银翔科技有限公司 | Video file storage, playing and management method |
CN110100243A (en) * | 2017-10-23 | 2019-08-06 | 深圳市锐明技术股份有限公司 | A kind of storage method of video data, device and terminal device |
CN110704486A (en) * | 2019-09-27 | 2020-01-17 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, system, storage medium and server |
CN113395487A (en) * | 2021-06-01 | 2021-09-14 | 平安科技(深圳)有限公司 | Video data storage management method and device, computer equipment and storage medium |
-
2021
- 2021-11-30 CN CN202111440068.8A patent/CN114205641A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168434A (en) * | 2014-08-28 | 2014-11-26 | 深圳市银翔科技有限公司 | Video file storage, playing and management method |
CN110100243A (en) * | 2017-10-23 | 2019-08-06 | 深圳市锐明技术股份有限公司 | A kind of storage method of video data, device and terminal device |
CN110704486A (en) * | 2019-09-27 | 2020-01-17 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, system, storage medium and server |
CN113395487A (en) * | 2021-06-01 | 2021-09-14 | 平安科技(深圳)有限公司 | Video data storage management method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
杨磊: "《网络视频监控技术》", vol. 9787565718748, 31 December 2017, 中国传媒大学出版社, pages: 102 - 106 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816275A (en) * | 2022-06-28 | 2022-07-29 | 广东欧谱曼迪科技有限公司 | Perfusion data storage method and device, electronic equipment and storage medium |
CN117201053A (en) * | 2023-04-03 | 2023-12-08 | 杭州水务数智科技股份有限公司 | Video security-based transmission and storage method and system |
CN117201053B (en) * | 2023-04-03 | 2024-05-07 | 杭州水务数智科技股份有限公司 | Video security-based transmission and storage method and system |
CN117632953A (en) * | 2023-11-20 | 2024-03-01 | 广州致远电子股份有限公司 | Data cycle storage method, device, server and storage medium |
CN117632953B (en) * | 2023-11-20 | 2024-07-16 | 广州致远电子股份有限公司 | Data cycle storage method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220269727A1 (en) | Processing data using containerized state-free indexing nodes in a containerized scalable environment | |
US11294941B1 (en) | Message-based data ingestion to a data intake and query system | |
US11003714B1 (en) | Search node and bucket identification using a search node catalog and a data store catalog | |
US11269939B1 (en) | Iterative message-based data processing including streaming analytics | |
CN114205641A (en) | Video data processing method and device | |
US11567993B1 (en) | Copying buckets from a remote shared storage system to memory associated with a search node for query execution | |
US11657057B2 (en) | Revising catalog metadata based on parsing queries | |
US11275733B1 (en) | Mapping search nodes to a search head using a tenant identifier | |
US11157497B1 (en) | Dynamically assigning a search head and search nodes for a query | |
CN108629029B (en) | Data processing method and device applied to data warehouse | |
CN111813573B (en) | Communication method of management platform and robot software and related equipment thereof | |
CN103312544B (en) | A kind of control terminal reports the method, apparatus and system of journal file | |
WO2019051948A1 (en) | Method, apparatus, server, and storage medium for processing monitoring data | |
CN112507029A (en) | Data processing system and data real-time processing method | |
US11874691B1 (en) | Managing efficient query execution including mapping of buckets to search nodes | |
US11687487B1 (en) | Text files updates to an active processing pipeline | |
CN113312161A (en) | Application scheduling method, platform and storage medium | |
US12013895B2 (en) | Processing data using containerized nodes in a containerized scalable environment | |
CN110321364B (en) | Transaction data query method, device and terminal of credit card management system | |
CN113392158A (en) | Service data processing method and device and data center | |
CN112883011B (en) | Real-time data processing method and device | |
CN110851473A (en) | Data processing method, device and system | |
CN102457578A (en) | Distributed network monitoring method based on event mechanism | |
CN113722276A (en) | Log data processing method, system, storage medium and electronic equipment | |
CN110807050B (en) | Performance analysis method, device, computer equipment and storage medium |
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 |