CN114401453B - Data processing method, device, computing equipment and medium - Google Patents

Data processing method, device, computing equipment and medium Download PDF

Info

Publication number
CN114401453B
CN114401453B CN202210043519.2A CN202210043519A CN114401453B CN 114401453 B CN114401453 B CN 114401453B CN 202210043519 A CN202210043519 A CN 202210043519A CN 114401453 B CN114401453 B CN 114401453B
Authority
CN
China
Prior art keywords
server
address information
identifier
address
local area
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
CN202210043519.2A
Other languages
Chinese (zh)
Other versions
CN114401453A (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202210043519.2A priority Critical patent/CN114401453B/en
Publication of CN114401453A publication Critical patent/CN114401453A/en
Application granted granted Critical
Publication of CN114401453B publication Critical patent/CN114401453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/21805Source of audio or video content, e.g. local disk arrays enabling multiple viewpoints, e.g. using a plurality of cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel

Abstract

The application relates to a data processing method, a data processing device, computing equipment and a medium, and belongs to the technical field of computers. According to the method and the device, the target interface is added, so that the first identifier of the first server located in the target local area network and the first address information corresponding to the first identifier are obtained through the target interface, the second identifier of the second server located in the target local area network and the second address information corresponding to the second identifier are obtained through the target interface, the first identifier of the first server and the second identifier of the matched second server are associated based on the first address information and the second address information, automatic binding of the first server and the second server is achieved, manual processing is not needed, processing efficiency is improved, and further, under the condition that a video obtaining instruction is received, the stream address of a video stream can be obtained through the first server, further, the video stream is obtained based on the stream address, and data processing efficiency is improved.

Description

Data processing method, device, computing equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, apparatus, computing device, and medium.
Background
In large-scale garden management, can be according to the security protection needs, install the camera in the garden and be used for the control to through thing networking (Internet of things, ioT) platform, manage the camera of installing in the garden, with the state of acquireing each camera, and then through streaming media service, acquire the video stream that is in online state camera acquisition.
In the related art, due to network limitation and security, the camera does not provide an external network access service, and only access to a streaming media service in the same local area network as the camera is allowed. In order to obtain the video stream collected by the camera through the streaming media service, related technicians need to bind the internet of things platform and the streaming media service in the same local area network in advance, so that the streaming media service can receive the states of all cameras sent by the internet of things platform, and then communicate with the cameras meeting the requirements based on the received states of the cameras, so that the video stream collected by the camera can be obtained.
In the implementation process, the binding relation between the internet of things platform and the streaming media service needs to be established manually, so that the efficiency of binding the internet of things platform and the streaming media service is low, and the efficiency of acquiring the video stream is low.
Disclosure of Invention
The application provides a data processing method, a data processing device, a computing device and a medium, which are used for solving the defects in the related art.
According to a first aspect of embodiments of the present application, there is provided a data processing method, including:
the method comprises the steps of obtaining a first identifier of a first server located in a target local area network, first address information corresponding to the first server, a second identifier of a second server located in the target local area network and second address information corresponding to the second server through a target interface, wherein the first server is used for managing a plurality of cameras located in the target local area network, and the second server is used for obtaining video streams from the plurality of cameras;
associating the first identification of the first server with the second identification of the matched second server based on the first address information and the second address information;
in response to receiving a video acquisition instruction, acquiring a stream address of a video stream through a first server, wherein the stream address is used for indicating a camera for acquiring the video stream;
the video stream is acquired based on the stream address by a second server corresponding to a second identifier associated with the first identifier of the first server.
In some embodiments of the present application, the target local area network includes at least one first server and at least one second server therein;
The method for acquiring the first identifier of the first server and the first address information corresponding to the first server in the target local area network, the second identifier of the second server and the second address information corresponding to the second server in the target local area network through the target interface comprises the following steps:
the method comprises the steps of obtaining a first identifier of at least one first server located in a target local area network, a first address list comprising first address information of the at least one first server, a second identifier of at least one second server located in the target local area network and a second address list comprising second address information of the at least one second server through a target interface.
In some embodiments of the present application, associating the first identification of the first server with the second identification of the matching second server based on the first address information and the second address information includes:
determining a matched first server and second server based on the first address information and the second address information;
the first identification of the first server is associated with the identification of the matching second server.
In some embodiments of the present application, determining a matching first server and second server based on the first address information and the second address information includes:
Traversing the first address list and the second address list;
and determining that the first server and the second server are matched under the condition that the first address information included in the first address list is identical to the second address information included in the second address list.
In some embodiments of the present application, the address information includes an internet protocol, IP, address and a media access control, MAC, address.
In some embodiments of the present application, before the first identifier of the first server located in the target local area network and the first address information corresponding to the first server, the second identifier of the second server located in the target local area network and the second address information corresponding to the second server are acquired through the target interface, the method further includes:
deploying an Internet of things platform on a first server in a target local area network, and deploying streaming media service on a second server in the target local area network;
an internet of things platform is deployed on a first server, and a streaming media service is deployed on a second server.
In some embodiments of the present application, a first server manages a plurality of cameras located within a local area network through an internet of things platform, and a second server obtains video streams from the plurality of cameras through a streaming media service.
In some embodiments of the present application, the method further comprises:
and correspondingly storing the first address information corresponding to the first server and the second address information corresponding to the matched second server.
In some embodiments of the present application, after associating the first identification of the first server with the second identification of the matching second server based on the first address information and the second address information, the method further comprises:
acquiring a first identifier of a first updated server positioned in a target local area network, updated first address information corresponding to the first updated server, a second identifier of a second updated server positioned in the target local area network and updated second address information corresponding to the second updated server through a target interface every preset time length;
and associating the first identifier of the updated first server with the second identifier of the matched updated second server based on the updated first address information and the updated second address information.
According to a second aspect of embodiments of the present application, there is provided a data processing apparatus, the apparatus comprising:
the first acquisition unit is used for acquiring a first identifier of a first server positioned in the target local area network, first address information corresponding to the first server, a second identifier of a second server positioned in the target local area network and second address information corresponding to the second server through the target interface, wherein the first server is used for managing a plurality of cameras positioned in the target local area network, and the second server is used for acquiring video streams from the plurality of cameras;
The association unit is used for associating the first identifier of the first server with the second identifier of the matched second server based on the first address information and the second address information;
the second acquisition unit is used for responding to the received video acquisition instruction, acquiring a stream address of the video stream through the first server, wherein the stream address is used for indicating a camera for acquiring the video stream;
the second obtaining unit is further configured to obtain, by a second server corresponding to a second identifier associated with the first identifier of the first server, the video stream based on the stream address.
In some embodiments of the present application, the target local area network includes at least one first server and at least one second server therein;
the first obtaining unit is configured to, when obtaining a first identifier of a first server located in a target local area network and first address information corresponding to the first server, and a second identifier of a second server located in the target local area network and second address information corresponding to the second server, obtain:
the method comprises the steps of obtaining a first identifier of at least one first server located in a target local area network, a first address list comprising first address information of the at least one first server, a second identifier of at least one second server located in the target local area network and a second address list comprising second address information of the at least one second server through a target interface.
In some embodiments of the present application, the association unit, when configured to associate the first identifier of the first server with the second identifier of the matched second server based on the first address information and the second address information, includes a determining subunit and an associating subunit;
the determining subunit is used for determining a matched first server and second server based on the first address information and the second address information;
the association subunit is configured to associate the first identifier of the first server with the second identifier of the matched second server.
In some embodiments of the present application, the determining subunit, when configured to determine the matched first server and second server based on the first address information and the second address information, is configured to:
traversing the first address list and the second address list;
and determining that the first server and the second server are matched under the condition that the first address information included in the first address list is identical to the second address information included in the second address list.
In some embodiments of the present application, the address information includes an internet protocol, IP, address and a media access control, MAC, address.
In some embodiments of the present application, the apparatus further comprises:
The deployment unit is used for deploying the Internet of things platform on a first server in the target local area network and deploying the streaming media service on a second server in the target local area network;
an internet of things platform is deployed on a first server, and a streaming media service is deployed on a second server.
In some embodiments of the present application, a first server manages a plurality of cameras located within a local area network through an internet of things platform, and a second server obtains video streams from the plurality of cameras through a streaming media service.
According to a third aspect of embodiments of the present application, there is provided a computing device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements operations performed by the data processing method described above when the computer program is executed by the processor.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium having a program stored thereon, the program being executed by a processor to perform operations performed by the above-described data processing method.
According to a fifth aspect of embodiments of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the operations performed by the data processing method described above.
According to the video streaming method and device, the target interface is added, so that the first identifier of the first server located in the target local area network, the first address information corresponding to the first server, the second identifier of the second server located in the target local area network and the second address information corresponding to the second server are automatically acquired through the target interface, the first identifier of the first server is associated with the second identifier of the matched second server based on the first address information and the second address information, automatic binding of the first server and the corresponding second server is achieved, manual processing is not needed, processing efficiency is improved, and then under the condition that a video acquisition instruction is received, the streaming address of a video stream can be acquired through the first server, and further, the video stream is acquired based on the streaming address through the second server corresponding to the second identifier matched with the first identifier of the first server, and data processing efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of an implementation environment of an information processing method according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a data processing method according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of updating a correspondence between an Internet of things platform and a streaming media service according to an exemplary embodiment of the present application;
FIG. 4 is a block diagram of a data processing apparatus according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a computing device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The application provides a data processing method which can be used for automatically matching a first server and a second server which are positioned in the same local area network, so that the binding of the first server and the second server which are positioned in the same local area network is realized, and video streams acquired by a camera can be acquired from the first server matched with the second server through the second server. The data processing method can be executed by a computing device, and the computing device can be one server, a plurality of servers, a server cluster, a cloud platform and the like, and the application is not limited to the device type and the device number of the computing device.
Taking the computing device as a cloud platform, such as a video cloud platform as an example, an implementation environment of the information processing method provided in the present application may refer to fig. 1, and fig. 1 is a schematic diagram of an implementation environment of an information processing method shown in the present application according to an exemplary embodiment, where the implementation environment includes: video cloud platform 100, local area network 110, and local area network 120.
The video cloud platform 100 may be deployed at a cloud end, and is configured to provide a service discovery function, a camera management function, and various other functions, and may provide a video playing (such as video live broadcast, video on demand, etc.) function to the outside through the video cloud platform. In addition, unified management of a plurality of local area networks can be realized through the video cloud platform.
For example, for an enterprise provided with office places in a plurality of different areas, each office place is provided with a corresponding local area network, so that communication can be performed between the local area networks in each office place, and the local area networks deployed in the different office places cannot be accessed mutually.
For example, for a school provided with a school zone in a plurality of different areas, or for a hospital provided with a hospital zone in a plurality of different areas, etc., video data of different school zones or hospital zones may be checked through a video cloud platform, and the application is not limited to a specific application scenario.
The video cloud platform is used for uniformly managing the local area networks, so that the integration of data in different local area networks can be realized, the local area networks connected with the video cloud platform can be accessed through the video cloud platform, the data from the local area networks can be acquired through the video cloud platform, and the data acquisition efficiency is improved.
It should be noted that, the video cloud platform 100 may include a server discovery module, so that the server discovery module provides a server discovery function. In addition, the service discovery module can also call a target interface, so that matching of the first server and the second server is automatically realized through the target interface.
Local area network 110 may include an internet of things platform 111 and a streaming media service 112, local area network 120 may include an internet of things platform 121 and a streaming media service 122, and communication between video cloud platform 100 and local area network 110, video cloud platform 100 and local area network 120 may be performed through wired or wireless connection modes. The internet of things platform can be used for managing a plurality of cameras so that equipment information of the cameras can be provided outwards; the streaming media service is used for carrying out stream management on the video stream acquired by the camera and providing a video acquisition function for the outside.
In one possible implementation manner, the platform of the internet of things can obtain state information of a plurality of cameras managed by the platform of the internet of things, and the state information is used for indicating the online state of the cameras, so that the obtained online state is sent to a streaming media service matched with the platform of the internet of things, and therefore the streaming media service can determine equipment information and streaming addresses of the cameras in the online state after obtaining the online state of each camera, and communication between the streaming media service and the corresponding camera is achieved.
Optionally, local area network 110 may also include a security boundary 113 and local area network 120 may also include a security boundary 123. It should be noted that security defenses may be set on the network boundary of the lan to obtain a security boundary at the edge of the lan.
For example, an isolation zone (Demilitarized Zone, DMZ) may be disposed on a network boundary of the local area network, or a security gateway may be disposed on a network boundary of the local area network, or a firewall may be disposed on a network boundary of the local area network, so as to construct a security boundary, which manner is specifically adopted to implement the construction of the security boundary is not limited in the present application.
By setting the safety boundary in the local area network, the external resources can not access the resources in the local area network through the safety boundary, so that the possibility of resource leakage in the local area network can be reduced, the safety of the local area network is ensured, and the attack risk of the local area network is reduced.
For example, the number of the cells to be processed,
it should be noted that, in fig. 1, only two lans are illustrated as an example, and in many possible implementations, many more lans may be included in the implementation environment of the present application, and the number of included lans is not limited in the present application.
In addition, each local area network can comprise at least one internet of things platform and at least one streaming media service. The internet of things platform and the streaming media service may be in a one-to-one relationship, a one-to-many relationship, a many-to-one relationship or a many-to-many relationship, that is, in the same local area network, one internet of things platform may be only matched with one streaming media service, one internet of things platform may also be matched with a plurality of streaming media services, or a plurality of internet of things platforms may also be matched with one streaming media service, or a plurality of internet of things platforms are matched with a plurality of streaming media services, which is not limited in this application.
Having described the environment in which the present application is implemented, the information processing method provided by the present application will be described in detail below in connection with the embodiments provided by the present specification.
Referring to fig. 2, fig. 2 is a flowchart of a data processing method according to an exemplary embodiment of the present application, the method comprising:
step 201, obtaining a first identifier of a first server located in a target local area network, first address information corresponding to the first server, a second identifier of a second server located in the target local area network, and second address information corresponding to the second server through a target interface, where the first server is used for managing a plurality of cameras located in the target local area network, and the second server is used for obtaining video streams from the plurality of cameras.
The target interface is used for providing a function of automatically acquiring the identification (ServiceCode) and address information of a first server located in the target local area network and the identification and address information of a second server located in the target local area network.
Step 202, associating the first identifier of the first server with the second identifier of the matched second server based on the first address information and the second address information.
Step 203, in response to receiving the video acquisition instruction, acquiring, by the first server, a stream address of the video stream, where the stream address is used to indicate a camera for acquiring the video stream.
In one possible implementation manner, a user may trigger a video acquisition instruction on a user side device, such as a terminal device, and the user side device may send the video acquisition instruction triggered by the user to the video cloud platform, so that the video cloud platform may acquire, in response to the video acquisition instruction, a stream address of a video stream through a first server located in a target local area network.
Step 204, obtaining, by a second server corresponding to a second identifier associated with the first identifier of the first server, a video stream based on the stream address.
In one possible implementation manner, the video cloud platform may acquire the video stream based on the stream address through a second server matched with the first server, so as to send the acquired video stream to the user side device, so that the user may play the received video stream on the user side device, thereby implementing the video play function.
According to the video streaming method and device, the target interface is added, so that the first identifier of the first server located in the target local area network, the first address information corresponding to the first server, the second identifier of the second server located in the target local area network and the second address information corresponding to the second server are automatically acquired through the target interface, the first identifier of the first server is associated with the second identifier of the matched second server based on the first address information and the second address information, automatic binding of the first server and the corresponding second server is achieved, manual processing is not needed, processing efficiency is improved, and then under the condition that a video acquisition instruction is received, the streaming address of a video stream can be acquired through the first server, and further, the video stream is acquired based on the streaming address through the second server corresponding to the second identifier matched with the first identifier of the first server, and data processing efficiency is improved. In addition, the data processing method provided by the application can also reduce the error probability when the first server and the second server are matched, and reduce the complexity of the binding process of the first server and the second server.
In addition, the automatic binding of the first server and the second server is realized through the target interface without manual binding, and the binding speed of the first server and the second server can be improved, so that the delivery efficiency and the delivery speed of the project can be improved.
Having described the basic implementation of the present application, various non-limiting embodiments of the present application are specifically described below.
In some embodiments, a first server manages a plurality of cameras located within a local area network through an internet of things platform, and a second server obtains video streams from the plurality of cameras through a streaming media service.
The internet of things platform and the streaming media service may be deployed in advance to the target lan by related technicians, that is, before the first identifier of the first server located in the target lan and the first address information corresponding to the first server, the second identifier of the second server located in the target lan and the second address information corresponding to the second server are obtained through the target interface in step 201, the method further includes:
and deploying the Internet of things platform on a first server in the target local area network, and deploying the streaming media service on a second server in the target local area network.
An internet of things platform is deployed on a first server, and a streaming media service is deployed on a second server. And the target local area network may include at least one first server and at least one second server, that is, the number of the first servers included in the target local area network may be one or more, and the number of the second servers may be one or more, so that the internet of things platform may be deployed on the one or more first servers of the target local area network, the streaming media service may be deployed on the one or more second servers of the target local area network, so that the one or more internet of things platforms and the one or more streaming media services may be included in the target local area network.
In some embodiments, for step 201, when obtaining, through the target interface, the first identifier of the first server located in the target lan and the first address information corresponding to the first server, and the second identifier of the second server located in the target lan and the second address information corresponding to the second server, the following manner may be implemented:
the method comprises the steps of obtaining a first identifier of at least one first server located in a target local area network, a first address list comprising first address information of the at least one first server, a second identifier of at least one second server located in the target local area network and a second address list comprising second address information of the at least one second server through a target interface.
That is, at least one first identifier of at least one first server for providing a camera management function and a first address list formed by first address information of the at least one first server in the target local area network, and at least one second identifier of at least one second server for providing a video stream acquisition function and a second address list formed by second address information of the at least one second server are acquired through the target interface.
The address information may include, among other things, an internet protocol (Internet Protocol, IP) address and a media access control (Media Access Control, MAC) address.
In one possible implementation manner, when the identification and address information of the server are acquired through the target interface, the target interface may be instructed to perform the acquisition of the identification and address information of the server through a preset instruction. The preset instruction may be getLocalAddressList ().
Taking the example of obtaining the first identifier of the at least one first server and the first address list including the first address information of the at least one first server, the format of the return information received through the target interface may be as follows:
It should be noted that after the server identifiers and the address information corresponding to the first server and the second server are obtained through the target interface, the first server and the second server included in the target local area network can be matched based on the obtained address information.
In some embodiments, for step 202, when associating the first identification of the first server with the second identification of the matching second server based on the first address information and the second address information, the steps may be included of:
step 2021, determining a matching first server and second server based on the first address information and the second address information.
In one possible implementation, the first address list and the second address list are traversed to determine that the first server and the second server match if the first address information included in the first address list is the same as the second address information included in the second address list.
For convenience of explanation, the at least one first server is denoted as d1, the first address list is denoted as list1, the at least one second server is denoted as d2, and the second address list is denoted as list2, so when implementing the step 2021, the address included in the list1 and the address included in the list2 may be traversed to determine whether the addresses included in the list1 and the list2 are identical, and if the addresses included in the list1 and the list2 are identical, it is determined that the at least one first server and the at least one second server are matched, so as to determine that the internet of things platform provided by the at least one first server matches with the streaming media service provided by the at least one second server.
In another possible case, the internet of things platform and the streaming media service are determined to be not matched under the condition that the first address information included in the first address list is identical to the second address information included in the second address list.
Step 2022, associating the first identification of the first server with the second identification of the matching second server.
In one possible implementation, the first identifier of the first server may be stored in correspondence with the second identifier of the matching second server, so as to enable association of the first identifier of the first server with the second identifier of the matching second server.
Optionally, in a case where it is determined that the at least one first server and the at least one second server (i.e. the internet of things platform provided by the at least one first server and the streaming media service provided by the at least one second server) match, identification information may be added to the at least one first server and the at least one second server, where the identification information may be used for whether the at least one first server and the at least one second server match, so that the computing device may determine, based on the identification information, whether the at least one first server and the at least one second server match, and further in a case where the identification information indicates that the at least one first server and the at least one second server match, perform step 2022, to associate the first identification of the first server with the second identification of the matching second server, thereby achieving the matching of the first server and the second server.
The first identification of the first server is associated with the second identification of the matched second server, so that the first server and the second server can be bound, the second server can acquire the stream address of the video stream from the matched first server more accurately, and the accuracy of the information acquisition process is improved.
In some embodiments, when it is determined that the at least one first server and the at least one second server are matched, the first address information corresponding to the first server and the second address information corresponding to the matched second server may be correspondingly stored, so that association between the first address information corresponding to the platform of the internet of things and the second address information corresponding to the matched streaming media service may be achieved.
In one possible implementation, in case the identification information indicates that the at least one first server and the at least one second server match, the corresponding first address information of the first server and the second address information of the matching second server may be stored.
In some embodiments, after the matching between the first server and the second server is achieved through the steps 201 to 202, the correspondence between the first server and the second server may be updated through the target interface at regular time, where the process may include the following steps as shown in fig. 3, and fig. 3 is a flowchart of updating the correspondence between the internet of things platform and the streaming media service, which is shown in this application according to an exemplary embodiment:
Step 301, acquiring, through a target interface, a first identifier of an updated first server located in a target local area network, updated first address information corresponding to the updated first server, a second identifier of an updated second server located in the target local area network, and updated second address information corresponding to the updated second server.
Step 302, associating the first identifier of the updated first server with the second identifier of the matched updated second server based on the updated first address information and the updated second address information.
It should be noted that, the implementation process of the steps 301 to 302 may be referred to the above embodiments, and will not be described herein again.
Corresponding to the embodiments of the foregoing method, the present application also provides embodiments of a corresponding data processing apparatus and computing device to which the same is applied.
FIG. 4 is a block diagram of a data processing apparatus according to an exemplary embodiment of the present application, the apparatus comprising:
a first obtaining unit 401, configured to obtain, through a target interface, a first identifier of a first server located in a target local area network, first address information corresponding to the first server, a second identifier of a second server located in the target local area network, and second address information corresponding to the second server, where the first server is configured to manage a plurality of cameras located in the target local area network, and the second server is configured to obtain video streams from the plurality of cameras;
An associating unit 402, configured to associate, based on the first address information and the second address information, a first identifier of the first server with a second identifier of the matched second server;
a second obtaining unit 403, configured to obtain, by means of the first server, a stream address of the video stream in response to receiving the video obtaining instruction, where the stream address is used to indicate a camera that collects the video stream;
the second obtaining unit 403 is further configured to obtain, by using a second server corresponding to a second identifier associated with the first identifier of the first server, a video stream based on the stream address.
In some embodiments of the present application, the target local area network includes at least one first server and at least one second server therein;
the first obtaining unit 401, when used for obtaining a first identifier of a first server located in a target local area network and first address information corresponding to the first server, a second identifier of a second server located in the target local area network and second address information corresponding to the second server, is configured to:
the method comprises the steps of obtaining a first identifier of at least one first server located in a target local area network, a first address list comprising first address information of the at least one first server, a second identifier of at least one second server located in the target local area network and a second address list comprising second address information of the at least one second server through a target interface.
In some embodiments of the present application, the associating unit 402, when configured to associate the first identifier of the first server with the second identifier of the matched second server based on the first address information and the second address information, includes a determining subunit and an associating subunit;
the determining subunit is used for determining a matched first server and second server based on the first address information and the second address information;
the association subunit is configured to associate the first identifier of the first server with the second identifier of the matched second server.
In some embodiments of the present application, the determining subunit, when configured to determine the matched first server and second server based on the first address information and the second address information, is configured to:
traversing the first address list and the second address list;
and determining that the first server and the second server are matched under the condition that the first address information included in the first address list is identical to the second address information included in the second address list.
In some embodiments of the present application, the address information includes an internet protocol, IP, address and a media access control, MAC, address.
In some embodiments of the present application, the apparatus further comprises:
The deployment unit is used for deploying the Internet of things platform on a first server in the target local area network and deploying the streaming media service on a second server in the target local area network;
an internet of things platform is deployed on a first server, and a streaming media service is deployed on a second server.
In some embodiments of the present application, a first server manages a plurality of cameras located within a local area network through an internet of things platform, and a second server obtains video streams from the plurality of cameras through a streaming media service.
The implementation process of the functions and roles of each unit or sub-unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be repeated here.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements or sub-elements illustrated as separate elements may or may not be physically separate, and elements shown as elements or sub-elements may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network modules. Some or all of the units or sub-units may be selected according to actual needs to achieve the purposes of the present description solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The present application also provides a computing device, referring to fig. 5, fig. 5 is a schematic structural diagram of a computing device according to an exemplary embodiment. As shown in fig. 5, the computing device includes a processor 510, a memory 520, and a network interface 530, the memory 520 being configured to store computer instructions executable on the processor 510, the processor 510 being configured to implement the data processing method provided by any of the embodiments of the present application when the computer instructions are executed, and the network interface 530 being configured to implement input-output functions. In further possible implementations, the computing device may also include other hardware, which is not limited in this application.
The present application also provides a computer-readable storage medium, which may take many forms, for example, in different examples, the computer-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, DVD, etc.), or a similar storage medium, or a combination thereof. In particular, the computer readable medium may also be paper or other suitable medium capable of printing the program. The computer readable storage medium stores a computer program which, when executed by a processor, implements the data processing method provided in any of the embodiments of the present application.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the data processing method provided by any of the embodiments of the present application.
It will be apparent to one of ordinary skill in the art that one or more embodiments of the present description may be provided as a method, apparatus, computing device, computer-readable storage medium, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments corresponding to computing devices, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the partial description of method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the present application. In some cases, the acts or steps recited in the present application may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Embodiments of the subject matter and the functional operations described in this specification can be implemented in: digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and structural equivalents thereof, or a combination of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or additionally, the program instructions may be encoded on a manually-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode and transmit information to suitable receiver apparatus for execution by data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
Computers suitable for executing computer programs include, for example, general purpose and/or special purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read only memory and/or a random access memory. The essential elements of a computer include a central processing unit for carrying out or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks, etc. However, a computer does not have to have such a device. Furthermore, the computer may be embedded in another device, such as a mobile phone, a Personal Digital Assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device such as a Universal Serial Bus (USB) flash drive, to name a few.
Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices including, for example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features of specific embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. On the other hand, the various features described in the individual embodiments may also be implemented separately in the various embodiments or in any suitable subcombination. Furthermore, although features may be acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the present application. In some cases, the acts noted in this application may be performed in a different order and still achieve desirable results. Furthermore, the processes depicted in the accompanying drawings are not necessarily required to be in the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. That is, the present specification is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (11)

