Data transmission method, terminal device, and computer-readable storage medium

文档序号:473117 发布日期:2021-12-31 浏览:9次 中文

阅读说明:本技术 数据传输方法、终端设备以及计算机可读存储介质 (Data transmission method, terminal device, and computer-readable storage medium ) 是由 周玉龙 吴嵩 贾正东 于 2021-09-17 设计创作,主要内容包括:本申请公开了一种数据传输方法、终端设备以及计算机可读存储介质,该数据传输方法应用于一种网络音视频矩阵系统的解码端,解码端与编码端、若干次级解码端通信连接;数据传输方法包括:获取来自次级解码端的请求数据信令,其中,请求数据信令包括次级解码端的分发数据信令接收地址;判断当前已占用分发能力值是否达到最大分发能力值;若是,则向次级解码端发送次级分发设备表,以使次级解码端向次级分发设备表中的其他次级解码端发送请求数据信令,次级分发设备表发送完成后,断开与次级解码端的网络连接。本申请通过解码端实现数据分发,降低编码端的分发能力要求,简化了网络音视频矩阵系统的结构。(The application discloses a data transmission method, terminal equipment and a computer readable storage medium, wherein the data transmission method is applied to a decoding end of a network audio and video matrix system, and the decoding end is in communication connection with an encoding end and a plurality of secondary decoding ends; the data transmission method comprises the following steps: acquiring a request data signaling from a secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not; if yes, sending the secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent. According to the method and the device, data distribution is realized through the decoding end, the distribution capability requirement of the encoding end is reduced, and the structure of a network audio and video matrix system is simplified.)

1. A data transmission method is characterized in that the data transmission method is applied to a decoding end of a network audio and video matrix system, and the decoding end is in communication connection with an encoding end and a plurality of secondary decoding ends; the data transmission method comprises the following steps:

acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

2. The data transmission method according to claim 1,

the data transmission method further comprises the following steps:

when the current occupied distribution capacity value does not reach the maximum distribution capacity value, the network connection with the secondary decoding end is kept, and audio and video data are distributed;

and adding the distribution data signaling receiving address of the secondary decoding end into the secondary distribution equipment table.

3. The data transmission method according to claim 1,

after the obtaining of the request data signaling from the secondary decoding end, the method further includes:

judging whether the current state is about to finish distributing service;

if so, disconnecting the network connection with the secondary decoding end;

if not, judging whether the currently occupied distribution capacity value reaches the maximum distribution capacity value or not.

4. The data transmission method according to claim 1,

the data transmission method further comprises the following steps:

acquiring a request termination distribution data signaling from the secondary decoding end;

searching a distribution data signaling receiving address of the secondary decoding end in the secondary distribution equipment table, and deleting the address;

and stopping distributing the audio and video data to the secondary decoding end, and disconnecting the network connection with the secondary decoding end.

5. The data transmission method according to claim 1,

the data transmission method further comprises the following steps:

acquiring a source switching signaling, and acquiring a data request address of a specified encoding end from the source switching signaling;

sending a distribution equipment change signaling to all secondary decoding ends in the secondary distribution equipment table so that all the secondary decoding ends switch decoding ends for distributing audio and video data;

sending a data connection termination signaling to a current coding end, and disconnecting the network connection with the current coding end;

and initiating request data signaling to the appointed encoding terminal according to the data request address of the appointed encoding terminal so as to receive the audio video data from the appointed encoding terminal.

6. The data transmission method according to claim 5,

the data transmission method further comprises the following steps:

initiating a request data signaling to the appointed encoding terminal according to the data request address of the appointed encoding terminal;

judging whether the response from the specified encoding end is the response of successful request data;

if so, keeping the network connection with the specified encoding end, and starting to receive the audio and video data from the specified encoding end;

if not, acquiring a distribution data signaling receiving address of the available decoding end from the response of the specified encoding end, and sending a request data signaling to the available decoding end according to the distribution data signaling receiving address.

7. The data transmission method according to claim 5,

the data transmission method further comprises the following steps:

acquiring current audio and video data from the current encoding end and acquiring appointed audio and video data from the appointed encoding end;

