CN108600281B - Cloud storage system, media data storage method and system - Google Patents

Cloud storage system, media data storage method and system Download PDF

Info

Publication number
CN108600281B
CN108600281B CN201710158154.7A CN201710158154A CN108600281B CN 108600281 B CN108600281 B CN 108600281B CN 201710158154 A CN201710158154 A CN 201710158154A CN 108600281 B CN108600281 B CN 108600281B
Authority
CN
China
Prior art keywords
target
media data
image acquisition
network address
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710158154.7A
Other languages
Chinese (zh)
Other versions
CN108600281A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201710158154.7A priority Critical patent/CN108600281B/en
Publication of CN108600281A publication Critical patent/CN108600281A/en
Application granted granted Critical
Publication of CN108600281B publication Critical patent/CN108600281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The embodiment of the invention provides a cloud storage system, a media data storage method and a media data storage system. A media data storage method is applied to image acquisition equipment, wherein a first network address is prestored in the image acquisition equipment, and the first network address is an external access address of a cloud storage system; the method comprises the following steps: requesting a second network address from the cloud storage system based on the first network address; after the second network address is obtained, target media data to be stored are uploaded to the cloud storage system based on the second network address, so that: the cloud storage system stores the target media data and sends target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment. Therefore, the scheme can reduce the consumption of network bandwidth resources and improve the uploading efficiency of the media data.

Description