1. A method of data processing, the method comprising:
acquiring a first identifier of a first server located in a target local area network, first address information corresponding to the first server, a second identifier of a second server located in the target local area network and second address information corresponding to the second server through a target interface, wherein an Internet of things platform is deployed on the first server and is used for managing a plurality of cameras located in the target local area network, and a streaming media service is deployed on the second server and is used for acquiring video streams from the plurality of cameras;
associating a first identification of a first server with a second identification of a matched second server based on the first address information and the second address information;
in response to receiving a video acquisition instruction, acquiring a stream address of a video stream through the first server, wherein the stream address is used for indicating a camera for acquiring the video stream;
And acquiring the video stream based on the stream address through a second server corresponding to a second identifier associated with the first identifier of the first server.
2. The method of claim 1, wherein the target local area network includes at least one first server and at least one second server therein;
the obtaining, through a target interface, a first identifier of a first server located in a target local area network, first address information corresponding to the first server, a second identifier of a second server located in the target local area network, and second address information corresponding to the second server, includes:
and acquiring a first identifier of at least one first server positioned in the target local area network, a first address list comprising first address information of the at least one first server, a second identifier of at least one second server positioned in the target local area network and a second address list comprising second address information of the at least one second server through the target interface.
3. The method of claim 2, wherein associating the first identification of the first server with the second identification of the matching second server based on the first address information and the second address information comprises:
Determining a matched first server and second server based on the first address information and the second address information;
and associating the first identification of the first server with the second identification of the matched second server.
4. A method according to claim 3, wherein said determining the matching first and second servers based on the first and second address information comprises:
traversing the first address list and the second address list;
and determining that the first server and the second server are matched under the condition that the first address information included in the first address list is identical to the second address information included in the second address list.
5. The method according to any of claims 1 to 4, wherein the address information comprises an internet protocol, IP, address and a medium access control, MAC, address.
6. The method of claim 1, wherein a first server is configured with an internet of things platform and a second server is configured with a streaming media service.
7. The method according to claim 1, wherein the method further comprises:
And correspondingly storing the first address information corresponding to the first server and the second address information corresponding to the matched second server.
8. The method of claim 1, wherein after associating the first identification of the first server with the second identification of the matching second server based on the first address information and the second address information, the method further comprises:
acquiring a first identifier of an updated first server located in the target local area network, updated first address information corresponding to the updated first server, a second identifier of an updated second server located in the target local area network and updated second address information corresponding to the updated second server through the target interface every preset time period;
and associating the first identifier of the updated first server with the second identifier of the matched updated second server based on the updated first address information and the updated second address information.
9. A data processing apparatus, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a streaming media service, wherein the first acquisition unit is used for acquiring a first identifier of a first server positioned in a target local area network, first address information corresponding to the first server, a second identifier of a second server positioned in the target local area network and second address information corresponding to the second server through a target interface, an Internet of things platform is deployed on the first server and used for managing a plurality of cameras positioned in the target local area network, and the streaming media service is deployed on the second server and used for acquiring video streams from the cameras;
The association unit is used for associating the first identification of the first server with the second identification of the matched second server based on the first address information and the second address information;
the second acquisition unit is used for responding to the received video acquisition instruction, acquiring a stream address of the video stream through the first server, wherein the stream address is used for indicating a camera for acquiring the video stream;
the second obtaining unit is further configured to obtain, by using a second server corresponding to a second identifier associated with the first identifier of the first server, the video stream based on the stream address.
10. A computing device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements operations performed by the data processing method of any of claims 1 to 8 when the program is executed by the processor.
11. A computer-readable storage medium, having stored thereon a program that is executed by a processor to perform operations performed by the data processing method according to any one of claims 1 to 8.
CN202210043519.2A 2022-01-14 2022-01-14 Data processing method, device, computing equipment and medium Active CN114401453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210043519.2A CN114401453B (en) 2022-01-14 2022-01-14 Data processing method, device, computing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210043519.2A CN114401453B (en) 2022-01-14 2022-01-14 Data processing method, device, computing equipment and medium