checking whether the time of the current audio and video data and the time of the appointed audio and video data are aligned;

if so, sending a data connection termination signaling to the current encoding end, and disconnecting the data distribution network connection with the current encoding end;

and receiving the audio video data from the specified encoding terminal.

8. A data transmission method is characterized in that the data transmission method is applied to a network audio and video matrix system, wherein the network audio and video matrix system comprises a coding end, a plurality of first decoding ends and a plurality of second decoding ends which are in communication connection; the data transmission method comprises the following steps:

the second decoding end sends a request data signaling to the first decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the second decoding end;

the first decoding end judges whether the current occupied distribution capacity value reaches the maximum distribution capacity value;

if so, the first decoding end sends a secondary distribution equipment table to the second decoding end;

the second decoding end sends the request data signaling to other second decoding ends in the secondary distribution equipment table;

and after the secondary distribution equipment table is sent, the first decoding end is disconnected from the network of the second decoding end.

9. A terminal device, characterized in that the terminal device comprises a processor, a memory connected to the processor, wherein,

the memory stores program instructions;

the processor is to execute the memory-stored program instructions to implement:

acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

10. A computer-readable storage medium, wherein the storage medium stores program instructions that, when executed, implement:

acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

Technical Field

The present application relates to the field of network audio and video transmission technologies, and in particular, to a data transmission method, a terminal device, and a computer-readable storage medium.

Background

The network audio/video matrix has a simple system structure and is convenient to use, so that the network audio/video matrix is more and more widely applied.

The network audio and video matrix system is generally composed of a plurality of encoding ends connected with audio and video sources and a plurality of decoding end devices connected with audio and video reproducing devices, wherein the encoding ends and the decoding ends are connected through Ethernet. The audio and video data of any one encoding end can be transmitted to any one decoding end through the Ethernet, and the audio and video data is received, decoded and output by the decoding end. Data distribution and data source switching are two main problems to be solved by a network audio and video matrix system.

The method for distributing data to a plurality of decoding ends by an encoding end has higher requirements on the data distribution capacity of the encoding end, which has higher requirements on the data processing capacity of a processor of the encoding end, the throughput capacity of a network interface and the like, and the matrix application requirement that a plurality of decoding ends output the same encoding end program source cannot be realized; the method of distributing data to multiple decoding ends through a distribution server needs to add a special distribution server in the system, which increases the construction and use cost of the system and the complexity of the system, and at the same time, because the distribution server itself also has the limitation of distribution capability, the limitation of the number of sending ends and receiving ends in the system is not solved.

Disclosure of Invention

The application provides a data transmission method, a terminal device and a computer readable storage medium.

In order to solve the above technical problem, a first technical solution provided by the present application is: providing a data transmission method, wherein the data transmission method is applied to a decoding end of a network audio and video matrix system, and the decoding end is in communication connection with an encoding end and a plurality of secondary decoding ends; the data transmission method comprises the following steps:

acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

The data transmission method further comprises the following steps:

when the current occupied distribution capacity value does not reach the maximum distribution capacity value, the network connection with the secondary decoding end is kept, and audio and video data are distributed;

and adding the distribution data signaling receiving address of the secondary decoding end into the secondary distribution equipment table.

After obtaining the request data signaling from the secondary decoding end, the method further includes:

judging whether the current state is about to finish distributing service;

if so, disconnecting the network connection with the secondary decoding end;

if not, judging whether the currently occupied distribution capacity value reaches the maximum distribution capacity value or not.

The data transmission method further comprises the following steps:

acquiring a request termination distribution data signaling from the secondary decoding end;

searching a distribution data signaling receiving address of the secondary decoding end in the secondary distribution equipment table, and deleting the address;

and stopping distributing the audio and video data to the secondary decoding end, and disconnecting the network connection with the secondary decoding end.

The data transmission method further comprises the following steps:

acquiring a source switching signaling, and acquiring a data request address of a specified encoding end from the source switching signaling;

sending a distribution equipment change signaling to all secondary decoding ends in the secondary distribution equipment table so that all the secondary decoding ends switch decoding ends for distributing audio and video data;