Cloud storage system, media data storage method and system
Technical Field
The invention relates to the technical field of video monitoring, in particular to a cloud storage system, a media data storage method and a media data storage system.
Background
With the development of times and science and technology, the video monitoring system has prominent effect. The image acquisition equipment is used as an important component of a video monitoring system and is already distributed in the streets and the alleys. For video monitoring, the quality of the image acquisition equipment plays a very important role; similarly, the storage of the media data acquired by the image acquisition device is also a crucial link in video monitoring, wherein the media data acquired by the image acquisition device includes a captured picture or a captured video.
In the prior art, a specific media data storage process is as follows: after the image acquisition equipment is registered to a platform server which is in charge of managing the image acquisition equipment, the platform server actively collects media data acquired by the image acquisition equipment, then the platform server requests a storage resource from a cloud storage system, and writes the media data collected from the image acquisition equipment into the cloud storage system after the storage resource is obtained through the request, so that the storage of the media data is completed.
However, since the media data storage process requires the platform server to transfer, both two stages of the media data storage process (i.e., the platform server collects the media data from the image acquisition device, and the platform server writes the collected media data into the cloud storage system) need to occupy network bandwidth resources, which results in more network bandwidth resource consumption; meanwhile, the uploading efficiency of massive media data in the image acquisition equipment is undoubtedly not high.
Disclosure of Invention
The embodiment of the invention aims to provide a cloud storage system, a media data storage method and a media data storage system, so as to reduce the consumption of network bandwidth resources and improve the uploading efficiency of media data. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a media data storage method, which is applied to an image acquisition device, where a first network address is stored in advance in the image acquisition device, and the first network address is an external access address of a cloud storage system; the method comprises the following steps:
requesting the cloud storage system to obtain a second network address based on the first network address; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment;
after the second network address is obtained, target media data to be stored are uploaded to the cloud storage system based on the second network address, so that: the cloud storage system stores the target media data and sends target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment; the target media data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data.
In a second aspect, an embodiment of the present invention provides a media data storage method, which is applied to a cloud storage system; the method comprises the following steps:
receiving a storage node allocation request sent by image acquisition equipment, wherein the storage node allocation request is sent by the image acquisition equipment based on a first network address stored in the image acquisition equipment, and the first network address is an external access address of a cloud storage system;
feeding back a second network address to the image capture device such that: after the image acquisition equipment obtains the second network address, target media data to be stored are uploaded to the cloud storage system based on the second network address; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment;
the target media data uploaded by the image acquisition equipment are stored, and target storage information corresponding to the target media data is sent to a platform server corresponding to the image acquisition equipment; the target media data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data.
In a third aspect, an embodiment of the present invention provides a media data storage system, including: the system comprises image acquisition equipment, a cloud storage system and a platform server corresponding to the image acquisition equipment, wherein a first network address is stored in the image acquisition equipment in advance, and the first network address is an external access address of the cloud storage system;
the image acquisition equipment is used for sending a storage node allocation request to the cloud storage system based on the first network address to obtain a second network address fed back by the cloud storage system; after the second network address is obtained, target media data to be stored are uploaded to the cloud storage system based on the second network address; wherein the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment;
the cloud storage system is used for receiving a storage node allocation request sent by the image acquisition equipment and feeding back the second network address to the image acquisition equipment; storing the target media data uploaded by the image acquisition equipment, and sending target storage information corresponding to the target media data to the platform server; the target media data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data;
the platform server is used for receiving the target storage information.
In a fourth aspect, an embodiment of the present invention further provides an image capturing apparatus, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device; the memory is used for storing executable program codes; the processor executes the executable program codes stored in the memory to execute the media data storage method provided by the embodiment of the invention.
In a fifth aspect, an embodiment of the present invention further provides a cloud storage system, including: a management node and a storage node; the management node is configured to receive a storage node allocation request sent by an image capturing device, and feed back a second network address to the image capturing device, so that: after the image acquisition equipment obtains the second network address, target media data to be stored are uploaded to the cloud storage system based on the second network address; the storage node allocation request is sent by the image acquisition device based on a first network address stored in the storage node allocation request, the first network address is an external access address of the management node, the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment;
the target storage node is used for storing the target media data uploaded by the image acquisition equipment and sending target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment; the target storage information is determined based on a storage position corresponding to the target media data.
In the scheme provided by the embodiment of the invention, the image acquisition equipment actively requests the cloud storage system to obtain the second network address of the target storage node, and after the second network address is obtained, the media data are stored to the target storage node based on the second network address. Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a media data storage method according to a first aspect of the present invention;
fig. 2 is another flowchart of a media data storage method according to a first aspect of the present invention;
fig. 3 is a flowchart of a media data storage method according to a second aspect of the embodiment of the present invention;
fig. 4 is another flowchart of a media data storage method according to a second aspect of the embodiment of the present invention;
FIG. 5 is a diagram illustrating a storage manner of media data and smart data according to an embodiment of the present invention;
FIG. 6 is a timing diagram illustrating a method for storing media data according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a media data storage system according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an application example of a media data storage system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an image capturing device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a cloud storage system according to an embodiment of the present invention.
Detailed Description
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, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, to solve the problems in the prior art, an embodiment of the present invention provides a media data storage method from the perspective of an image capture device.
The image capturing device is a device having an image capturing function. In a specific application, optionally, the image capturing device may be a snapshot machine, and may also be a network camera, which is not limited to this. It can be understood that the snapshot machine specifically refers to a photographic apparatus that can be started instantly to complete the setting of photographic parameters and perform high-speed shooting, and the lens of the snapshot machine is mostly a fixed-focus lens or a middle-focus lens with a small zooming range. Also, the media data captured by the image capture device may include, but is not limited to, pictures.
It should be emphasized that, in order to solve the problem in the prior art, in the embodiment of the present invention, the media data collected by the image collecting device is stored by the cloud storage system, and in the storage process, the image collecting device directly stores the media data into the cloud storage system, that is, in the storage process of the media data, the media data is not transferred by any transfer device. Based on the processing idea, in order to realize communication between the image acquisition device and the cloud storage system, a first network address is stored in the image acquisition device in advance, and the first network address is an external access address of the cloud storage system. It is understood that the cloud storage system may include at least one management node and at least one storage node, wherein the management node is used for managing the storage node, the storage node is used for storing data, and the specific physical form of the storage node may be a server form.
Specifically, the first network address may be an IP address and a port. Since the cloud storage system may have a plurality of nodes, in order to provide a service to the outside, optionally, the first network address may be a virtual network address, and may also be an actual network address of a node in the cloud storage system that provides access to the outside. In specific application, the first network address can be stored in a configuration file of the image acquisition equipment through WEB configuration of the image acquisition equipment; of course, the image capturing device may also be directly logged into the image capturing device in the background, and the configuration file of the image capturing device may be manually modified to record the first network address.
It is emphasized that, in a specific application, the cloud storage system is usually served externally by a plurality of nodes in a cluster manner, in this case, the first network address is a virtual network address, and the virtual network address may be provided by a cluster technology. For example: a cluster of 3 servers A, B, C; assuming that the actual IP of server a is 192.168.1.10, the actual IP of server B is 192.168.1.11, and the actual IP of server C is 10.192.1.12, then by clustering, a virtual IP and port-to-outside service is provided, e.g., the virtual IP is 10.192.1.100 and the port is 6021; therefore, the image acquisition equipment only needs to configure the virtual IP and the port into the image acquisition equipment for storage through WEB configuration of the image acquisition equipment, and the image acquisition equipment reads from the configuration file when the virtual IP and the port need to be used; of course, the virtual IP and the port may not be configured through WEB settings of the image capturing device, but may be directly logged in the image capturing device in the background, and the configuration file of the image capturing device is manually modified to record the virtual IP and the port.
As shown in fig. 1, a media data storage method provided by an embodiment of the present invention is applied to an image capturing device, and the method may include the following steps:
s101, requesting a cloud storage system to obtain a second network address based on the first network address; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment;
in this embodiment, the image capturing device may store its own media data in the cloud storage system in real time or at regular time, and since only the external access address of the cloud storage system is stored in the image capturing device, the cloud storage system needs to be requested to allocate a target storage node to the image capturing device in real time or at regular time.
In order to request the cloud storage system to allocate a target storage node to the image acquisition device, the image acquisition device may send a storage node allocation request to the cloud storage system after establishing a communication connection with the cloud storage system based on the first network address; furthermore, the cloud storage system may select a target storage node from the storage nodes included in the cloud storage system, and feed back an actual network address of the target storage node, that is, a second network address to the image acquisition device, where the second network address includes an IP address and a port. It should be emphasized that, when selecting the target storage node, the cloud storage system may select according to a load balancing policy, which is not limited to this.
It should be noted that, because the requested target storage node generally has a large storage capacity, once the target storage node is determined, the image capture device may upload media data to the target storage node multiple times. Based on the idea of uploading data to the same node for multiple times, a trigger time for requesting the cloud storage system to obtain the second network address may be set according to a specific application, for example: each time the image capturing device is started, or a predetermined point in time is reached, etc.
S102, after obtaining the second network address, uploading target media data to be stored to the cloud storage system based on the second network address, so that: the cloud storage system stores the target media data and sends target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment.
It is understood that the platform server determines a target URL (Uniform Resource Locator) corresponding to the target media data based on the target storage information, and stores the target URL; the target media data is stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage location corresponding to the target media data.
After the second network address is obtained, the image acquisition device may upload target media data to be stored to the cloud storage system in real time or in a timed manner based on the second network address, and the target media data is stored in the target storage node in the cloud storage system. The real-time storage means that the image acquisition device immediately performs storage after acquiring media data; the term "timed storage" specifically means that the image capturing device does not immediately perform storage after capturing media data, but stores all media data that are not currently stored when a predetermined time point is reached. It should be noted that, in the embodiment of the present invention, the target media data is media data that is acquired by the image acquisition device and is to be stored; in addition, the target storage node stores a specific storage form of the media data uploaded by the image acquisition device, which is not limited in the embodiment of the present invention.
After the cloud storage system stores the target media data, in order for a user to subsequently access the target media data through a platform server or a browser, the cloud storage system can determine target storage information based on a storage position corresponding to the target media data, and then send the target storage information to the platform server corresponding to the image acquisition device; furthermore, the platform server may determine a target URL corresponding to the target media data based on the target storage information, and store the target URL, so that a subsequent platform server or a browser may access the target media data through the target URL, where the access manner may include: download, delete, or lock.
Specifically, the storage location corresponding to the target media data may be a disk identifier and a disk offset of a disk where the target media data is located, an identifier of the target media data, and the like; the target storage information may be the target URL or a storage location corresponding to the target media data. When the target storage information is a storage location corresponding to the target media data, the platform server may generate and store a target URL corresponding to the target media data based on the storage location. In addition, when the target storage information is the target URL, that is, the cloud storage system generates the target URL corresponding to the target media data based on the storage location corresponding to the target media data, so that the platform server can directly store the target URL after receiving the target URL.
It should be noted that, a specific implementation of assembling the storage location corresponding to the target media data into a target URL is not limited herein, and the target URL includes the first network address for effective access. And, through the target URL stored by the platform server, the browser as an access end or the platform server may access the target media data, and as to a specific access process, the following description is given in an embodiment of a media data storage method provided from the perspective of a cloud storage system.
In the scheme provided by the embodiment of the invention, the image acquisition equipment actively requests the cloud storage system to obtain the second network address of the target storage node, and after the second network address is obtained, the media data are stored to the target storage node based on the second network address. Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Optionally, the image acquisition device may have an intelligent analysis function, so that the image acquisition device may perform intelligent analysis on the media data, and then store the intelligent data obtained after the intelligent analysis and the corresponding media data into the cloud storage system, so that the cloud storage system stores the media data and the intelligent data corresponding to the media data correspondingly, thereby improving richness of data stored in the cloud storage system and richness of accessible data of a subsequent access terminal. Based on the processing idea, in a specific implementation manner, the uploading target media data to be stored to the cloud storage system based on the second network address may include:
and uploading target media data and target intelligent data to be stored to the cloud storage system based on the second network address, wherein the target media data and the target intelligent data are stored in a target storage node in the cloud storage system, and the target intelligent data is data extracted from the target media data by the image acquisition equipment.
The data types of the smart data may include, but are not limited to: license plate number, vehicle color, face modeling model data, picture snapshot time information, picture lane geographical location information, and the like. Specifically, when the target media data is a picture including face information, the target intelligent data corresponding to the target media data may be at least one of face modeling model data and picture capturing time information, where specific contents of the face modeling data include, but are not limited to: face information. Specifically, when the target media data is a picture containing vehicle information, the target intelligent data corresponding to the target media data may be at least one of a license plate number, a vehicle color, picture snapshot time information, and picture lane geographical position information.
It should be emphasized that the above-described data types of the target smart data are merely examples, and should not be construed as limiting the embodiments of the present invention. In addition, the embodiment of the present invention does not limit the manner of extracting the intelligent data.
Optionally, when the image capturing device has an intelligent analysis function, the image capturing device may perform intelligent analysis on the media data, and send the intelligent data obtained after the intelligent analysis to the platform server corresponding to the image capturing device, so that the platform server stores the media data and the intelligent data corresponding to the media data correspondingly, thereby enriching the data stored by the platform server and enriching the subsequent available data. Based on the processing idea, the media data storage method may further include:
and sending target intelligent data to a platform server corresponding to the image acquisition equipment, so that the platform server correspondingly stores a target URL corresponding to the target media data and the target intelligent data after receiving the target intelligent data and determining the target URL, wherein the target intelligent data is data extracted from the target media data by the image acquisition equipment, and the target URL is determined by the platform server based on the target storage information.
Optionally, an embodiment of the present invention, in the first aspect, provides a media data storage method, which further includes:
and when the target media data are failed to be uploaded, retransmitting the target multimedia data to the cloud storage system according to a preset retransmission strategy.
Wherein, the failure of uploading the target media data may refer to: and receiving an uploading failure message fed back by the cloud storage system, or not receiving uploading result information fed back by the cloud storage system within a preset time. The uploading result information is uploading failure information or uploading success information.
It can be understood that, in the prior art, since the image acquisition device is in passive uploading, when the target media data is failed to be uploaded, only the next uploading opportunity is waited, which may result in overstocking of the media data, and especially when the uploading fails due to a failure of the back-end storage node, the back-end storage node cannot be quickly switched to other back-end storage nodes, and only the next acquisition opportunity is waited to perform the switching, which undoubtedly results in overstocking of the image acquisition device with the media data. In the embodiment of the invention, the image acquisition equipment actively uploads, so that when the uploading of the target media data fails, the target media data can be uploaded again according to a preset retransmission strategy to avoid backlog of the target media data.
Specifically, in a first specific implementation manner, the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy may include:
and returning to execute the step of uploading the target multimedia data to the cloud storage system based on the second network address.
In the first specific implementation manner, when the target media data is failed to be uploaded, the target multimedia data can be uploaded to the cloud storage system based on the second network address, so as to solve the problem of uploading failure caused by a network reason.
Specifically, in a second specific implementation manner, the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy may include:
and returning to execute the step of requesting the cloud storage system to obtain a second network address based on the first network address.
In the second specific implementation manner, when the target media data fails to be uploaded, a new target storage node may be requested from the cloud storage system, and the target media data is uploaded to the cloud storage system again based on the network address of the new target storage node, so as to solve the problem of uploading failure caused by any reason of network reasons and node failures.
It is emphasized that in a specific application, in order to ensure retransmission efficiency, the two specific implementations described above can be used in combination, for example: when the first uploading of the target media data fails, the retransmission method provided by the first specific implementation manner may be adopted, and when the second uploading of the target media data fails, the retransmission method provided by the second specific implementation manner may be adopted. Certainly, in the specific retransmission process, if the upload failure message fed back by the cloud storage system is received, it is usually indicated that the cloud storage system receives the target media data but the data is wrong, and at this time, the first specific implementation manner may be adopted; if the upload result information fed back by the cloud storage system is not received within the predetermined time, the cloud storage system may not receive the target media data due to a network reason, or the target storage node may fail to store the target media data due to a failure, and at this time, the retransmission may be implemented by combining the first specific implementation manner and the second specific implementation manner to ensure the data upload efficiency.
A media data storage method provided in the first aspect of the embodiments of the present invention is described below with reference to specific embodiments.
The cloud storage system comprises at least one management node and at least one storage node, wherein the management node is used for managing each storage node, and each storage node is used for storing data. Moreover, a first network address is preconfigured in the image acquisition device, and the first network address is specifically an external access address of a management node in the cloud storage system, where for a specific form and a specific configuration manner of the first network address, reference is made to the above embodiment, and details are not described here.
Optionally, the image capturing device may be a snapshot or a webcam, but is not limited thereto. Also, the media data captured by the image capture device may include, but is not limited to, pictures.
As shown in fig. 2, in a first aspect, an embodiment of the present invention provides a media data storage method applied to an image capture device, where the method may include the following steps:
s201, after establishing tcp (Transmission Control Protocol) connection with the management node based on the first network address, the image capture device sends a first http request message for requesting a storage node to the management node, so that: after receiving the first http request message, the management node determines a target storage node corresponding to the image acquisition device, and after determining the target storage node, feeds back a first http reply message carrying a second network address to the image acquisition device;
it should be noted that, when the image capturing device requests the management node to allocate a target storage node, the image capturing device may first detect whether a tcp connection is currently established with the management node, and when detecting that the tcp connection is not currently established with the management node, establish a tcp connection with the management node based on the first network address, and then send a request packet to the management node after the tcp connection is established. It can be understood that, in the TCP/IP protocol, the TCP protocol provides a reliable connection service, and a connection is established by three-way handshaking, so that a TCP connection established between the image acquisition device and the management node is a connection established by three-way handshaking, where a specific implementation process of establishing a TCP connection by three-way handshaking is not described herein. Wherein, the TCP/IP Protocol is the abbreviation of Transmission Control Protocol/Internet Protocol, and the Chinese translation name is Transmission Control Protocol/Internet Protocol.
Furthermore, after the image acquisition device establishes tcp connection with the management node, the image acquisition device may initiate an http request to the management node, that is, send a first http request message for requesting a storage node to the management node; and after the management node receives the first http request message, determining a target storage node corresponding to the image acquisition device, and after determining the target storage node, feeding back a first http reply message carrying a second network address to the image acquisition device.
The management node may determine a target storage node corresponding to the image capturing device from the plurality of storage nodes. Moreover, when determining the target storage node, a load balancing policy may be adopted, but is not limited thereto, and the criteria referred to by the load balancing policy include, but are not limited to: the storage space occupancy rate of the storage node, or the current load capacity of the storage node, and so on. In addition, the first http request message may carry information such as an encoder ID of the image capturing device, a system time of the image capturing device, and the like. It can be understood that the system time of the image acquisition device can reflect the timeliness of the first http request message, and after the management node receives the first http request message, whether the first http request message is overtime can be detected through the system time in the first http request message, and if the first http request message is overtime, the first http request message is not responded.
Optionally, since there may be several storage nodes in the cloud storage system, and the cloud storage system is not only used to store media data of each image capture device, a plurality of virtual resource pools may be constructed, each virtual resource pool being used to store a specific type of data content. Based on the processing idea, in the embodiment of the present invention, a storage node in the cloud storage system may belong to at least one virtual resource pool, and the image acquisition device further stores target ID information of a target virtual resource pool in advance, where the target virtual resource pool is a virtual resource pool for storing media data of the image acquisition device;
the first http request message carries the target ID information;
correspondingly, the step of determining, by the management node, a target storage node corresponding to the image capturing device may include:
the management node extracts the target ID information from the first http request message;
and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
The management node may select a target storage node corresponding to the image capturing device from storage nodes corresponding to the target virtual resource pool having the target ID information. Moreover, when selecting the target storage node, the management node may select the target storage node according to a load balancing policy, which is not limited to this.
It should be noted that the ID information of the virtual resource pool has uniqueness in the cloud storage system. Moreover, in a specific implementation manner, the virtual resource pools and the storage nodes may belong to a many-to-many relationship, that is, one virtual resource pool may belong to a plurality of storage nodes, and different storage spaces of one storage node may belong to different virtual resource pools. In another specific implementation manner, the virtual resource pools and the storage nodes may belong to a one-to-one correspondence relationship, that is, one storage node may uniquely correspond to one virtual resource pool.
For the case that the virtual resource pool and the storage node may belong to a many-to-many relationship, for example: assuming that the cloud storage system includes 3 storage nodes, and each storage node has a storage space of 500G, where the storage space of each storage node is divided into virtual resource pools, specifically, virtual resource pool a includes 500G of storage space in storage node 1, 100G of storage space in storage node 2, and 100G of storage space in storage node 3, virtual resource pool B includes 400G of storage space in storage node 2 and 200G of storage space in storage node 3, and virtual resource pool C includes 200G of storage space in storage node 3; and, the set data storage relationship is: the virtual resource pool A corresponds to image acquisition devices 1-100, the virtual resource pool B corresponds to image acquisition devices 101-200, and the virtual resource pool C corresponds to image acquisition devices 201-300. Based on such a corresponding relationship, for the image capturing device 100, an external access address of the cloud storage system, that is, a first network address, is pre-configured, and ID information of the virtual resource pool a is pre-configured, further, when the image capturing device 100 requests a management node for a target storage node, a first http request message sent to the management node carries the ID information of the virtual resource pool a, and after receiving the first http request message, the management node may select the target storage node corresponding to the image capturing device 100 from the storage nodes 1 to 3 included in the virtual resource pool a according to a load balancing policy.
For the case that the virtual resource pool and the storage node may belong to a one-to-one correspondence relationship, for example: suppose a cloud storage system comprises 10 storage nodes, wherein the storage nodes 1-3 are divided into a virtual resource pool named virtual resource pool a; the storage nodes 4-6 are partitioned into a virtual resource pool, named virtual resource pool B; the storage nodes 7-10 are divided into a virtual resource pool, named virtual resource pool C; and, the set data storage relationship is: the virtual resource pool A corresponds to image acquisition devices 1-100, the virtual resource pool B corresponds to image acquisition devices 101-200, and the virtual resource pool C corresponds to image acquisition devices 201-300. Based on such a corresponding relationship, for the image capturing device 100, an external access address of the cloud storage system, that is, a first network address, is pre-configured, and ID information of the virtual resource pool a is pre-configured, further, when the image capturing device 100 requests a management node for a target storage node, a first http request message sent to the management node carries the ID information of the virtual resource pool a, and after receiving the first http request message, the management node may select the target storage node corresponding to the image capturing device 100 from the storage nodes included in the virtual resource pool a according to a load balancing policy.
S202, receiving the first http reply message fed back by the management node, and extracting the second network address from the first http reply message;
the first http reply message may also carry system time of the management node, the system time of the management node may reflect timeliness of the first http response message, after the image acquisition device receives the first http reply message, it may be detected whether the first http reply message is overtime through the system time in the first http reply message, if overtime, the first http reply message may be discarded, and a step of sending the first http request message for requesting the storage node to the management node may be re-executed.
S203, after establishing tcp connection with the target storage node based on the second network address, sending a second http request message carrying target media data to be stored to the target storage node.
Correspondingly, the target storage node extracts the target media data from the second http request message and stores the target media data; after the target media data are stored, determining target storage information corresponding to the target media data, and after tcp connection is established with a platform server corresponding to the image acquisition device, sending a fourth http request message carrying the target storage information to the platform server, so that the platform server extracts the target storage information from the fourth http request message, determining a target URL corresponding to the target media data based on the target storage information, and storing the target URL.
It should be noted that, when the image capturing device uploads the media data to the target storage node, the image capturing device may first detect whether a tcp connection is currently established with the target storage node, and when detecting that the tcp connection is not currently established with the target storage node, establish a tcp connection with the target storage node based on the second network address, and further upload the media data to the target storage node after the tcp connection is established.
The second http request message may carry not only the target media data, but also an encoder ID of the image capturing device, target ID information of the target virtual resource pool, a timestamp of the target media data, a system time of the image capturing device, and the like. Specifically, an encoder ID of the image capturing device is used to identify the image capturing device; for the target ID information of the target resource pool, in the case that the virtual resource pool and the storage node belong to a many-to-many relationship, the target storage node may determine which storage space the target media data needs to be written into based on the target ID information of the target virtual resource pool; the timestamp of the target media data may be used to identify the target media data, and the system time of the image capture device may check whether the second http request message times out. In addition, the fourth http request message may further include: the timestamp information of the target media data, and further, the platform server may store a correspondence between the timestamp information of the target media data and the target URL.
In the TCP/IP protocol, the TCP protocol provides a reliable connection service, and a connection is established by three-way handshaking, so that the TCP connection established between the image capture device and the target storage node is the connection established by three-way handshaking, and a specific implementation process of establishing a TCP connection by three-way handshaking is not described herein. The specific content and relationship of the target URL, the target storage information, and the storage location corresponding to the target media data may refer to the content of the above embodiments, which is not described herein again.
It should be emphasized that when the image capturing device has an intelligent analysis function, the target media data and the target intelligent data to be stored may be uploaded to the cloud storage system, and then the second http request message also carries the target intelligent data, so that the target cloud storage system may correspondingly store the target media data and the target intelligent data. Optionally, in the second http request message, the target smart data may be located at a tail of the target media data, and the target smart data is identified by a specific identifier, so that the cloud storage system may identify the target smart data based on the specific identifier and store the target smart data corresponding to the target media data.
Optionally, in order to improve the media data uploading efficiency, the second HTTP request message may be a long connection type, that is, a connection in an HTTP protocol is set to be a keep-alive, so that after the target media data is uploaded, the image acquisition device does not need to close the tcp connection, and the tcp connection is directly multiplexed for the next uploading of the media data. It can be seen that the long and short connections of HTTP are essentially TCP long and short connections. That is, after requesting to obtain the second network address, when the target media data to be stored is uploaded for the first time, it is necessary to establish tcp connection with the target storage node based on the second network address, and then upload data to the target storage node after tcp connection is established; when the target media data to be stored is uploaded secondly, the tcp connection is not disconnected after the last uploading process is finished, so that the data can be directly uploaded to the target storage node.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
In a second aspect, to solve the problem in the prior art, from the perspective of a cloud storage system, an embodiment of the present invention provides a media data storage method.
It should be noted that the cloud storage system may include at least one management node and at least one storage node, where the management node is configured to manage the storage nodes, and the storage nodes are configured to store data, and a specific physical form of the storage nodes may be a server form. Moreover, the cloud storage system may correspond to an external access address, that is, a first network address, where the first network address is pre-stored in the image capture device. The first network address may be an IP address and a port number, and the configuration and specific form of the first network address refer to the above embodiments, which are not described herein again.
As shown in fig. 3, a media data storage method provided in an embodiment of the present invention is applied to a cloud storage system, and the method may include the following steps:
s301, receiving a storage node allocation request sent by image acquisition equipment; the storage node allocation request is sent by the image acquisition equipment based on a first network address stored in the storage node allocation request;
in order to request the cloud storage system to allocate a target storage node to the image acquisition device, the image acquisition device may send a storage node allocation request to the cloud storage system after establishing a communication connection with the cloud storage system based on the first network address; further, the cloud storage system may receive the storage node allocation request, and then perform a subsequent node allocation process.
It should be noted that, because the requested target storage node generally has a large storage capacity, once the target storage node is determined, the image capture device may upload media data to the target storage node multiple times. Based on the idea of uploading data to the same node for multiple times, a trigger time for requesting the cloud storage system to obtain the second network address may be set according to a specific application, that is, a time for sending a storage node allocation request to the cloud storage system, for example: the trigger timing may be each time the image capturing device is started, or a predetermined time point is reached, etc.
S302, feeding back a second network address to the image capturing device, so as to: after the image acquisition equipment acquires the second network address, target media data to be stored are uploaded to the cloud storage system based on the second network address; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment;
after receiving a storage node allocation request sent by the image acquisition equipment, the cloud storage system can select a target storage node from each storage node, and after the target storage node is determined, feeds a second network address, namely the network address of the target storage node back to the image acquisition equipment. Furthermore, after the image acquisition device obtains the second network address, the image acquisition device may upload target media data to be stored to the cloud storage system based on the second network address. It should be emphasized that, when selecting the target storage node, the cloud storage system may select according to a load balancing policy, which is not limited to this.
It should be noted that, after the second network address is obtained, the image capturing device may upload the target media data to be stored to the cloud storage system in real time or at regular time based on the second network address, where the definition of real-time storage and regular storage may refer to the above embodiments, which is not described herein again.
And S303, storing the target media data uploaded by the image acquisition equipment, and sending target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment.
As can be appreciated, the platform server determines a target URL corresponding to the target media data based on the target storage information, and stores the target URL corresponding to the target media data; the target media data is stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage location corresponding to the target media data.
The target storage node stores a specific storage form of the media data uploaded by the image acquisition device, which is not limited in the embodiment of the present invention.
After the cloud storage system stores the target media data, in order for a user to subsequently access the target media data through a platform server or a browser, the cloud storage system may determine target storage information based on a storage location corresponding to the target media data, and send the target storage information to a platform server corresponding to the image acquisition device, and further, the platform server determines a target URL corresponding to the target media data based on the target storage information, and stores the target URL, so that the subsequent platform server or browser may access the target media data through the target URL, where the access manner may include: download, delete, or lock.
Specifically, the storage location corresponding to the target media data may be a disk identifier and a disk offset of a disk where the target media data is located, an identifier of the media data, and the like; the target storage information may be the target URL or a storage location corresponding to the target media data. When the target storage information is a storage location corresponding to the target media data, the platform server may generate and store a target URL corresponding to the target media data based on the storage location. In addition, when the target storage information is the target URL, that is, the cloud storage system generates the target URL corresponding to the target media data based on the storage location corresponding to the target media data, so that the platform server can directly store the target URL after receiving the target URL.
It should be noted that, a specific implementation of assembling the storage location corresponding to the target media data into the target URL is not limited herein, and the target URL further includes the first network address for effective access. And, the browser as the access terminal or the platform server may access the target media data through the target URL stored by the platform server.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Optionally, the image acquisition device may have an intelligent analysis function, so that the image acquisition device may perform intelligent analysis on the media data, and then store the intelligent data obtained after the intelligent analysis and the corresponding media data in the cloud storage system, thereby improving the richness of the data stored in the cloud storage system and the richness of the accessible data of the subsequent access terminal. Based on the processing idea, the uploading, by the image acquisition device, the target media data to be stored to the cloud storage system based on the second network address may include:
the image acquisition equipment uploads target media data and target intelligent data to be stored to the cloud storage system based on the second network address; the target intelligent data is data extracted from the target media data by the image acquisition equipment;
correspondingly, the step of storing the target media data uploaded by the image capturing device may include:
and storing the target media data and the target intelligent data uploaded by the image acquisition equipment, wherein the target media data and the target intelligent data are stored in the target storage node in the cloud storage system.
A media data storage method provided by the second aspect of the embodiments of the present invention is described below with reference to specific embodiments.
The cloud storage system comprises at least one management node and at least one storage node, wherein the management node is used for managing each storage node, and the management node can be a node independent of the storage nodes or one of a plurality of storage nodes, that is, one storage node is used as both a storage node and a management node. Moreover, a first network address is preconfigured in the image acquisition device, and the first network address is specifically an external access address of a management node in the cloud storage system, where for a specific form and a specific configuration manner of the first network address, reference is made to the above embodiment, and details are not described here.
As shown in fig. 4, in a second aspect, an embodiment of the present invention provides a media data storage method applied to a cloud storage system, where the method may include the following steps:
s401, after the management node establishes tcp connection with the image acquisition equipment, receiving a first http request message sent by the image acquisition equipment and used for requesting allocation of a storage node;
wherein, the tcp connection between the management node and the image acquisition device is as follows: the image acquisition device requests establishment from the management node based on the first network address. The first http request message may carry information such as an encoder ID of the image capturing device, a system time of the image capturing device, and the like. It can be understood that the system time of the image acquisition device can reflect the timeliness of the first http request message, and after the management node receives the first http request message, whether the first http request message is overtime can be detected through the system time in the first http request message, and if the first http request message is overtime, the first http request message is not responded.
It can be understood that the image acquisition device actively establishes the tcp connection with the management node, and for the trigger time for establishing the tcp connection, that is, the time for requesting the cloud storage system for the second network address, reference is made to the contents in the above-mentioned scheme provided from the perspective of the image acquisition device, which is not described herein again. In addition, in the TCP/IP protocol, the TCP protocol provides a reliable connection service, and a connection is established by three-way handshaking, so that the TCP connection established between the image acquisition device and the management node is the connection established by the three-way handshaking, and a specific implementation process of establishing a TCP connection by the three-way handshaking is not described herein.
S402, the management node determines a target storage node corresponding to the image acquisition equipment;
the management node may determine a target storage node corresponding to the image capturing device from the plurality of storage nodes. Moreover, when selecting the target storage node, the management node may select by using a load balancing policy, which is not limited to this, where the criteria referred to by the load balancing policy include, but are not limited to: the storage space occupancy rate of the storage node, or the current load capacity of the storage node, and so on.
Optionally, since there may be several storage nodes in the cloud storage system, and the cloud storage system is not only used to store media data of each image capture device, a plurality of virtual resource pools may be constructed, each virtual resource pool being used to store a specific type of data content. Based on the processing idea, in the embodiment of the present invention, a storage node in the cloud storage system may belong to at least one virtual resource pool, and the image acquisition device further stores target ID information of a target virtual resource pool in advance, where the target virtual resource pool is a virtual resource pool for storing media data of the image acquisition device;
the first http request message carries the target ID information;
correspondingly, the step of determining, by the management node, a target storage node corresponding to the image capturing device includes:
the management node extracts the target ID information from the first http request message;
and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
It should be noted that the ID information of the virtual resource pool has uniqueness in the cloud storage system. Moreover, in a specific implementation manner, the virtual resource pools and the storage nodes may belong to a many-to-many relationship, that is, one virtual resource pool may belong to a plurality of storage nodes, and different storage spaces of one storage node may belong to different virtual resource pools. In another specific implementation manner, the virtual resource pools and the storage nodes may belong to a one-to-one correspondence relationship, that is, one storage node may uniquely correspond to one virtual resource pool. The management node may select a target storage node corresponding to the image capturing device from the target virtual resource pool corresponding to the target ID information. It should be noted that, when the management node selects the target storage node, a load balancing policy may be adopted for selection, which is not limited to this.
S403, after determining the target storage node, the management node feeds back a first http reply message carrying a second network address to the image acquisition device;
wherein the second network address is the network address of the target storage node.
The first http reply message may also carry system time of the management node, the system time of the management node may reflect timeliness of the first http response message, after the image acquisition device receives the first http reply message, it may be detected whether the first http reply message is overtime through the system time in the first http reply message, if overtime, the first http reply message may be discarded, and a step of sending the first http request message for requesting the storage node to the management node may be re-executed.
S404, after the target storage node establishes tcp connection with the image acquisition device, receiving a second http request message sent by the image acquisition device;
wherein, the second http request message carries target media data to be stored, and the tcp connection between the target storage node and the image acquisition device is as follows: the image acquisition device requests establishment from the target storage node based on the second network address.
S405, the target storage node extracts the target media data from the second http request message and stores the target media data;
in order to send target media data to a target storage node, the image acquisition device may construct a second http request message with the target media data to be stored, and further send the second http request message to the target storage node after tcp connection is established; accordingly, the target storage node extracts the target media data from the second http request message and stores the target media data.
The second http request message may carry not only the target media data, but also an encoder ID of the image capturing device, target ID information of the target virtual resource pool, a timestamp of the target media data, a system time of the image capturing device, and the like. Specifically, an encoder ID of the image capturing device is used to identify the image capturing device; for the target ID information of the target resource pool, in the case that the virtual resource pool and the storage node belong to a many-to-many relationship, the target storage node may determine which storage space the target media data needs to be written into based on the target ID information of the target virtual resource pool; the timestamp of the target media data may be used to identify the target media data, and the system time of the image capture device may check whether the second http request message times out.
It should be emphasized that, for the case that the image capturing device uploads the target media data and the target intelligent data to be stored to the cloud storage system, the second http request message may also carry the target intelligent data, so that the target cloud storage system may correspondingly store the target media data and the target intelligent data. Optionally, in the second http request message, the target smart data may be located at a tail of the target media data, and the target smart data is identified by a specific identifier, so that the cloud storage system may identify the target smart data based on the specific identifier and store the target smart data corresponding to the target media data. S406, after the tcp connection is established between the target storage node and the platform server corresponding to the image acquisition device, sending a fourth http request message carrying target storage information corresponding to the target media data to the platform server, so that the platform server extracts the target storage information from the fourth http request message, determines a target URL corresponding to the target media data based on the target storage information, and stores the target URL.
The target storage information is determined based on a storage position corresponding to the target media data.
After the target storage node stores the target media data, in order to enable a user to subsequently access the target media data through a platform server or a browser, the cloud storage system can determine target storage information based on a storage position corresponding to the target media data, and further send a fourth http request message carrying the target storage information to the platform server after tcp connection is established with the platform server corresponding to the image acquisition device; furthermore, the platform server may determine a target URL corresponding to the target media data based on the target storage information, and store the target URL, so that a subsequent platform server or a browser may access the target media data through the target URL, where the access manner may include: download, delete, or lock.
Specifically, the storage location corresponding to the target media data may be a disk identifier and a disk offset of a disk where the target media data is located, an identifier of the target media data, and the like; the target storage information may be the target URL or a storage location corresponding to the target media data. The specific content and relationship of the target storage information and the storage location corresponding to the target media data may refer to the content of the above embodiments, which is not described herein again. Similarly, the content of the above embodiment may be referred to as the relationship between the target URL and the target storage information, which is not described herein again.
It should be noted that, a specific implementation of assembling the storage location corresponding to the target media data into the target URL is not limited herein, and the target URL further includes the first network address for effective access. And, the browser as the access terminal or the platform server may access the target media data through the target URL stored by the platform server.
Optionally, in order to improve the media data uploading efficiency, the second HTTP request message may be a long connection type, that is, a connection in an HTTP protocol is set to be a keep-alive, so that after the target media data is uploaded, the image acquisition device does not need to close the tcp connection, and the tcp connection is directly multiplexed for the next uploading of the media data. It can be seen that the long and short connections of HTTP are essentially TCP long and short connections. That is, after requesting to obtain the second network address, when the target media data to be stored is uploaded for the first time, it is necessary to establish tcp connection with the target storage node based on the second network address, and then upload data to the target storage node after tcp connection is established; when the target media data to be stored is uploaded secondly, the tcp connection is not disconnected after the last uploading process is finished, so that the data can be directly uploaded to the target storage node.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Optionally, the media data storage method provided in the second aspect in the embodiment of the present invention may further include the following steps:
receiving a media data processing request sent by an access terminal based on a target URL; the access terminal is the platform server or a browser, and the target URL based on the browser is obtained from the platform server; the target URL is determined by the platform server based on the target storage information;
the media data processing request is redirected to the target storage node so that the target storage node can execute the processing operation corresponding to the media data processing request.
Since the target media data is stored in the target storage node, after receiving the media data processing request sent by the access terminal based on the target URL, the cloud storage system needs to redirect the media data processing request to the target storage node, so that the target storage node performs the processing operation corresponding to the media data processing request.
When the access terminal is a browser, the user can copy the target URL into an address input box of the browser, so that the browser sends a media data processing request. When the access terminal is a platform server, the platform server stores the target URL, so that the platform server can directly send a media data processing request based on the target URL when the target media data needs to be accessed.
The media data processing request may be: any one of a download request, a lock request, and a delete request. Correspondingly, when the media data processing request is a downloading request, the processing operation corresponding to the media data processing request is a downloading operation; when the media data processing request is a locking request, the processing operation corresponding to the media data processing request is a locking operation; when the media data processing request is a deletion request, the processing operation corresponding to the media data processing request is a deletion operation.
Specifically, the first network address is an external access address of a management node in the cloud storage system; the target URL comprises the first network address;
the step of receiving a media data processing request sent by the access terminal based on the target URL may include:
after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on the target URL; the tcp connection between the management node and the access terminal is: the access terminal requests to be established from the management node based on the first network address in the target URL;
accordingly, the step of redirecting the media data processing request to the target storage node to execute, by the target storage node, the processing operation corresponding to the media data processing request may include:
the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after the access terminal establishes tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data.
It should be noted that, a corresponding relationship between a node identifier of a storage node and a disk identifier of a disk included in the storage node may be pre-established in the management node, so that when the management node obtains the target URL by parsing, a node identifier corresponding to the disk identifier included in the target URL may be determined based on the corresponding relationship, and the determined node identifier is the node identifier of the target storage node, thereby determining the target storage node corresponding to the target URL.
Furthermore, the target media data stored in the target storage node has a correspondence with the target intelligent data; wherein the target intelligent data is data extracted from the target media data;
the target storage node performs a processing operation corresponding to the third http request message on the target media data, and may include:
the target storage node performs a processing operation corresponding to the third http request message on the target media data and the target smart data.
In an implementation manner, the image acquisition device may send the target media data and the target intelligent data to a cloud storage system, so that a target storage node in the cloud storage system may correspondingly store the target media data and the target intelligent data; of course, in another implementation manner, after the image acquisition device sends the target media data to the target storage node, the target storage node may intelligently analyze the data content of the target media data in the background to obtain the target intelligent data corresponding to the target media data. Furthermore, after the target storage node obtains the target media data and the target intelligent data, the target intelligent data and the target media data can be bound and stored together, that is, the target intelligent data and the target media data have a corresponding relationship, so that the corresponding target intelligent data can be found by finding the target media data, wherein the storage modes of the two types of data are as follows: storing smart data immediately after the target media data). For example: assuming that the target media data uploaded by the image acquisition device is picture 1 and picture 2, picture 1 corresponds to intelligent data 1, picture 2 corresponds to intelligent data 2, and the specific storage manner of pictures 1-2 and intelligent data 1-2 in the disk of the target storage node may be as shown in fig. 5.
When the access terminal requests to download the target media data, the target storage node can feed back the target media data and feed back the target intelligent data, so that the access terminal can display the target media data and utilize the target intelligent data to perform services such as retrieval or identification. Similarly, when the access terminal requests to delete the target media data, the target storage node may delete the target smart data at the same time as deleting the target media data. Similarly, when the access terminal requests to lock the target media data, the target storage node may lock the target smart data at the same time as locking the target media data.
For convenience of understanding, the timing diagram shown in fig. 6 shows a schematic flow chart of the media data storage method provided by the embodiment of the present invention from the perspective of interaction among the snapshot machine, the management node, the target storage node, and the platform server, where the media data is a picture that is snapshot by the snapshot machine. It should be emphasized that, in the timing diagram, when the management node feeds back the first http reply message to the snapshot machine, the tcp connection may be immediately disconnected, or the tcp connection may not be immediately disconnected, and whether the tcp connection is immediately disconnected or not mainly depends on whether the first http request message belongs to a long connection type; similarly, after the target storage node feeds back the second http reply message to the snapshot machine, the tcp connection may be immediately disconnected, or the tcp connection may not be immediately disconnected, and whether the tcp connection is immediately disconnected or not mainly depends on whether the second http request message belongs to the long connection type.
In a third aspect, corresponding to the method embodiments provided above, an embodiment of the present invention further provides a media data storage system, as shown in fig. 7, where the media data storage system may include: the system comprises image acquisition equipment 710, a cloud storage system 720 and a platform server 730 corresponding to the image acquisition equipment, wherein a first network address is stored in the image acquisition equipment in advance, and the first network address is an external access address of the cloud storage system;
the image acquisition device 710 is configured to send a storage node allocation request to the cloud storage system based on the first network address, and obtain a second network address fed back by the cloud storage system; after the second network address is obtained, target media data to be stored are uploaded to the cloud storage system based on the second network address; wherein, the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment;
the cloud storage system 720 is configured to receive a storage node allocation request sent by the image capturing device 710, and feed back the second network address to the image capturing device; moreover, the target media data uploaded by the image capturing device 710 is stored, and target storage information corresponding to the target media data is sent to the platform server 730; the target media data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data;
the platform server 730 is used for receiving the target storage information.
After receiving the target storage information, the platform server may determine a target URL corresponding to the target media data based on the target storage information, and store the target URL corresponding to the target media data.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Specifically, the first network address is an external access address of a management node in the cloud storage system;
based on the first network address, the image acquisition device 710 sends a storage node allocation request to the cloud storage system, and obtains a second network address fed back by the cloud storage system, specifically:
after establishing tcp connection with the management node based on the first network address, the image acquisition device 710 sends a first http request message for requesting a storage node to the management node, further receives the first http reply message fed back by the management node, and extracts a second network address from the first http reply message;
the cloud storage system 720 receives the storage node allocation request sent by the image acquisition device, and feeds back the second network address to the image acquisition device, specifically:
after establishing tcp connection with the image acquisition device 710, the management node receives a first http request message sent by the image acquisition device to request allocation of a storage node, determines a target storage node corresponding to the image acquisition device, and feeds back a first http reply message carrying the second network address to the image acquisition device after determining the target storage node.
Optionally, the storage node in the cloud storage system belongs to at least one virtual resource pool, and the image capturing device 10 further stores target ID information of a target virtual resource pool in advance, where the target virtual resource pool is a virtual resource pool for storing media data of the image capturing device;
the first http request message carries the target ID information;
the management node determines a target storage node corresponding to the image acquisition device, and specifically includes:
the management node extracts the target ID information from the first http request message;
and selecting a target storage node corresponding to the image acquisition device 710 from the storage nodes corresponding to the target virtual resource pool with the target ID information.
Specifically, the image capturing device 710 uploads the target media data to be stored to the cloud storage system 720 based on the second network address, specifically:
after tcp connection is established with the target storage node based on the second network address, sending a second http request message carrying target media data to be stored to the target storage node;
the cloud storage system 720 stores the target media data uploaded by the image acquisition device, and sends target storage information corresponding to the target media data to the platform server 730, specifically:
after establishing tcp connection with the image acquisition device, the target storage node receives a second http request message sent by the image acquisition device;
extracting the target media data from the second http request message, and storing the target media data;
after the target media data is stored, determining target storage information corresponding to the target media data, and after tcp connection is established with a platform server corresponding to the image acquisition device, sending a fourth http request message carrying the target storage information to the platform server;
the platform server 730 receives the target storage information, specifically:
the platform server 730 receives the fourth http request message, and extracts the target storage information from the fourth http request message.
Optionally, the image capturing device 710 uploads target media data to be stored to the cloud storage system 720 based on the second network address, specifically:
uploading target media data to be stored and target intelligent data to the cloud storage system 720 based on the second network address, wherein the target intelligent data is data extracted from the target media data by the image acquisition device;
the cloud storage system 720 stores the target media data uploaded by the image acquisition device, specifically:
and storing the target media data and the target intelligent data uploaded by the image acquisition device 710, wherein the target media data and the target intelligent data are stored in a target storage node in the cloud storage system.
Optionally, the image capturing device 710 is further configured to send target intelligent data to a platform server corresponding to the image capturing device, where the target intelligent data is data extracted from the target media data by the image capturing device;
the platform server 730 is specifically configured to, after receiving the target intelligent data and determining a target URL, correspondingly store the target URL corresponding to the target media data and the target intelligent data, where the target URL is determined by the platform server based on the target storage information.
Optionally, the cloud storage system 720 is further configured to:
receiving a media data processing request sent by an access terminal based on the target URL; wherein, the access terminal is the platform server or browser, and the target URL based on the browser is obtained from the platform server 730;
the media data processing request is redirected to the target storage node so that the target storage node can execute the processing operation corresponding to the media data processing request.
Specifically, the first network address is an external access address of a management node in the cloud storage system 720; the target URL comprises the first network address;
the cloud storage system 720 receives a media data processing request sent by an access terminal based on the target URL, specifically:
after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on the target URL; the tcp connection between the management node and the access terminal is: the access terminal requests to be established from the management node based on the first network address in the target URL;
correspondingly, the cloud storage system 720 redirects the media data processing request to the target storage node, so that the target storage node executes the processing operation corresponding to the media data processing request, specifically:
the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after the access terminal establishes tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data.
Optionally, the target media data stored in the target storage node has a correspondence with target intelligent data; wherein the target intelligent data is extracted from the target media data;
the target storage node performs a processing operation corresponding to the third http request message on the target media data, specifically:
the target storage node performs a processing operation corresponding to the third http request message on the target media data and the target smart data.
Optionally, the image capturing device 710 is further configured to:
and when the target media data are failed to be uploaded, retransmitting the target multimedia data to the cloud storage system according to a preset retransmission strategy.
Specifically, in a specific implementation manner, the image capturing device retransmits the target multimedia data to the cloud storage system 720 according to a predetermined retransmission policy, specifically:
and returning to execute the step of uploading the target multimedia data to the cloud storage system based on the second network address.
Specifically, in a specific implementation manner, the image capturing device 710 retransmits the target multimedia data to the cloud storage system 720 according to a predetermined retransmission policy, specifically:
and returning to execute the step of requesting the cloud storage system 720 for obtaining the second network address based on the first network address.
It should be noted that, for the embodiment of the media data storage system provided by the embodiment of the present invention, since the contents of the related method are based on the method embodiments similar to the foregoing method embodiments, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiments.
In addition, for convenience of understanding of the solution, fig. 8 is a schematic structural diagram of an application example of the media data storage system provided by the embodiment of the invention. As shown in fig. 8, the media data storage system provided in the embodiment of the present invention includes a platform server, a snapshot machine, and a cloud storage system, where the cloud storage system includes a plurality of storage nodes and a management node, and the storage nodes are divided into a virtualized resource pool; specifically, the basic process of storing pictures by the media data storage system shown in fig. 8 is as follows: (1) the snapshot machine shoots pictures and writes the pictures into a cloud storage system; (2) the cloud storage system returns the URL address of the picture storage to the platform server; (3) and the platform server writes the URL address of the picture storage into a database. It can be seen that, when the media data storage system described in fig. 8 stores pictures, a direct storage manner is adopted, which avoids the phenomenon that a platform server is transferred to a cloud storage system, and therefore, the consumption of network bandwidth resources can be reduced and the media data uploading efficiency can be improved.
In a fourth aspect, corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an image capturing apparatus, as shown in fig. 9, where the image capturing apparatus may include: the system comprises a shell 910, a processor 920, a memory 930, a circuit board 940 and a power circuit 950, wherein the circuit board 940 is arranged inside a space enclosed by the shell 910, and the processor 920 and the memory 930 are arranged on the circuit board 940; a power supply circuit 950 for supplying power to each circuit or device; memory 930 is used to store executable program code; the processor 920 executes the executable program codes stored in the memory to perform the media data storage method provided by the embodiment of the present invention; the media data storage method comprises the following steps:
requesting a cloud storage system to obtain a second network address based on a pre-stored first network address; the first network address is an external access address of a cloud storage system, the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and used for storing media data of the image acquisition equipment;
after the second network address is obtained, target media data to be stored are uploaded to the cloud storage system based on the second network address, so that: the cloud storage system stores the target media data and sends target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment; the target media data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data.
The image capturing device is a device with a photographing function, and in a specific application, the image capturing device may be a snapshot machine or a network camera, which is not limited to this. Also, the media data collected by the image capture device includes, but is not limited to, pictures.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Optionally, the first network address is specifically an external access address of a management node in the cloud storage system;
the step of requesting the cloud storage system for obtaining a second network address based on the first network address includes:
after establishing a tcp (transmission control protocol) connection with the management node based on the first network address, sending a first http request message for requesting a storage node to the management node, so that: after receiving the first http request message, the management node determines a target storage node corresponding to the image acquisition device, and after determining the target storage node, feeds back a first http reply message carrying a second network address to the image acquisition device;
and receiving the first http reply message fed back by the management node, and extracting the second network address from the first http reply message.
Optionally, a storage node in the cloud storage system belongs to at least one virtual resource pool, and the image acquisition device also stores target ID information of a target virtual resource pool in advance, where the target virtual resource pool is a virtual resource pool for storing media data of the image acquisition device;
the first http request message carries the target ID information;
correspondingly, the step of determining, by the management node, a target storage node corresponding to the image capturing device includes:
the management node extracts the target ID information from the first http request message;
and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
Optionally, the step of uploading target media data to be stored to the cloud storage system based on the second network address includes:
after tcp connection is established with the target storage node based on the second network address, sending a second http request message carrying target media data to be stored to the target storage node;
correspondingly, the step of storing the target media data by the cloud storage system and sending target storage information corresponding to the target media data to the platform server corresponding to the image acquisition device includes:
the target storage node extracts the target media data from the second http request message and stores the target media data;
and after the target media data are stored, determining target storage information corresponding to the target media data, and after tcp connection is established with a platform server corresponding to the image acquisition equipment, sending a fourth http request message carrying the target storage information to the platform server.
Optionally, the step of uploading target media data to be stored to the cloud storage system based on the second network address includes:
and uploading target media data and target intelligent data to be stored to the cloud storage system based on the second network address, wherein the target media data and the target intelligent data are stored in a target storage node in the cloud storage system, and the target intelligent data is data extracted from the target media data by the image acquisition equipment.
Optionally, the media data storage method further includes:
sending target intelligent data to a platform server corresponding to the image acquisition equipment, so that after the platform server receives the target intelligent data and determines a target URL, the target URL corresponding to the target media data and the target intelligent data are correspondingly stored, wherein the target intelligent data are data extracted from the target media data by the image acquisition equipment; wherein the target URL is determined based on the target storage information.
Optionally, the media data storage method further includes:
and when the target media data are failed to be uploaded, retransmitting the target multimedia data to the cloud storage system according to a preset retransmission strategy.
Optionally, the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy includes:
and returning to the step of executing the step of uploading the target multimedia data to the cloud storage system based on the second network address.
Optionally, the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy includes:
and returning to execute the step of requesting the cloud storage system to obtain a second network address based on the first network address.
Optionally, the target storage information is the target URL; or, the target storage information is the storage location.
It should be noted that, for the embodiment of the image capturing apparatus provided in the embodiment of the present invention, since the content of the method related thereto is based on the method embodiment similar to the foregoing method embodiment, the description is relatively simple, and relevant points can be referred to the partial description of the method embodiment.
In a fifth aspect, corresponding to the foregoing method embodiment, an embodiment of the present invention provides a cloud storage system, as shown in fig. 10, where the cloud storage system includes: a management node 1010 and a storage node 1020; wherein the content of the first and second substances,
the management node 1010 is configured to receive a storage node allocation request sent by an image capturing device, and feed back a second network address to the image capturing device, so that: after the image acquisition equipment obtains the second network address, target media data to be stored are uploaded to the cloud storage system based on the second network address; the storage node allocation request is sent by the image acquisition device based on a first network address stored in the storage node allocation request, the first network address is an external access address of the management node, the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment;
the target storage node is used for storing the target media data uploaded by the image acquisition equipment and sending target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment; the target storage information is determined based on a storage position corresponding to the target media data.
Therefore, the media data of the image acquisition equipment are stored in a direct storage mode, and the phenomenon that the media data are transferred to a cloud storage system from a platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.
Optionally, the management node 1010 receives a storage node allocation request sent by the image acquisition device, specifically:
after establishing a tcp (transmission control protocol) connection between the management node 1010 and the image acquisition device, receiving a first http request message sent by the image acquisition device and used for requesting allocation of a storage node; the tcp connection between the management node and the image acquisition device is as follows: the image acquisition equipment requests establishment to the management node based on the first network address;
correspondingly, the management node 1010 feeds back a second network address to the image capturing device, specifically:
the management node determines a target storage node corresponding to the image acquisition equipment;
and after the target storage node is determined, feeding back a first http reply message carrying a second network address to the image acquisition equipment.
Optionally, a storage node in the cloud storage system belongs to at least one virtual resource pool, and the image acquisition device also stores target ID information of a target virtual resource pool in advance, where the target virtual resource pool is a virtual resource pool for storing media data of the image acquisition device;
the first http request message carries the target ID information;
the management node 1010 determines a target storage node corresponding to the image acquisition device, specifically:
the management node 1010 extracts the target ID information from the first http request message;
and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
Optionally, the target storage node stores the target media data uploaded by the image acquisition device, and specifically includes:
after establishing tcp connection with the image acquisition device, the target storage node receives a second http request message sent by the image acquisition device, where the second http request message carries target media data to be stored; wherein the tcp connection between the target storage node and the image acquisition device is: the image acquisition equipment requests establishment to the target storage node based on the second network address;
extracting the target media data from the second http request message, and storing the target media data;
correspondingly, the target storage node sends the target storage information corresponding to the target media data to the platform server corresponding to the image acquisition device, specifically:
and after the tcp connection is established between the target storage node and the platform server corresponding to the image acquisition device, sending a fourth http request message carrying target storage information corresponding to the target media data to the platform server.
Optionally, the uploading, by the image acquisition device, target media data to be stored to the cloud storage system based on the second network address includes:
the image acquisition equipment uploads target media data and target intelligent data to be stored to the cloud storage system based on the second network address; the target intelligent data is data extracted from the target media data by the image acquisition equipment;
correspondingly, the target storage node stores the target media data uploaded by the image acquisition device, and specifically includes:
the target storage node stores the target media data and the target intelligent data uploaded by the image acquisition equipment, wherein the target media data and the target intelligent data are stored in the target storage node in the cloud storage system.
Optionally, the management node 1010 is further configured to:
receiving a media data processing request sent by an access terminal based on a target URL; the access terminal is the platform server or a browser, and the target URL based on the browser is obtained from the platform server; wherein the target URL is determined based on the target storage information;
redirecting the media data processing request to the target storage node to perform, by the target storage node, a processing operation corresponding to the media data processing request.
Optionally, the target URL includes the first network address;
the management node 1010 receives a media data processing request sent by an access terminal based on the target URL, specifically:
after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on the target URL, and the tcp connection between the management node and the access terminal is: the visiting end requests establishment from the management node based on a first network address in the target URL;
correspondingly, the management node redirects the media data processing request to the target storage node, so that the target storage node executes the processing operation corresponding to the media data processing request, specifically: the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after establishing tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data.
Optionally, the target media data stored in the target storage node has a correspondence with target intelligent data; wherein the target intelligent data is data extracted from the target media data;
the target storage node executes a processing operation corresponding to a third http request message on the target media data, specifically:
and the target storage node executes processing operation corresponding to the third http request message on the target media data and the target intelligent data.
It should be noted that, for the embodiment of the cloud storage system provided by the embodiment of the present invention, since the contents of the method related thereto are based on the method embodiments similar to those described above, the description is relatively simple, and for relevant points, reference may be made to part of the description of the method embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (19)

