CN108965993B - Method and device for decoding multi-channel video stream - Google Patents

Method and device for decoding multi-channel video stream Download PDF

Info

Publication number
CN108965993B
CN108965993B CN201710597073.7A CN201710597073A CN108965993B CN 108965993 B CN108965993 B CN 108965993B CN 201710597073 A CN201710597073 A CN 201710597073A CN 108965993 B CN108965993 B CN 108965993B
Authority
CN
China
Prior art keywords
video
network card
network
decoder
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710597073.7A
Other languages
Chinese (zh)
Other versions
CN108965993A (en
Inventor
彭宇龙
韩杰
王艳辉
刘宝臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201710597073.7A priority Critical patent/CN108965993B/en
Publication of CN108965993A publication Critical patent/CN108965993A/en
Application granted granted Critical
Publication of CN108965993B publication Critical patent/CN108965993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4347Demultiplexing of several video streams

Abstract

The embodiment of the invention provides a method and a device for decoding multi-channel video streams, which are applied to a switch of a video network, wherein the switch is provided with a plurality of decoders, and the method comprises the following steps: receiving a plurality of paths of video streams sent by a video networking server according to a downlink communication link configured for the switch; determining a target decoder corresponding to each video stream in the plurality of decoders; and transmitting each video stream to a corresponding target decoder for decoding. Because a plurality of decoders can be integrated on the circuit layout of the switch, the decoding of multiple paths of video streams can be performed in one device, the deployment of multiple paths of decoding devices is avoided, the cost is reduced, and the stability of the system is improved.

Description

Method and device for decoding multi-channel video stream
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for decoding multiple video streams.
Background
With the rapid development of network technologies, video communication such as video conference, video teaching, video monitoring and the like is widely popularized in the aspects of life, work, learning and the like of users.
The video recording end usually adopts multiple cameras to collect video data, the video data are coded into video streams with formats of H.264, H.265 and the like, the video streams are transmitted to the video playing end, the video playing end decodes the video streams, each video stream adopts single-channel decoding equipment to perform specific decoding work, multiple paths of decoding equipment are correspondingly stacked for the multiple paths of video streams, the cost is high, and meanwhile risks are brought to the stability of a system.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method for decoding multiple video streams and a corresponding apparatus for decoding multiple video streams that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a decoding method for multiple video streams, which is applied in a switch of a video network, where the switch has multiple decoders, and the method includes:
receiving a plurality of paths of video streams sent by a video networking server according to a downlink communication link configured for the switch;
determining a target decoder corresponding to each video stream in the plurality of decoders;
and transmitting each video stream to a corresponding target decoder for decoding.
Optionally, in the switch, each decoder has a corresponding network card, and each network card is configured with an IP address;
before the step of receiving multiple video streams sent by the video networking server according to the configured downlink communication link to the switch, the method further comprises:
receiving a state query instruction sent by a video network server according to a downlink communication link configured for the switch;
selecting a target network card from the network cards according to the state query instruction and a load balancing rule;
and packaging the IP address corresponding to the target network card to a state query response instruction, and sending the state query response instruction to the video networking server.
Optionally, the step of selecting a target network card from the network cards according to the state query instruction and the load balancing rule includes:
inquiring the flow of each network card;
and setting the network card with the minimum flow as a target network card.
Optionally, the step of determining a target decoder corresponding to each video stream in the plurality of decoders includes:
reading an IP address from each video stream;
and determining a decoder corresponding to the network card to which the IP address belongs as a target decoder.
Optionally, the step of transmitting each video stream to a corresponding target decoder for decoding includes:
and transmitting the video stream to a network card to which the IP address belongs so as to transmit the video stream to the target decoder for decoding.
The embodiment of the invention also discloses a decoding device of multi-channel video streams, which is applied to a switch of a video network, wherein the switch is provided with a plurality of decoders, and the device comprises:
the video stream receiving module is used for receiving a plurality of paths of video streams sent by the video networking server according to the downlink communication link configured for the switch;
a target decoder determining module, configured to determine a target decoder corresponding to each video stream in the plurality of decoders;
and the video stream decoding module is used for transmitting each path of video stream to a corresponding target decoder for decoding.
Optionally, in the switch, each decoder has a corresponding network card, and each network card is configured with an IP address; the device further comprises:
the state query instruction receiving module is used for receiving a state query instruction sent by the video networking server according to the downlink communication link configured for the switch;
the target network card selection module is used for selecting a target network card from the network cards according to the state query instruction and a load balancing rule;
and the state query response instruction sending module is used for packaging the IP address corresponding to the target network card into the state query response instruction and sending the state query response instruction to the video network server.
Optionally, the target network card selecting module includes:
the flow inquiry submodule is used for inquiring the flow of each network card;
and the target network card setting submodule is used for setting the network card with the minimum flow as the target network card.
Optionally, the target decoder determination module comprises:
an IP address reading submodule for reading an IP address from each path of video stream;
and the IP address determining submodule is used for determining that the decoder corresponding to the network card to which the IP address belongs is a target decoder.
Optionally, the video stream decoding module includes:
and the network card sending submodule is used for transmitting the video stream to the network card to which the IP address belongs so as to transmit the video stream to the target decoder for decoding.
The embodiment of the invention has the following advantages:
the embodiment of the invention is applied to the video network, the switch is provided with a plurality of decoders, if the switch receives a plurality of paths of video streams sent by the video network server according to the downlink communication link configured to the switch, the target decoder corresponding to each path of video stream can be determined, and the path of video stream is transmitted to the target decoder for decoding.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flow chart of the steps of one embodiment of the present invention for decoding multiple video streams;
FIG. 6 is a flow chart of the steps of another embodiment of the present invention for decoding multiple video streams;
FIG. 7 is a schematic diagram of a switch of the present invention;
fig. 8 is a block diagram of a decoding apparatus for multiple video streams according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the above characteristics of the video network, one of the core concepts of the embodiments of the present invention is proposed, in which, following the protocol of the video network, the decoding of multiple video streams is performed on one device (i.e. a switch), so as to solve the problem of stacking of decoding devices and improve the stability of the system.
Referring to fig. 5, a flow chart showing steps of an embodiment of decoding multiple video streams of the present invention is shown, and the method can be applied to a switch of video networking, where the switch has multiple decoders, and specifically includes the following steps:
step 501, receiving a plurality of paths of video streams sent by a video network server according to a downlink communication link configured for the switch.
In the specific implementation, a remote network is configured with multiple cameras, each camera collects video data, the video data is encoded into video streams in formats such as h.264 and h.265 through a video networking terminal and then transmitted to a video networking server, and the video networking server transmits the video streams to a switch according to a protocol of video networking.
Among other things, a video networking terminal, which may be a set-top box (STB), commonly referred to as a set-top box or set-top box, is a device that connects a television set to an external signal source, and converts compressed digital signals into television content for display on the television set.
In practical applications, the video network is a network with a centralized control function, and includes a master control server and a lower level network device, where the lower level network device includes a terminal, and one of the core concepts of the video network is to configure a table for a downlink communication link of a current service by notifying a switching device by the master control server, and then transmit a data packet based on the configured table.
Namely, the communication method in the video network includes:
the main control server configures a downlink communication link of the current service;
and transmitting the data packet of the current service sent by the source terminal to a target terminal (such as an exchanger) according to the downlink communication link.
In the embodiment of the present invention, configuring the downlink communication link of the current service includes: informing the switching equipment related to the downlink communication link of the current service to allocate a table;
further, transmitting according to the downlink communication link includes: the configured table is consulted, and the switching equipment transmits the received data packet through the corresponding port.
In particular implementations, the services include unicast communication services and multicast communication services. Namely, whether multicast communication or unicast communication, the core concept of the table matching-table can be adopted to realize communication in the video network.
As mentioned above, the video network includes an access network portion, in which the master server is a node server and the lower-level network devices include an access switch and a terminal.
For the unicast communication service in the access network, the step of configuring the downlink communication link of the current service by the master server may include the following steps:
in the substep S11, the main control server obtains downlink communication link information of the current service according to the service request protocol packet initiated by the source terminal, wherein the downlink communication link information includes downlink communication port information of the main control server and the access switch participating in the current service;
in the substep S12, the main control server sets a downlink port to which a packet of the current service is directed in a packet address table inside the main control server according to the downlink communication port information of the control server; sending a port configuration command to a corresponding access switch according to the downlink communication port information of the access switch;
in sub-step S13, the access switch sets the downstream port to which the packet of the current service is directed in its internal packet address table according to the port configuration command.
For a multicast communication service (e.g., video conference) in the access network, the step of the master server obtaining downlink information of the current service may include the following sub-steps:
in the substep S21, the main control server obtains a service request protocol packet initiated by the target terminal and applying for the multicast communication service, wherein the service request protocol packet includes service type information, service content information and an access network address of the target terminal; wherein, the service content information comprises a service number;
substep S22, the master control server extracts the access network address of the source terminal in the preset content-address mapping table according to the service number;
in the substep of S23, the main control server obtains the multicast address corresponding to the source terminal and distributes the multicast address to the target terminal; and acquiring the communication link information of the current multicast service according to the service type information and the access network addresses of the source terminal and the target terminal.
Step 502, determining a target decoder corresponding to each video stream in the plurality of decoders.
Step 503, transmitting each video stream to the corresponding target decoder for decoding.
In the embodiment of the invention, if the switch receives multiple paths of video streams sent by the video network server, a proper decoder can be selected as a target decoder, and the target decoder is shunted to the decoder for decoding.
The embodiment of the invention is applied to the video network, the switch is provided with a plurality of decoders, if the switch receives a plurality of paths of video streams sent by the video network server according to the downlink communication link configured to the switch, the target decoder corresponding to each path of video stream can be determined, and the path of video stream is transmitted to the target decoder for decoding.
Referring to fig. 6, a flow chart showing steps of another embodiment of decoding multiple video streams of the present invention is shown, and the method can be applied to a switch of video networking, the switch having multiple decoders, and specifically can include the following steps:
step 601, receiving a status query instruction sent by the video network server according to the downlink communication link configured for the switch.
In a specific implementation, if the video networking server receives a video stream, a state query instruction may be sent to a switch to which the video stream is directed, so as to query the state of each decoder in the switch.
In the case of the internet of view, taking the 8a21 specification as an example, the internet of view server may generate the status query instruction as follows:
number of fields Length of Code Description of the invention
0 1W 8A21 State query instruction
1 1W Type of device
2-4 3W Device identification
5-8 4W Network address
9-11 3W Real time clock (maintained by server)
12-31 20W 0000 Filling 0
The 8A21 instruction is sent by the video network server, the length of the short signaling is 32W, and the video network terminal (such as a switch) feeds back the relevant information after receiving the short signaling.
In the video network, if the switch receives a data packet, the 0 th field number may be read from a protocol packet of the data packet, and if the 0 th field number is "8 a 31", it indicates that the data packet is a status query instruction, and may read a status to be queried (e.g., an IP address of a network card) from a specified field number.
Step 602, according to the state query instruction, selecting a target network card from the network cards according to a load balancing rule.
In the switch, since a plurality of decoders exist, in order to balance the load of each decoder and guarantee the availability of the decoders, an appropriate decoder can be selected for decoding through a load balancing rule.
In addition, because the decoders and the network cards are in one-to-one correspondence, the network cards can be selected through the load balancing rule, and therefore the decoders are selected.
In one example, the traffic of each network card may be queried, and the network card with the smallest traffic may be set as the target network card.
Step 603, the IP address corresponding to the target network card is encapsulated to a status query response instruction and sent to the video network server.
If the exchanger inquires the target network card, the IP address of the exchanger can be extracted and packaged to the state inquiry response instruction so as to respond to the state inquiry instruction of the video network server.
In the internet of view, taking the 8a22 specification as an example, a switch may generate a status reply instruction as follows:
number of fields Length of Code Description of the invention
0 1W 8A22 Status query response instruction
1 1W Type of device
2-4 3W Device identification
5-8 4W Network address
9 1W Switch port number indicating receipt of status inquiry packet
10 1W Temperature of
11 1W Operating state of the switch
12-31 20W 0000 Filling 0
The 8a22 command is sent by the switch, and the switch is short signaling with length of 32W, and the working state of the switch can be customized by the switch, such as filling in an IP address.
And step 604, receiving a plurality of paths of video streams sent by the video networking server according to the downlink communication link configured for the switch.
Step 605, reading the IP address from each video stream.
Step 606, determining the decoder corresponding to the network card to which the IP address belongs as a target decoder.
In the embodiment of the invention, in the switch, each decoder is provided with a corresponding network card, and each network card is configured with an IP address.
For example, as shown in fig. 7, the switch includes four decoders, namely, a decoder _0, a decoder _1, a decoder _2, and a decoder _3, where the decoder _0 corresponds to the network card _0, the decoder _1 corresponds to the network card _1, the decoder _2 corresponds to the network card _2, and the decoder _3 corresponds to the network card _ 3.
The network card _0 configuration address is IP _0, the network card _1 configuration address is IP _1, the network card _2 configuration address is IP _2, and the network card _3 configuration address is IP _ 3.
In this example, each decoder may provide two HDMI2.0 Output (OUT) interfaces, with an output capability of 4 high definition decoding, thereby enabling 4-way 4K high definition 60 frame decoding, and for a switch, 16-way 4K high definition 60 frame decoding.
The term 4K means that the number of pixels per line in the horizontal direction is up to or close to 4096, which is often referred to as 4096 × 2160 resolution. Depending on the range of use, 4K has various derivative resolutions, and for example, 4096 × 3112 by Full alert 4K, 3656 × 2664 by academic 4K, 3840 × 2160 by UHDTV standard, and the like belong to the category of 4K resolutions.
If the switch receives the video stream sent by the video networking server, the switch can read the IP address from the packet header of the video stream, and determine that the decoder corresponding to the network card to which the IP address belongs is the target decoder for decoding the video stream.
It should be noted that, in addition to the IP address, other information of the video stream, such as resolution, frame rate, and the like, may also be included in the header of the video stream, which is not limited in this embodiment of the present invention.
Step 607, transmitting the video stream to the network card to which the IP address belongs, so as to transmit to the target decoder for decoding.
In the embodiment of the present invention, the switch may transmit the video stream to the network card corresponding to the IP address specified in the packet header, so as to transmit the video stream to the target decoder for decoding.
For example, as shown in fig. 7, if the IP address of the header in the video stream is IP _0, the video stream is sent to the network card _0, and then transmitted to the decoder _0 for decoding; if the IP address of the packet header in the video stream is IP _1, sending the video stream to a network card _1, and transmitting the video stream to a decoder _1 for decoding; if the IP address of the packet header in the video stream is IP _2, sending the video stream to a network card _2, and transmitting the video stream to a decoder _2 for decoding; if the IP address of the header in the video stream is IP _3, the video stream is sent to the network card _3, and then transmitted to the decoder _3 for decoding.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 8, a block diagram of an embodiment of a decoding apparatus for multiple video streams according to the present invention is shown, and the decoding apparatus is applied in a switch of a video network, where the switch has multiple decoders, and the apparatus may specifically include the following modules:
a video stream receiving module 801, configured to receive multiple video streams sent by a video networking server according to a downlink communication link configured for the switch;
a target decoder determining module 802, configured to determine a target decoder corresponding to each video stream in the plurality of decoders;
and the video stream decoding module 803 is configured to transmit each video stream to a corresponding target decoder for decoding.
In one embodiment of the present invention, in the switch, each decoder has a corresponding network card, and each network card is configured with an IP address; the device further comprises:
the state query instruction receiving module is used for receiving a state query instruction sent by the video networking server according to the downlink communication link configured for the switch;
the target network card selection module is used for selecting a target network card from the network cards according to the state query instruction and a load balancing rule;
and the state query response instruction sending module is used for packaging the IP address corresponding to the target network card into the state query response instruction and sending the state query response instruction to the video network server.
In an embodiment of the present invention, the target network card selecting module includes:
the flow inquiry submodule is used for inquiring the flow of each network card;
and the target network card setting submodule is used for setting the network card with the minimum flow as the target network card.
In one embodiment of the present invention, the target decoder determination module 802 comprises:
an IP address reading submodule for reading an IP address from each path of video stream;
and the IP address determining submodule is used for determining that the decoder corresponding to the network card to which the IP address belongs is a target decoder.
In one embodiment of the present invention, the video stream decoding module 803 includes:
and the network card sending submodule is used for transmitting the video stream to the network card to which the IP address belongs so as to transmit the video stream to the target decoder for decoding.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention is applied to the video network, the switch is provided with a plurality of decoders, if the switch receives a plurality of paths of video streams sent by the video network server according to the downlink communication link configured to the switch, the target decoder corresponding to each path of video stream can be determined, and the path of video stream is transmitted to the target decoder for decoding.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a method and a device for decoding multiple video streams, which are described in detail above, and the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for decoding multiple video streams, applied in a switch of a video network, the switch having a circuit layout integrated with a plurality of decoders, the method comprising:
receiving a plurality of paths of video streams sent by a video networking server according to a downlink communication link configured for the switch;
determining a target decoder corresponding to each video stream in the plurality of decoders;
transmitting each path of video stream to a corresponding target decoder for decoding;
in the switch, each decoder is provided with a corresponding network card, and each network card is configured with an IP address; each decoder is a multi-channel decoder, and the load state of each decoder and the flow state of the corresponding network card have a corresponding relation;
before the step of receiving multiple video streams sent by the video networking server according to the configured downlink communication link to the switch, the method further comprises:
receiving a state query instruction sent by a video network server according to a downlink communication link configured for the switch;
selecting a target network card from the network cards according to the state query instruction and a load balancing rule;
packaging the IP address corresponding to the target network card to a state query response instruction, and sending the state query response instruction to a video networking server;
the step of transmitting each video stream to a corresponding target decoder for decoding comprises:
and transmitting the video stream to a network card to which the IP address belongs so as to transmit the video stream to the target decoder for decoding according to the resolution and the frame rate of the video stream.
2. The method of claim 1, wherein the step of selecting the target network card from the network cards according to the status query instruction and the load balancing rule comprises:
inquiring the flow of each network card;
and setting the network card with the minimum flow as a target network card.
3. The method according to claim 1 or 2, wherein the step of determining a target decoder corresponding to each video stream in the plurality of decoders comprises:
reading an IP address from each video stream;
and determining a decoder corresponding to the network card to which the IP address belongs as a target decoder.
4. A decoding device for multiple video streams, applied in a switch of video network, said switch having a circuit layout integrated with a plurality of decoders, said device comprising:
the video stream receiving module is used for receiving a plurality of paths of video streams sent by the video networking server according to the downlink communication link configured for the switch;
a target decoder determining module, configured to determine a target decoder corresponding to each video stream in the plurality of decoders;
the video stream decoding module is used for transmitting each path of video stream to a corresponding target decoder for decoding;
in the switch, each decoder is provided with a corresponding network card, and each network card is configured with an IP address; each decoder is a multi-channel decoder, and the load state of each decoder and the flow state of the corresponding network card have a corresponding relation;
the device further comprises:
the state query instruction receiving module is used for receiving a state query instruction sent by the video networking server according to the downlink communication link configured for the switch;
the target network card selection module is used for selecting a target network card from the network cards according to the state query instruction and a load balancing rule;
the state query response instruction sending module is used for packaging the IP address corresponding to the target network card into a state query response instruction and sending the state query response instruction to the video network server;
the video stream decoding module includes:
and the network card sending submodule is used for transmitting the video stream to the network card to which the IP address belongs so as to transmit the video stream to the target decoder for decoding according to the resolution and the frame rate of the video stream.
5. The apparatus of claim 4, wherein the target network card selection module comprises:
the flow inquiry submodule is used for inquiring the flow of each network card;
and the target network card setting submodule is used for setting the network card with the minimum flow as the target network card.
6. The apparatus of claim 4 or 5, wherein the target decoder determination module comprises:
an IP address reading submodule for reading an IP address from each path of video stream;
and the IP address determining submodule is used for determining that the decoder corresponding to the network card to which the IP address belongs is a target decoder.
CN201710597073.7A 2017-07-20 2017-07-20 Method and device for decoding multi-channel video stream Active CN108965993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710597073.7A CN108965993B (en) 2017-07-20 2017-07-20 Method and device for decoding multi-channel video stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710597073.7A CN108965993B (en) 2017-07-20 2017-07-20 Method and device for decoding multi-channel video stream

Publications (2)

Publication Number Publication Date
CN108965993A CN108965993A (en) 2018-12-07
CN108965993B true CN108965993B (en) 2022-01-14

Family

ID=64495417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710597073.7A Active CN108965993B (en) 2017-07-20 2017-07-20 Method and device for decoding multi-channel video stream

Country Status (1)

Country Link
CN (1) CN108965993B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181965B (en) * 2019-12-30 2023-04-14 视联动力信息技术股份有限公司 Audio processing method and device
CN111757123A (en) * 2020-07-07 2020-10-09 杭州海康威视数字技术股份有限公司 Distributed video decoding system, video decoding output method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316302A (en) * 2010-06-29 2012-01-11 广东迅通科技股份有限公司 Multi-channel real-time monitoring and management system
CN103596290A (en) * 2013-10-24 2014-02-19 西南交通大学 Wireless multi-network integration method
CN104918133A (en) * 2014-03-12 2015-09-16 北京视联动力国际信息技术有限公司 Method and device for playing video streams in articulated naturality web
CN106210764A (en) * 2015-04-29 2016-12-07 北京视联动力国际信息技术有限公司 The conjunction screen processing method of a kind of multichannel media stream and system
CN106341515A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal monitoring method and device
CN106658020A (en) * 2016-12-27 2017-05-10 天津天地伟业信息系统集成有限公司 H.265 multi-way card-inserting type network high-definition decoder

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732203B2 (en) * 2000-01-31 2004-05-04 Intel Corporation Selectively multiplexing memory coupling global bus data bits to narrower functional unit coupling local bus
KR101116965B1 (en) * 2004-08-31 2012-03-14 파나소닉 주식회사 Moving image encoding method and apparatus
JP2011135456A (en) * 2009-12-25 2011-07-07 Sony Corp Receiver, receiving method, program and receiving system
CN104393985A (en) * 2014-11-25 2015-03-04 成都卫士通信息产业股份有限公司 Cipher machine based on multi-NIC (network interface card) technology
CN105429801B (en) * 2015-12-10 2019-03-05 北京奇虎科技有限公司 A kind of flux monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316302A (en) * 2010-06-29 2012-01-11 广东迅通科技股份有限公司 Multi-channel real-time monitoring and management system
CN103596290A (en) * 2013-10-24 2014-02-19 西南交通大学 Wireless multi-network integration method
CN104918133A (en) * 2014-03-12 2015-09-16 北京视联动力国际信息技术有限公司 Method and device for playing video streams in articulated naturality web
CN106210764A (en) * 2015-04-29 2016-12-07 北京视联动力国际信息技术有限公司 The conjunction screen processing method of a kind of multichannel media stream and system
CN106341515A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal monitoring method and device
CN106658020A (en) * 2016-12-27 2017-05-10 天津天地伟业信息系统集成有限公司 H.265 multi-way card-inserting type network high-definition decoder

Also Published As

Publication number Publication date
CN108965993A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN109640029B (en) Method and device for displaying video stream on wall
CN108632525B (en) Method and system for processing service
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109167960B (en) Method and system for processing video stream data
CN108881815B (en) Video data transmission method and device
CN109996086B (en) Method and device for inquiring service state of video networking
CN110022295B (en) Data transmission method and video networking system
CN109547163B (en) Method and device for controlling data transmission rate
CN109379254B (en) Network connection detection method and system based on video conference
CN110049341B (en) Video processing method and device
CN111147859A (en) Video processing method and device
CN110139124B (en) Processing method and device for monitoring recording
CN110113564B (en) Data acquisition method and video networking system
CN109743555B (en) Information processing method and system based on video network
CN109743284B (en) Video processing method and system based on video network
CN109525663B (en) Video data display method and system
CN108965993B (en) Method and device for decoding multi-channel video stream
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110493149B (en) Message processing method and device
CN110289974B (en) Data stream processing method, system and device and storage medium
CN110072154B (en) Video networking-based clustering method and transfer server
CN110830762B (en) Audio and video data processing method and system
CN108881148B (en) Data acquisition method and device
CN110677315A (en) Method and system for monitoring state
CN110572367B (en) Method, system, server, device and storage medium for modifying terminal name

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: Vision Power Information Technology Co., Ltd

Address before: A1103-1113, Gehua building, No.1 Qinglong Hutong, Dongcheng District, Beijing

Applicant before: Beijing Vision Power International Information Technology Co., Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant