Media data transmission method and device and electronic equipment

By transmitting the IP address and fixed port information of the target media service in the video surveillance system, the problems of waste and conflict of port resources are solved, and the effective transmission of media data and system performance are achieved.

CN119788813AActive Publication Date: 2025-04-08CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411720048.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-04-08
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

There are problems such as waste of port resources, port conflicts and uneven port allocation in existing video surveillance systems, resulting in increased challenges in network resource allocation and management.

Method used

By transmitting the IP address and fixed port information of the target media service between the gateway device and the media server, it is ensured that the network camera IPC can correctly transmit the target media data stream, and provide the service party with the streaming address carrying the device identification and the target streaming identification to achieve effective transmission of media data.

Benefits of technology

While ensuring the normal transmission of media data streams, reduce port resource waste and port conflicts, achieve effective port convergence and system performance improvement, and at the same time reduce the network attack surface, enhance system security, and reduce manual intervention and operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788813A_ABST
    Figure CN119788813A_ABST
Patent Text Reader

Abstract

The invention provides a media data transmission method and apparatus, and an electronic device, the method comprising: receiving an IP address and port information corresponding to a target media service sent by a media server, each media service provided by the media server corresponding to a fixed port; an IP address and port information corresponding to the target media service are issued to the IPC, so that the IPC transmits a target media data stream carrying a target stream identifier to the target media service, and a source identifier of the target media data stream is generated based on a device identifier of the IPC and the target stream identifier; providing a pull stream address carrying a device identifier and a target stream identifier for a business party, wherein the device identifier and the target stream identifier are provided by a target media service; and in response to the pull stream address sent by the service party, requesting the target media data stream from the target media service, and providing media data for the service party. According to the invention, while normal transmission of the media data stream is ensured, port resource waste and port conflicts are reduced, and effective convergence of the ports is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital media technology, and in particular to a media data transmission method, device and electronic device. Background Art

[0002] GB / T 28181 is an important standard in China's security field. This standard mainly stipulates the technical requirements for the transmission, exchange and control of information in public security video surveillance networking systems, including interconnection structure, communication protocol structure, basic technical requirements, security requirements, and control and transmission processes. GB / T28181 is widely used in video surveillance systems.

[0003] Current video surveillance systems have problems such as port resource waste, port conflicts, and uneven port allocation. As the scale of security monitoring systems expands, the number of devices increases dramatically, resulting in a corresponding increase in the number of media service ports that need to be managed and allocated, bringing many challenges to network resource allocation and management. Summary of the invention

[0004] In view of the above problems, embodiments of the present application provide a media data transmission method, device, and electronic device that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present application provides a media data transmission method, applied to a gateway device, comprising:

[0006] Receiving Internet Protocol IP address and port information corresponding to a target media service sent by a media server, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port;

[0007] Sending the IP address and port information corresponding to the target media service to the network camera IPC, wherein the IP address and port information corresponding to the target media service are used to guide the IPC to transmit a target media data stream to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and a source identifier of the target media data stream is generated based on a device identifier corresponding to the IPC and the target stream identifier;

[0008] Providing a stream pull address carrying the device identifier and the target stream identifier to the service provider, wherein the device identifier and the target stream identifier are provided by the target media service;

[0009] In response to the stream pull address sent by the service provider, the target media service is requested for the target media data stream, and the target media service provides media data for the service provider.

[0010] In a second aspect, an embodiment of the present application provides a media data transmission method, applied to a media server, comprising:

[0011] Sending an Internet Protocol IP address and port information corresponding to a target media service to a gateway device, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port;

[0012] Receive a target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service, the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the IP address and port information corresponding to the target media service are sent by the gateway device to the IPC;

[0013] Generate a source identifier corresponding to the target media data stream based on the device identifier corresponding to the IPC and the target stream identifier;

[0014] The target media data stream is sent to the gateway device according to a pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and an association relationship, and the association relationship indicates that the device identifier and the target stream identifier are associated with the target media service.

[0015] In a third aspect, an embodiment of the present application provides a media data transmission device, applied to a gateway device, including:

[0016] A first receiving module is used to receive an Internet Protocol IP address and port information corresponding to a target media service sent by a media server, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port;

[0017] A sending module, used for sending the IP address and port information corresponding to the target media service to the network camera IPC, wherein the IP address and port information corresponding to the target media service are used to guide the IPC to transmit a target media data stream to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and a source identifier of the target media data stream is generated based on a device identifier corresponding to the IPC and the target stream identifier;

[0018] A providing module, used for providing a service party with a stream pull address carrying the device identifier and the target stream identifier, wherein the device identifier and the target stream identifier are provided by the target media service;

[0019] The request module is used to request the target media data stream from the target media service in response to the stream pull address sent by the business party, and the target media service provides media data to the business party.

