CN108632305B - 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
CN108632305B
CN108632305B CN201710157916.1A CN201710157916A CN108632305B CN 108632305 B CN108632305 B CN 108632305B CN 201710157916 A CN201710157916 A CN 201710157916A CN 108632305 B CN108632305 B CN 108632305B
Authority
CN
China
Prior art keywords
target
media data
image acquisition
network address
storage 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
CN201710157916.1A
Other languages
Chinese (zh)
Other versions
CN108632305A (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 CN201710157916.1A priority Critical patent/CN108632305B/en
Priority to PCT/CN2018/078685 priority patent/WO2018166415A1/en
Publication of CN108632305A publication Critical patent/CN108632305A/en
Application granted granted Critical
Publication of CN108632305B publication Critical patent/CN108632305B/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/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The embodiment of the invention provides a cloud storage system, a media data storage method and a media data storage system. The media data storage method is applied to image acquisition equipment and comprises the following steps: requesting a cloud storage system to obtain a second network address based on a pre-stored 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 distributed 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; wherein the target media data is stored in the target storage node in the cloud storage system. Therefore, the media data of the image acquisition equipment is stored in the direct storage mode, and the phenomenon that the media data are transferred to the rear-end storage node from the platform server is avoided, so that the consumption of network bandwidth resources can be reduced, and the media data uploading efficiency can be improved.

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 the field of video monitoring, the quality of image acquisition equipment plays a very important role; similarly, the storage of the media data collected by the image capturing device, including but not limited to pictures, is also a crucial link in video surveillance.
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; 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;
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 target media data is stored in the target storage node in the cloud storage system.
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; 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;
storing the target media data uploaded by the image acquisition equipment; wherein the target media data is stored in the target storage node in the cloud storage system.
In a third aspect, an embodiment of the present invention provides a media data storage system, including: the system comprises image acquisition equipment and a cloud storage system, 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; wherein the target media data is stored in the target storage node in the cloud storage system.
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 code stored in the memory to execute the media data storage method provided by the first aspect of the embodiment of the present 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; wherein the content of the first and second substances,
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.
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 first aspect of the present invention;
fig. 4 is a flowchart of a media data storage method according to a second aspect of the embodiment of the present invention;
fig. 5 is another flowchart of a media data storage method according to a second aspect of the embodiment of the present invention;
fig. 6 is a flowchart of a media data storage method according to a second aspect of the embodiment of the present invention;
FIG. 7 is a diagram illustrating a storage manner of media data and smart data according to an embodiment of the present invention;
FIG. 8 is a timing diagram illustrating a method for storing media data according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a media data storage system according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of an application example of a media data storage system according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an image capturing device according to an embodiment of the present invention;
fig. 12 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 problems in the prior art, in the embodiment of the present invention, the media data collected by the image capturing device is stored by the cloud storage system, and in the storage process, the image capturing device directly stores the media data into the cloud storage system, that is, the media data is not transferred by any transfer device in the storage process of the media data. 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 nodes, and the storage nodes are used for storing data, and the specific physical form of the storage nodes 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. Moreover, when the cloud storage system selects the target storage node, a load balancing strategy can be adopted for selection, and certainly, the cloud storage system 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 a 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 target media data is stored in the target storage node in the cloud storage system.
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 the target media data described in the embodiment of the present invention is media data that is acquired by the image acquisition device and is to be stored.
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.
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, after uploading the target media data to be stored to the cloud storage system based on the second network address, as shown in fig. 2, the media data storage method provided in the first aspect in the embodiment of the present invention may further include:
s103, receiving target storage information fed back by the cloud storage system; the target storage information is determined based on a storage position corresponding to the target media data;
s104, storing a target URL (Uniform Resource Locator) corresponding to the target media data to a platform server corresponding to the image acquisition equipment; wherein the target URL is information determined based on the target storage information.
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 then feed the target storage information back to the image acquisition device, so that the image acquisition device stores a target URL corresponding to the target media data to the platform server corresponding to the image acquisition device, and thus, the subsequent platform server or the 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 position corresponding to the target media data, the image acquisition equipment can directly send the storage position to the platform server, and then the platform server generates and stores a target URL corresponding to the target media data based on the storage position; of course, the image capturing device may also generate a target URL corresponding to the target media data based on the storage location, and then the image capturing device sends the target URL to the platform server, so that the platform server directly stores the target URL. 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 image capture device can forward the target URL to the platform server after receiving the target URL, and then the platform server stores the target URL.
It should be noted that, a specific implementation of assembling the storage locations 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, 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.
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 store the intelligent data obtained after the intelligent analysis and the URL of the corresponding media data to the platform server corresponding to the image capturing device, so that the platform server correspondingly stores the media data and the intelligent data corresponding to the media data, thereby enriching the data stored by the platform server and enriching the subsequent available data. Based on the processing idea, in another specific implementation manner, the step of saving the target URL corresponding to the target media data to the platform server corresponding to the image capturing device may include:
and storing a target URL corresponding to the target media data and target intelligent data to a platform server corresponding to the image acquisition equipment, wherein the target intelligent data is extracted from the target media data by the image acquisition equipment.
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 target storage information fed back by the cloud storage system within a preset time.
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 target storage 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, and at this time, the retransmission may be implemented by combining the first specific implementation manner and the second specific implementation manner, so as to ensure the data uploading 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. 3, in a first aspect, an embodiment of the present invention provides a media data storage method applied to an image capturing device, where the method may include the following steps:
s301, after establishing a 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: the management node determines a target storage node corresponding to the image acquisition equipment, and feeds back a first http reply message carrying a second network address to the image acquisition equipment after the target storage node is determined;
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 the management node selects the target storage node, a load balancing policy may be adopted, 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. 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 the target virtual resource pool corresponding to the target ID information. It should be emphasized that the management node may adopt a load balancing policy to select when selecting the target storage node, but 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 selects 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 selects 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.
S302, 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.
S303, 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, so as to: the target storage node extracts the target media data from the second http request message and stores the target media data;
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 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.
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.
S304, receiving a second http reply message fed back by the target storage node, wherein the second http reply message carries the target storage information;
s305, extracting the target storage information from the second http reply message;
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, target storage information can be determined based on the storage position of the target media data, and then a second http reply message carrying the target storage information is constructed and sent to the image acquisition device; correspondingly, after receiving the second http reply message fed back by the target storage node, the image acquisition device may extract the target storage information from the second http reply message. 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.
S306, storing the target URL corresponding to the target media data to the platform server corresponding to the image acquisition equipment.
The target URL is determined based on the target storage information, and the relationship between the target URL and the target storage information may refer to the content of the foregoing embodiment, which is not described herein again. Wherein the second http reply message may further include: the image acquisition device can further send the timestamp information of the target media data to the platform server, and the platform server stores the corresponding relation between the timestamp information of the target media data and the target URL.
It should be emphasized that, when the image capturing device has an intelligent analysis function, the target intelligent data may be extracted from the target media data, and the target URL and the target intelligent data corresponding to the target media data may be stored in the platform server corresponding to the image capturing device. Specifically, when the target storage information is a storage location corresponding to the target media data, the image acquisition device may directly send the storage location and the target intelligent data to the platform server, and then the platform server generates a target URL corresponding to the target media data based on the storage location, and correspondingly stores the target URL and the target intelligent data; of course, the image capturing device may also generate a target URL corresponding to the target media data based on the storage location, and then the image capturing device sends the target URL and the target intelligent data to the platform server, so that the platform server directly stores the target URL and the target intelligent data in a corresponding manner. 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 image capture device can send the target URL and the target intelligent data to the platform server after receiving the target URL, and then the platform server correspondingly stores the target URL and the target intelligent 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. 4, 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:
s401, 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.
S402, 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. When the cloud storage system selects the target storage node, a load balancing strategy can be adopted for selection, and the cloud storage system 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.
S403, storing the target media data uploaded by the image acquisition equipment; wherein the target media data is stored in the target storage node in the cloud storage system.
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.
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 acquisition device includes:
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.
Optionally, after the target media data uploaded by the image capturing device is stored, as shown in fig. 5, the media data storage method provided in the second aspect in the embodiment of the present invention may further include:
s404, feeding back target storage information to the image capturing apparatus so that: and after receiving the target storage information, the image acquisition equipment stores the target URL corresponding to the target media data to the platform server corresponding to the image acquisition equipment.
The target storage information is determined based on a storage location corresponding to the target media data, and the target URL is determined based on the target storage information.
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 then feed the target storage information back to the image acquisition device, so that the image acquisition device stores a target URL corresponding to the target media data to the platform server corresponding to the image acquisition device, and thus, 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. For the conversion relationship among the storage location of the target media data, the target storage information, and the target URL, refer to the above embodiments, which are not described herein again.
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. 6, 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:
s601, after the management node establishes tcp connection with the image acquisition device, receiving a first http request message sent by the image acquisition device 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.
S602, 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. And, the management node may select the target storage node by using a load balancing policy, 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.
S603, 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.
S604, 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.
S605, 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.
And S606, the target storage node feeds back a second http reply message to the image acquisition device, wherein the second http reply message carries target storage information.
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 access the target media data through a browser or a platform server, target storage information can be determined based on the storage position of the target media data, and then a second http reply message carrying the target storage information is constructed and sent to image acquisition equipment; correspondingly, after receiving a second http reply message fed back by the target storage node, the image acquisition device may extract the target storage information from the second http reply message, and store a target URL corresponding to the target media data to a platform server corresponding to the image acquisition device, where the target URL is information determined based on the target storage information.
Wherein the second http reply message may further include: the image acquisition device can further send the timestamp information of the target media data to the platform server, and the platform server stores the corresponding relation between the timestamp information of the target media data and the target URL. 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.
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 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;
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 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. 7.
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. 8 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 the timing chart, after receiving the target storage information, the snapshot machine directly forwards the target storage information to the platform server, and the platform server generates the target URL based on the target storage information, and of course, the snapshot machine may also generate the target URL based on the target storage information and then directly send the target URL to the platform server, where the target storage information may be the target URL or a storage location of the target media data.
In a third aspect, corresponding to the foregoing method embodiments, the embodiments of the present invention further provide a media data storage system, as shown in fig. 9, where the media data storage system includes: the system comprises an image acquisition device 910 and a cloud storage system 920, wherein a first network address is stored in the image acquisition device 910 in advance, and the first network address is an external access address of the cloud storage system 920;
the image acquisition device 910 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 is uploaded to the cloud storage system 920 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 920 is a storage node which is allocated by the image acquisition device and used for storing the media data of the image acquisition device 910;
the cloud storage system 920 is configured to receive a storage node allocation request sent by the image capturing device 910, and feed back the second network address to the image capturing device 910; and, store the target media data uploaded by the image capturing device 910; wherein the target media data is stored in the target storage node in the cloud storage system.
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 system may further include: the platform server corresponding to the image acquisition equipment;
the cloud storage system 920 is further configured to feed back target storage information to the image capturing device 910 after storing the target media data uploaded by the image capturing device 910;
the image capturing device 910 is further configured to receive the target storage information, and store a target URL corresponding to the target media data to a platform server corresponding to the image capturing device 910;
the target storage information is determined based on a storage location corresponding to the target media data, and the target URL is determined based on the target storage information.
Specifically, the first network address is an external access address of a management node in the cloud storage system;
the image acquisition device 910 sends a storage node allocation request to the cloud storage system based on the first network address, 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 910 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 920 receives the storage node allocation request sent by the image acquisition device 910, and feeds back the second network address to the image acquisition device 910, specifically:
after establishing tcp connection with the image acquisition device 910, the management node receives a first http request message sent by the image acquisition device 910 to request allocation of a storage 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 the second network address to the image acquisition device 910.
Optionally, the storage node in the cloud storage system 920 belongs to at least one virtual resource pool, and the image capturing 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 capturing device 910;
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 910 from the storage nodes corresponding to the target virtual resource pool with the target ID information. Specifically, the image capturing device 910 uploads target media data to be stored to the cloud storage system 920 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 920 stores the target media data uploaded by the image acquisition device, specifically:
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;
and extracting the target media data from the second http request message, and storing the target media data.
Specifically, the cloud storage system 920 feeds back target storage information to the image acquisition device, specifically:
the target storage node feeds back a second http reply message to the image acquisition equipment, wherein the second http reply message carries target storage information;
the image capturing device 910 receives the target storage information, specifically:
the image capturing device 910 receives the second http reply message fed back by the target storage node;
the target storage information is extracted from the second http reply message.
Optionally, the image capturing device 910 uploads the target media data to be stored to the cloud storage system based on the second network address, specifically: uploading target media data to be stored and target intelligent data to the cloud storage system 920 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 920 stores the target media data uploaded by the image acquisition device 910, specifically:
storing the target media data and the target intelligent data uploaded by the image acquisition device 910, 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 910 stores the target URL corresponding to the target media data to the platform server corresponding to the image capturing device, specifically:
and storing a target URL and target intelligent data corresponding to the target media data to a platform server corresponding to the image acquisition equipment, wherein the target intelligent data is data extracted from the target media data by the image acquisition equipment.
Optionally, in a specific implementation manner, the cloud storage system 920 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;
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 920; the target URL comprises the first network address;
the cloud storage system 920 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 920 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 by the target storage node;
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 910 is further configured to:
when the target media data is unsuccessfully uploaded, the target multimedia data is retransmitted to the cloud storage system 920 according to a predetermined retransmission policy.
Specifically, the image capturing device 910 retransmits the target multimedia data to the cloud storage system 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, the image acquisition device retransmits the target multimedia data to the cloud storage system according to a predetermined retransmission policy, specifically:
and returning to execute the step of requesting the cloud storage system 920 for obtaining a 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 relevant points can be referred to the partial description of the method embodiments.
In addition, for convenience of understanding of the solution, fig. 10 is a schematic structural diagram of an application example of the media data storage system provided by the embodiment of the present invention. As shown in fig. 10, 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. 10 is as follows: (1) the snapshot machine shoots pictures and writes the pictures into the cloud storage system; (2) the cloud storage system returns a URL address of the picture storage; (3) the snapshot machine returns a URL address of the picture storage to the platform server; (4) and the platform server writes the URL address stored in the picture sent by the snapshot machine into the database. It can be seen that, when the media data storage system described in fig. 10 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. 11, where the image capturing apparatus may include: the electronic device comprises a shell 1110, a processor 1120, a memory 1130, a circuit board 1140 and a power supply circuit 1150, wherein the circuit board 1140 is arranged inside a space surrounded by the shell 1110, and the processor 1120 and the memory 1130 are arranged on the circuit board 1140; a power supply circuit 1150 for supplying power to the respective circuits or devices; memory 1130 is used to store executable program code; the processor 1120 performs the media data storage method by executing the executable program code stored in the memory 1130; the method for executing media data storage can comprise 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 the cloud storage system, 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;
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 target media data is stored in the target storage node in the cloud storage system.
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, after uploading the target media data to be stored to the cloud storage system based on the second network address, the method further includes:
receiving target storage information fed back by the cloud storage system; the target storage information is determined based on a storage position corresponding to the target media data;
storing a target URL corresponding to the target media data to a platform server corresponding to the image acquisition equipment; wherein the target URL is information determined based on the target storage information.
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 tcp connection is established 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: the management node determines a target storage node corresponding to the image acquisition equipment, and feeds back a first http reply message carrying a second network address to the image acquisition equipment after the target storage node is determined;
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, so that: and the target storage node extracts the target media data from the second http request message and stores the target media data.
Optionally, the step of receiving target storage information fed back by the cloud storage system includes:
receiving a second http reply message fed back by the target storage node, wherein the second http reply message carries the target storage information;
and extracting the target storage information from the second http reply message.
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 step of saving the target URL corresponding to the target media data to the platform server corresponding to the image capturing device includes:
and storing a target URL corresponding to the target media data and target intelligent data to a platform server corresponding to the image acquisition equipment, wherein 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:
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 further provides a cloud storage system, as shown in fig. 12, where the cloud storage system includes: a management node 1210 and a storage node 1220; wherein the content of the first and second substances,
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.
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 target storage node is further configured to feed back target storage information to the image capturing device after storing the target media data uploaded by the image capturing device, so that: after the image acquisition equipment receives the target storage information, storing a target URL 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, and the target URL is determined based on the target storage information.
Optionally, the receiving, by the management node, a storage node allocation request sent by the image acquisition device specifically includes:
after establishing tcp connection with the image acquisition equipment, the management node receives a first http request message sent by the image acquisition equipment 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 feeds back a second network address to the image acquisition 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 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.
Optionally, the target storage node stores the target media data uploaded by the image acquisition device, and specifically includes:
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 equipment requests establishment to the target storage node based on the second network address;
and extracting the target media data from the second http request message, and storing the target media data.
Optionally, the target storage node feeds back target storage information to the image acquisition device, specifically:
and the target storage node feeds back a second http reply message to the image acquisition equipment, wherein the second http reply message carries target storage information.
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 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.
Optionally, 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; 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 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 (25)

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 cloud storage system; wherein the first network address is recorded in a configuration file of the image acquisition device; the method comprises the following steps:
requesting a second network address from the cloud storage system based on the first network address read from the configuration file; 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;
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 target media data and the target intelligent data are stored in the 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;
receiving target storage information fed back by the cloud storage system; the target storage information is determined based on a storage position corresponding to the target media data;
storing a target Uniform Resource Locator (URL) corresponding to the target media data and the target intelligent data to a platform server corresponding to the image acquisition equipment; wherein the target URL is information determined based on the target storage information.
2. The method according to claim 1, wherein 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: the management node determines a target storage node corresponding to the image acquisition equipment, and feeds back a first http reply message carrying a second network address to the image acquisition equipment after the target storage node is determined;
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.
3. The method according to claim 2, wherein the storage nodes in the cloud storage system belong to at least one virtual resource pool, the image capturing device further stores target ID information of a target virtual resource pool in advance, and 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;
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.
4. 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 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, so that: and 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.
5. The method according to claim 4, wherein the step of receiving the target storage information fed back by the cloud storage system comprises:
receiving a second http reply message fed back by the target storage node, wherein the second http reply message carries the target storage information;
and extracting the target storage information from the second http reply message.
6. The method of claim 1, further comprising:
and when the target media data are failed to be uploaded, retransmitting the target media data and the target intelligent data to the cloud storage system according to a preset retransmission strategy.
7. The method of claim 6, wherein the step of retransmitting the target media data and the target smart data to the cloud storage system according to a predetermined retransmission policy comprises:
returning to the step of uploading the target media data and the target intelligent data to the cloud storage system based on the second network address.
8. The method of claim 6, wherein the step of retransmitting the target media data and the target smart 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.
9. The method of claim 1, wherein the target storage information is the target URL; or, the target storage information is the storage location.
10. A media data storage method is characterized by being 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; wherein the first network address is recorded in a configuration file of the image acquisition device;
feeding back a second network address to the image capture device such that: after the image acquisition equipment acquires the second network address, 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 media data of the image acquisition equipment, and the target intelligent data is data extracted from the target media data by the image acquisition equipment;
the target media data and the target intelligent data uploaded by the image acquisition equipment are stored; wherein the target media data and the target intelligence data are stored in the target storage node in the cloud storage system;
feeding back target storage information to the image acquisition device such that: after the image acquisition equipment receives the target storage information, storing a target Uniform Resource Locator (URL) corresponding to the target media data and the target intelligent 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, and the target URL is determined based on the target storage information.
11. The method according to claim 10, wherein the first network address is specifically an external access address of a management node in the cloud storage system;
the step of receiving a storage node allocation request sent by an image acquisition device includes:
after establishing a tcp (Transmission control protocol) connection with the image acquisition equipment, the management node receives a first http request message which is sent by the image acquisition equipment 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 step of feeding back the second network address to the image capturing device includes:
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.
12. The method according to claim 11, wherein the storage nodes in the cloud storage system belong to at least one virtual resource pool, and target ID information of a target virtual resource pool is also stored in the image capture device in advance, and the target virtual resource pool is a virtual resource pool for storing media data of the image capture device;
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.
13. The method of claim 10, wherein the step of storing the target media data and the target smart data uploaded by the image capture device comprises:
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; the second http request message carries target media data to be stored and the target intelligent data, and the tcp connection between the target storage node and the image acquisition device is as follows: the image acquisition equipment requests establishment to the target storage node based on the second network address;
and 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.
14. The method of claim 13, wherein the step of feeding back target storage information to the image capture device comprises:
and the target storage node feeds back a second http reply message to the image acquisition equipment, wherein the second http reply message carries target storage information.
15. The method of claim 10, further comprising:
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.
16. The method according to claim 15, 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 the media data processing request sent by the access terminal based on the target URL 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;
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 and the target intelligent data.
17. 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 the cloud storage system; wherein the first network address is recorded in a configuration file of the image acquisition device;
the image acquisition equipment is used for sending a storage node allocation request to the cloud storage system based on the first network address read from the configuration file to obtain a second network address fed back by the cloud storage system; 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 media data of the image acquisition equipment, and 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 storage node allocation request sent by the image acquisition equipment and feeding back the second network address to the image acquisition equipment; the target media data and the target intelligent data uploaded by the image acquisition equipment are stored; wherein the target media data and the target intelligence data are stored in the target storage node in the cloud storage system;
the cloud storage system is further used for feeding back target storage information to the image acquisition equipment after the target media data uploaded by the image acquisition equipment are stored;
the image acquisition equipment is also used for receiving the target storage information and storing a target Uniform Resource Locator (URL) corresponding to the target media data and the target intelligent 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, and the target URL is determined based on the target storage information.
18. The media data storage system according to claim 17, wherein the first network address is an external access address of a management node in the cloud storage system;
the image acquisition equipment sends a storage node allocation request to the cloud storage system based on the first network address, and obtains a second network address fed back by the cloud storage system, specifically:
after establishing a tcp (Transmission control protocol) connection with the management node based on the first network address, the image acquisition device sends a first http request message for requesting a storage node to the management node, receives a 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 receives a storage node allocation request sent by the image acquisition equipment, and feeds back the second network address to the image acquisition equipment, and the method specifically comprises the following steps:
after establishing tcp connection with the image acquisition device, the management node receives a first http request message sent by the image acquisition device and used for requesting 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.
19. The media data storage system according to claim 18, wherein the storage node in the cloud storage system belongs to at least one virtual resource pool, and the image capturing 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 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 equipment from the storage nodes corresponding to the target virtual resource pool with the target ID information.
20. The media data storage system according to claim 17, 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 to be stored and the target intelligent data 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 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;
and 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.
21. The media data storage system according to claim 20, wherein the cloud storage system feeds back target storage information to the image capture device, specifically:
the target storage node feeds back a second http reply message to the image acquisition equipment, wherein the second http reply message carries target storage information;
the image acquisition equipment receives the target storage information, and specifically comprises the following steps:
the image acquisition equipment receives the second http reply message fed back by the target storage node;
and extracting the target storage information from the second http reply message.
22. The media data storage system of claim 17, 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.
23. The media data storage system according to claim 22, 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.
24. 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 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 acquires the second network address, target media data and target intelligent 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 equipment 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, and the first network address is recorded in a configuration file of the image acquisition equipment; 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 media data of the image acquisition equipment, and 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;
the target storage node is further configured to feed back target storage information to the image acquisition device after storing the target media data uploaded by the image acquisition device, so that: after the image acquisition equipment receives the target storage information, storing a target Uniform Resource Locator (URL) corresponding to the target media data and the target intelligent 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, and the target URL is determined based on the target storage information.
25. The cloud storage system of claim 24, wherein the management node 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.
CN201710157916.1A 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system Active CN108632305B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710157916.1A CN108632305B (en) 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system
PCT/CN2018/078685 WO2018166415A1 (en) 2017-03-16 2018-03-12 Cloud storage system, media data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710157916.1A CN108632305B (en) 2017-03-16 2017-03-16 Cloud storage system, media data storage method and system

Publications (2)

Publication Number Publication Date
CN108632305A CN108632305A (en) 2018-10-09
CN108632305B true CN108632305B (en) 2021-05-25

Family

ID=63522710

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN108632305B (en)
WO (1) WO2018166415A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729397A (en) * 2019-01-29 2019-05-07 网宿科技股份有限公司 A kind of plug-flow method, system and server
US11102319B2 (en) 2019-01-29 2021-08-24 Wangsu Science and Technology Co., Ltd. Method, system and server for stream-pushing
CN111984461B (en) * 2019-05-22 2024-02-27 杭州海康威视系统技术有限公司 Data reading method and device and cloud storage system
CN111404978B (en) * 2019-09-06 2023-05-02 杭州海康威视系统技术有限公司 Data storage method and cloud storage system
CN111522695A (en) * 2020-05-08 2020-08-11 与众科技(天津)有限公司 Application-level disaster recovery system of cooperative office system
CN112328559A (en) * 2020-11-05 2021-02-05 杭州海康威视数字技术股份有限公司 Picture warehousing method, system and device and electronic equipment
CN115604218A (en) * 2021-06-28 2023-01-13 华为技术有限公司(Cn) Data processing system, method and switch
CN114124937A (en) * 2021-11-23 2022-03-01 天翼数字生活科技有限公司 Automatic distributed cloud storage scheduling interaction method, device and equipment
CN114286054B (en) * 2021-12-27 2023-10-27 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882983A (en) * 2012-10-22 2013-01-16 南京云创存储科技有限公司 Rapid data memory method for improving concurrent visiting performance in cloud memory system
CN104168447A (en) * 2014-07-03 2014-11-26 宁波摩米创新工场电子科技有限公司 Internet of Things network video monitoring system
CN105516664A (en) * 2015-12-11 2016-04-20 深圳市奔迈科技有限公司 Intelligent monitoring system based on cloud storage and monitoring method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914540B1 (en) * 2008-07-01 2014-12-16 Cisco Technology, Inc. Multi-fabric SAN based data migration
CN101753617B (en) * 2009-12-11 2013-05-08 中兴通讯股份有限公司 Cloud storage system and method
CN102307221A (en) * 2011-03-25 2012-01-04 国云科技股份有限公司 Cloud storage system and implementation method thereof
CN102148963A (en) * 2011-04-06 2011-08-10 上海玄烨电子系统工程有限公司 Method and system for facing digital high-definition network video monitoring based on cloud storage
CN102355572A (en) * 2011-09-29 2012-02-15 南京云创存储科技有限公司 Large high-definition video monitoring system based on cloud computing
EP2812833A1 (en) * 2012-02-06 2014-12-17 Redigi Inc. Digital data commerce system and methods with digital media object to cloud redirection
CN103024053B (en) * 2012-12-18 2015-11-25 华为技术有限公司 Cloud storage means, resource scheduling system, cloud memory node and system
CN104572344B (en) * 2013-10-29 2018-10-30 杭州海康威视系统技术有限公司 A kind of method and system of cloudy data backup
CN105025049B (en) * 2014-04-22 2019-03-22 深圳市尼得科技有限公司 A kind of media stream storage method, device and server
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
CN104580439B (en) * 2014-12-30 2020-01-03 深圳创新科技术有限公司 Method for uniformly distributing data in cloud storage system
CN105404469B (en) * 2015-10-22 2018-11-13 浙江宇视科技有限公司 A kind of storage method and system of video data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882983A (en) * 2012-10-22 2013-01-16 南京云创存储科技有限公司 Rapid data memory method for improving concurrent visiting performance in cloud memory system
CN104168447A (en) * 2014-07-03 2014-11-26 宁波摩米创新工场电子科技有限公司 Internet of Things network video monitoring system
CN105516664A (en) * 2015-12-11 2016-04-20 深圳市奔迈科技有限公司 Intelligent monitoring system based on cloud storage and monitoring method thereof

Also Published As

Publication number Publication date
CN108632305A (en) 2018-10-09
WO2018166415A1 (en) 2018-09-20

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
US7733808B2 (en) Peer-to-peer aided live video sharing system
CN108737476B (en) Cloud storage system, media data storage method and system
CN108737484B (en) Media data storage method and system
US9432672B2 (en) Image compression method and system with image compression time information
CN104660891A (en) Method and apparatus in a motion video capturing system
US11032584B2 (en) Picture storage method, apparatus and video monitoring system
EP2200000A1 (en) Real-time image monitoring and recording system and method
US10681314B2 (en) Moving image splitting device and monitoring method
CN113301299B (en) Multi-channel video transmission method, system, terminal and storage medium
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
CN104270604A (en) Method, system and device for obtaining real-time video data of IPC
CN110933357A (en) Method and system for integrating monitoring system with video conference system
WO2017219852A1 (en) Data information sharing method and apparatus, and terminal
US20210377323A1 (en) Method and system for responding to video call service
CN101867583B (en) Network video releasing method and system thereof
KR101712542B1 (en) Data Backup QoS System on Failover and Method thereof
CN112632124B (en) Multimedia information acquisition method, device, system, storage medium and electronic device
CN109510868A (en) A kind of method, apparatus that establishing P2P network, terminal device and storage medium
US11064156B2 (en) Camera control method, camera, and surveillance system
CN108737477B (en) Cloud storage system, and media data balanced storage method and system
CN110519400B (en) Method for realizing Internet of things platform for carrying out multi-inlet separation on equipment flow
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