[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111147817B - Video processing method and device, electronic equipment and storage medium - Google Patents

Video processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111147817B
CN111147817B CN201911381035.3A CN201911381035A CN111147817B CN 111147817 B CN111147817 B CN 111147817B CN 201911381035 A CN201911381035 A CN 201911381035A CN 111147817 B CN111147817 B CN 111147817B
Authority
CN
China
Prior art keywords
video
terminal
display terminal
sending
display
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
CN201911381035.3A
Other languages
Chinese (zh)
Other versions
CN111147817A (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 CN201911381035.3A priority Critical patent/CN111147817B/en
Publication of CN111147817A publication Critical patent/CN111147817A/en
Application granted granted Critical
Publication of CN111147817B publication Critical patent/CN111147817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video processing method, a video processing device, electronic equipment and a storage medium. The method comprises the following steps: receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier; generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction for indicating the display terminal to start a video receiving service to the display terminal; when the video source terminals are at least two, generating a second video receiving instruction based on the video networking protocol, and sending the second video receiving instruction for indicating the display terminal to receive the video by using the video networking sub-number to the display terminal; and aiming at each video source terminal identification, generating a video sending instruction corresponding to the current video source terminal identification and used for indicating the current video source terminal to send a video to the display terminal based on the video networking protocol, and sending the video sending instruction to the current video source terminal. The invention can receive and display at least two paths of videos on the display terminal.

Description

Video processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a video processing method and apparatus, an electronic device, and a storage medium.
Background
The video networking is an important milestone of 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 is face-to-face. The video network adopts a real-time high-definition video exchange technology, can integrate dozens of services such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast and the like on a network platform into a system platform, and realizes high-definition quality video playing through a television or a computer.
In the video network, one terminal is bound with one video network number, and one video network number can only initiate one video service and can only receive the video service initiated by one video network number. Therefore, one terminal can only receive and display one path of video, and the limitation is large.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video processing method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention discloses a video processing method, where the method includes:
receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request;
generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction to a display terminal corresponding to the display terminal identification; the first video receiving instruction is used for indicating the display terminal to start a video receiving service; the video networking number of the display terminal corresponds to at least two video networking sub-numbers;
when the number of the video source terminal identifications is at least two, generating a second video receiving instruction based on a video networking protocol, and sending the second video receiving instruction to the display terminal; the second video receiving instruction is used for indicating the display terminal to receive videos by using the video network sub-numbers, and one video network sub-number is used for receiving one path of video;
generating a video sending instruction which corresponds to the current video source terminal identification and carries the display terminal identification based on a video networking protocol for each video source terminal identification, and sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification; and the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
Optionally, after obtaining, by the analyzing, the display terminal identifier and the video source terminal identifier carried in the video display request, the method further includes: inquiring the state of the display terminal from a network management server; the generating of the first video receiving instruction based on the video networking protocol comprises: and when the state of the display terminal is online and the service is idle, generating a first video receiving instruction based on a video networking protocol.
Optionally, before the receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier carried in the video display request, the method further includes: the method comprises the steps of configuring a virtual terminal in advance, and registering the virtual terminal in a video network server.
Optionally, the first video receiving instruction carries the display terminal identifier; the sending the first video receiving instruction to the display terminal corresponding to the display terminal identifier includes: sending the first video receiving instruction to the video network server through the virtual terminal, and forwarding the first video receiving instruction to the display terminal through the video network server according to the display terminal identifier; the second video receiving instruction carries the display terminal identification; the sending the second video receiving instruction to the display terminal includes: sending the second video receiving instruction to the video network server through the virtual terminal, and forwarding the second video receiving instruction to the display terminal through the video network server according to the display terminal identifier; the video sending instruction also carries the current video source terminal identification; the sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification comprises: and sending the video sending instruction to the video networking server through the virtual terminal, and forwarding the video sending instruction to the current video source terminal through the video networking server according to the current video source terminal identification.
In a second aspect, an embodiment of the present invention discloses a video processing apparatus, where the apparatus includes:
the analysis module is used for receiving a video display request based on an internet protocol sent by a client and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request;
the first generation module is used for generating a first video receiving instruction based on a video networking protocol;
the first sending module is used for sending the first video receiving instruction to a display terminal corresponding to the display terminal identification; the first video receiving instruction is used for indicating the display terminal to start a video receiving service; the video network number of the display terminal corresponds to at least two video network subnumbers;
the second generation module is used for generating a second video receiving instruction based on a video networking protocol when the video source terminal identifications are at least two;
the second sending module is used for sending the second video receiving instruction to the display terminal; the second video receiving instruction is used for indicating the display terminal to receive videos by using the video network sub-numbers, and one video network sub-number is used for receiving one path of video;
the third generation module is used for generating a video sending instruction which corresponds to the current video source terminal identifier and carries the display terminal identifier based on a video networking protocol aiming at each video source terminal identifier;
the third sending module is used for sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification; and the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
Optionally, the apparatus further comprises: the query module is used for querying the state of the display terminal from the network management server; the first generating module is specifically configured to generate a first video receiving instruction based on a video networking protocol when the state of the display terminal is online and a service is idle.
Optionally, the apparatus further comprises: and the configuration module is used for pre-configuring the virtual terminal and registering the virtual terminal in the video network server.
Optionally, the first video receiving instruction carries the display terminal identifier; the first sending module is specifically configured to send the first video receiving instruction to the video networking server through the virtual terminal, and forward the first video receiving instruction to the display terminal through the video networking server according to the display terminal identifier; the second video receiving instruction carries the display terminal identification; the second sending module is specifically configured to send the second video receiving instruction to the video networking server through the virtual terminal, and forward the second video receiving instruction to the display terminal through the video networking server according to the display terminal identifier; the video sending instruction also carries the current video source terminal identification; the third sending module is specifically configured to send the video sending instruction to the video networking server through the virtual terminal, and forward the video sending instruction to the current video source terminal through the video networking server according to the identifier of the current video source terminal.
In a third aspect, an embodiment of the present invention discloses an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon; the instructions, when executed by the one or more processors, cause the processors to perform a video processing method as any one of above.
In a fourth aspect, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the video processing method as described in any one of the above.
In the embodiment of the invention, a supervision server is arranged, receives a video display request based on an internet protocol sent by a client, and analyzes the video display request to obtain a display terminal identifier and a video source terminal identifier carried by the video display request; generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction to a display terminal corresponding to the display terminal identifier, wherein the first video receiving instruction is used for indicating the display terminal to start a video receiving service, and the video networking number of the display terminal corresponds to at least two video networking sub-numbers; when the video source terminal identifications are at least two, generating a second video receiving instruction based on a video networking protocol, and sending the second video receiving instruction to the display terminal, wherein the second video receiving instruction is used for indicating the display terminal to receive videos by using the video networking sub-number, and one video networking sub-number is used for receiving one path of video; and aiming at each video source terminal identification, generating a video sending instruction carrying the display terminal identification based on a video networking protocol, and sending the video sending instruction to a current video source terminal corresponding to the current video source terminal identification, wherein the video sending instruction is used for indicating the current video source terminal to send a video to the display terminal. Therefore, in the embodiment of the invention, at least two video networking sub-numbers are set for the video networking number of the display terminal, and the monitoring server is used for controlling the display terminal to receive the video through the video networking sub-numbers, so that at least two paths of videos can be received and displayed on the display terminal, the flexibility is higher, and the service requirement is further met.
Drawings
Fig. 1 is a flowchart illustrating steps of a video processing method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a video processing method according to a second embodiment of the present invention.
Fig. 3 is a schematic diagram of a device connection according to a third embodiment of the present invention.
Fig. 4 is a schematic diagram of device interaction according to a third embodiment of the present invention.
Fig. 5 is a block diagram of a video processing apparatus according to a fourth 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.
Example one
The embodiment of the invention is provided with the monitoring server, two network cards are arranged in the monitoring server, one network card is used for connecting the Internet, and the other network card is used for connecting the video network. The supervision server interacts with the client in the Internet based on an Internet protocol, and the supervision server interacts with the terminal in the video network based on the video network protocol. The client may be control software, such as a Web end (Web end) of a PC (personal computer), an APP (application program) of a mobile terminal, and the like. The terminal may be a video networking terminal (e.g., a set-top box, etc.), a monitoring device, etc.
Referring to fig. 1, a flowchart illustrating steps of a video processing method according to a first embodiment of the present invention is shown. The video processing method of the embodiment of the invention can be applied to a supervision server.
The video processing method of the embodiment of the invention can comprise the following steps:
step 101, receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request.
When the video of the video source terminal needs to be displayed on the display terminal, the user can set the display terminal identification and the video source terminal identification and other related parameters on the client. For example, the client may provide an input box, and the user may input the display terminal identifier and the video source terminal identifier and other related parameters in the input box, or the client may provide a selection list, and the user may select the display terminal identifier and the video source terminal identifier and other related parameters in the list. The display terminal is used for displaying videos, and the video source terminal is used for collecting videos and sending the collected videos to the display terminal.
After the user sets the relevant parameters, the client is triggered to generate a video display request based on the Internet protocol, the video display request can carry the relevant parameters set by the user, such as a display terminal identifier, a video source terminal identifier and the like, and the client sends the video display request to the supervision server. And after receiving the video display request, the supervision server analyzes the video display request to obtain a display terminal identifier and a video source terminal identifier carried in the video display request.
102, generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction to a display terminal corresponding to the display terminal identification.
The monitoring server can know that the display terminal needs to receive the video according to the display terminal identification, and therefore the monitoring server generates a first video receiving instruction based on the video networking protocol and sends the first video receiving instruction to the display terminal corresponding to the display terminal identification. The first video receiving instruction is used for indicating the display terminal to start receiving video services.
In the video network, each terminal can be bound with a video network number, and the video network number is used as the unique identifier of the terminal in the video network. The terminal can send or receive video by using the video networking number, and one video networking number is used for sending or receiving one path of video. In the embodiment of the invention, when the display terminal is registered, at least two video networking sub-numbers can be configured for the video networking number of the display terminal, the display terminal can send or receive videos by utilizing the video networking sub-numbers, and one video networking sub-number is used for sending or receiving one path of video.
And 103, when the video source terminal identifications are at least two, generating a second video receiving instruction based on a video networking protocol, and sending the second video receiving instruction to the display terminal.
And the monitoring server acquires the number of the video source terminal identifications so as to know the number of the video source terminals. One video source terminal can send one video to the display terminal.
When the video source terminal identifications are at least two, the video source terminals are at least two, so that it can be determined that the display terminal will receive at least two paths of videos. In this case, if the display terminal receives the video using the video network number, it is impossible to receive at least two videos. Therefore, the monitoring server may generate a second video receiving instruction based on the video networking protocol and transmit the second video receiving instruction to the display terminal. And the second video receiving instruction is used for indicating the display terminal to receive the video by using the video network sub-number. And after receiving the second video receiving instruction, the display terminal receives the video by using the video network sub-number.
And 104, generating a video sending instruction which corresponds to the current video source terminal identification and carries the display terminal identification based on a video networking protocol for each video source terminal identification, and sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification.
And the supervision server processes each video source terminal identification, and takes the video source terminal identification being processed as the current video source terminal identification.
And the supervision server generates a video sending instruction corresponding to the current video source terminal identification based on the video networking protocol, and sends the video sending instruction to the current video source terminal corresponding to the current video source terminal identification. The video sending instruction carries a display terminal identifier, and the video sending instruction is used for indicating a current video source terminal to send a video to the display terminal. And the current video source terminal acquires the video after receiving the video transmission instruction and transmits the acquired video to the display terminal corresponding to the display terminal identifier.
Therefore, the display terminal receives one path of video sent by one video source terminal by utilizing one video networking sub-number, can receive at least two paths of video, and can display the at least two paths of video in a split screen mode.
In the embodiment of the invention, at least two video networking sub-numbers are set for the video networking number of the display terminal, and the monitoring server is utilized to control the display terminal to receive the video through the video networking sub-numbers, so that at least two paths of videos can be received and displayed on the display terminal, the flexibility is higher, and the service requirements are further met.
Example two
In the embodiment of the invention, the supervision server interacts with the client through the Internet, the supervision server interacts with the video network server through the video network, and the video network server interacts with the terminal in the video network through the video network.
Referring to fig. 2, a flowchart illustrating steps of a video processing method according to a second embodiment of the present invention is shown.
The video processing method of the embodiment of the invention can comprise the following steps:
step 201, pre-configuring a virtual terminal, and registering the virtual terminal in a video network server.
In the video network, various services in the video network are uniformly managed by a video network server. If the terminal is to be added into the video network, the terminal needs to be registered in the video network server. After the terminal is successfully registered, the video network server distributes information such as video network numbers and the like for the successfully registered terminal.
If the supervision server is to be added into the video network, the virtual terminal can be configured in the supervision server in advance, and the virtual terminal is registered in the video network server. And after the registration is successful, the video networking server allocates a video networking number for the virtual terminal.
The display terminal and the video source terminal are registered in the video network server in advance. For the display terminal, if the multi-channel video needs to be received and displayed, the video network server allocates a video network number for the display terminal, and adds at least two video network sub-numbers for the video network number of the display terminal. For the video source terminal, the video networking server can distribute a video networking number for the video source terminal, and certainly, at least two video networking sub-numbers can be added to the video networking sub-numbers of the video source terminal according to actual requirements. Alternatively, the video network sub-number may be in the form of, for example, video network number #1, video network number #2, etc.
Step 202, receiving a terminal information obtaining request based on an internet protocol sent by a client, and returning a preset terminal identifier to the client.
When the video of the video source terminal needs to be displayed on the display terminal, the user can execute corresponding operation on the client so as to trigger the client to generate a terminal information obtaining request based on the internet protocol. For example, the client may provide a terminal information obtaining button, and a user may trigger the client to generate a terminal information obtaining request after clicking the terminal information obtaining button. And the client sends a request for acquiring the terminal information to the supervision server through the Internet. Alternatively, the request for acquiring the terminal information may be a request in an HTTP (Hyper Text Transfer Protocol) format.
The monitoring server presets terminal information to be processed, the terminal information may include terminal identification, Media Access Control (MAC) address of the terminal, and the like, and the terminal information may be in the form of a list and the like. And after receiving the terminal information acquisition request, the supervision server returns the preset terminal identification to the client through the Internet.
And 203, receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request.
And the client displays the received terminal identification. The user selects a display terminal identifier for receiving and displaying the video and a video source terminal identifier for acquiring and sending the video from the terminal identifiers, and the client is triggered to generate a video display request based on the Internet protocol, wherein the video display request carries the display terminal identifier and the video source terminal identifier. Alternatively, the video display request may be a request in HTTP format. And the client sends the video display request to the supervision server.
After receiving the video display request, the monitoring server analyzes the video display request according to an internet protocol format (such as an HTTP format) to obtain a display terminal identifier and a video source terminal identifier carried therein. The display terminal identification can be the video network number of the display terminal, and the identification of the video source terminal can be the video network number of the video source terminal.
And 204, inquiring the state of the display terminal from the network management server.
If the display terminal needs to receive and display the video, the display terminal needs to be online and the service is idle, and the idle service means that other video services are not carried out.
The embodiment of the invention can also be provided with a network management server, the network management server can interact with the video network server through the video network, and the network management server can interact with the supervision server through the internet. The network management server can be used for maintaining the state of each terminal and correspondingly recording the terminal identification and the terminal state. For example, because the video network server centrally manages the video network service, the video network server can record the state of each terminal in real time, and the network management server can obtain the state of each terminal from the video network server.
The supervision server can inquire the state of the display terminal from the network management server after analyzing the video display request and obtaining the display terminal identifier. In the implementation, the supervision server generates a state query request based on an internet protocol, and sends the state query request to the network management server through the internet. The network management server analyzes the state query request, the state query request can carry the display terminal identification, the network management server queries the state corresponding to the display terminal identification from the record of the network management server, namely the state of the display terminal, and the network management server returns the state of the display terminal to the monitoring server through the internet. Alternatively, the status query request may be a request in HTTP format.
Step 205, when the state of the display terminal is online and the service is idle, generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction to the display terminal corresponding to the display terminal identifier.
The state of the terminal may include online and ongoing traffic, online and idle traffic, offline, etc.
And when the inquired state of the display terminal is online and the service is idle, the monitoring server determines that the display terminal can receive and display the video. In this case, the monitoring server generates the first video reception instruction based on the video networking protocol. In the implementation, the monitoring server packages the display terminal identifier and the first indication information based on a video networking protocol to obtain a first video receiving instruction. Certainly, the first video receiving instruction may also carry information such as an MAC address (source MAC address) of the virtual terminal, an MAC address (destination MAC address) of the display terminal, and a virtual terminal identifier, where the virtual terminal identifier may be a video network number of the virtual terminal. The first indication information is used for indicating the display terminal to start receiving the video service, so that the first video receiving instruction is used for indicating the display terminal to start receiving the video service.
And the supervision server sends the first video receiving instruction to the video networking server through the virtual terminal. After receiving the first video receiving instruction, the video networking server analyzes the display terminal identification to know that the first video receiving instruction is to be sent to the display terminal, so that the video networking server forwards the first video receiving instruction to the display terminal according to the display terminal identification. After receiving the first video receiving instruction, the display terminal analyzes the first video receiving instruction to obtain first indication information, and knows that the video receiving service is to be started.
And when the inquired state of the display terminal is online and the service is in progress or the state of the display terminal is offline, the monitoring server determines that the display terminal can not receive and display the video temporarily. In this case, the supervision server may generate a video display response based on the internet protocol and return the video display response to the client. The video display response can carry indication information that the display terminal cannot display the video, and the client can show the indication information to the user.
And step 206, when the video source terminals are at least two in number, generating a second video receiving instruction based on a video networking protocol, and sending the second video receiving instruction to the display terminal.
The monitoring server acquires the number of the video source terminal identifications, namely the number of the video source terminals after sending the first video receiving instruction to the display terminal.
When the video source terminal identifications are at least two, the supervision server determines that the display terminal is to receive the video by using the video networking sub-number. In this case, the monitoring server generates the second video reception instruction based on the video networking protocol. In the implementation, the monitoring server packages the display terminal identifier and the second indication information based on the video networking protocol to obtain a second video receiving instruction. Certainly, the second video receiving instruction may also carry information such as a MAC address (source MAC address) of the virtual terminal, a MAC address (destination MAC address) of the display terminal, and a virtual terminal identifier. The second indication information is used for indicating the display terminal to receive the video by using the video network subnumber, so that the second video receiving instruction is used for indicating the display terminal to receive the video by using the video network subnumber.
And the supervision server sends the second video receiving instruction to the video networking server through the virtual terminal. After receiving the second video receiving instruction, the video networking server analyzes the display terminal identification to know that the second video receiving instruction is to be sent to the display terminal, so that the video networking server forwards the second video receiving instruction to the display terminal according to the display terminal identification. And after receiving the second video receiving instruction, the display terminal analyzes the second video receiving instruction to obtain second indication information, and knows that the video is to be received by using the video networking number. Therefore, when a video is sent to the display terminal, the display terminal receives the video by using the video network sub-number. One of the video network sub-numbers is used for receiving a video.
When one video source terminal identifier is identified, one video source terminal can determine that the display terminal will receive one path of video. The regulation server determines that the display terminal can receive video using the video network number. Because the display terminal receives the video by using the video networking sub-number under the default condition, the supervision server does not send a second video receiving instruction to the display terminal any more, so that the display terminal receives the video by using the video networking number.
And step 207, generating a video sending instruction which corresponds to the current video source terminal identification and carries the display terminal identification based on a video networking protocol for each video source terminal identification, and sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification.
And the supervision server respectively processes each video source terminal identifier, and the processing process of each video source terminal identifier is the same. In the embodiment of the invention, the identifier of the video source terminal which is being processed is called as the current video source terminal identifier, and the video source terminal corresponding to the current video source terminal identifier is called as the current video source terminal.
And aiming at the current video source terminal identification, the supervision server generates a video sending instruction corresponding to the current video source terminal identification based on the video networking protocol. In the implementation, the monitoring server encapsulates the current video source terminal identifier, the display terminal identifier and the third indication information based on the video networking protocol to obtain a video sending instruction corresponding to the current video source terminal identifier. Certainly, the video sending instruction may also carry information such as a MAC address (source MAC address) of the virtual terminal, a MAC address (destination MAC address) of the current video source terminal, and a virtual terminal identifier. The third indication information is used for indicating the current video source terminal to send the video to the display terminal, so that the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
And the supervision server sends the video sending instruction corresponding to the current video source terminal identification to the video networking server through the virtual terminal. After receiving a video sending instruction corresponding to the current video source terminal identification, the video networking server analyzes the current video source terminal identification to know that the video sending instruction is to be sent to the current video source terminal, so that the video networking server forwards the video sending instruction to the current video source terminal according to the current video source terminal identification.
And after receiving the video sending instruction, the current video source terminal analyzes the video sending instruction to obtain a display terminal identifier and third indication information, and knows to send the video to the display terminal. Therefore, the current video source terminal starts to collect the video and sends the video to the display terminal. In the sending process, the current video source terminal encapsulates the collected video into a data packet and sends the data packet to the video networking server, wherein the data packet carries information such as the display terminal identification, the MAC address (source MAC address) of the current video source terminal, the MAC address (destination MAC address) of the display terminal and the like. The video network server can forward the data packet to the display terminal according to the identifier of the display terminal.
Each video source terminal sends video to the display terminal, and the display terminal receives one path of video by using one video network sub-number, so that the display terminal can receive multiple paths of video sent by a plurality of video source terminals simultaneously. The display terminal can be provided with a split screen display mode, and each split screen corresponds to one video network sub-number. When one video is received by one video network sub-number, the video is decoded and displayed on the split screen corresponding to the video network sub-number, thereby realizing the simultaneous display of multiple paths of videos.
EXAMPLE III
In the embodiment of the present invention, a video processing process will be described as an example.
Fig. 3 is a schematic diagram of a device connection according to a third embodiment of the present invention. As shown in fig. 3, the client is in communication connection with a local area network router through the internet, the local area network router is in communication connection with a supervision server (which may also be referred to as an off-site supervision server) through the internet, the supervision server is in communication connection with a video network server (which may also be referred to as a video network core switching server) through the video network, and the video network server is in communication connection with the terminal 1, the terminal 2 and the monitoring device through the video network, respectively.
Fig. 4 is a schematic diagram of device interaction according to a third embodiment of the present invention. As shown in fig. 4, the monitoring server configures the relevant information of the terminal 1, the terminal 2 and the monitoring device, and sets a connection terminal interface, a terminal video receiving interface, a terminal split-screen display interface, and a service stopping interface. The monitoring server may send instructions to the terminal 1, the terminal 2, and the monitoring device, respectively, and the terminal 2 and the monitoring device may send data to the terminal 1, respectively.
With reference to fig. 3 and 4, the video processing procedure of the embodiment of the present invention may include:
1. the method comprises the steps of configuring a virtual terminal on a supervision server, setting terminal information of a terminal 1, a terminal 2 and monitoring equipment, wherein the terminal information comprises an identifier which can be a video networking number.
2. The client sends a request for acquiring the terminal information to the monitoring server through the local area network router in an HTTP request mode, an interface (not shown in fig. 4) for acquiring the terminal information of the monitoring server is called, and the monitoring server returns the terminal information to the client through the local area network router.
3. The client sends a video display request to the supervision server through the local area network router in an HTTP request mode, wherein the video display request carries a terminal 1 identifier, a terminal 2 identifier and a monitoring device identifier selected from terminal information, the terminal 1 is a display terminal, and the terminal 2 and the monitoring device are video source terminals.
4. A terminal connection interface of the supervision server is called, and the supervision server queries a network management server (not shown in fig. 3) through an HTTP request manner whether the state of the terminal 1 is online and the service is idle (that is, the online service can be performed).
5. When the terminal 1 is on line and the service is idle, a terminal video receiving interface of the supervision server is called, the supervision server sends a first video receiving instruction to the terminal 1 through a video networking protocol via the video networking server, and the terminal 1 starts to receive the video service after receiving the first video receiving instruction.
6. And calling a terminal split screen display interface of the supervision server, issuing a second video receiving instruction to the terminal 1 by the supervision server through a video networking protocol via the video networking server, and receiving the video by the terminal 1 by using the video networking sub-number after receiving the second video receiving instruction.
7. And calling a terminal sending video interface (not shown in fig. 4) of the supervision server, and issuing video sending instructions to the terminal 2 and the monitoring equipment respectively by the supervision server through the video networking protocol and the video networking server. And after receiving the video sending instruction, the terminal 2 collects the video and sends the video to the terminal 1, and after receiving the video sending instruction, the monitoring equipment collects the video and sends the video to the terminal 1. Terminal 1 may receive video from terminal 2 using a first video network sub-number and video from the monitoring device using a second video network sub-number.
Wherein terminal 2 may transmit video to terminal 1 in a broadcast or point-to-point manner. The monitoring device may transmit the video to the terminal 1 in a broadcast manner. Broadcast is a form of multicast delivery that delivers a copy of a packet to each destination. It may be done by delivery of multiple single packets or it may deliver copies of packets over separate connections until each receiver receives a copy.
8. The client sends a service stopping request to the monitoring server through the local area network router in an HTTP request mode, a service stopping interface of the monitoring server is called, the monitoring server can send a video receiving stopping instruction to the terminal 1 through the video networking protocol through the video networking server, and send a video sending stopping instruction to the terminal 2 and the monitoring equipment. And after receiving the video receiving stopping instruction, the terminal 1 stops the video receiving service. And after the terminal 2 and the monitoring equipment receive the video transmission stopping instruction, stopping acquiring and transmitting the video.
In the embodiment of the invention, 2 paths of videos are simultaneously dispatched to two video network sub-numbers corresponding to one video network number, and for the video network number, one path of video can be received through one video network sub-number, so that multiple paths of videos can be simultaneously received, decoded and displayed.
Example four
Referring to fig. 5, a block diagram of a video processing apparatus according to a fourth embodiment of the present invention is shown.
The video processing apparatus of the embodiment of the present invention may include the following modules:
the analysis module 501 is configured to receive a video display request based on an internet protocol sent by a client, and analyze the video display request to obtain a display terminal identifier and a video source terminal identifier carried in the video display request;
a first generating module 502 for generating a first video receiving instruction based on a video networking protocol;
a first sending module 503, configured to send the first video receiving instruction to a display terminal corresponding to the display terminal identifier; the first video receiving instruction is used for indicating the display terminal to start a video receiving service; the video networking number of the display terminal corresponds to at least two video networking sub-numbers;
a second generating module 504, configured to generate a second video receiving instruction based on a video networking protocol when the video source terminal identifiers are at least two;
a second sending module 505, configured to send the second video receiving instruction to the display terminal; the second video receiving instruction is used for indicating the display terminal to receive videos by using the video network sub-numbers, and one video network sub-number is used for receiving one path of video;
a third generating module 506, configured to generate, based on a video networking protocol, a video sending instruction that corresponds to the current video source terminal identifier and carries the display terminal identifier, for each video source terminal identifier;
a third sending module 507, configured to send the video sending instruction to a current video source terminal corresponding to the current video source terminal identifier; and the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
Optionally, the apparatus further comprises: the query module is used for querying the state of the display terminal from the network management server; the first generating module 502 is specifically configured to generate a first video receiving instruction based on a video networking protocol when the state of the display terminal is online and a service is idle.
Optionally, the apparatus further comprises: and the configuration module is used for pre-configuring the virtual terminal and registering the virtual terminal in the video network server.
Optionally, the first video receiving instruction carries the display terminal identifier; the first sending module 503 is specifically configured to send the first video receiving instruction to the video network server through the virtual terminal, and forward the first video receiving instruction to the display terminal through the video network server according to the display terminal identifier.
The second video receiving instruction carries the display terminal identification; the second sending module 505 is specifically configured to send the second video receiving instruction to the video networking server through the virtual terminal, and forward the second video receiving instruction to the display terminal through the video networking server according to the display terminal identifier.
The video sending instruction also carries the current video source terminal identification; the third sending module 507 is specifically configured to send the video sending instruction to the video networking server through the virtual terminal, and forward the video sending instruction to the current video source terminal through the video networking server according to the current video source terminal identifier.
In the embodiment of the invention, at least two video network subnumbers are set for the video network number of the display terminal, and the monitoring server is used for controlling the display terminal to receive the video through the video network subnumbers, so that at least two paths of videos can be received and displayed on the display terminal, the flexibility is higher, and the service requirement is further met.
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.
In an embodiment of the invention, an electronic device is also provided. The electronic device may include one or more processors and one or more machine-readable media having instructions, such as an application program, stored thereon. The instructions, when executed by the one or more processors, cause the processors to perform the video processing method described above.
In an embodiment of the present invention, there is also provided a non-transitory computer-readable storage medium having stored thereon a computer program executable by a processor of an electronic device to perform the above-described video processing method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be 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 video processing method, the video processing apparatus, the electronic device, and the storage medium according to the present invention are described in detail above, and a specific example is applied in the description to explain the principles and embodiments of the present invention, and the description of the above embodiment 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 (10)

1. A method of video processing, the method comprising:
receiving a video display request based on an internet protocol sent by a client, and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request;
generating a first video receiving instruction based on a video networking protocol, and sending the first video receiving instruction to a display terminal corresponding to the display terminal identification; the first video receiving instruction is used for indicating the display terminal to start a video receiving service; when a display terminal is registered, configuring at least two video network subnumbers for the video network number of the display terminal;
when the number of the video source terminal identifications is at least two, generating a second video receiving instruction based on a video networking protocol, and sending the second video receiving instruction to the display terminal; the second video receiving instruction is used for indicating the display terminal to receive videos by using the video network sub-numbers, and one video network sub-number is used for receiving one path of video;
generating a video sending instruction which corresponds to the current video source terminal identification and carries the display terminal identification based on a video networking protocol for each video source terminal identification, and sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification; and the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
2. The method of claim 1,
after the display terminal identifier and the video source terminal identifier carried by the video display request are obtained through analysis, the method further comprises the following steps: inquiring the state of the display terminal from a network management server;
the generating of the first video receiving instruction based on the video networking protocol comprises: and when the state of the display terminal is online and the service is idle, generating a first video receiving instruction based on a video networking protocol.
3. The method according to claim 1, wherein before the receiving a video display request based on an internet protocol sent by a client and analyzing the video display request to obtain a display terminal identifier and a video source terminal identifier carried in the video display request, the method further comprises:
the method comprises the steps of configuring a virtual terminal in advance, and registering the virtual terminal in a video network server.
4. The method of claim 3,
the first video receiving instruction carries the display terminal identification; the sending the first video receiving instruction to the display terminal corresponding to the display terminal identifier includes: sending the first video receiving instruction to the video network server through the virtual terminal, and forwarding the first video receiving instruction to the display terminal through the video network server according to the display terminal identifier;
the second video receiving instruction carries the display terminal identification; the sending the second video receiving instruction to the display terminal includes: sending the second video receiving instruction to the video network server through the virtual terminal, and forwarding the second video receiving instruction to the display terminal through the video network server according to the display terminal identifier;
the video sending instruction also carries the current video source terminal identification; the sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification comprises: and sending the video sending instruction to the video network server through the virtual terminal, and forwarding the video sending instruction to the current video source terminal through the video network server according to the current video source terminal identifier.
5. A video processing apparatus, characterized in that the apparatus comprises:
the analysis module is used for receiving a video display request based on an internet protocol sent by a client and analyzing to obtain a display terminal identifier and a video source terminal identifier carried by the video display request;
the first generation module is used for generating a first video receiving instruction based on a video networking protocol;
the first sending module is used for sending the first video receiving instruction to a display terminal corresponding to the display terminal identification; the first video receiving instruction is used for indicating the display terminal to start a video receiving service; when a display terminal is registered, configuring at least two video networking sub-numbers for the video networking number of the display terminal;
the second generation module is used for generating a second video receiving instruction based on a video networking protocol when the video source terminal identifications are at least two;
the second sending module is used for sending the second video receiving instruction to the display terminal; the second video receiving instruction is used for indicating the display terminal to receive videos by using the video network sub-numbers, and one video network sub-number is used for receiving one path of video;
the third generation module is used for generating a video sending instruction which corresponds to the current video source terminal identifier and carries the display terminal identifier based on a video networking protocol aiming at each video source terminal identifier;
the third sending module is used for sending the video sending instruction to the current video source terminal corresponding to the current video source terminal identification; and the video sending instruction is used for indicating the current video source terminal to send the video to the display terminal.
6. The apparatus of claim 5,
the device further comprises: the query module is used for querying the state of the display terminal from the network management server;
the first generation module is specifically configured to generate a first video receiving instruction based on a video networking protocol when the state of the display terminal is online and a service is idle.
7. The apparatus of claim 5, further comprising:
and the configuration module is used for pre-configuring the virtual terminal and registering the virtual terminal in the video network server.
8. The apparatus of claim 7,
the first video receiving instruction carries the display terminal identification; the first sending module is specifically configured to send the first video receiving instruction to the video networking server through the virtual terminal, and forward the first video receiving instruction to the display terminal through the video networking server according to the display terminal identifier;
the second video receiving instruction carries the display terminal identification; the second sending module is specifically configured to send the second video receiving instruction to the video networking server through the virtual terminal, and forward the second video receiving instruction to the display terminal through the video networking server according to the display terminal identifier;
the video sending instruction also carries the current video source terminal identification; the third sending module is specifically configured to send the video sending instruction to the video networking server through the virtual terminal, and forward the video sending instruction to the current video source terminal through the video networking server according to the current video source terminal identifier.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon;
the instructions, when executed by the one or more processors, cause the processors to perform the video processing method of any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon which, when being executed by a processor, carries out the video processing method of any one of claims 1 to 4.
CN201911381035.3A 2019-12-27 2019-12-27 Video processing method and device, electronic equipment and storage medium Active CN111147817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911381035.3A CN111147817B (en) 2019-12-27 2019-12-27 Video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911381035.3A CN111147817B (en) 2019-12-27 2019-12-27 Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111147817A CN111147817A (en) 2020-05-12
CN111147817B true CN111147817B (en) 2022-09-20

Family

ID=70521196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911381035.3A Active CN111147817B (en) 2019-12-27 2019-12-27 Video processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111147817B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800474A (en) * 2020-06-12 2020-10-20 彭程 Interaction method and server
CN113824922B (en) * 2021-11-02 2022-02-25 共道网络科技有限公司 Audio and video stream control method and device based on internet court trial

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103476021A (en) * 2012-06-06 2013-12-25 孙绎成 Device for realizing video surveillance and simultaneously recording mobile equipment information

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123174A (en) * 2011-03-04 2011-07-13 深圳英飞拓科技股份有限公司 System and method for integrating digital monitoring platform with analogue monitoring platform
US8963857B2 (en) * 2012-02-21 2015-02-24 Lg Electronics Inc. Electronic device and method of controlling the same
US9179096B2 (en) * 2013-10-11 2015-11-03 Fuji Xerox Co., Ltd. Systems and methods for real-time efficient navigation of video streams
CN105282493A (en) * 2014-07-11 2016-01-27 深圳市同洲电子股份有限公司 Remote monitoring method, terminal and system
CN108377361B (en) * 2016-11-14 2020-05-08 杭州海康威视数字技术股份有限公司 Display control method and device for monitoring video
CN107566786B (en) * 2017-08-11 2020-06-16 深圳英飞拓科技股份有限公司 Method and device for acquiring monitoring video and terminal equipment
CN108965780B (en) * 2017-11-30 2020-06-26 视联动力信息技术股份有限公司 Display method and system of monitoring picture
CN109788247B (en) * 2018-12-25 2020-10-13 视联动力信息技术股份有限公司 Method and device for identifying monitoring instruction
CN110225266A (en) * 2019-04-25 2019-09-10 视联动力信息技术股份有限公司 Data processing method, device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103476021A (en) * 2012-06-06 2013-12-25 孙绎成 Device for realizing video surveillance and simultaneously recording mobile equipment information

Also Published As

Publication number Publication date
CN111147817A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN101207501B (en) IP broadcasting system and a multicast group management apparatus for the same
CN105656680B (en) Network camera control method and device
CN108093206A (en) A kind of resource monitoring method and system
CN105187847B (en) A kind of distributed network live telecast method, apparatus, video gateway and system
US10027496B2 (en) Method for distributing identifiers of multicast sources
CN111355798A (en) Data distribution method and system
CN104350724A (en) Giving clients access to server service using OPC-UA
CN101207449A (en) IP broadcast receiving method and receiving terminal
CN112738540A (en) Multi-device live broadcast switching method, device and system, electronic device and readable storage medium
CN103856506B (en) Multi-screen synchronous method, apparatus and system
CN111147817B (en) Video processing method and device, electronic equipment and storage medium
CN108965428A (en) The transmission method of live data, device, electronic equipment, system
CN111405229A (en) Video conference processing method, system, client, electronic device and storage medium
CN1528070B (en) Method and system for managing remote clients in a network constituted by a central server
CN101247389A (en) Method and system for discovering stream media service and service discovering device
CN103929623A (en) Method for processing video data in video monitoring system
EP2461580A1 (en) Monitoring message transmission method and system
CN106817607B (en) Audio and video multicast playing method, device and system based on virtual desktop
CN102546225B (en) Video resource sharing method and management platform
CN106657116B (en) Method and device for remotely starting streaming data transmission
CN101931787B (en) Method, device and system for controlling multicast programs
CN111212052A (en) Service processing method and device, electronic equipment and storage medium
CN111212253B (en) Monitoring processing method and device in video conference, electronic equipment and storage medium
CN115379279B (en) Multi-screen linkage interaction method, device, system, storage medium and electronic equipment
CN116938907A (en) Data transmission method and system of real-time audio and video transmission network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China