[0020] In a fourth aspect, an embodiment of the present application provides a media data transmission device, applied to a media server, including:

[0021] A second sending module is used to send the Internet Protocol IP address and port information corresponding to the target media service to the gateway device, wherein the target media service is one of the multiple media services provided by the media server, and each media service corresponds to a fixed port;

[0022] A fourth receiving module is used to receive a target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the IP address and port information corresponding to the target media service are sent by the gateway device to the IPC;

[0023] A generating module, configured to generate a source identifier corresponding to the target media data stream based on a device identifier corresponding to the IPC and the target stream identifier;

[0024] A third sending module is used to send the target media data stream to the gateway device according to a pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and an association relationship, and the association relationship indicates that the device identifier and the target stream identifier are associated with the target media service.

[0025] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the media data transmission method described in the first aspect or the second aspect.

[0026] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the media data transmission method described in the first aspect or the second aspect are implemented.

[0027] The technical solution of the embodiment of the present application, in the case of a fixed media port of the target media service, receives the IP address and fixed port information provided by the target media service, sends the IP address and fixed port information to the IPC, and the IPC provides the target media data stream for the target media service through the IP address and the fixed port; generates a stream pulling address based on a unique identifier corresponding to the target media data stream to distinguish the stream source and provides it to the business party; in response to the business party's request, pulls adapted media data from the fixed port of the target media service based on the unique identifier, thereby providing a correct media data stream and avoiding streaming.

[0028] This application can reduce the waste of port resources and port conflicts while ensuring the normal transmission of media data streams. The reasonable management and optimization of media service ports can achieve effective port convergence and improved system performance. At the same time, it can effectively reduce the network attack surface, enhance system security, reduce manual intervention, and reduce operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Schematic diagram of the media data transmission method provided in the embodiment of the present application Figure 1 ;

[0030] Figure 2 Schematic diagram of the media data transmission method provided in the embodiment of the present application Figure 2 ;

[0031] Figure 3 A specific interactive flow chart showing the transmission of media data provided by an embodiment of the present application;

[0032] Figure 4 Schematic diagram showing a media data transmission device provided in an embodiment of the present application Figure 1 ;

[0033] Figure 5 Schematic diagram of a media data transmission device provided in an embodiment of the present application Figure 2 ;

[0034] Figure 6 A structural block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0037] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0038] At present, the GB / T 28181 standard is widely used in the field of video surveillance. With the expansion of the scale of security monitoring systems, the management and allocation of ports have become urgent issues to be solved. This application can achieve effective port convergence and improve system performance through reasonable management and optimization of GB / T28181 media service ports.

[0039] The present application embodiment provides a method for transmitting media data, which is applied to a gateway device, such as Figure 1 As shown, the method includes:

[0040] Step 101: Receive the Internet Protocol IP address and port information corresponding to the target media service sent by the media server. The target media service is one of multiple media services provided by the media server. Each media service corresponds to a fixed port.

[0041] In the embodiment of the present application, the media server provides multiple media services, and the target media service is one of the multiple media services. For each media service on the media server, it corresponds to a fixed port. Based on the one-to-one correspondence between the media service and the fixed port, the port can be reasonably allocated and used to reduce the port conflict problem. For the target media service, after the media port is fixed, the receiving port of the target media service can be fixed, and the waste of port resources can be reduced through port multiplexing. Among them, TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) can run on fixed ports.

[0042] The gateway device communicates with the media server, and receives the IP (Internet Protocol) address and port information corresponding to the target media service sent by the media server, and the port information provided by the target media service is the information of the corresponding fixed port.

[0043] Step 102: Send the IP address and port information corresponding to the target media service to the network camera IPC. The IP address and port information corresponding to the target media service are used to guide the IPC to transmit the target media data stream to the target media service. The target media data stream carries the target stream identifier provided by the IPC for marking the target media data stream. The source identifier of the target media data stream is generated based on the device identifier and the target stream identifier corresponding to the IPC.

[0044] IPC (Internet Protocol Camera) is a new generation of camera that combines traditional cameras with network technology. It can transmit video, audio, alarm and control signals through the network and be managed by the network monitoring host. IPC can be combined with routers, switches, NVR (Network Video Recorder) and other devices to form a monitoring system.

[0045] The gateway device sends the IP address and port information corresponding to the target media service to the IPC. Based on the IP address and port information corresponding to the target media service, the IPC provides the target media data stream for the target media service. The provided target media data stream may be an audio stream or a video stream. The IPC may also provide a target stream identifier for identifying the target media data stream. Based on the target stream identifier, the target media data stream can be distinguished from other media data streams currently provided by the IPC.

[0046] For the target media data stream provided by the IPC to the target media service, its corresponding source identifier is generated based on the device identifier corresponding to the IPC and the target stream identifier provided by the IPC for marking the target media data stream. The device identifier is used to indicate the device providing the target media data stream, and the target stream identifier is used to indicate a data stream provided by the IPC. The source identifier associates the two to form a unique identifier for distinguishing the stream source.

[0047] Step 103: Provide the service provider with a stream pull address carrying a device identifier and a target stream identifier, where the device identifier and the target stream identifier are provided by the target media service.

[0048] After determining the source identifier of the target media data stream, the target media service can report the device identifier and target stream identifier associated with the target media service to the gateway device. The gateway device generates a stream pulling address associated with the target media service and matching the target media data stream based on the device identifier and the target stream identifier, and provides the stream pulling address to the business party so that the business party can pull media data based on the stream pulling address.

[0049] Step 104: In response to the stream pull address sent by the business party, a target media data stream is requested from the target media service, and the target media service provides media data to the business party.

[0050] After providing the streaming address for the business party, the gateway device, in response to receiving the streaming address sent by the business party, requests the associated target media service for the target media data stream matching the streaming address, so that the target media service provides the required media data for the business party.

[0051] The above implementation scheme of the present application, in the case of a fixed media port of the target media service, receives the IP address and fixed port information provided by the target media service, sends the IP address and fixed port information to the IPC, and the IPC provides the target media data stream for the target media service through the IP address and the fixed port; generates a stream pulling address based on a unique identifier corresponding to the target media data stream to distinguish the stream source and provides it to the business party; in response to the business party's request, pulls adapted media data from the fixed port of the target media service based on the unique identifier, thereby providing a correct media data stream and avoiding streaming.

[0052] This application can reduce the waste of port resources and port conflicts while ensuring the normal transmission of media data streams. The reasonable management and optimization of media service ports can achieve effective port convergence and improved system performance. At the same time, it can effectively reduce the network attack surface, enhance system security, reduce manual intervention, and reduce operation and maintenance costs.

[0053] In an optional embodiment of the present application, the method further includes:

[0054] The gateway device sends a first acquisition request to the IPC indicating acquisition of the synchronization source connection identifier SSRC; receives the SSRC corresponding to the IPC fed back by the IPC; and establishes a mapping relationship between the device identifier corresponding to the IPC and the SSRC;

[0055] Among them, the first acquisition request is sent to the IPC via the upper platform and the lower platform in turn, and the SSRC corresponding to the IPC is fed back to the gateway device via the lower platform and the upper platform in turn; the IP address and port information corresponding to the target media service are sent to the IPC via the upper platform and the lower platform in turn.

[0056] The upper-level platform and the lower-level platform in the embodiment of the present application are cascade platforms under the GB / T 28181 standard. For the lower-level platform, it is usually necessary to cascade with the upper-level platform to achieve data sharing and interconnection. During the cascading process, the lower-level platform will register the local monitoring device information (such as IPC device information) to the upper-level platform, and the upper-level platform can obtain the device information of the lower-level platform by sending a directory query request. For the lower-level platform, it needs to respond to the request of the upper-level platform and provide adaptation information.

[0057] The gateway device communicates with the IPC based on the upper platform and the lower platform. The IPC is a device that communicates with the lower platform under the GB / T 28181 standard. The gateway device sends a first acquisition request to the IPC via the upper platform and the lower platform in turn, and receives the SSRC (Synchronization Source Identifier) ​​corresponding to the IPC fed back by the IPC via the lower platform and the upper platform in turn. SSRC is an important concept in the real-time transport protocol and is used to identify the source of a data stream. After obtaining the SSRC corresponding to the IPC, the gateway device establishes a mapping relationship between the device identifier corresponding to the IPC and the SSRC, and stores it in the memory or instantiates it in the database.

[0058] Among them, when the gateway device sends the IP address and port information corresponding to the target media service to the IPC, it needs to pass through the upper-level platform and the lower-level platform in sequence, that is, the gateway device sends the IP address and port information corresponding to the target media service to the upper-level platform, the upper-level platform sends it to the lower-level platform, and the lower-level platform sends the IP address and port information corresponding to the target media service to the IPC.

[0059] Since the SSRC is used to identify the source of a data stream, the target media data stream transmitted by the IPC to the target media service carries not only the target stream identifier used to identify the target media data stream, but also the SSRC corresponding to the IPC. After receiving the target media data stream, the target media service can obtain the SSRC corresponding to the IPC. The method also includes:

[0060] The gateway device receives a second acquisition request sent by the media server and carrying the SSRC corresponding to the IPC, where the second acquisition request indicates acquisition of the device identifier and is provided by the target media service;

[0061] The gateway device determines the device identifier associated with the SSRC corresponding to the IPC according to the mapping relationship, feeds the device identifier back to the target media service on the media server, and provides the target media service with the device identifier for generating the source identifier.

[0062] After the target media service obtains the SSRC corresponding to the IPC based on the target media data stream, it generates a second acquisition request carrying the SSRC corresponding to the IPC and indicating the acquisition of the device identifier, and sends the second acquisition request to the gateway device. The gateway device receives the second acquisition request carrying the SSRC corresponding to the IPC sent by the target media service on the media server, determines the device identifier corresponding to the IPC based on the stored mapping relationship between the device identifier corresponding to the IPC and the SSRC, and provides the device identifier to the target media service on the media server, so that the target media service obtains the required device identifier.

[0063] For the target media service, after obtaining the device identifier, it generates the source identifier of the target media data stream based on the device identifier and the target stream identifier provided by the IPC carried by the target media data stream. Since the device identifier indicates the device providing the target media data stream and the target stream identifier indicates a specific data stream provided by the IPC, the source identifier is generated based on the above two, which can provide a unique identifier for distinguishing the stream source.

[0064] In the above implementation scheme, after the gateway device requests to obtain the SSRC corresponding to the IPC, a mapping relationship between the device identifier corresponding to the IPC and the SSRC is established, and a device identifier is provided for the target media service based on the mapping relationship, so that the target media service can generate a unique identifier to distinguish the stream source based on the device identifier and the target stream identifier.

[0065] The following describes the process of providing a streaming address to a business party. When providing a streaming address that carries a device ID and a target stream ID to a business party, it includes:

[0066] In response to the stream pull address acquisition request sent by the business party, determine the device identifier corresponding to the IPC providing the target media data stream and the target stream identifier indicating the target media data stream;

[0067] A stream pull address associated with the target media data stream is generated based on the device identifier and the target stream identifier, and the stream pull address is provided to the service party.

[0068] For the target media data stream that can be provided by the target media service, its source identifier (a unique identifier for distinguishing the source of the stream) is generated based on the device identifier and the target stream identifier. The target media service can report the device identifier and the target stream identifier associated with the target media data stream to the gateway device. The gateway device establishes an association relationship between the device identifier, the target stream identifier and the target media service based on the received device identifier and target stream identifier. The association relationship is used to characterize that the target media service can provide the target media data stream with the associated device identifier and the target stream identifier.

[0069] After obtaining the device identifier and target stream identifier provided by the target media service, the gateway device generates a stream pull address associated with the target media data stream based on the device identifier and the target stream identifier in response to the stream pull address acquisition request sent by the business party, and provides the stream pull address to the business party. The stream pull address is generated by the gateway device based on the device identifier, the target stream identifier and the device information of the gateway device.

[0070] The gateway device stores the association between the device identifier, the target stream identifier and the target media service, and when the gateway device requests the target media service for the target media data stream in response to the stream pull address sent by the business party, it includes:

[0071] The target media service is determined according to the association relationship, the device identifier and the target stream identifier carried by the stream pulling address; based on the IP address and port information corresponding to the target media service, the target media data stream matching the device identifier and the target stream identifier is pulled from the target media service and fed back to the business party.

[0072] After receiving the pull stream address carrying the device identifier and the target stream identifier sent by the service party (such as the user terminal), the gateway device determines the service direction to request media data from the target media service based on the stored association relationship between the device identifier, the target stream identifier and the target media service. Then, based on the IP address and port information corresponding to the target media service, the gateway device sends a pull request to the target media service, which carries the device identifier and the target stream identifier, so as to pull the target media data stream matching the device identifier and the target stream identifier from the target media service, and provide the pulled target media data stream to the service party.

[0073] Since the pull stream address carries a unique identifier (device identifier and target stream identifier) ​​for distinguishing the stream source, it can be ensured that the target media service provides the correct media stream and cross-streaming will not occur.

[0074] In the above implementation scheme, after the gateway device provides the streaming address for the business party, it responds to the streaming address sent by the business party, locates the target media service based on the information carried in the streaming address, and requests media data from the target media service, thereby ensuring that the correct media stream is provided to the business party.

[0075] The above is a media data transmission method applied to a gateway device. The following is an introduction to a media data transmission method applied to a media server. Figure 2 As shown:

[0076] Step 201: Send the Internet Protocol IP address and port information corresponding to the target media service to the gateway device, where the target media service is one of multiple media services provided by the media server, and each media service corresponds to a fixed port.

[0077] The media server can provide multiple media services, and the target media service is one of the multiple media services. Each media service on the media server corresponds to a fixed port. Based on the one-to-one correspondence between the media service and the fixed port, the port can be reasonably allocated and used to reduce the port conflict problem. After the target media service is started, the media server sends the IP address of the target media service and the corresponding fixed port information to the gateway device.

[0078] Step 202: Receive the target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service. The target media data stream carries the target stream identifier provided by the IPC for marking the target media data stream. The IP address and port information corresponding to the target media service are sent to the IPC by the gateway device.

[0079] After the media server sends the IP address and port information corresponding to the target media service to the gateway device, the gateway device sends the IP address and port information corresponding to the target media service to the IPC. The gateway device sends the IP address and port information corresponding to the target media service to the upper-level platform, the upper-level platform sends it to the lower-level platform, and the lower-level platform sends the IP address and port information corresponding to the target media service to the IPC, so that the IP address and port information corresponding to the target media service is provided to the IPC through the upper-level platform and the lower-level platform in turn.

[0080] The IPC provides a target media data stream for the target media service based on the IP address and port information corresponding to the target media service. The target media data stream provided may be an audio stream or a video stream. The IPC may also provide a target stream identifier for identifying the target media data stream. Based on the target stream identifier, the target media data stream may be distinguished from other media data streams provided by the current IPC.

[0081] Step 203: Generate a source identifier of the target media data stream based on the device identifier and the target stream identifier corresponding to the IPC.

[0082] After obtaining the target media data stream carrying the target stream identifier, the target media service on the media server generates the source identifier of the target media data stream based on the device identifier and the target stream identifier corresponding to the IPC. Among them, the target stream identifier is provided by the IPC for the target media data stream, and the device identifier is obtained by the target media service through the gateway device. The device identifier is used to indicate the device that provides the target media data stream, and the target stream identifier is used to indicate a data stream provided by the IPC. The source identifier associates the two to form a unique identifier that distinguishes the source of the stream.

[0083] Step 204: Send the target media data stream to the gateway device according to the pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and the association relationship, and the association relationship indicates that the device identifier, the target stream identifier and the target media service are associated.

[0084] After determining the source identifier of the target media data stream, the target media service can report the device identifier and target stream identifier associated with the target media service to the gateway device. The gateway device establishes an association relationship between the device identifier, the target stream identifier and the target media service based on the received device identifier and target stream identifier. The association relationship is used to characterize that the target media service can provide the target media data stream with the associated device identifier and target stream identifier.

[0085] The gateway device can also generate a pull stream address associated with the target media service and matching the target media data stream based on the device identifier and the target stream identifier, and provide the pull stream address to the business party, so that the business party can pull media data from the target media service based on the pull stream address. After providing the pull stream address to the business party, the gateway device locates the target media service based on the pull stream address sent by the business party and uses the association relationship, and sends a pull request to the target media service based on the IP address and port information corresponding to the target media service.

[0086] The target media service feeds back the target media data stream that matches the device ID and the target stream ID to the gateway device based on the pull request carrying the device ID and the target stream ID sent by the gateway device, and the gateway device provides the pulled target media data stream to the service party.

[0087] The above implementation scheme reports the IP address and fixed port information corresponding to the target media service to the gateway device. After the gateway device provides the IP address and fixed port information to the IPC, it receives the target media data stream sent by the IPC, generates a unique identifier corresponding to the target media data stream to distinguish the stream source based on the IPC device identifier and the target stream identifier, and provides the target media data stream to the gateway device after receiving the pull request carrying the unique identifier. It can provide the correct media data stream and avoid streaming.

[0088] Moreover, by fixing the media ports, the waste of port resources and port conflicts can be reduced while ensuring the normal transmission of media data streams, thereby achieving effective port convergence and improved system performance. At the same time, it can effectively reduce the network attack surface, enhance system security, reduce manual intervention, and reduce operation and maintenance costs.

[0089] In an optional embodiment, the gateway device stores a mapping relationship between a device identifier corresponding to the IPC and a synchronization source connection identifier SSRC, and the target media data stream transmitted by the IPC to the target media service carries the SSRC corresponding to the IPC. The method further includes:

[0090] Sending a second acquisition request carrying the SSRC corresponding to the IPC to the gateway device, where the second acquisition request indicates acquisition of the device identifier and is provided by the target media service;

[0091] The receiving gateway device feeds back a device identifier associated with the SSRC corresponding to the IPC and used to generate a source identifier based on the mapping relationship.

[0092] When the target media service generates a unique identifier for distinguishing the source of the target media data stream, the IPC device identifier it uses is provided by the gateway device. For the gateway device, it obtains the SSRC corresponding to the IPC provided by the IPC by sending a first acquisition request to the IPC. After obtaining the SSRC corresponding to the IPC, it establishes and stores the mapping relationship between the device identifier corresponding to the IPC and the SSRC. Since the target media data stream carries the SSRC corresponding to the IPC, after obtaining the SSRC corresponding to the IPC, the target media service generates a second acquisition request carrying the SSRC corresponding to the IPC and indicating the acquisition of the device identifier, and sends the second acquisition request to the gateway device. The receiving gateway device feeds back the device identifier corresponding to the IPC based on the mapping relationship.