1. A media data storage method is characterized by being applied to image acquisition equipment, wherein a first network address is stored in the image acquisition equipment in advance, and the first network address is an external access address of a management node in a cloud storage system; the method comprises the following steps:
after establishing a tcp (transmission control protocol) connection with the management node based on the first network address, sending a first http request message for requesting a storage node to the management node, so that: after receiving the first http request message, the management node determines a target storage node corresponding to the image acquisition device, and after determining the target storage node, feeds back a first http reply message carrying a second network address to the image acquisition device, where the first http reply message carries the system time of the management node;
receiving the first http reply message fed back by the management node, and detecting whether the first http reply message is overtime or not based on the system time of the management node; if yes, discarding the first http reply message, and re-executing the step of sending a first http request message for requesting a storage node to the management node; if not, extracting the second network address from the first http reply message; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment;
after the second network address is obtained, target media data and target intelligent data to be stored are uploaded to the cloud storage system based on the second network address, so that: the cloud storage system stores the target media data and the target intelligent data and sends target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment; the target media data and the target intelligent data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data; the target intelligent data is data extracted from the target media data by the image acquisition equipment;
sending the target intelligent data to a platform server corresponding to the image acquisition equipment, so that the platform server correspondingly stores a target URL corresponding to the target media data and the target intelligent data after receiving the target intelligent data and determining a target Uniform Resource Locator (URL), wherein the target URL is determined by the platform server based on the target storage information;
the storage nodes in the cloud storage system belong to at least one virtual resource pool, target ID information of a target virtual resource pool is also stored in the image acquisition equipment in advance, and the target virtual resource pool is a virtual resource pool used for storing media data of the image acquisition equipment; the first http request message carries the target ID information; correspondingly, the step of determining, by the management node, a target storage node corresponding to the image capturing device includes:
the management node extracts the target ID information from the first http request message; and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
2. The method of claim 1, wherein the step of uploading the target media data and the target smart data to be stored to the cloud storage system based on the second network address comprises:
after a transmission control protocol tcp connection is established with the target storage node based on the second network address, sending a second http request message carrying target media data and target intelligent data to be stored to the target storage node;
correspondingly, the step of the cloud storage system storing the target media data and the target intelligent data and sending target storage information corresponding to the target media data to the platform server corresponding to the image acquisition device includes:
the target storage node extracts the target media data and the target intelligent data from the second http request message and stores the target media data and the target intelligent data;
and after the target media data are stored, determining target storage information corresponding to the target media data, and after tcp connection is established with a platform server corresponding to the image acquisition equipment, sending a fourth http request message carrying the target storage information to the platform server.
3. The method of claim 1, further comprising:
and when the target media data are failed to be uploaded, retransmitting the target media data to the cloud storage system according to a preset retransmission strategy.
4. The method of claim 3, wherein the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy comprises:
and returning to the step of uploading the target multimedia data and the target intelligent data to the cloud storage system based on the second network address.
5. The method of claim 3, wherein the step of retransmitting the target multimedia data to the cloud storage system according to a predetermined retransmission policy comprises:
and returning to execute the step of requesting the cloud storage system to obtain a second network address based on the first network address.
6. The method of claim 1, wherein the target storage information is the target URL; or, the target storage information is the storage location.
7. A media data storage method is characterized by being applied to a cloud storage system; the method comprises the following steps:
after a management node in a cloud storage system establishes a transmission control protocol (tcp) connection with an image acquisition device, receiving a first http request message for requesting allocation of a storage node, which is sent by the image acquisition device based on a first network address stored in the image acquisition device; the tcp connection between the management node and the image acquisition device is as follows: the image acquisition equipment requests to be established to the management node based on the first network address, wherein the first network address is an external access address of the management node;
the management node determines a target storage node corresponding to the image acquisition equipment; after the target storage node is determined, feeding back a first http reply message carrying a second network address to the image acquisition device, where the first http reply message carries the system time of the management node, so that: the image acquisition equipment detects whether the first http reply message is overtime or not based on the system time of the management node; if yes, discarding the first http reply message, and resending a first http request message for requesting a storage node to the management node, if not, extracting the second network address from the first http reply message; after the second network address is obtained, target media data and target intelligent data to be stored are uploaded to the cloud storage system based on the second network address; the second network address is a network address of a target storage node, and the target storage node is a storage node which is allocated by the cloud storage system for the image acquisition equipment and is used for storing media data of the image acquisition equipment; the target intelligent data is data extracted from the target media data by the image acquisition equipment;
storing the target media data and the target intelligent data uploaded by the image acquisition equipment, and sending target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment, so that the platform server receives the target storage information, and after receiving the target intelligent data sent by the image acquisition equipment and determining a target Uniform Resource Locator (URL), correspondingly storing a target URL corresponding to the target media data and the target intelligent data; the target media data and the target intelligent data are stored in the target storage node in the cloud storage system, the target storage information is determined based on a storage position corresponding to the target media data, and the target URL is determined by the platform server based on the target storage information;
the storage nodes in the cloud storage system belong to at least one virtual resource pool, target ID information of a target virtual resource pool is also stored in the image acquisition equipment in advance, and the target virtual resource pool is a virtual resource pool used for storing media data of the image acquisition equipment; the first http request message carries the target ID information; the step of determining, by the management node, a target storage node corresponding to the image capturing device includes:
the management node extracts the target ID information from the first http request message; and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
8. The method of claim 7, wherein the step of storing the target media data and the target smart data uploaded by the image capture device comprises:
after establishing tcp connection with the image acquisition device, the target storage node receives a second http request message sent by the image acquisition device, where the second http request message carries target media data to be stored and the target intelligent data; wherein the tcp connection between the target storage node and the image acquisition device is: the image acquisition equipment requests establishment to the target storage node based on the second network address;
extracting the target media data and the target intelligent data from the second http request message, and storing the target media data and the target intelligent data;
correspondingly, the step of sending the target storage information corresponding to the target media data to the platform server corresponding to the image acquisition device includes:
and after the tcp connection is established between the target storage node and the platform server corresponding to the image acquisition device, sending a fourth http request message carrying target storage information corresponding to the target media data to the platform server.
9. The method of claim 7, further comprising:
receiving a media data processing request sent by an access terminal based on a target URL; the access terminal is the platform server or a browser, and the target URL based on the browser is obtained from the platform server; wherein the target URL is determined by the platform server based on the target storage information;
redirecting the media data processing request to the target storage node to perform, by the target storage node, a processing operation corresponding to the media data processing request.
10. The method according to claim 9, wherein the first network address is specifically an external access address of a management node in the cloud storage system; the target URL comprises the first network address;
the step of receiving a media data processing request sent by the accessing terminal based on the target URL includes:
after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on a target URL, and the tcp connection between the management node and the access terminal is: the visiting end requests establishment from the management node based on a first network address in the target URL;
accordingly, the step of redirecting the media data processing request to the target storage node for execution by the target storage node of the processing operation corresponding to the media data processing request includes:
the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after establishing tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data.
11. The method of claim 10, wherein the target media data stored in the target storage node has a correspondence with target intelligence data; wherein the target intelligent data is data extracted from the target media data;
the target storage node performs processing operation corresponding to a third http request message on the target media data, and the processing operation includes:
and the target storage node executes processing operation corresponding to the third http request message on the target media data and the target intelligent data.
12. A media data storage system, comprising: the system comprises image acquisition equipment, a cloud storage system and a platform server corresponding to the image acquisition equipment, wherein a first network address is stored in the image acquisition equipment in advance, and the first network address is an external access address of a management node in the cloud storage system;
the image acquisition equipment is used for sending a first http request message for requesting a storage node to the management node after establishing a transmission control tcp connection with the management node based on the first network address, and receiving a first http reply message fed back by the management node, wherein the first http reply message carries the system time of the management node; receiving the first http reply message fed back by the management node, and detecting whether the first http reply message is overtime or not based on the system time of the management node; if yes, discarding the first http reply message, and re-executing the step of sending a first http request message for requesting a storage node to the management node; if not, extracting a second network address from the first http reply message; after the second network address is obtained, target media data and target intelligent data to be stored are uploaded to the cloud storage system based on the second network address; wherein the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment; the target intelligent data is data extracted from the target media data by the image acquisition equipment; the cloud storage system is used for receiving a first http request message which is sent by the image acquisition equipment and used for requesting allocation of a storage node after the management node establishes tcp connection with the image acquisition equipment, determining a target storage node corresponding to the image acquisition equipment, and feeding back a first http reply message carrying the second network address to the image acquisition equipment after the target storage node is determined; the target media data and the target intelligent data uploaded by the image acquisition equipment are stored, and target storage information corresponding to the target media data is sent to the platform server; the target media data and the target intelligent data are stored in the target storage node in the cloud storage system, and the target storage information is information determined based on a storage position corresponding to the target media data;
the image acquisition equipment is also used for sending the target intelligent data to a platform server corresponding to the image acquisition equipment;
the platform server is used for receiving the target storage information, and correspondingly storing a target URL corresponding to the target media data and the target intelligent data after receiving the target intelligent data and determining a target Uniform Resource Locator (URL), wherein the target URL is determined by the platform server based on the target storage information;
the storage nodes in the cloud storage system belong to at least one virtual resource pool, target ID information of a target virtual resource pool is also stored in the image acquisition equipment in advance, and the target virtual resource pool is a virtual resource pool used for storing media data of the image acquisition equipment; the first http request message carries the target ID information; the management node determines a target storage node corresponding to the image acquisition device, and specifically includes:
the management node extracts the target ID information from the first http request message; and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
13. The media data storage system according to claim 12, wherein the image capture device uploads target media data and target intelligent data to be stored to the cloud storage system based on the second network address, specifically:
after tcp connection is established with the target storage node based on the second network address, sending a second http request message carrying target media data and target intelligent data to be stored to the target storage node;
the cloud storage system stores the target media data and the target intelligent data uploaded by the image acquisition equipment, and sends target storage information corresponding to the target media data to the platform server, and the method specifically comprises the following steps:
after the target storage node establishes tcp connection with the image acquisition device, receiving a second http request message sent by the image acquisition device;
extracting the target media data and the target intelligent data from the second http request message, and storing the target media data and the target intelligent data;
after the target media data are stored, determining target storage information corresponding to the target media data, and after tcp connection is established with the platform server, sending a fourth http request message carrying the target storage information to the platform server; the platform server receives the target storage information, specifically:
and the platform server receives the fourth http request message and extracts the target storage information from the fourth http request message.
14. The media data storage system of claim 12, wherein the cloud storage system is further configured to:
receiving a media data processing request sent by an access terminal based on the target URL; the access terminal is the platform server or a browser, and the target URL based on the browser is obtained from the platform server;
redirecting the media data processing request to the target storage node to perform, by the target storage node, a processing operation corresponding to the media data processing request.
15. The media data storage system according to claim 14, wherein the first network address is specifically an external access address of a management node in the cloud storage system; the target URL comprises the first network address;
the cloud storage system receives a media data processing request sent by an access terminal based on the target URL, and specifically comprises the following steps:
after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on the target URL; the tcp connection between the management node and the access terminal is as follows: the visiting end requests establishment from the management node based on a first network address in the target URL;
correspondingly, the cloud storage system redirects the media data processing request to the target storage node, so that the target storage node executes the processing operation corresponding to the media data processing request, specifically:
the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after establishing tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data and the target intelligent data.
16. A cloud storage system, comprising: a management node and a storage node; wherein the content of the first and second substances,
the management node is used for receiving a first http request message which is sent by the image acquisition equipment and used for requesting allocation of a storage node after the management node establishes a transmission control protocol (tcp) connection with the image acquisition equipment; determining a target storage node corresponding to the image acquisition device, and after determining the target storage node, feeding back a first http reply message carrying a second network address to the image acquisition device, where the first http reply message carries the system time of the management node, so that: the image acquisition equipment detects whether the first http reply message is overtime or not based on the system time of the management node; if yes, discarding the first http reply message, and resending a first http request message for requesting a storage node to the management node, if not, extracting the second network address from the first http reply message; after the second network address is obtained, target media data and target intelligent data to be stored are uploaded to the cloud storage system based on the second network address; the tcp connection between the management node and the image acquisition device is as follows: the image acquisition equipment requests to be established from the management node based on a first network address; the storage node allocation request is sent by the image acquisition device based on a first network address stored in the storage node allocation request, the first network address is an external access address of the management node, the second network address is a network address of a target storage node, and the target storage node is: the cloud storage system is a storage node which is distributed by the image acquisition equipment and used for storing the media data of the image acquisition equipment; the target intelligent data is data extracted from the target media data by the image acquisition equipment;
the target storage node is used for storing the target media data and the target intelligent data uploaded by the image acquisition equipment, and sending target storage information corresponding to the target media data to a platform server corresponding to the image acquisition equipment, so that the platform server receives the target storage information, and after receiving the target intelligent data sent by the image acquisition equipment and determining a target Uniform Resource Locator (URL), correspondingly stores the target URL corresponding to the target media data and the target intelligent data; the target storage information is determined based on a storage position corresponding to the target media data, and the target URL is determined by the platform server based on the target storage information;
the storage nodes in the cloud storage system belong to at least one virtual resource pool, target ID information of a target virtual resource pool is also stored in the image acquisition equipment in advance, and the target virtual resource pool is a virtual resource pool used for storing media data of the image acquisition equipment; the first http request message carries the target ID information; the management node determines a target storage node corresponding to the image acquisition device, and specifically includes:
the management node extracts the target ID information from the first http request message; and selecting a target storage node corresponding to the image acquisition equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
17. The cloud storage system of claim 16, wherein the target storage node stores the target media data and target intelligent data uploaded by the image capture device, and specifically comprises:
after establishing tcp connection with the image acquisition device, the target storage node receives a second http request message sent by the image acquisition device, where the second http request message carries target media data and target intelligent data to be stored; wherein the tcp connection between the target storage node and the image acquisition device is: the image acquisition equipment requests establishment to the target storage node based on the second network address;
extracting the target media data and the target intelligent data from the second http request message, and storing the target media data and the target intelligent data;
correspondingly, the target storage node sends the target storage information corresponding to the target media data to the platform server corresponding to the image acquisition device, specifically:
and after the tcp connection is established between the target storage node and the platform server corresponding to the image acquisition device, sending a fourth http request message carrying target storage information corresponding to the target media data to the platform server.
18. The cloud storage system of claim 16, wherein the management node is further configured to: receiving a media data processing request sent by an access terminal based on a target URL; the access terminal is the platform server or a browser, and the target URL based on the browser is obtained from the platform server; wherein the target URL is determined by the platform server based on the target storage information;
redirecting the media data processing request to the target storage node to perform, by the target storage node, a processing operation corresponding to the media data processing request.
19. The cloud storage system of claim 18, wherein the target URL includes the first network address;
the management node receives a media data processing request sent by an access terminal based on the target URL, and specifically includes: after establishing tcp connection with the access terminal, the management node receives a third http request message sent by the access terminal for processing media data; wherein the third http request message is formed based on the target URL, and the tcp connection between the management node and the access terminal is: the visiting end requests establishment from the management node based on a first network address in the target URL;
correspondingly, the management node redirects the media data processing request to the target storage node, so that the target storage node executes the processing operation corresponding to the media data processing request, specifically: the management node analyzes the third http request message to obtain the target URL;
determining the target storage node corresponding to the target URL;
determining the second network address corresponding to the target storage node;
feeding back a third http reply message carrying the second network address to the access terminal, so as to: and after establishing tcp connection with the target storage node based on the second network address in the third http reply message, the access terminal sends the third http request message to the target storage node, and then the target storage node executes processing operation corresponding to the third http request message on the target media data and the target intelligent data.
CN201710158154.7A 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system Active CN108600281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710158154.7A CN108600281B (en) 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710158154.7A CN108600281B (en) 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system