Publications (2)

Publication Number Publication Date
CN114401453A CN114401453A (en) 2022-04-26
CN114401453B true CN114401453B (en) 2024-04-16

Family

ID=81231760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210043519.2A Active CN114401453B (en) 2022-01-14 2022-01-14 Data processing method, device, computing equipment and medium

Country Status (1)

Country Link
CN (1) CN114401453B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108171A (en) * 2013-02-28 2013-05-15 深圳市云宙多媒体技术有限公司 Video monitoring system and data transmitting method
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN109450923A (en) * 2018-11-30 2019-03-08 武汉烽火众智数字技术有限责任公司 A kind of Video transmission system and method
CN110351169A (en) * 2019-09-06 2019-10-18 珠海格力电器股份有限公司 The method and apparatus that a kind of pair of equipment is bound
CN111078720A (en) * 2019-11-06 2020-04-28 中国科学院计算机网络信息中心 Identification-based entity object and data object association method and system
CN111556153A (en) * 2020-04-28 2020-08-18 中国工商银行股份有限公司 Information processing method, apparatus, device and medium executed by first server
CN111901674A (en) * 2020-07-13 2020-11-06 腾讯科技(深圳)有限公司 Video playing control and device
CN113301060A (en) * 2020-02-21 2021-08-24 浙江宇视科技有限公司 Data transmission method, device, server and storage medium
CN113794909A (en) * 2021-09-01 2021-12-14 北京百度网讯科技有限公司 Video streaming system, method, server, device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023533A1 (en) * 2010-07-22 2012-01-26 Alcatel-Lucent Usa Inc. Method and apparatus for delivery of internet protocol television service

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108171A (en) * 2013-02-28 2013-05-15 深圳市云宙多媒体技术有限公司 Video monitoring system and data transmitting method
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN109450923A (en) * 2018-11-30 2019-03-08 武汉烽火众智数字技术有限责任公司 A kind of Video transmission system and method
CN110351169A (en) * 2019-09-06 2019-10-18 珠海格力电器股份有限公司 The method and apparatus that a kind of pair of equipment is bound
CN111078720A (en) * 2019-11-06 2020-04-28 中国科学院计算机网络信息中心 Identification-based entity object and data object association method and system
CN113301060A (en) * 2020-02-21 2021-08-24 浙江宇视科技有限公司 Data transmission method, device, server and storage medium
CN111556153A (en) * 2020-04-28 2020-08-18 中国工商银行股份有限公司 Information processing method, apparatus, device and medium executed by first server
CN111901674A (en) * 2020-07-13 2020-11-06 腾讯科技(深圳)有限公司 Video playing control and device
CN113794909A (en) * 2021-09-01 2021-12-14 北京百度网讯科技有限公司 Video streaming system, method, server, device, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
视频流媒体转发技术在城市消防远程监控系统的应用;王利剑;于洋;李兵;;消防技术与产品信息(第05期);全文 *