[0093] After obtaining the device identifier, the target media service generates a source identifier of the target media data stream based on the device identifier and the target stream identifier carried by the target media data stream. Since the device identifier indicates the device providing the target media data stream and the target stream identifier indicates a specific data stream provided by the IPC, the source identifier is generated based on the above two, which can provide a unique identifier for distinguishing the stream source.

[0094] In the above implementation process, a request is sent to the gateway device based on the SSRC corresponding to the IPC, and the receiving gateway device feeds back the device identifier according to the mapping relationship. A unique identifier of the target media data stream can be generated based on the device identifier and the target stream identifier, thereby ensuring the provision of correct media data.

[0095] The following is an introduction to the process of transmitting media data in the scenario of using the GB / T 28181 protocol through a specific interaction process. Figure 3 As shown:

[0096] The target media service provided by the media server reports the IP address and fixed port information of the target media service to the gateway device. After receiving the IP address and fixed port information, the gateway device provides the IP address and fixed port information to the IPC via the upper platform and the lower platform (the two platforms belong to the cascade platform under the GB / T 28181 standard); and sends the first acquisition request for requesting SSRC to the IPC via the upper platform and the lower platform, and receives the SSRC corresponding to the IPC provided by the IPC and transmitted via the lower platform and the upper platform; after obtaining the SSRC corresponding to the IPC, the gateway device establishes a mapping relationship between the SSRC corresponding to the IPC and the device identifier.

[0097] Based on the IP address and fixed port information of the target media service, the IPC provides the target media data stream for the target media service. The target media data stream carries the target stream identifier provided by the IPC and the SSRC corresponding to the IPC.

[0098] The target media service sends a second acquisition request carrying the SSRC corresponding to the IPC to the gateway device, and receives the device identifier associated with the SSRC corresponding to the IPC fed back by the gateway device based on the mapping relationship. The target media service generates the source identifier of the target media data stream based on the acquired device identifier and target stream identifier corresponding to the IPC, and reports the device identifier and target stream identifier associated with the target media data stream to the gateway device.

[0099] Based on the received device identifier and target stream identifier, the gateway device establishes an association relationship between the device identifier, the target stream identifier and the target media service, and based on the stream pull address acquisition request sent by the business party, generates a stream pull address associated with the target media data stream according to the device identifier and the target stream identifier, and provides the stream pull address to the business party.

[0100] After the gateway device receives the pull stream address carrying the device identifier and target stream identifier provided by the business party, it locates the target media service based on the association relationship, requests the target media service for the target media data stream that matches the device identifier and target stream identifier, and sends the target media data stream to the business party.

[0101] Among them, the solution provided by the embodiment of the present application can be applied to the following scenarios: large-scale video surveillance system, remote video surveillance in a multi-layer network structure, security system of a campus or enterprise park, multimedia surveillance in intelligent buildings, public safety command center, real-time video surveillance in intelligent transportation system, portable monitoring system in emergency management, smart home security system, etc. By fixing the port of the media service, in the case of a complex network structure, especially when it involves public network and intranet communication and public network port resources are limited, the port can be controlled and fixed to ensure the convergence of the network port, which can reduce the consumption of port resources, reasonably allocate and use ports in the system, solve the problems of port waste, port conflict, and uneven port allocation in the video surveillance system, and at the same time upgrade the network port security capability to solve the current server network port occupation and network security problems.

[0102] The embodiment of the present application also provides a media data transmission device, which is applied to a gateway device, such as Figure 4 As shown, including:

[0103] The first receiving module 401 is used to receive the Internet Protocol IP address and port information corresponding to the target media service sent by the media server, where the target media service is one of multiple media services provided by the media server, and each media service corresponds to a fixed port;

[0104] The sending module 402 is used to send the IP address and port information corresponding to the target media service to the network camera IPC, where the IP address and port information corresponding to the target media service are used to guide the IPC to transmit a target media data stream to the target media service, where the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the source identifier of the target media data stream is generated based on the device identifier corresponding to the IPC and the target stream identifier;

[0105] A providing module 403 is used to provide a service party with a stream pull address carrying the device identifier and the target stream identifier, wherein the device identifier and the target stream identifier are provided by the target media service;

[0106] The request module 404 is used to request the target media data stream from the target media service in response to the stream pull address sent by the business party, and the target media service provides media data to the business party.

[0107] Optionally, the device further comprises:

[0108] A first sending module, configured to send a first acquisition request to the IPC indicating acquisition of a synchronization source connection identifier SSRC;

[0109] A second receiving module is used to receive the SSRC corresponding to the IPC fed back by the IPC;

[0110] An establishment module is used to establish a mapping relationship between the device identification corresponding to the IPC and the SSRC;

[0111] The first acquisition request is sent to the IPC via the upper platform and the lower platform in sequence, and the SSRC corresponding to the IPC is fed back to the gateway device via the lower platform and the upper platform in sequence;