sending a data connection termination signaling to a current coding end, and disconnecting the network connection with the current coding end;

and initiating request data signaling to the appointed encoding terminal according to the data request address of the appointed encoding terminal so as to receive the audio video data from the appointed encoding terminal.

The data transmission method further comprises the following steps:

initiating a request data signaling to the appointed encoding terminal according to the data request address of the appointed encoding terminal;

judging whether the response from the specified encoding end is the response of successful request data;

if so, keeping the network connection with the specified encoding end, and starting to receive the audio and video data from the specified encoding end;

if not, acquiring a distribution data signaling receiving address of the available decoding end from the response of the specified encoding end, and sending a request data signaling to the available decoding end according to the distribution data signaling receiving address.

The data transmission method further comprises the following steps:

acquiring current audio and video data from the current encoding end and acquiring appointed audio and video data from the appointed encoding end;

checking whether the time of the current audio and video data and the time of the appointed audio and video data are aligned;

if so, sending a data connection termination signaling to the current coding end, and disconnecting the network connection with the current coding end;

and receiving the audio video data from the specified encoding terminal.

In order to solve the above technical problem, a second technical solution provided by the present application is: providing another data transmission method, wherein the data transmission method is applied to a network audio and video matrix system, and the network audio and video matrix system comprises a coding end, a plurality of first decoding ends and a plurality of second decoding ends which are in communication connection; the data transmission method comprises the following steps:

the second decoding end sends a request data signaling to the first decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the second decoding end;

the first decoding end judges whether the current occupied distribution capacity value reaches the maximum distribution capacity value;

if so, the first decoding end sends a secondary distribution equipment table to the second decoding end;

the second decoding end sends the request data signaling to other second decoding ends in the secondary distribution equipment table;

and after the secondary distribution equipment table is sent, the first decoding end is disconnected from the network of the second decoding end.

In order to solve the above technical problem, a third technical solution provided by the present application is: providing a terminal device, wherein the terminal device comprises a processor and a memory connected with the processor, and the memory stores program instructions; the processor is to execute the memory-stored program instructions to implement: acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

In order to solve the above technical problem, a fourth technical solution provided by the present application is: there is provided a computer readable storage medium storing program instructions that when executed implement: acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end;

judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;

if so, sending a secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

In the data transmission method provided by the application, a decoding end acquires a request data signaling from a secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not; if yes, sending the secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent. According to the method and the device, data distribution is realized through the decoding end, the distribution capability requirement of the encoding end is reduced, and the structure of a network audio and video matrix system is simplified.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:

fig. 1 is a schematic flowchart of an embodiment of a data transmission method provided in the present application;

fig. 2 is a schematic flowchart of another embodiment of a data transmission method provided in the present application;

fig. 3 is a schematic flowchart of a data transmission method according to another embodiment of the present application;

fig. 4 is a schematic structural diagram of an embodiment of a terminal device provided in the present application;

fig. 5 is a schematic structural diagram of another embodiment of a terminal device provided in the present application;

fig. 6 is a schematic structural diagram of a computer-readable storage medium provided in the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The present application will be described in detail with reference to the accompanying drawings and examples.

Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data transmission method according to an embodiment of the present disclosure. The data transmission method is suitable for distributing the audio and video data in a TCP or UDP network unicast mode, avoids the requirement of distributing the data in a multicast mode on a network where a network audio and video matrix system is located, and improves the adaptability of the network audio and video matrix system to the network.

The data transmission method is applied to the decoding end in the network audio and video matrix system, wherein the network audio and video matrix system is a dynamic audio and video data distribution network formed by a coding end and a plurality of decoding ends, data distribution is realized through the distribution network, the dynamic distribution network does not need a special distribution server, the minimum requirement on the distribution capacity of the coding end is only two paths, the requirement on the high distribution capacity of the coding end is avoided, the miniaturization of a sending end circuit is facilitated, the system structure is simplified, and the system cost is reduced.

Specifically, the network audio/video matrix system provided by the embodiment of the application may include M encoding terminals and N decoding terminals, each encoding terminal is connected to one audio/video signal source to be input, and each decoding terminal is connected to one display device. All the encoding ends and the decoding ends are connected through Ethernet, and TCP communication and UDP communication can be carried out mutually through the Ethernet.

It should be noted that, the decoding end mentioned in this application is a terminal device with decoding capability, such as a decoder; the encoding end is a terminal device with encoding capability, such as an encoder.

The M encoding ends acquire audio and video signals provided by audio and video signal sources to be input and connected with the M encoding ends through audio and video input interfaces, and encode the audio and video signals into M audio and video data to be transmitted. Any one decoding end can acquire one of M audio/video data to be transmitted through the Ethernet by the data transmission method provided by the embodiment of the application, and decode and output the data to the display device.

For example, the IP addresses of M encoding terminals in the ethernet are IP _ TX1, IP _ TX2, …, and IP _ TXM, respectively, and the IP addresses of N decoding terminals in the ethernet are IP _ RX1, IP _ RX2, …, and IP _ RXN, respectively, and each of the M encoding terminals and the N decoding terminals has a program controller, and the program controller can implement the data transmission method provided by the embodiment of the present application by executing a program.

It should be noted that the distributed data signaling receiving address, the data request address, and the like mentioned in this application are all IP addresses of the terminal device.

When more decoding ends need to acquire data from the same encoding end so that the decoding ends can output the same audio and video source signaling, the encoding end directly distributes the data to a limited number of decoding ends, the decoding end which has acquired the audio and video data distributes the data to other decoding ends which need to acquire the data to establish a data distribution network, and finally the purpose of realizing almost infinite system distribution capacity by the low distribution capacity requirement of single terminal equipment is achieved. In the dynamic distribution network, one encoding end is a primary distribution device of the dynamic distribution network, a decoding end is a secondary data distribution device, and the secondary distribution devices are not fixed.

For the network audio/video matrix system composed of M encoding ends and N decoding ends described in this embodiment, all terminal devices constituting the system are divided into M device sets at most, each device set includes one encoding end and several decoding ends, and these sets do not have an intersection. Further, the one device set may form a distribution network in which the encoding end in the set is a primary data distribution device, and the other decoding ends are secondary distribution devices, and in this distribution network, the data distributed by each distribution device finally comes from the primary data distribution device directly or indirectly. In other words, the maximum M device sets may constitute a maximum M encoding-side distribution networks, which are formed in the same manner but each distribute the data to be distributed generated by the encoding side as the primary data distribution device of the present distribution network.

Specifically, the encoding side has a data distribution program module, and the decoding side has a data acquisition program module and a data distribution program module. And the data distributed by the coding end data distribution program module is the audio and video data to be distributed, which is obtained by coding the coding end. The data distributed by the decoding end data distribution program module is the audio and video data acquired by the decoding end from the encoding end or other decoding ends, namely, the decoding end which acquires the data decodes and outputs the acquired data on one hand, and on the other hand, the data which is acquired by the decoding end can be distributed to the other decoding end through the data distribution program module.

And the data distribution program module of the encoding end or the decoding end receives and processes the distribution control signaling from the decoding end by monitoring the distribution control signaling receiving address of the terminal equipment. The distribution control signaling comprises request data signaling and request termination data connection signaling. The data distribution program module can respectively establish network communication connection with a plurality of decoding ends one by one, distribute the audio and video data to be distributed to an opposite end through the established connection, and record a distribution control signaling receiving address of opposite end equipment; the number of communication connections that can be established by the data distribution program module is limited by the distribution capability of the device in which it is located, and this maximum distribution capability may be preset in the data distribution program module.

As shown in fig. 1, the data transmission method according to the embodiment of the present application includes the following specific steps:

step S11: and acquiring a request data signaling from the secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end.

In the embodiment of the application, the encoding end acquires the audio and video signals to be transmitted through the audio and video source, samples and encodes the audio and video signals to be transmitted, and distributes data after compressing the audio and video signals into audio and video data.

And after receiving the audio and video data distributed by the encoding end, the decoding end distributes the audio and video data to other secondary decoding ends. It should be noted that the secondary decoding end here is only used for explaining that the audio and video data of the decoding end comes from the distribution of other decoding ends, and the secondary decoding end may also distribute the audio and video data to other decoding ends.

Specifically, the secondary decoding end sends a request data signaling to the decoding end, and the decoding end is requested to distribute audio and video data. Wherein, the request data signaling comprises a distribution data signaling receiving address of a secondary decoding end. Due to the limited distribution capability of the decoding end, after receiving the request data signaling of the secondary decoding end, the decoding end needs to detect whether the remaining distribution capability of the decoding end is enough to process the audio/video data distribution task of the secondary decoding end.

Step S12: and judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value.

In the embodiment of the application, the decoding end judges whether the current occupied distribution capacity value of the decoding end reaches the maximum distribution capacity value which can be borne by the decoding end. If so, the audio and video data distribution task of the secondary decoding end cannot be processed, and the step S13 is entered; if not, the audio and video data distribution task of the secondary decoding end can be processed, and the step S14 is entered.

Specifically, the decoding side may determine whether the terminal device reaches the maximum distribution capability by comparing whether the number of currently established distribution connections reaches a preset maximum distribution connection number.

Further, before detecting the remaining distribution capability of the decoding side, the decoding side may also detect whether the decoding side is currently in a state of ending the distribution service. The decoding end which is distributing the audio and video data to other secondary decoding ends can only distribute the audio and video data from the upper-level distribution equipment, wherein the upper-level distribution equipment can be the upper-level decoding end or the encoding end, and when the decoding end prepares to disconnect the network connection with the upper-level distribution equipment, the decoding end enters a state of ending distribution service. When the decoding end is in the state of ending the distribution service, the problem of residual distribution capacity does not need to be considered, the request data signaling of the secondary decoding end is directly refused, and the network connection with the secondary decoding end is disconnected. When the decoding end is not ready to disconnect the network connection with the superior distribution equipment, whether the residual distribution capacity of the decoding end is enough to process the audio and video data distribution task of the secondary decoding end can be further detected.

Step S13: and sending the secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent.

In this embodiment of the present application, when the decoding end cannot process the audio/video data distribution task of the secondary decoding end, the decoding end may provide a secondary distribution device table of the terminal device to the secondary decoding end, where the secondary distribution device table records a distribution control signaling receiving address of another secondary decoding end that has already established distribution connection with the decoding end, and the distribution control signaling receiving address may be composed of an IP address of another secondary decoding end and a distribution control signaling listening port.

For the secondary decoding end, the secondary decoding end can send request data signaling to other secondary decoding ends in the table according to the distribution control signaling receiving address in the secondary distribution equipment table, so as to obtain audio and video data from other secondary decoding ends. Because the audio and video data of all secondary decoding ends in the secondary distribution equipment table are from the decoding ends and the encoding ends in the same distribution network, the homology of the audio and video data can be ensured.

For the decoding end, after the decoding end completes the transmission of the secondary distribution equipment table, the network connection with the secondary decoding end can be disconnected.

Step S14: and maintaining the network connection with the secondary decoding end and distributing the audio and video data.

In the embodiment of the application, when the decoding end can process the audio and video data distribution task of the secondary decoding end, the decoding end keeps network connection with the secondary decoding end and starts to distribute the audio and video data through distribution connection.

Step S15: and adding the distribution data signaling receiving address of the secondary decoding end into a secondary distribution equipment table.

In this embodiment of the present application, the decoding side further adds the distribution data signaling receiving address of the secondary decoding side to the secondary distribution device table, and the secondary decoding side successfully establishes a distribution connection with the decoding side. And correspondingly increasing the current occupied distribution capacity value by the decoding end, namely increasing the number of the currently established data distribution connections by 1.

Further, when the decoding end receives the distribution data signaling which is requested to be terminated by the secondary decoding end, the decoding end acquires the distribution data signaling receiving address which needs to be disconnected from the distribution data signaling which is requested to be terminated, searches the distribution data signaling receiving address of the secondary decoding end in a secondary distribution equipment table, and deletes the address; and stopping distributing the audio and video data to the secondary decoding end, and disconnecting the network connection with the secondary decoding end. And correspondingly reducing the current occupied distribution capacity value by the decoding end, namely subtracting 1 from the current established data distribution connection number.

In the embodiment of the application, a decoding end acquires a request data signaling from a secondary decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the secondary decoding end; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not; if yes, sending the secondary distribution equipment table to the secondary decoding end so that the secondary decoding end sends request data signaling to other secondary decoding ends in the secondary distribution equipment table, and disconnecting the network connection with the secondary decoding end after the secondary distribution equipment table is sent. According to the method and the device, data distribution is realized through the decoding end, the distribution capability requirement of the encoding end is reduced, and the structure of a network audio and video matrix system is simplified.

Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a data transmission method according to another embodiment of the present application.

As shown in fig. 2, the data transmission method according to the embodiment of the present application includes the following specific steps:

step S21: and acquiring a source switching signaling, and acquiring a data request address of a specified encoding end from the source switching signaling.

In the embodiment of the present application, when the decoding end receives the source switching signaling, the encoder connected to the source to be switched, that is, the data request address of the specified encoder, is obtained from the source switching signaling, and is stored. Then, the decoding side performs switching of the connection encoder by the following steps.

Step S22: and sending a distribution equipment changing signaling to all secondary decoding ends in the secondary distribution equipment table so as to enable all the secondary decoding ends to switch the decoding ends for distributing the audio and video data.

In the embodiment of the present application, the decoding side detects whether the secondary distribution device table of the terminal device has a secondary decoding side. If not, the network connection of the current coding end can be directly disconnected, and a request data signaling is sent to the appointed coding end; if the secondary decoding end exists, a distribution equipment changing signaling needs to be sent to all secondary decoding ends in the secondary distribution equipment table, so that all the secondary decoding ends switch the decoding ends for distributing the audio and video data, namely, the distribution equipment is switched.

Since the decoding end needing to switch the distribution network may be distributing data to other decoding ends, forcing to switch the distribution network to which the decoding end belongs may cause temporary interruption of audio and video data streams of the secondary decoding end device, further cause problems of loss of output signals, blocking and the like of the secondary decoding device, and the problem is solved well through the program source switching process of the decoding end of the embodiment.

Step S23: and sending a data connection termination signaling to the current coding end, and disconnecting the network connection with the current coding end.

In the embodiment of the application, after waiting for all the secondary decoding ends which have sent the instruction for changing the distribution equipment to complete switching the distribution equipment, the decoding end sends a data connection termination signaling to the current decoding end, and disconnects the network connection with the current encoding end.

Furthermore, after the decoding end sends the termination data connection signaling, the decoding end can directly disconnect the distribution data connection with the current encoding end without waiting for the response of the current encoding end to the termination data connection signaling, and the time of the decoding end in the process of source switching can be effectively reduced.

It should be noted that, the decoding end sends a data connection termination signaling to the upper-level distribution device, in this embodiment, the upper-level distribution device may be an encoding end; in other embodiments, the upper level distribution device may also be another decoding end, that is, an upper level decoding end, that distributes the audio and video data to the decoding end.

Step S24: and initiating a request data signaling to the appointed encoding terminal according to the data request address of the appointed encoding terminal so as to receive the audio video data from the appointed encoding terminal.

In the embodiment of the application, the decoding end sends a data request address of a specified encoding end given by the source switching signaling to the fixed encoding end to initiate a process of requesting audio and video data.

Specifically, after sending the request data signaling to the designated encoding end, the decoding end waits for the response of the designated encoding end to the request data signaling. Then, it is judged whether or not the response from the specified encoding side is a response that the requested data is successful. If so, keeping network connection with the specified encoding end, and starting to receive audio and video data from the specified encoding end; if not, acquiring a distribution data signaling receiving address of the available decoding end from the response of the appointed encoding end, sending a request data signaling to the available decoding end according to the distribution data signaling receiving address, and waiting for signaling response.

Further, since the decoding end and the designated encoding end reestablish the distribution data connection, the data path of the new distribution data connection is different from the data path of the original distribution data connection, and it is necessary to check whether the audio and video data acquired through the two distribution data connections are aligned.