Also Published As

Publication number Publication date
CN114401453A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
EP3836577B1 (en) Session management method and device for user groups
CN106210049B (en) Cluster communication method and system based on message queue
US10757076B2 (en) Enhanced network processing of virtual node data packets
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
JP5025440B2 (en) Communication system and gateway
CN102598727B (en) Methods and apparatus for WAN/WLAN unicast and multicast communication
CN104767679B (en) A kind of method and device for transmitting data in network system
CN102843442A (en) Method for configuring networked cameras
CN104734964A (en) Message processing method, node and system
CN107995157B (en) Photo distribution method and system
CN101909010B (en) Port configuration method and device as well as switcher equipment
US9578513B2 (en) Identifying untrusted network access points
CN105163071A (en) System for obtaining monitoring video of monitoring platform, and method thereof
US9191233B2 (en) Message transmission in networks
US20150280961A1 (en) Network extension system, control apparatus, and network extension method
WO2017220021A1 (en) Short message processing method and apparatus
CN107888711B (en) Cross-network-segment equipment searching and communication method
US10567950B2 (en) Content delivery network request handling in wireless communication systems
CN114401453B (en) Data processing method, device, computing equipment and medium
EP2645667A1 (en) Apparatus for updating and transmitting augmented reality data
RU2557005C1 (en) Method of designating wireless communication device and computer-readable medium enabling implementation of said method
CN109218436A (en) A kind of lan device discovery method based on dual-port redundancy technique
US10079759B2 (en) Naming schemes and routing protocols in information centric networking networks
JP2021176240A (en) Communication device, server, communication system, communication method, and program
CN112383617A (en) Method, device, terminal equipment and medium for long connection

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