Publications (2)

Publication Number Publication Date
CN108600281A CN108600281A (en) 2018-09-28
CN108600281B true CN108600281B (en) 2021-12-31

Family

ID=63632928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710158154.7A Active CN108600281B (en) 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system

Country Status (1)

Country Link
CN (1) CN108600281B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107118B (en) * 2018-10-26 2023-04-18 北京金山云网络技术有限公司 Picture access acceleration method, device, equipment, system and storage medium
CN110113629B (en) * 2019-04-22 2021-07-27 山西共致科技有限公司 Photo live broadcasting system and method thereof
CN111988348B (en) * 2019-05-22 2023-06-20 深圳顺丰泰森控股(集团)有限公司 Data acquisition method and Internet of vehicles control system
US11080479B2 (en) * 2019-07-31 2021-08-03 Plingo Media, Inc. Personalized multimedia messaging system
CN111399756B (en) * 2019-09-29 2024-01-02 杭州海康威视系统技术有限公司 Data storage method, data downloading method and device
CN115604218A (en) * 2021-06-28 2023-01-13 华为技术有限公司(Cn) Data processing system, method and switch
CN114501176A (en) * 2021-12-29 2022-05-13 深圳市海浦蒙特科技有限公司 Data acquisition method and device, data acquisition terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143204A (en) * 2010-11-26 2011-08-03 华为技术有限公司 Method, device and system for realizing reorientation of hypertext transfer protocol in content delivery network
CN102668518A (en) * 2011-12-02 2012-09-12 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines
CN105471869A (en) * 2015-11-23 2016-04-06 珠海全志科技股份有限公司 Internet television content request connection reuse method and system thereof
CN106301969A (en) * 2016-10-25 2017-01-04 广东亿迅科技有限公司 The management method of HTTP length link and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546823A (en) * 2012-02-18 2012-07-04 南京云创存储科技有限公司 File storage management system of cloud storage system
CN103023995B (en) * 2012-11-29 2015-09-09 中国电力科学研究院 A kind of distributed cloud based on Hadoop stores automatic classification data management system
CN104572344B (en) * 2013-10-29 2018-10-30 杭州海康威视系统技术有限公司 A kind of method and system of cloudy data backup
CN105025053A (en) * 2014-04-24 2015-11-04 苏宁云商集团股份有限公司 Distributed file upload method based on cloud storage technology and system
CN104184812B (en) * 2014-08-20 2017-08-11 霍尔果斯智融未来信息科技有限公司 A kind of multipoint data transmission method based on private clound
CN105162623B (en) * 2015-08-12 2019-01-25 深圳市瑞驰信息技术有限公司 A kind of cloud processing method and Cloud Server
CN105450997A (en) * 2015-12-15 2016-03-30 李哲 Cloud storage based video monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143204A (en) * 2010-11-26 2011-08-03 华为技术有限公司 Method, device and system for realizing reorientation of hypertext transfer protocol in content delivery network
CN102668518A (en) * 2011-12-02 2012-09-12 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines
CN105471869A (en) * 2015-11-23 2016-04-06 珠海全志科技股份有限公司 Internet television content request connection reuse method and system thereof
CN106301969A (en) * 2016-10-25 2017-01-04 广东亿迅科技有限公司 The management method of HTTP length link and system