[0112] The IP address and port information corresponding to the target media service are sent to the IPC via the upper-level platform and the lower-level platform in sequence.

[0113] Optionally, the target media data stream transmitted by the IPC to the target media service carries the SSRC corresponding to the IPC, and the device further includes:

[0114] A third receiving module is used to receive a second acquisition request sent by the media server and carrying the SSRC corresponding to the IPC, where the second acquisition request indicates acquisition of a device identifier and is provided by the target media service;

[0115] A feedback module is determined, which is used to determine the device identifier associated with the SSRC corresponding to the IPC according to the mapping relationship, feed back the device identifier to the media server, and provide the target media service with the device identifier for generating a source identifier.

[0116] Optionally, the providing module includes:

[0117] A first determination submodule is used to determine, in response to the pull stream address acquisition request sent by the business party, a device identifier corresponding to the IPC providing the target media data stream and a target stream identifier indicating the target media data stream;

[0118] The generating and providing submodule is used to generate a stream pulling address associated with the target media data stream based on the device identifier and the target stream identifier, and provide the stream pulling address to the service party.

[0119] Optionally, the gateway device stores an association relationship between the device identifier, the target stream identifier and the target media service; and the request module includes:

[0120] A second determination submodule is used to determine the target media service according to the association relationship, the device identifier carried by the stream pull address, and the target stream identifier;

[0121] The pull feedback submodule is used to pull the target media data stream matching the device identifier and the target stream identifier from the target media service and feed it back to the service party.

[0122] The present application also provides a media data transmission device, which is applied to a media server, such as Figure 5 As shown, including:

[0123] The second sending module 501 is used to send the Internet Protocol IP address and port information corresponding to the target media service to the gateway device, wherein the target media service is one of the multiple media services provided by the media server, and each media service corresponds to a fixed port;

[0124] A fourth receiving module 502 is used to receive a target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the IP address and port information corresponding to the target media service are sent by the gateway device to the IPC;

[0125] A generating module 503, configured to generate a source identifier corresponding to the target media data stream based on the device identifier corresponding to the IPC and the target stream identifier;

[0126] The third sending module 504 is used to send the target media data stream to the gateway device according to the pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and the association relationship, and the association relationship indicates that the device identifier, the target stream identifier are associated with the target media service.

[0127] Optionally, the gateway device stores a mapping relationship between a device identifier corresponding to the IPC and a synchronization source connection identifier SSRC, and the target media data stream transmitted by the IPC to the target media service carries the SSRC corresponding to the IPC. The apparatus further includes:

[0128] A fourth sending module, configured to send a second acquisition request carrying the SSRC corresponding to the IPC to the gateway device, where the second acquisition request indicates acquisition of a device identifier and is provided by the target media service;

[0129] The fifth receiving module is used to receive a device identifier associated with the SSRC corresponding to the IPC and used to generate a source identifier, which is fed back by the gateway device based on the mapping relationship.

[0130] As for the apparatus embodiment, since it is basically similar to the method embodiments on the gateway device side and the media server side, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiment.

[0131] On the other hand, an embodiment of the present application also provides an electronic device, including a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the media data transmission method on the above-mentioned gateway device side or the media server side are implemented.

[0132] For example, Figure 6 A schematic diagram of the physical structure of an electronic device is shown.

[0133] like Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630, and the processor 610 is used to execute each process of the media data transmission method on the gateway device side or the media server side of the embodiment of the present application, which will not be described one by one here.

[0134] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0135] On the other hand, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the media data transmission method provided in the above-mentioned embodiments on the gateway device side or the media server side.

