CN110121084A - The methods, devices and systems of port switching - Google Patents
The methods, devices and systems of port switching Download PDFInfo
- Publication number
- CN110121084A CN110121084A CN201810123559.1A CN201810123559A CN110121084A CN 110121084 A CN110121084 A CN 110121084A CN 201810123559 A CN201810123559 A CN 201810123559A CN 110121084 A CN110121084 A CN 110121084A
- Authority
- CN
- China
- Prior art keywords
- port
- target
- switching
- mark
- video matrix
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/268—Signal distribution or switching
Abstract
The embodiment of the invention discloses a kind of methods, devices and systems of port switching, belong to Internet technical field.The described method includes: receiving the switching request that terminal is sent, wherein the switching request, which is used to indicate, is switched to target input mouth for the input port of targeted output port, and the targeted output port and the target input mouth are the port of target video matrix;The switching command that the corresponding switching request is sent to the target video matrix, so that the input port of targeted output port is switched to target input mouth by the target video matrix.It, can fast quick-recovery business using the present invention.
Description
Technical field
The present invention relates to Internet technical field, in particular to a kind of methods, devices and systems of port switching.
Background technique
Currently, in order to enable user can watch video, each video playback class application by video playback class application program
The background server of program is provided with various videos, wherein each video that background server provides can be through satellite computer room
In signal source equipment (for example can be receiver, CP6000 decoder etc.), video matrix, encoding device obtain.
Specifically, each signal source equipment can obtain different vision signals (for example, No. 1 satellite receiver can receive A
The vision signal of TV station, No. 2 satellite receiver can receive the vision signal of B TV station), it in turn, can be by vision signal
Video matrix is input to by corresponding input port.Correspondingly, video matrix can be according to input port and output port
The each vision signal received is output to encoding device by corresponding output port by corresponding relationship.Encoding device can be with
The vision signal received is encoded, the video data played for video playback class application program is obtained.When certain signal
When source device or encoding device break down, it is corresponding that operation maintenance personnel can change output port by the operation panel of video matrix
Input port.For example, No. 1 input port it is received be A TV station vision signal, No. 1 output port connects No. 1 coding and sets
Standby, No. 2 output ports connect (No. 2 encoding devices are in stand-by state) with No. 2 encoding devices, if No. 1 encoding device occurs
Failure, then the corresponding input port of No. 2 output ports can be switched to 1 by the operation panel of video matrix by operation maintenance personnel
Number input port encodes the vision signal of A TV station by No. 2 encoding devices that No. 2 output ports connect, thus, it can
To restore business.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
If when device fails, operation maintenance personnel is distant apart from video matrix not beside video matrix, then
Based on above-mentioned processing mode, then operation maintenance personnel cannot in time operate operation panel, cause video matrix right in time
The corresponding input port of output port switches over, thus, cause business recovery to fail.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems of port switching, can solve and deposit in the related technology
Business processing failure the problem of.The technical solution is as follows:
On the one hand, a kind of method of port switching is provided, which comprises
Receive the switching request that terminal is sent, wherein the switching request is used to indicate the input of targeted output port
Port switching is target input mouth, and the targeted output port and the target input mouth are the end of target video matrix
Mouthful;
The switching command that the corresponding switching request is sent to the target video matrix, so that the target video matrix
The input port of targeted output port is switched to target input mouth.
On the one hand, a kind of method of port switching is provided, which comprises
Obtain switching command, wherein the switching command, which is used to indicate, is switched to the input port of targeted output port
Target input mouth, the targeted output port and the target input mouth are the port of target video matrix;
The switching request of the corresponding switching command is sent to server, so that the server is to the target video square
The switching command of the corresponding switching request is sent in paroxysm, wherein the switching request is used to indicate the defeated of targeted output port
Inbound port is switched to target input mouth.
On the one hand, a kind of device of port switching is provided, described device includes:
First receiving module, for receiving the switching request of terminal transmission, wherein the switching request is used to indicate mesh
The input port of mark output port is switched to target input mouth, and the targeted output port and the target input mouth are mesh
Mark the port of video matrix;
First sending module, for sending the switching command of the corresponding switching request to the target video matrix, with
Make the target video matrix that the input port of targeted output port is switched to target input mouth.
On the one hand, a kind of device of port switching is provided, described device includes:
Module is obtained, for obtaining switching command, wherein the switching command is used to indicate the defeated of targeted output port
Inbound port is switched to target input mouth, and the targeted output port and the target input mouth are the end of target video matrix
Mouthful;
First sending module, for sending the switching request of the corresponding switching command to server, so that the service
Device sends the switching command of the corresponding switching request to the target video matrix, wherein the switching request is used to indicate
The input port of targeted output port is switched to target input mouth.
On the one hand, a kind of server is provided, the server includes processor and memory, is stored in the memory
Have at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu,
The code set or instruction set are loaded by the processor and are executed the method to realize port switching as described above.
On the one hand, provide a kind of terminal, the terminal includes processor and memory, be stored in the memory to
Few an instruction, at least a Duan Chengxu, code set or instruction set, it is at least one instruction, an at least Duan Chengxu, described
Code set or instruction set are loaded by the processor and are executed the method to realize port switching as described above.
On the one hand, provide a kind of computer readable storage medium, be stored in the storage medium at least one instruction,
At least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to
Collection is enabled to be loaded by processor and executed the method to realize port switching as described above.
On the one hand, a kind of system of port switching is provided, the system comprises servers and terminal, in which: the clothes
Business device, server as described above;The terminal, terminal as described above.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of system framework schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of system framework schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of port switching provided in an embodiment of the present invention;
Fig. 4 (a) is a kind of interface schematic diagram provided in an embodiment of the present invention;
Fig. 4 (b) is a kind of interface schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of method flow diagram for carrying out screenshot provided in an embodiment of the present invention;
Fig. 6 (a) is a kind of interface schematic diagram provided in an embodiment of the present invention;
Fig. 6 (b) is a kind of configuration diagram of logic level provided in an embodiment of the present invention;
Fig. 7 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Fig. 9 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Figure 10 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Figure 11 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Figure 12 is a kind of apparatus structure schematic diagram of port switching provided in an embodiment of the present invention;
Figure 13 is a kind of server architecture schematic diagram provided in an embodiment of the present invention;
Figure 14 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the invention provides a kind of method of port switching, this method can be total to by terminal 101 and server 102
With realization.Wherein, terminal 101 can be with any terminal for sending switching request function, for example, can be mobile phone, plate
The terminals such as computer, PC.Server 102 can be to be communicated with each video matrix in terminal 101 and satellite computer room
Server.
Terminal 101 may include the components such as processor, memory, screen, transceiver.Processor can be CPU
(Central Processing Unit, central processing unit) etc., is determined for targeted output port and target input
The relevant treatment of mouth.Memory can be RAM (Random Access Memory, random access memory), Flash (flash memory)
Deng data needed for can be used for storing the data received, treatment process, the data generated in treatment process etc..Screen can
With the corresponding relationship for showing the mark of each input port and the mark of output port, signal source mark, encoding tasks mark
Deng.Transceiver can be used for carrying out data transmission with other equipment, for example, sending switching request to server, sending out to server
Screenshot request etc. is sent, may include antenna, match circuit, modem etc..
Server 102 may include the components such as processor, memory, transceiver.Processor can be CPU etc., Ke Yiyong
The relevant treatment of port switching is carried out in control target video matrix.Memory can be RAM, Flash etc., can be used for storing
Data needed for the data that receive, treatment process, the data generated in treatment process etc., such as each input port of video matrix
Mark and output port mark corresponding relationship etc..Transceiver can be used for carrying out data biography with terminal or other servers
It is defeated, for example, receiving the screenshot request that switching request, the reception terminal that terminal is sent are sent, sends and switch to target video matrix
Order etc., transceiver may include antenna, match circuit, modem etc..
In order to enable user can watch video by video playback class application program, after video playback class application program
Each video can be provided in platform server.Wherein, each video that background server provides can be by satellite computer room
What signal source equipment, video matrix and encoding device (including soft code machine and hard coded machine) obtained, the system tray of satellite computer room
Structure schematic diagram can be as shown in Figure 2.Wherein, the function based on system realization is different, can also be deployed with other in miniature computer room
Equipment, for example, in satellite computer room can also include Transport Stream Analyzer and delay broadcast control machine.Video matrix is referred to as view sound
Frequency matrix, video matrix include multiple input ports and multiple output ports, and video matrix can be according to input port and output
The vision signal that each input port receives is scheduled to corresponding output port by the corresponding relationship of port.
During the work time, the signal source equipment or encoding device of video matrix connection may break down, related skill
In art, when signal source equipment or encoding device break down, operation maintenance personnel can be changed by the operation panel of video matrix
The corresponding relationship of output port and input port.For example, No. 1 input port it is received be A TV station vision signal, No. 1 is defeated
Exit port connects No. 1 encoding device, and No. 2 output ports connect (No. 2 encoding devices are in stand-by state) with No. 2 encoding devices,
If No. 1 encoding device breaks down, operation maintenance personnel can be by the operation panel of video matrix, by No. 2 output ports pair
The input port answered is switched to No. 1 input port, by the encoding device of No. 2 output ports connection to the vision signal of A TV station
It is encoded, thus, guarantee that business processing is normal.In this way, it is necessary to which 24 hours scenes of operation maintenance personnel are on duty, so that signal source is set
When standby or encoding device breaks down, operation maintenance personnel can in time be switched over the port of video matrix, thus, it consumes more
Manpower.If operation maintenance personnel is on duty without 24 hours scenes, when device fails, operation maintenance personnel is not in video matrix
Side, it is distant apart from video matrix, then it is based on above-mentioned processing mode, then operation maintenance personnel cannot be in time to the output of video matrix
The corresponding input port in port switches over, thus, cause business processing to fail.
However, in the present solution, operation maintenance personnel can be touched by operation when signal source equipment or encoding device break down
Hair terminal to server, which is sent, is switched to target input for the corresponding input port of the targeted output port of target video matrix
The switching request of mouth, after server receives the switching request of terminal transmission, server can be sent to target video matrix will
The input port of targeted output port is switched to the switching command of target input mouth, so that target video matrix exports target
The input port of port switches over.This way it is not necessary to which 24 hours scenes of operation maintenance personnel are on duty, it is thus possible to save manpower.Separately
Outside, when signal source equipment or encoding device break down, operation maintenance personnel can trigger target video matrix by terminal in time
Input port is switched over, it is thus possible to prevent business processing from failing, in addition, using this programme, without being each video square
Battle array configuration corresponding operation panel, it is thus possible to save cost.
Below in conjunction with specific embodiment, process flow shown in Fig. 3 is described in detail, content can be as
Under:
Step 301, terminal obtains switching command, wherein switching command is used to indicate the input terminal of targeted output port
Mouth is switched to target input mouth, and targeted output port and target input mouth are the port of target video matrix.
Wherein, target video matrix can be the video matrix of to be switched port, for example, can be broadcasting and TV signal control system
The video matrix that signal source equipment or encoding device in system occur.
In an implementation, in the course of work of each equipment, when the signal of certain video matrix (can be described as target video matrix)
When source device or encoding device break down, the failure notification of corresponding faulty equipment, fortune can be sent to the terminal of operation maintenance personnel
After dimension personnel receive failure notification, to be switched target video square can be determined according to the corresponding faulty equipment of failure notification
The targeted output port and target input mouth of battle array can be got by operation, triggering terminal by targeted output port in turn
Corresponding input port is switched to the switching command of target input mouth.For example, the equipment to break down is that No. 1 output port connects
The encoding device of the encoding device connect, the connection of No. 2 output ports is in stand-by state, the currently corresponding input of No. 1 output port
Port is No. 1 input port, then targeted output port can be No. 2 output ports, and target input mouth can be No. 1 input terminal
Mouthful.In another example the equipment to break down is the signal source equipment of No. 1 input port connection, the signal source of No. 2 input ports connection
Equipment is identical as the vision signal that the signal source equipment that No. 1 input port connects receives (for example, being the video of A TV station
Signal), currently corresponding output port is No. 1 output port to No. 1 input port, then targeted output port can be No. 1 output
Port, target input mouth can be No. 2 input ports.
In addition, this programme can also be applied to other scenes, for example, when needing the Broadcast and TV system to realize other urgency traffics
When, operation maintenance personnel can also be operated by terminal, and triggering terminal sends switching request to server.
Step 302, terminal to server sends the switching request of corresponding switching command, wherein switching request is used to indicate
The input port of targeted output port is switched to target input mouth.
In an implementation, after terminal receives switching command, the switching request of corresponding switching command can be generated, it in turn, can
To send the switching request to server.
Optionally, the mark of targeted output port and the mark of target input mouth, phase can be carried in switching request
Answer, the treatment process of step 302 can be such that obtain the mark of to be switched targeted output port in target video matrix,
And switching after the corresponding target input mouth of targeted output port mark;The corresponding switching command is sent to server
Switching request, wherein the mark of targeted output port and the mark of target input mouth are carried in switching request.
In an implementation, after the terminal of operation maintenance personnel receives failure notification, operation maintenance personnel can be by operating triggering terminal
The display switching page (the switching page can be the H5 page), wherein each view in Broadcast and TV system can be shown in the switching page
The title (for example, the video matrix for including in Broadcast and TV system is Xenon, GV6464, GV3232) of frequency matrix.When terminal receives
When instructing to the selection of target video matrix, terminal can be with each option of displaying target video matrix, wherein each option includes letter
Number source information, encoder information and input port and output port, as shown in Fig. 4 (a), wherein the page in the switching page
Information is that terminal to server obtains.In this way, (or each output of each encoding device can be clearly apparent in switching interface
Port) corresponding signal source information and input port, thus, facilitate operation maintenance personnel to check each video matrix of server control
Relevant information.
After the switching page of terminal displaying target video matrix, operation maintenance personnel can equipment according to breaking down, in mesh
In the switching page for marking video matrix, being operated, triggering terminal is configured the corresponding input port of targeted output port,
Target input mouth can be set by the corresponding input port of targeted output port.
For example, shown in the switching page such as Fig. 4 (a) of target video matrix, No. 1 output port connection of target video matrix
Encoding equipment failures, No. 2 output ports are in stand-by state, the switching page that operation maintenance personnel can be shown by Fig. 4 (a),
Know that currently corresponding input port is No. 1 input port to No. 1 output port, then operation maintenance personnel can be cut what Fig. 4 (a) was shown
It skips and is operated in face, the corresponding input port of No. 2 output ports is set No. 1 input port by triggering terminal.
In another example the switching page such as Fig. 4 (a) of target video matrix is indicated, the signal source equipment of No. 1 input port connection
It breaks down, the video that the signal source equipment that the signal source equipment of No. 6 input ports connection is connect with No. 1 input port receives
Signal is identical (for example, vision signal that the vision signal received is central 13 TV stations), and operation maintenance personnel can pass through Fig. 4
(a) the switching page shown knows that currently corresponding input port is No. 1 input port to No. 1 output port, then operation maintenance personnel can
To be operated in the switching page that Fig. 4 (a) is shown, triggering terminal sets 6 for the corresponding input port of No. 1 output port
Number input port.
In addition, can show when terminal receives the corresponding input port setting of targeted output port and instructs comprising defeated
The option list of inbound port and signal source information, operation maintenance personnel can choose the choosing comprising target input mouth in each list
, at this point, terminal will receive the instruction of the selection to the option, it in turn, can be by the letter in option where targeted output port
It is corresponding that number source information, input port information are respectively set to the target input mouth of operation maintenance personnel selection, target input mouth
Signal source information, as shown in Fig. 4 (b).In this way, switching interface display have each option, and show comprising each input port with
The option list of signal source information can be convenient operation maintenance personnel and see each output port pass corresponding with each input port
System and the corresponding encoder information of each output port, the corresponding signal source information of each input port are not necessarily to operation maintenance personnel
The document for carrying record above- mentioned information, it is thus possible to facilitate operation maintenance personnel in time to the corresponding target of targeted output port
Input port is configured, and in turn, the efficiency of setting input port can be improved.
Each option for showing can be corresponding with saving button in the switching page, and terminal is by the corresponding input of targeted output port
After port is set as target input mouth, operation maintenance personnel can click saving button, at this point, terminal will receive save button
Preservation instruction, in turn, in available target video matrix the mark of to be switched targeted output port and and switching after
The mark of the corresponding target input mouth of targeted output port, at this point, terminal has been got for by targeted output port
Input port is switched to the switching command of target input mouth.Get the mark and target input mouth of targeted output port
After mark, terminal can send the switching for carrying the mark of targeted output port and the mark of target input mouth to server
Request.
Step 303, the switching request that server receiving terminal is sent, wherein switching request, which is used to indicate, exports target
The input port of port is switched to target input mouth, and targeted output port and target input mouth are the end of target video matrix
Mouthful.
Wherein, server can be the server for controlling multiple video matrixes, i.e. server can be to multiple video matrixes
It is uniformly controlled.
In an implementation, after terminal to server sends switching request, server can receive the regarding target of terminal transmission
The input port of the targeted output port of frequency matrix is switched to the switching request of target input mouth, wherein targeted output port
For the output port for the target video matrix that signal source equipment or encoding device break down, targeted output port is target video
The corresponding target input mouth of targeted output port after switching in matrix.
Optionally, the mark and target that targeted output port is carried in the switching request sent for terminal take in port
Mark the case where, correspondingly, the treatment process of server step 303 can be such that receive terminal send switching request,
In, the mark of targeted output port and the mark of target input mouth are carried in switching request.
In an implementation, terminal to server sends the mark of the mark and target input mouth that carry targeted output port
After the switching request of knowledge, the switching request that server can receive terminal transmission can parse it in turn, obtain it
The mark of the targeted output port of middle carrying and the mark of target input mouth.
Step 304, server sends the switching command of corresponding switching request to target video matrix, so that target video square
The input port of targeted output port is switched to target input mouth by battle array.
In an implementation, it after server receives the switching request that terminal is sent, can be generated targeted output port is corresponding
Input port be switched to the switching command of target input mouth, in turn, the switching generated can be sent to target video matrix
Order.Correspondingly, the switching command that target video matrix can receive server transmission in turn can be by targeted output port
Corresponding input port is switched to target input mouth, it can the corresponding input port of targeted output port is revised as target
Input port.
Optionally, for mark and target input mouth that targeted output port is carried in switching request mark feelings
Condition, correspondingly, the treatment process of step 304 can be such that the switching command that corresponding switching request is sent to target video matrix,
Wherein, the mark of targeted output port and the mark of target input mouth are carried in switching command.
In an implementation, server parses after obtaining the mark of targeted output port and the mark of target input mouth, can be with
The switching command that generation carries the mark of targeted output port and the mark of target input mouth can regard in turn to target
Frequency matrix sends the switching command of the mark of the mark for carrying targeted output port and target intake port.Server is to target
After video matrix sends switching command, the switching command that target video matrix can receive server transmission in turn can be to it
It is parsed, obtains the mark of the targeted output port wherein carried and the mark of target input mouth.It is defeated that parsing obtains target
It, can mark and target input based on obtained targeted output port after the mark of exit port and the mark of target input mouth
The corresponding input port of targeted output port is set target input mouth by the mark of port.Specifically, target video matrix
In can be previously stored with the mark of each output port and the corresponding relationship of input port, during the work time, target video square
Battle array can be based on the corresponding relationship, and the vision signal that respective input mouth inputs is dispatched to corresponding output port, i.e. target
Video matrix can be based on above-mentioned corresponding relationship, and the vision signal that corresponding signal source device is inputted passes through corresponding output end
Mouth is scheduled to encoding device, so that encoding device encodes it.Target video matrix obtains the mark of targeted output port
After the mark of target input mouth, the corresponding corresponding relationship item of targeted output port can be determined in the above correspondence relationship,
In turn, the mark of the input port in the corresponding relationship item can be updated to the mark of target input mouth, succeeding target view
Work is scheduled based on updated corresponding relationship between frequency matrix.In this manner it is ensured that certain signal source equipment or encoding device
After breaking down, the corresponding relationship in target video matrix can be updated in time, so that target video matrix can be with base
Corresponding relationship after input port switching works, it is thus possible to guarantee that business can be normally carried out.
In addition, the mark of the output port of each video matrix and the mark of input port can be previously stored in server
Corresponding relationship.In such cases, after sending switching command to target video matrix, switching record can be recorded accordingly, i.e.,
The mark with the mark of each input port of each output port of pre-stored target video matrix in server can be updated
Corresponding relationship, so as to subsequent scheduling use.In this way, server can automatically store switching record, it is not necessarily to operation maintenance personnel
From corresponding charting this switching record, it is thus possible to save manpower, also can be convenient terminal and get each video
The service condition of matrix.Server can also support terminal to adjust back switching record, so that operation maintenance personnel ensures current cut
Change is correctly, it is thus possible to prevent maloperation.When this handoff error, operation maintenance personnel can re-operate triggering terminal
Corresponding switching request is sent, so that target video matrix can carry out corresponding port switching, normal processing business.
Optionally, account identification can also be carried in the switching request that terminal is sent, correspondingly, what server received
Also account identification is carried in switching request, for such situation, the treatment process of step 304 be can be such that if account mark
Corresponding account is known with operating right, then the switching command of corresponding switching request is sent to target video matrix.
In an implementation, after terminal to server carries the switching request of account identification, server can receive terminal hair
The switching request sent can parse it in turn, obtain the account identification wherein carried.After obtaining account identification, service
Device may determine that corresponding Session whether there is or whether expired, if corresponding Session is not present or out of date,
Then server can re-start login with guiding terminal.If corresponding Session exists and not out of date, server can be
In the corresponding relationship of pre-stored account identification and role, the corresponding role of the account identification carried in switching request is determined
(can be described as target roles) in turn can be in corresponding relationship (wherein, the operating right of pre-stored role and operating right
For with operating right or without operating right) in, determine the corresponding object run permission of target roles, wherein account mark
Knowledge is as shown in table 1 with the corresponding relationship of role, and the corresponding relationship of role and operating right is as shown in table 2.If object run is weighed
It is limited to operating right, then server can send the switching command of corresponding switching request to target video matrix, if mesh
Marking operating right is without operating right, then server can not carry out any processing to the switching request received
No longer to send the switching command of corresponding switching request to target video matrix, wherein operating right may include regarding to target
Search access right, port switching permission, screenshot permission of frequency matrix etc..In this way, the account of not operating right can be prevented to each
The corresponding input port of the output port of video matrix switches over, and the safety of system can be improved.
Table 1
Account identification | Role |
Account identification 1, account identification 2 ... | Operation maintenance personnel |
Account identification 3, account identification 4 ... | Marketing personal |
… | … |
Account identification 5, account identification 6 ... | Developer |
Table 2
Role | Operating right |
Operation maintenance personnel | Have |
Marketing personal | Do not have |
… | … |
Developer | Do not have |
Optionally, server can be the video for meeting target video matrix to the switching command that target video matrix is sent
The switching command of matrix majorization agreement, correspondingly, server can also be handled as follows: determining that target video matrix is corresponding
Target control agreement.Correspondingly, the treatment process of step 304 can be such that based on the target control agreement determined, to target
Video matrix sends the switching command of corresponding switching request.
In an implementation, different video matrixes supports different control protocols, such as GV video matrix to support GV video square
Battle array control protocol, Xenon video matrix support Xenon video matrix control protocol.In such cases, server receives terminal
Transmission switching request (wherein, switching request based on agreement can be http agreement) after, server can determine target regard
The control protocol (can be described as target control agreement) that frequency matrix is supported can be based on target control agreement in turn, and generation meets
The switching command of target control agreement can cut the corresponding input port of targeted output port to target video matrix in turn
It is changed to the switching command of target input mouth, it can the switching command of corresponding switching request is sent to target video matrix.
Optionally, server can also avoid repeating to send switching command to target video matrix, correspondingly, step 304
Treatment process can be such that if do not received in preset duration the input port of targeted output port be switched to target
The switching request of input port then sends the switching command of corresponding switching request to target video matrix.
In an implementation, often the operation maintenance personnel with operating right is more, and the terminal of each operation maintenance personnel can may be received
To failure notification, multiple operation maintenance personnels is avoided to handle same failure notification, can be set in server and avoid repeating sending out
Send the mechanism of switching command.Specifically, server receives being switched to the input port of targeted output port of terminal transmission
After the switching request of target input mouth, it can be determined that whether same switching request was once received in preset duration,
If do not received in preset duration by the switching request of the target input mouth of the input port switching of targeted output port,
Then server can handle the switching request this time received, it can send to target video matrix by targeted output port
Input port is switched to the switching command of target input mouth.
The embodiment of the invention also provides a kind of methods for carrying out screenshot, below in conjunction with specific embodiment, to Fig. 5 institute
The process flow shown is described in detail, and content can be such that
Step 501, terminal to server sends screenshot request, wherein carries the first encoding tasks mark in screenshot request
Know.
Wherein, the first encoding tasks mark can be intended to indicate that the mark of the first encoding tasks, can be by video square
Battle array title and the mark of output port composition, the first encoding tasks can be any encoding tasks, for example can be target video
The corresponding encoding tasks of the targeted output port of matrix.
In an implementation, each encoding device can have multiple input ports and multiple output ports, i.e., each coding is set
The standby vision signal that can be inputted to each input port encodes namely each encoding device can carry out multiple codings and appoint
Business.For example, No. 1 input port of encoding device 1 is connect with No. 1 output port of target video matrix, No. 2 of encoding device 1
Input port is connect with No. 2 output ports of target video matrix, and No. 1 output port output of target video matrix is A electricity
The vision signal of television stations, No. 2 output ports the export but vision signal of B TV station, then encoding device 1 can be respectively to A
The vision signal of TV station is encoded, and is encoded to the vision signal of B TV station, it can is carried out above-mentioned two coding and is appointed
Business.
In some cases, O&M in order to guarantee each video matrix each output port output vision signal be correct
, operation maintenance personnel can pass through operation triggering terminal and show screenshot order input interface, wherein screenshot order input interface can be with
It is the session interface of instant messaging class application program.After showing screenshot order input interface, operation maintenance personnel can be in screenshot order
Input interface input screenshot designator (for example can be capture) and corresponding encoding tasks mark (can be described as the first coding
Task identification can be indicated with EID, for example can be TJ01h0200904000), it, can be by operating triggering terminal after input
The first encoding tasks mark of input is obtained, in turn, the screenshot for carrying the first encoding tasks and identifying can be sent to server
Request.For example, terminal to server is sent, that the input port of the targeted output port of target video matrix is switched to target is defeated
After the switching request of inbound port, operation maintenance personnel is wanted to confirm whether targeted output port switches correctly, then can be defeated in screenshot order
The corresponding encoding tasks mark of targeted output port for entering to input target video matrix in interface (can input target video square
The video matrix title of battle array and the mark of targeted output port), after input, it can be sent out by operation, triggering terminal to server
Screenshot is sent to request.
Illustrate in addition, operation maintenance personnel can also accord with (such as help) by HELP command come acquisition instruction, it in turn, can be with base
In instruction, screenshot order is inputted, as shown in Fig. 6 (a).
Step 502, the screenshot request that server receiving terminal is sent, wherein carry the first coding in screenshot request and appoint
Business mark.
Wherein, the first encoding tasks mark may include the mark of the first output port of the first video matrix (such as can
To include the title of the first video matrix and the mark of the first output port), the first video matrix can be including target video
Any video matrix including matrix.
In an implementation, after terminal to server sends screenshot request, server can receive the screenshot request of terminal transmission,
In turn, it can be parsed, obtains the first encoding tasks mark wherein carried.
Step 503, the corresponding relationship of server encoding tasks mark and output address according to the pre-stored data, determines first
Encoding tasks identify corresponding target output address.
In an implementation, the corresponding relationship of encoding tasks mark and output address can be previously stored in server, wherein
Output address can be the output address of encoding device, alternatively referred to as Streaming Media address.Server gets in screenshot request and takes
After the first encoding tasks mark of band, it can determine that the first encoding tasks identify corresponding target output in the corresponding relationship
Address.
In addition, server can also carry out at authentication according to above-mentioned after the screenshot that server receives terminal transmission is requested
Reason, concrete processing procedure is similar to the above, is no longer repeated.
Step 504, server obtains the video image frame of the first video matrix current transmission according to target output address.
In an implementation, after server gets target output address, server can obtain current from target output address
The video image frame of transmission, wherein the video image frame got is the video image exported after corresponding encoding device encodes
Frame, the upstream device of the encoding device also obtain video image frame from the target output address, wherein this programme logic level
Shown in architecture diagram such as Fig. 6 (b).
Step 505, server sends video image frame to terminal.
In an implementation, after getting video image frame, server can send the video image frame got to terminal.
Optionally, after receiving screenshot request, server can also determine that the corresponding coding of the first encoding tasks mark is appointed
Business information, correspondingly, server can also be handled as follows: determining that the first encoding tasks identify corresponding encoding tasks letter
Breath, wherein encoding tasks information includes that the first encoding tasks identify corresponding first signal source information and/or the first encoding tasks
Identify corresponding first encoder information;Video image frame, encoding tasks information are combined, the video figure after being combined
As frame.Correspondingly, the treatment process of step 505, which can be such that, sends the video image frame after combination to terminal.
In an implementation, after server gets the first encoding tasks mark, it can determine that the first encoding tasks mark corresponds to
Encoding tasks information, wherein encoding tasks information can be the first encoding tasks and identify corresponding first signal source information, can
To be that the first encoding tasks identify corresponding first encoder information, it is also possible to corresponding first letter of the first encoding tasks mark
Number source information and the first encoding tasks identify corresponding first encoder information and (wherein, can be previously stored in server each
The mark of each output port of matrix and the corresponding relationship of encoder information are believed for encoding tasks information including the first encoder
The case where breath, server can determine that the first encoding tasks identify corresponding first encoder information based on above-mentioned corresponding relationship).
After determining encoding tasks information, the video image frame and encoding tasks information that server can will acquire are combined, and are obtained
Video image frame after to combination can also include encoding tasks information that is, in the video image frame after combination.It is combined
After video image frame afterwards, server can send the video image frame after combination to terminal.
In addition, including the case where the first signal source information and the first encoder information for encoding tasks mark.It determines
After first signal source information, the first encoder information and video image frame, server can be compiled the first signal source information, first
Code device information and video image frame are combined, the video image frame after being combined, that is, in the video image frame after combining also
It can wrap containing the first signal source information and the first encoder information.
Optionally, the encoding tasks information includes that first encoding tasks identify corresponding first signal source information
When, server determine the treatment process of the first signal source information can be such that the mark of input port according to the pre-stored data with
The corresponding relationship of the mark of output port determines the mark of the corresponding first input port of mark of the first output port;According to
Pre-stored each signal source mark, determines the first signal source mark of the mark comprising first input port, wherein Mei Gexin
Number source mark includes the mark of corresponding input port;Determine that the first signal source identifies corresponding first signal source information.
In an implementation, the mark and output of the input port of controlled each video matrix can be stored in advance in server
The corresponding relationship of the mark of port can also be previously stored with signal source mark, encoding tasks mark, wherein signal source mark
It may include following information: signal source information (it can be the source-information for the vision signal that corresponding input port receives, than
Such as can be name, the clarity of certain TV station), video matrix title, the mark of input port, encoding tasks mark in addition to packet
It can also include that encoder information (can be corresponding output port to connect except mark, video matrix title containing output port
The information of the encoder connect, for example can be encoder type, video playing type (program request or live streaming)).In this way, can pass through
Above three information associates what signal source, encoder output were completed, can be by three above-mentioned information by signal source
It corresponds on the encoding device of video matrix connection, operation is scheduled so as to guide operation maintenance personnel, for example, A station synchronization
Signal (vision signal) is dispatched on an encoding device by video matrix, and the encoding device can be shown in respective interface
For the programme signal for encoding A TV station.
It in such cases, can be with after server gets the mark of the first output port in the first encoding tasks mark
In the corresponding relationship of the mark of the mark and output port of pre-stored input port, determine in the first encoding tasks mark
The first output port the corresponding first input port of mark mark.After the mark for determining first input port, service
Device can determine in the signal source of pre-stored each mark comprising input port mark comprising first input port
The first signal source mark of mark.After determining the first signal source mark, server can determine that the first signal source mark corresponds to
The first signal source information, define the first encoding tasks at this time and identify corresponding first signal source information.
In addition, after server is in addition to the first signal source information, the first encoder information and video image frame to be combined,
First signal source mark, the first encoding tasks mark can also be combined with video image frame, i.e., in such cases, combination
Video image frame afterwards may include the first signal source information, the first encoder information, the first signal source mark, the first coding times
Business mark.
Step 506, terminal receives the video image frame that server is sent, and shows to video image frame.
In an implementation, after server sends video image frame to terminal, terminal can receive the video figure of server transmission
As frame can show the video image frame received in turn.In this way, operation maintenance personnel can be by checking that server is sent out
The video image frame sent determines whether port switching is correct, determines whether just the first encoding tasks identify corresponding encoding tasks
Really.For example, the first encoding tasks are identified as the title of target video matrix and the mark of targeted output port, want to allow in switching
Targeted output port encodes the vision signal of A TV station, then if the video image frame that terminal receives be A TV station
The video image frame of broadcasting, it may be considered that this time switching correct, the corresponding input port reception of targeted output port after switching
To signal be strictly in the vision signal namely switching request of A TV station the mark of target input mouth that carries be correct
's.
Optionally, the case where sending the video image frame after combination to terminal for server, correspondingly, step 506
Treatment process can be such that receive server send combination after video image frame, and to the video image frame after combination into
Row display.
In an implementation, after server sends the video image frame after combination to terminal, terminal can receive server transmission
Combination after video image frame, and it can be shown.In this way, operation maintenance personnel is in addition to can see video image frame,
It can also be seen that signal source information and encoder information, it is thus possible to which operation maintenance personnel is facilitated to determine whether current switching is correct.
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices of port switching, as shown in fig. 7,
The device can be above-mentioned server, which includes:
First receiving module 710 receives the switching request that terminal is sent, wherein the switching request is used to indicate mesh
The input port of mark output port is switched to target input mouth, and the targeted output port and the target input mouth are mesh
Mark the port of video matrix;
First sending module 720, for sending the switching command of the corresponding switching request to the target video matrix,
So that the input port of targeted output port is switched to target input mouth by the target video matrix.
Optionally, first receiving module 710, is used for:
Receive the switching request that terminal is sent, wherein the mark of the targeted output port is carried in the switching request
The mark of knowledge and the target input mouth;
First sending module 720, is used for:
The switching command of the corresponding switching request is sent to the target video matrix, wherein in the switching command
Carry the mark of the targeted output port and the mark of the target input mouth.
Optionally, account identification is also carried in the switching request;
First sending module 720, is used for:
If the corresponding account of the account identification has operating right, corresponding institute is sent to the target video matrix
State the switching command of switching request.
Optionally, as shown in figure 8, described device further include:
First determining module 730, for determining the corresponding target control agreement of the target video matrix;
First sending module 720, is used for:
Based on the target control agreement determined, Xiang Suoshu target video matrix sends the corresponding switching request
Switching command.
Optionally, as shown in figure 9, described device further include:
Second receiving module 740, the screenshot request sent for receiving the terminal, wherein taken in the screenshot request
It is identified with the first encoding tasks, the first encoding tasks mark includes the mark of the first output port of the first video matrix
Know, first video matrix is any video matrix including the target video matrix;
Second determining module 750, for the corresponding relationship of encoding tasks according to the pre-stored data mark and output address, really
Fixed first encoding tasks identify corresponding target output address;
Module 760 is obtained, for obtaining the video figure of the first video matrix current transmission according to the target output address
As frame;
Second sending module 770, for sending the video image frame to the terminal.
Optionally, as shown in Figure 10, described device further include:
Third determining module 780, for determining that first encoding tasks identify corresponding encoding tasks information, wherein
The encoding tasks information includes that first encoding tasks identify corresponding first signal source information and/or first coding
Corresponding first encoder information of task identification;
Composite module 790, for being combined to the video image frame, encoding tasks information, the view after being combined
Frequency picture frame;
Second sending module 770, is used for:
The video image frame after combination is sent to the terminal.
Optionally, the encoding tasks information includes that first encoding tasks identify corresponding first signal source information
When, the third determining module 780 is also used to:
The corresponding relationship of the mark of the mark and output port of input port according to the pre-stored data determines that described first is defeated
The mark of the corresponding first input port of mark of exit port;
Each signal source mark according to the pre-stored data, determines the first signal source of the mark comprising the first input port
Mark, wherein each signal source mark includes the mark of corresponding input port;
Determine that first signal source identifies corresponding first signal source information.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices of port switching, as shown in figure 11,
The device can be above-mentioned terminal, which includes:
Module 1110 is obtained, for obtaining switching command, wherein the switching command is used to indicate targeted output port
Input port be switched to target input mouth, the targeted output port and the target input mouth are target video matrix
Port;
First sending module 1120, for sending the switching request of the corresponding switching command to server, so that described
Server sends the switching command of the corresponding switching request to the target video matrix, wherein the switching request is used for
The input port of targeted output port is switched to target input mouth by instruction.
Optionally, first sending module 1120, is used for:
Targeted output port pair after obtaining the mark of targeted output port to be switched in target video matrix and switching
The mark for the target input mouth answered;
The switching request of the corresponding switching command is sent to server, wherein carry in the switching request described
The mark of the mark of targeted output port and the target input mouth.
Optionally, as shown in figure 12, described device further include:
Second sending module 1130, for sending screenshot request to the server, wherein carried in the screenshot request
There is the first encoding tasks mark, the first encoding tasks mark includes the mark of the first output port of the first video matrix,
First video matrix is any video matrix including the target video matrix;
Receiving module 1140, the video image frame sent for receiving the server;
Display module 1150, for being shown to the video image frame.
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
It should be understood that the device of port switching provided by the above embodiment is in port switching, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of terminal and server is divided into different functional modules, to complete whole described above
Or partial function.In addition, the device of port switching provided by the above embodiment and the embodiment of the method for port switching belong to together
One design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Based on the same technical idea, the embodiment of the invention also provides a kind of system of port switching, the system packets
Include server and terminal, in which:
The server, for receiving the switching request of terminal transmission, wherein the switching request is used to indicate target
The input port of output port is switched to target input mouth, and the targeted output port and the target input mouth are target
The port of video matrix;The switching command that the corresponding switching request is sent to the target video matrix, so that the target
The input port of targeted output port is switched to target input mouth by video matrix;
The terminal, for obtaining switching command, wherein the switching command is used to indicate the defeated of targeted output port
Inbound port is switched to target input mouth, and the targeted output port and the target input mouth are the end of target video matrix
Mouthful;The switching request that the corresponding switching command is sent to server, so that the server is sent out to the target video matrix
Send the switching command of the corresponding switching request.
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
Figure 13 is the structural schematic diagram of server provided in an embodiment of the present invention.The server 1900 can be because of configuration or performance
It is different and generate bigger difference, it may include one or more central processing units (central processing
Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications
The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory
1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one
A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into
One step, central processing unit 1922 can be set to communicate with storage medium 1930, execute storage medium on server 1900
Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
Server 1900 may include have memory and one perhaps more than one program one of them or one
A procedure above is stored in memory, and is configured to execute one or one by one or more than one processor
A procedure above includes the instruction for executing the method for above-mentioned port switching.
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
Figure 14 shows the structural block diagram of the terminal 1400 of an illustrative embodiment of the invention offer.The terminal 1400 can
To be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1400 is also
Other titles such as user equipment, portable terminal, laptop terminal, terminal console may be referred to as.
In general, terminal 1400 includes: processor 1401 and memory 1402.
Processor 1401 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 1401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 1401 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 1401 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1401 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 1402 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 1402 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1402 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1401 for realizing this Shen
Please in embodiment of the method provide port switching method.
In some embodiments, terminal 1400 is also optional includes: peripheral device interface 1403 and at least one periphery are set
It is standby.It can be connected by bus or signal wire between processor 1401, memory 1402 and peripheral device interface 1403.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1403.Specifically, peripheral equipment includes:
In radio circuit 1404, touch display screen 1405, camera 1406, voicefrequency circuit 1407, positioning component 1408 and power supply 1409
At least one.
Peripheral device interface 1403 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 1401 and memory 1402.In some embodiments, processor 1401, memory 1402 and periphery
Equipment interface 1403 is integrated on same chip or circuit board;In some other embodiments, processor 1401, memory
1402 and peripheral device interface 1403 in any one or two can be realized on individual chip or circuit board, this implementation
Example is not limited this.
Radio circuit 1404 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.
Radio circuit 1404 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1404 is by telecommunications
Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit
1404 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution
Code chipset, user identity module card etc..Radio circuit 1404 can by least one wireless communication protocol come with it is other
Terminal is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and
5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio frequency electrical
Road 1404 can also include NFC (Near Field Communication, wireless near field communication) related circuit, the application
This is not limited.
Display screen 1405 is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When display screen 1405 is touch display screen, display screen 1405 also there is acquisition to exist
The ability of the touch signal on the surface or surface of display screen 1405.The touch signal can be used as control signal and be input to place
Reason device 1401 is handled.At this point, display screen 1405 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press
Button and/or soft keyboard.In some embodiments, display screen 1405 can be one, and the front panel of terminal 1400 is arranged;Another
In a little embodiments, display screen 1405 can be at least two, be separately positioned on the different surfaces of terminal 1400 or in foldover design;
In still other embodiments, display screen 1405 can be flexible display screen, is arranged on the curved surface of terminal 1400 or folds
On face.Even, display screen 1405 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1405 can be with
Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1406 is for acquiring image or video.Optionally, CCD camera assembly 1406 includes front camera
And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.?
In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively
As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide
Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle
Shooting function.In some embodiments, CCD camera assembly 1406 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light
Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for
Light compensation under different-colour.
Voicefrequency circuit 1407 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and
It converts sound waves into electric signal and is input to processor 1401 and handled, or be input to radio circuit 1404 to realize that voice is logical
Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1400 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1401 or radio frequency will to be come from
The electric signal of circuit 1404 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1407 may be used also
To include earphone jack.
Positioning component 1408 is used for the current geographic position of positioning terminal 1400, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 1408 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 1409 is used to be powered for the various components in terminal 1400.Power supply 1409 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 1409 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1400 further includes having one or more sensors 1410.One or more sensing
Device 1410 includes but is not limited to: acceleration transducer 1411, gyro sensor 1412, pressure sensor 1413, fingerprint sensing
Device 1414, optical sensor 1415 and proximity sensor 1416.
Acceleration transducer 1411 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1400
Size.For example, acceleration transducer 1411 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 1401 acceleration of gravity signals that can be acquired according to acceleration transducer 1411, control touch display screen 1405 with transverse views
Or longitudinal view carries out the display of user interface.Acceleration transducer 1411 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 1412 can detecte body direction and the rotational angle of terminal 1400, gyro sensor 1412
Acquisition user can be cooperateed with to act the 3D of terminal 1400 with acceleration transducer 1411.Processor 1401 is according to gyro sensors
The data that device 1412 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped
Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1405 in terminal 1400 can be set in pressure sensor 1413.When
When the side frame of terminal 1400 is arranged in pressure sensor 1413, user can detecte to the gripping signal of terminal 1400, by
Reason device 1401 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1413 acquires.Work as pressure sensor
1413 when being arranged in the lower layer of touch display screen 1405, is grasped by processor 1401 according to pressure of the user to touch display screen 1405
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 1414 is used to acquire the fingerprint of user, is collected by processor 1401 according to fingerprint sensor 1414
Fingerprint recognition user identity, alternatively, by fingerprint sensor 1414 according to the identity of collected fingerprint recognition user.Knowing
Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1401, which grasps
Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1414 can be set
Set the front, the back side or side of terminal 1400.When being provided with physical button or manufacturer Logo in terminal 1400, fingerprint sensor
1414 can integrate with physical button or manufacturer Logo.
Optical sensor 1415 is for acquiring ambient light intensity.In one embodiment, processor 1401 can be according to light
The ambient light intensity that sensor 1415 acquires is learned, the display brightness of touch display screen 1405 is controlled.Specifically, work as ambient light intensity
When higher, the display brightness of touch display screen 1405 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1405 is turned down
Show brightness.In another embodiment, the ambient light intensity that processor 1401 can also be acquired according to optical sensor 1415, is moved
The acquisition parameters of state adjustment CCD camera assembly 1406.
Proximity sensor 1416, also referred to as range sensor are generally arranged at the front panel of terminal 1400.Proximity sensor
1416 for acquiring the distance between the front of user Yu terminal 1400.In one embodiment, when proximity sensor 1416 is examined
When measuring the distance between the front of user and terminal 1400 and gradually becoming smaller, by processor 1401 control touch display screen 1405 from
Bright screen state is switched to breath screen state;When proximity sensor 1416 detect the distance between front of user and terminal 1400 by
When gradual change is big, touch display screen 1405 is controlled by processor 1401 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1400 of structure shown in Figure 14
Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
In the embodiment of the present invention, terminal can send to server the input port of targeted output port being switched to target
The switching request of input port, correspondingly, switching life can be sent to target video matrix after server receives switching request
It enables, after target video matrix reception to switching command, the input port of targeted output port can be switched to target input
Mouthful.In this way, operation maintenance personnel can pass through end when the encoding device of target video matrix connection or signal source equipment break down
End and server are real by the operation panel of target video matrix without operation maintenance personnel to target video matrix transmission switching command
Existing port switching, in turn, video matrix can in time switch over the corresponding input port of output port, it can quickly place
Failure is managed, it is thus possible to fast quick-recovery business.
The embodiment of the invention also provides a kind of computer readable storage medium, at least one is stored in the storage medium
Item instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code
Collection or instruction set are loaded by processor and are executed the method to realize above-mentioned port switching.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of method of port switching, which is characterized in that the described method includes:
Receive the switching request that terminal is sent, wherein the switching request is used to indicate the input port of targeted output port
It is switched to target input mouth, the targeted output port and the target input mouth are the port of target video matrix;
The switching command of the corresponding switching request is sent to the target video matrix, so that the target video matrix is by mesh
The input port of mark output port is switched to target input mouth.
2. the method according to claim 1, wherein also carrying account identification in the switching request;
The switching command that the corresponding switching request is sent to the target video matrix, comprising:
If the corresponding account of the account identification has operating right, to the target video matrix send it is corresponding described in cut
Change the switching command of request.
3. the method according to claim 1, wherein the method also includes:
Determine the corresponding target control agreement of the target video matrix;
The switching command that the corresponding switching request is sent to the target video matrix, comprising:
Based on the target control agreement determined, Xiang Suoshu target video matrix sends the switching of the corresponding switching request
Order.
4. method according to claim 1 to 3, which is characterized in that the method also includes:
Receive the screenshot request that the terminal is sent, wherein the first encoding tasks mark is carried in the screenshot request, it is described
First encoding tasks mark include the first video matrix the first output port mark, first video matrix be include institute
State any video matrix including target video matrix;
The corresponding relationship of encoding tasks mark and output address according to the pre-stored data determines the first encoding tasks mark pair
The target output address answered;
According to the target output address, the video image frame of the first video matrix current transmission is obtained;
The video image frame is sent to the terminal.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Determine that first encoding tasks identify corresponding encoding tasks information, wherein the encoding tasks information includes described
First encoding tasks identify corresponding first signal source information and/or first encoding tasks identify corresponding first encoder
Information;
The video image frame, encoding tasks information are combined, the video image frame after being combined;
It is described to send the video image frame to the terminal, comprising:
The video image frame after combination is sent to the terminal.
6. according to the method described in claim 5, it is characterized in that, the encoding tasks information includes first encoding tasks
When identifying corresponding first signal source information, the method also includes:
The corresponding relationship of the mark of the mark and output port of input port according to the pre-stored data determines first output end
The mark of the corresponding first input port of mark of mouth;
Each signal source mark according to the pre-stored data, determines the first signal source mark of the mark comprising the first input port
Know, wherein each signal source mark includes the mark of corresponding input port;
Determine that first signal source identifies corresponding first signal source information.
7. a kind of method of port switching, which is characterized in that the described method includes:
Obtain switching command, wherein the switching command, which is used to indicate, is switched to target for the input port of targeted output port
Input port, the targeted output port and the target input mouth are the port of target video matrix;
The switching request that the corresponding switching command is sent to server, so that the server is sent out to the target video matrix
Send the switching command of the corresponding switching request, wherein the switching request is used to indicate the input terminal of targeted output port
Mouth is switched to target input mouth.
8. the method according to the description of claim 7 is characterized in that described send cutting for the corresponding switching command to server
Change request, comprising:
Targeted output port is corresponding after obtaining the mark and switching of targeted output port to be switched in target video matrix
The mark of target input mouth;
The switching request of the corresponding switching command is sent to server, wherein the target is carried in the switching request
The mark of the mark of output port and the target input mouth.
9. method according to claim 7 or 8, which is characterized in that the method also includes:
Screenshot request is sent to the server, wherein carry the first encoding tasks mark in screenshot request, described the
One encoding tasks mark include the first video matrix the first output port mark, first video matrix be include described in
Any video matrix including target video matrix;
The video image frame that the server is sent is received, and the video image frame is shown.
10. a kind of device of port switching, which is characterized in that described device includes:
First receiving module, for receiving the switching request of terminal transmission, wherein the switching request is used to indicate target is defeated
The input port of exit port is switched to target input mouth, the targeted output port and the target input mouth as target view
The port of frequency matrix;
First sending module, for sending the switching command of the corresponding switching request to the target video matrix, so that institute
It states target video matrix and the input port of targeted output port is switched to target input mouth.
11. a kind of device of port switching, which is characterized in that described device includes:
Module is obtained, for obtaining switching command, wherein the switching command is used to indicate the input terminal of targeted output port
Mouth is switched to target input mouth, and the targeted output port and the target input mouth are the port of target video matrix;
First sending module, for sending the switching request of the corresponding switching command to server so that the server to
The target video matrix sends the switching command of the corresponding switching request, wherein the switching request is used to indicate mesh
The input port of mark output port is switched to target input mouth.
12. a kind of server, which is characterized in that the server includes processor and memory, is stored in the memory
At least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, institute
Code set or instruction set is stated to be loaded by the processor and executed to realize the port switching as described in claim 1 to 6 is any
Method.
13. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory
One instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the generation
Code collection or instruction set are loaded by the processor and are executed the side to realize the port switching as described in claim 7 to 9 is any
Method.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction
Collection is loaded by processor and is executed method or claim 7 to realize the port switching as described in claim 1 to 6 is any
To the method for 9 any port switchings.
15. a kind of system of port switching, which is characterized in that the system comprises servers and terminal, in which:
The server, the server as described in any claim in the claim 10,12;
The terminal, the terminal as described in any claim in the claim 11,13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810123559.1A CN110121084B (en) | 2018-02-07 | 2018-02-07 | Method, device and system for switching ports |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810123559.1A CN110121084B (en) | 2018-02-07 | 2018-02-07 | Method, device and system for switching ports |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110121084A true CN110121084A (en) | 2019-08-13 |
CN110121084B CN110121084B (en) | 2021-10-08 |
Family
ID=67520185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810123559.1A Active CN110121084B (en) | 2018-02-07 | 2018-02-07 | Method, device and system for switching ports |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110121084B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708325A (en) * | 2019-10-14 | 2020-01-17 | 体奥动力(北京)体育传播有限公司 | Signal switching method and device, electronic equipment and storage medium |
CN110850771A (en) * | 2019-11-11 | 2020-02-28 | 深圳市创凯智能股份有限公司 | Signal channel switching method, terminal device and computer readable storage medium |
CN110933471A (en) * | 2019-12-18 | 2020-03-27 | 腾讯科技(深圳)有限公司 | Method, device, system and medium for safely switching channels |
CN111372012A (en) * | 2020-05-27 | 2020-07-03 | 成都华栖云科技有限公司 | Software defined video stream matrix system and implementation method thereof |
CN112637522A (en) * | 2020-11-27 | 2021-04-09 | 西安诺瓦星云科技股份有限公司 | Signal source switching method and device of display system, storage medium and processor |
CN116208727A (en) * | 2023-05-05 | 2023-06-02 | 广东视腾电子科技有限公司 | Video matrix switcher based on multi-user modularization and control method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646057A (en) * | 2009-09-07 | 2010-02-10 | 深圳华为通信技术有限公司 | Remote-presence conference control device, method and remote-presence conference system |
CN101873441A (en) * | 2010-01-11 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Method and system for realizing video matrix function |
CN102281308A (en) * | 2010-06-10 | 2011-12-14 | 盛乐信息技术(上海)有限公司 | Intelligent device remote service system and method thereof, and remote service access box |
CN104469181A (en) * | 2014-12-19 | 2015-03-25 | 北京卓越信通电子股份有限公司 | Audio and video matrix switch method based on PIS |
US20150207764A1 (en) * | 2014-01-22 | 2015-07-23 | Alibaba Group Holding Limited | Method and device for sharing data |
CN105872768A (en) * | 2016-04-20 | 2016-08-17 | 深圳Tcl数字技术有限公司 | Display terminal information source switching method and device |
-
2018
- 2018-02-07 CN CN201810123559.1A patent/CN110121084B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646057A (en) * | 2009-09-07 | 2010-02-10 | 深圳华为通信技术有限公司 | Remote-presence conference control device, method and remote-presence conference system |
CN101873441A (en) * | 2010-01-11 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Method and system for realizing video matrix function |
CN102281308A (en) * | 2010-06-10 | 2011-12-14 | 盛乐信息技术(上海)有限公司 | Intelligent device remote service system and method thereof, and remote service access box |
US20150207764A1 (en) * | 2014-01-22 | 2015-07-23 | Alibaba Group Holding Limited | Method and device for sharing data |
CN104469181A (en) * | 2014-12-19 | 2015-03-25 | 北京卓越信通电子股份有限公司 | Audio and video matrix switch method based on PIS |
CN105872768A (en) * | 2016-04-20 | 2016-08-17 | 深圳Tcl数字技术有限公司 | Display terminal information source switching method and device |
Non-Patent Citations (2)
Title |
---|
QIU WEN-YAN: "《Video Matrix Switching System Design Based on AT89C51》", 《2015 SEVENTH INTERNATIONAL CONFERENCE ON MEASURING TECHNOLOGY AND MECHATRONICS AUTOMATION》 * |
张明达等: "《多品牌视频会议系统融合及远程调控研究》", 《黑龙江科技信息》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708325A (en) * | 2019-10-14 | 2020-01-17 | 体奥动力(北京)体育传播有限公司 | Signal switching method and device, electronic equipment and storage medium |
CN110850771A (en) * | 2019-11-11 | 2020-02-28 | 深圳市创凯智能股份有限公司 | Signal channel switching method, terminal device and computer readable storage medium |
CN110933471A (en) * | 2019-12-18 | 2020-03-27 | 腾讯科技(深圳)有限公司 | Method, device, system and medium for safely switching channels |
CN110933471B (en) * | 2019-12-18 | 2020-12-15 | 腾讯科技(深圳)有限公司 | Method, device, system and medium for safely switching channels |
CN111372012A (en) * | 2020-05-27 | 2020-07-03 | 成都华栖云科技有限公司 | Software defined video stream matrix system and implementation method thereof |
CN111372012B (en) * | 2020-05-27 | 2020-09-08 | 成都华栖云科技有限公司 | Software defined video stream matrix system and implementation method thereof |
CN112637522A (en) * | 2020-11-27 | 2021-04-09 | 西安诺瓦星云科技股份有限公司 | Signal source switching method and device of display system, storage medium and processor |
CN116208727A (en) * | 2023-05-05 | 2023-06-02 | 广东视腾电子科技有限公司 | Video matrix switcher based on multi-user modularization and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN110121084B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110381197B (en) | Method, device and system for processing audio data in many-to-one screen projection | |
CN110121084A (en) | The methods, devices and systems of port switching | |
CN108966008B (en) | Live video playback method and device | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
US9924205B2 (en) | Video remote-commentary synchronization method and system, and terminal device | |
EP3624457A1 (en) | Method and apparatus for live broadcasting | |
EP3902241A1 (en) | Audio and video processing method and apparatus, terminal and storage medium | |
CN110493626B (en) | Video data processing method and device | |
CN108833963A (en) | Method, computer equipment, readable storage medium storing program for executing and the system of display interface picture | |
JP7361890B2 (en) | Call methods, call devices, call systems, servers and computer programs | |
CN107888968A (en) | Player method, device and the computer-readable storage medium of live video | |
CN109788303A (en) | Method for pushing, device, electronic equipment and the storage medium of live video stream | |
CN111596885B (en) | Audio data processing method, server and storage medium | |
CN112995759A (en) | Interactive service processing method, system, device, equipment and storage medium | |
CN109413453A (en) | Video broadcasting method, device, terminal and storage medium | |
CN107896337B (en) | Information popularization method and device and storage medium | |
CN112969093B (en) | Interactive service processing method, device, equipment and storage medium | |
EP3989113A1 (en) | Facial image transmission method, numerical value transfer method and apparatus, and electronic device | |
CN109194972A (en) | Live stream acquisition methods, device, computer equipment and storage medium | |
CN110149491B (en) | Video encoding method, video decoding method, terminal and storage medium | |
CN108900921A (en) | Even wheat live broadcasting method, device and storage medium | |
CN109618192A (en) | Play method, apparatus, system and the storage medium of video | |
CN110278273B (en) | Multimedia file uploading method, device, terminal, server and storage medium | |
CN109783176A (en) | Switch the method and apparatus of the page | |
CN110113669B (en) | Method and device for acquiring video data, electronic equipment and storage medium |
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 |