Also Published As

Publication number Publication date
CN108600281A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108632305B (en) Cloud storage system, media data storage method and system
CN108600281B (en) Cloud storage system, media data storage method and system
CN108737476B (en) Cloud storage system, media data storage method and system
CN108737484B (en) Media data storage method and system
US7733808B2 (en) Peer-to-peer aided live video sharing system
US9432672B2 (en) Image compression method and system with image compression time information
EP1944944A1 (en) System and method for combining pull and push modes
CN107820043B (en) Control method, device and system of video monitoring system
KR101515977B1 (en) System for providing video information using IP camera in cloud configuration method thereof
CN106453683A (en) Method for centralized access management of cameras
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
CN113301299B (en) Multi-channel video transmission method, system, terminal and storage medium
CN109474684A (en) A kind of method, apparatus, terminal device and storage medium obtaining live video stream
WO2017219852A1 (en) Data information sharing method and apparatus, and terminal
US20210377323A1 (en) Method and system for responding to video call service
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN109510868A (en) A kind of method, apparatus that establishing P2P network, terminal device and storage medium
CN112632124A (en) Multimedia information acquisition method, device, system, storage medium and electronic device
CN108737477B (en) Cloud storage system, and media data balanced storage method and system
WO2014177058A1 (en) Transmission method and device for file data
CN110519400B (en) Method for realizing Internet of things platform for carrying out multi-inlet separation on equipment flow
CN113114704A (en) Video structured data one-way transmission method and device based on equipment attribute selection
CN110191346B (en) Cloud management method and device and computer readable storage medium
CN110209474B (en) Task processing method and device
CN106257461B (en) Data storage method and device

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