[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A media data transmission method, applied to a gateway device, characterized in that: include: Receiving Internet Protocol IP address and port information corresponding to a target media service sent by a media server, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port; Sending the IP address and port information corresponding to the target media service to the network camera IPC, wherein the IP address and port information corresponding to the target media service are used to guide the IPC to transmit a target media data stream to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and a source identifier of the target media data stream is generated based on a device identifier corresponding to the IPC and the target stream identifier; Providing a stream pull address carrying the device identifier and the target stream identifier to the service provider, wherein the device identifier and the target stream identifier are provided by the target media service; In response to the stream pull address sent by the service provider, the target media service is requested for the target media data stream, and the target media service provides media data for the service provider.

2. The method according to claim 1, characterized in that The method further comprises: Sending a first acquisition request to the IPC indicating acquisition of a synchronization source connection identifier SSRC; Receive the SSRC corresponding to the IPC fed back by the IPC; Establishing a mapping relationship between the device identifier corresponding to the IPC and the SSRC; The first acquisition request is sent to the IPC via the upper platform and the lower platform in sequence, and the SSRC corresponding to the IPC is fed back to the gateway device via the lower platform and the upper platform in sequence; The IP address and port information corresponding to the target media service are sent to the IPC via the upper-level platform and the lower-level platform in sequence.

3. The method according to claim 2, characterized in that The target media data stream transmitted by the IPC to the target media service carries the SSRC corresponding to the IPC, and the method further includes: receiving a second acquisition request sent by the media server and carrying the SSRC corresponding to the IPC, where the second acquisition request indicates acquisition of a device identifier and is provided by the target media service; The device identifier associated with the SSRC corresponding to the IPC is determined according to the mapping relationship, and the device identifier is fed back to the media server to provide the target media service with the device identifier used to generate the source identifier.

4. The method according to claim 1, characterized in that: The providing the service party with a stream pull address carrying the device identifier and the target stream identifier includes: In response to the stream pull address acquisition request sent by the business party, determine the device identifier corresponding to the IPC providing the target media data stream and the target stream identifier indicating the target media data stream; A stream pulling address associated with the target media data stream is generated based on the device identifier and the target stream identifier, and the stream pulling address is provided to the service party.

5. The method according to claim 1 or 4, characterized in that: The gateway device stores an association relationship between the device identifier, the target stream identifier and the target media service; The step of requesting the target media data stream from the target media service in response to the stream pull address sent by the service party includes: Determine the target media service according to the association relationship, the device identifier carried by the stream pulling address, and the target stream identifier; The target media data stream matching the device identifier and the target stream identifier is pulled from the target media service and fed back to the service provider.

6. A media data transmission method, applied to a media server, characterized in that: include: Sending an Internet Protocol IP address and port information corresponding to a target media service to a gateway device, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port; Receive a target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service, the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the IP address and port information corresponding to the target media service are sent by the gateway device to the IPC; Generate a source identifier corresponding to the target media data stream based on the device identifier corresponding to the IPC and the target stream identifier; The target media data stream is sent to the gateway device according to a pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and an association relationship, and the association relationship indicates that the device identifier and the target stream identifier are associated with the target media service.

7. The method according to claim 6, characterized in that The gateway device stores a mapping relationship between a device identifier corresponding to the IPC and a synchronization source connection identifier SSRC, and the target media data stream transmitted by the IPC to the target media service carries the SSRC corresponding to the IPC. The method further includes: Sending a second acquisition request carrying the SSRC corresponding to the IPC to the gateway device, where the second acquisition request indicates acquisition of a device identifier and is provided by the target media service; Receive a device identifier associated with the SSRC corresponding to the IPC and used to generate the source identifier, which is fed back by the gateway device based on the mapping relationship.

8. A media data transmission device, applied to a gateway device, characterized in that: include: A first receiving module is used to receive an Internet Protocol IP address and port information corresponding to a target media service sent by a media server, wherein the target media service is one of a plurality of media services provided by the media server, and each media service corresponds to a fixed port; A sending module, used for sending the IP address and port information corresponding to the target media service to the network camera IPC, wherein the IP address and port information corresponding to the target media service are used to guide the IPC to transmit a target media data stream to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and a source identifier of the target media data stream is generated based on a device identifier corresponding to the IPC and the target stream identifier; A providing module, used for providing a service party with a stream pull address carrying the device identifier and the target stream identifier, wherein the device identifier and the target stream identifier are provided by the target media service; The request module is used to request the target media data stream from the target media service in response to the stream pull address sent by the business party, and the target media service provides media data to the business party.

9. A media data transmission device, applied to a media server, characterized in that: include: A second sending module is used to send the Internet Protocol IP address and port information corresponding to the target media service to the gateway device, wherein the target media service is one of the multiple media services provided by the media server, and each media service corresponds to a fixed port; A fourth receiving module is used to receive a target media data stream transmitted by the network camera IPC based on the IP address and port information corresponding to the target media service, wherein the target media data stream carries a target stream identifier provided by the IPC for marking the target media data stream, and the IP address and port information corresponding to the target media service are sent by the gateway device to the IPC; A generating module, configured to generate a source identifier corresponding to the target media data stream based on a device identifier corresponding to the IPC and the target stream identifier; A third sending module is used to send the target media data stream to the gateway device according to a pull request for pulling the target media data stream sent by the gateway device to the target media service, wherein the pull request is sent by the gateway device after receiving the pull address carrying the device identifier and the target stream identifier provided by the service party and determining the target media service, and the target media service is determined based on the device identifier, the target stream identifier and an association relationship, and the association relationship indicates that the device identifier and the target stream identifier are associated with the target media service.

10. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the media data transmission method as described in any one of claims 1 to 5 or 6 to 7.

Citation Information

Patent Citations

  • Method for transmitting signaling and media flow by multimedia gateway

    CN101013997A

  • Base station communication method, device and system, security gateway and storage medium

    CN118524395A

  • Remote control system, processing side distributed control system thereof and remote control method

    JP2003249943A

  • Media Transfer to a Renderer in a Local Network from a Server in a Second Local Network

    US20110320572A1