Specifically, the decoding end simultaneously acquires audio and video data from the original distribution data connection and the new distribution data connection, respectively caches the audio and video data, and compares the audio and video data time marks in the two data caches. When the time stamp of the audio and video data received through the new distribution data connection is included in the time stamp of the audio and video data received through the original distribution data connection, the audio and video data received by the two classification data connections are aligned.

When the audio and video data are aligned, the decoding end can send a data connection termination signaling to the current encoding end, and the network connection with the current encoding end is directly disconnected without receiving a response. Then, the decoding end receives audio and video data from the specified encoding end, and specifically, the decoding end can start to acquire audio and video data from the aligned audio and video data in the buffer.

Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a data transmission method according to another embodiment of the present application. The data transmission method provided in the embodiment of the present application is applied to a network audio/video matrix system, and please refer to the system architecture and the system function disclosed in the above embodiments specifically, which are not described herein again.

As shown in fig. 3, the data transmission method according to the embodiment of the present application includes the following specific steps:

step S31: and the second decoding end sends a request data signaling to the first decoding end, wherein the request data signaling comprises a distribution data signaling receiving address of the second decoding end.

Step S32: and the first decoding end judges whether the current occupied distribution capacity value reaches the maximum distribution capacity value.

Step S33: the first decoding end sends the secondary distribution equipment table to the second decoding end.

Step S34: and the second decoding end sends request data signaling to other second decoding ends in the secondary distribution equipment table.

Step S35: and after the secondary distribution equipment table is sent, the first decoding end is disconnected from the network of the second decoding end.

It should be noted that, steps S31 to S35 in the embodiments of the present application are all specifically described in the above embodiments, and are not described herein again.

The above embodiments are only one of the common cases of the present application and do not limit the technical scope of the present application, so that any minor modifications, equivalent changes or modifications made to the above contents according to the essence of the present application still fall within the technical scope of the present application.

With continuing reference to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of a terminal device provided in the present application. The terminal device of the embodiment of the present application is a data distribution device having a data distribution program module, such as a decoding end, in the embodiment of the data transmission method.

The terminal device 40 includes a signaling obtaining module 41, a capability judging module 42, and a data distributing module 43.

The signaling obtaining module 41 is configured to obtain a request data signaling from the secondary decoding end, where the request data signaling includes a distribution data signaling receiving address of the secondary decoding end.

And the capability judging module 42 is used for judging whether the currently occupied distribution capability value reaches the maximum distribution capability value.

And the data distribution module 43 is configured to send a secondary distribution device table to the secondary decoding end when the currently occupied distribution capability value reaches the maximum distribution capability value, so that the secondary decoding end sends the request data signaling to other secondary decoding ends in the secondary distribution device table, and after the secondary distribution device table is sent, the network connection with the secondary decoding end is disconnected.

Referring to fig. 5, fig. 5 is a schematic structural diagram of another embodiment of the terminal device provided in the present application. The terminal device comprises a memory 52 and a processor 51 connected to each other.

The memory 52 is used to store program instructions for implementing the data transfer method of any of the above.

The processor 51 is operative to execute program instructions stored in the memory 52.

The processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having the processing capability for signaling. The processor 51 may also be a general purpose processor, a Digital Signaling Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The storage 52 may be a memory bank, a TF card, etc., and may store all information in the string matching prediction apparatus, including the input raw data, the computer program, the intermediate operation results, and the final operation results. It stores and retrieves information based on the location specified by the controller. With the memory, the string matching prediction device has a memory function, and normal operation can be guaranteed. The memory of the string matching prediction device can be classified into a main memory (internal memory) and an auxiliary memory (external memory) according to the use, and also into an external memory and an internal memory. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory refers to a storage component on the main board, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.

In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a system server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application.

Please refer to fig. 6, which is a schematic structural diagram of a computer-readable storage medium according to the present application. The storage medium of the present application stores a program file 61 capable of implementing all the above data transmission methods, wherein the program file 61 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.

The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:快递柜监控视频播放控制方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类