CN105338258A - Video transmission method and device - Google Patents

Video transmission method and device Download PDF

Info

Publication number
CN105338258A
CN105338258A CN201410300199.XA CN201410300199A CN105338258A CN 105338258 A CN105338258 A CN 105338258A CN 201410300199 A CN201410300199 A CN 201410300199A CN 105338258 A CN105338258 A CN 105338258A
Authority
CN
China
Prior art keywords
video
transmission
timesharing period
timesharing
queue
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
Application number
CN201410300199.XA
Other languages
Chinese (zh)
Other versions
CN105338258B (en
Inventor
盛剑国
张兴明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201410300199.XA priority Critical patent/CN105338258B/en
Publication of CN105338258A publication Critical patent/CN105338258A/en
Application granted granted Critical
Publication of CN105338258B publication Critical patent/CN105338258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a video transmission method and device. According to the video transmission method and device of the invention, as for M paths of video source data which are obtained through the dynamic acquisition of M video acquisition ports, and according to preset link transmission scheduling rules, link connections are established, and corresponding data packets are transmitted. According to the transmission link scheduling rules, as for each video output port in N video output ports, different video acquisition ports corresponding to xN time-divided periods are, and in the same time-divided period, video acquisition ports corresponding to the video output ports are different. With the video transmission method and device adopted, the identifiers of acquisition ports carried by each video data packet which is subjected to time-divided transmission are different, and video data packets contained in each video transmission queue are respectively allocated at time-divided periods of which the serial numbers are not greater than xN, and therefore, transmission time can be saved, and the problem of incapability of realizing arrangement in the prior art can be solved, and when video transmission is performed through utilizing the scheduling rules, the waste of link bandwidth resources can be avoided.

Description

A kind of video transmission method and equipment
Technical field
The present invention relates to technical field of information processing, particularly relate to a kind of video transmission method and equipment.
Background technology
In existing Multi-screen display system, need to configure corresponding data transmission system.Generally speaking, the video acquisition port (corresponding video source) of user according to reality and the layout of video-out port (corresponding display unit), configuration circuit switching matrix, to ensure that the video source gathered by video acquisition port can be sent in corresponding display unit by the suitable video-out port connected.
When above-mentioned transmission of video is applied to multiple video acquisition port respectively to multiple video-out port transmission video source, as shown in Figure 1, due in circuit switching equipment, man-to-manly can only sets up data transmission link, therefore, can transmission collision be caused unavoidably.If Fig. 2 (a) is when 2 video source a of data video port 0 and 4 video source b of data video port one need to send to video-out port A, just there will be the problem of transmission collision, therefore, need video source 0 and video source 1 to configure respectively on the different timesharing periods to transmit, the i.e. multiplexing time sharing transmissions of link, need to switch in the current timesharing period: data video port 0 and video-out port A set up data transmission link, when 2 video source a end of transmissions, switch to the 3rd timesharing period: data video port one and video-out port A set up data transmission link, in this transmitting procedure, altogether need 6 timesharing periods.
But, when 2 video source a and 4 video source b need to send to video-out port A and video-out port B, in order to avoid transmission collision, ideally, the total quantity of required timesharing period is 8, namely to receive timesharing period of 4 video source b different for each video-out port, but as Fig. 2 (b), in actual transmitting procedure, due to video acquisition port, the number of video-out port may be many, the size of the video source that each video acquisition port is corresponding is also not necessarily equal, therefore, the situation that some link can not arrange will inevitably be there is, thus cause the waste of link bandwidth resource, as shown in Fig. 2 (c), especially for the situation of corresponding 16 video-out ports of 64 comparatively complicated video acquisition ports, the waste of its link bandwidth resource is even more serious.
Summary of the invention
The embodiment of the present invention provides a kind of video transmission method and equipment, there is in order to solve in prior art the problem that scheduling is unreasonable and bandwidth resources that are that cause are wasted.
The embodiment of the present invention is by the following technical solutions:
A kind of video transmission method, is applied to multi-channel video transmission system, comprises:
For the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission;
According to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence;
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
In embodiments of the present invention, in order to avoid the situation of the link bandwidth resource waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, the mark of the collection port that the transmission of video members of each timesharing period transmission is carried is not identical, and the transmission of video member that each transmission of video queue comprises all is arranged in sequence number is not more than on the timesharing period of xN, avoid the situation that in prior art, appearance cannot arrange.
Preferably, described transmission link scheduling rule is determined by following method:
A transmission of video queue is configured respectively for N number of video-out port, wherein, comprise multiple transmission of video member in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal;
The transmission of video queue corresponding for each video-out port performs successively:
Determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging;
After each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
In embodiments of the present invention, by the way adjustment is optimized to mode, thus the mark of the collection port making the transmission of video members of each timesharing period transmission carry is not identical, and the transmission of video member that each transmission of video queue comprises all is arranged in sequence number is not more than on the timesharing period of xN, save the time of transmission, avoid in prior art the situation occurring too much cannot arranging.
Preferably, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member, specifically comprise:
Obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
Be in embodiment in the present invention, the sequence number of the timesharing period shared by the transmission of video member of end determines whether to adjust described transmission of video queue, is convenient to judge.
Preferably, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the transmission of video member determined is adjusted to the timesharing period do not arranged found, and specifically comprises:
Adjust successively for being greater than the transmission of video member that the timesharing period of xN is arranged in sequence number: search sequence number in described transmission of video queue and be not more than first on the timesharing period of the xN timesharing period do not arranged, and searching successfully, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
In embodiments of the present invention, be not more than the timesharing period do not arranged of xN by searching sequence number and be arranged in sequence number and be greater than transmission of video member on the timesharing period of xN, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in the timesharing period do not arranged described in finding, exchange, thus, all transmission of video members in this transmission of video queue are arranged in sequence number be not more than on the timesharing period of xN, avoid the waste occurring Link broadband resource.
Preferably, be greater than according to described sequence number transmission of video members that the timesharing period of xN is arranged the sequence number of timesharing period, be greater than the transmission of video member that the timesharing period of xN is arranged for described sequence number, adjust successively according to order from large to small.
In embodiments of the present invention, adjust being arranged in sequence number and being greater than the transmission of video member of the timesharing period of xN according to a definite sequence, speed and the accuracy of adjustment can be improved.
Preferably, searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange, and searching successfully, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
In embodiments of the present invention, pass through such scheme, as far as possible the transmission of video member being arranged in sequence number and being greater than the timesharing period of xN is adjusted to sequence number to be not more than on the timesharing period of xN, saves the transmission time to greatest extent, thus avoid the waste of Link broadband resource.
Preferably, be not more than when searching sequence number in described video queue the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, described method also comprises:
Determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Search transmission of video members different from the mark of the collection port determined in described video queue;
The arbitrary transmission of video member found is adjusted to the timesharing period do not arranged before the timesharing period that the described next one do not arrange.
In embodiments of the present invention, pass through such scheme, as far as possible the transmission of video member being arranged in sequence number and being greater than the timesharing period of xN is adjusted to sequence number to be not more than on the timesharing period of xN, saves the transmission time to greatest extent, thus avoid the waste of Link broadband resource.
Preferably, configure a transmission of video queue respectively for N number of video-out port, specifically comprise:
For the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, formation transmission of video queue is arranged successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, with described be positioned at last identical transmission of video members of mark first of sequence the timesharing period terminate after all timesharing periods.
In embodiments of the present invention, by the way to the initialization process of scheduling rule, be convenient to follow-up optimize and revise operation.
A kind of video transmission equipment, comprising:
Cutting unit, for the M road video source data obtained for M video acquisition port dynamic acquisition, according to identical timesharing period segmentation principle, is syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission;
Transmission unit, for the transmission link scheduling rule that basis presets, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence;
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
In embodiments of the present invention, in order to avoid the situation of the link bandwidth data waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, the mark of the collection port that the transmission of video members of each timesharing period transmission is carried is not identical, and the transmission of video member that each transmission of video queue comprises all is arranged in sequence number is not more than on the timesharing period of xN, while the saving transmission time, also avoid the situation that in prior art, appearance cannot arrange.And then, when utilizing described scheduling rule to carry out transmission of video, evade the situation of the Link broadband wasting of resources.
Preferably, described transmission link scheduling rule is determined by following function unit:
Initialization unit, for configuring a transmission of video queue respectively for N number of video-out port, wherein, multiple transmission of video member is comprised in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal;
Dispensing unit, perform successively for the transmission of video queue corresponding for each video-out port: determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging;
After each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
In embodiments of the present invention, in order to avoid the situation of the link bandwidth data waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, the mark of the collection port that the transmission of video members of each timesharing period transmission is carried is not identical, and the transmission of video member that each transmission of video queue comprises all is arranged in sequence number is not more than on the timesharing period of xN, while the saving transmission time, also avoid the situation that in prior art, appearance cannot arrange.
Preferably, described dispensing unit, specifically comprise: first determines subelement, obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
Be in embodiment in the present invention, the sequence number of the timesharing period shared by the transmission of video member of end determines whether to adjust described transmission of video queue, is convenient to judge.
Preferably, described dispensing unit, specifically comprises:
First searches subelement, is not more than first on the timesharing period of the xN timesharing period do not arranged for searching sequence number in described transmission of video queue;
First commutator unit, search successfully for searching unit first, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
In embodiments of the present invention, be not more than the timesharing period do not arranged of xN by searching sequence number and be arranged in sequence number and be greater than transmission of video member on the timesharing period of xN, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in the timesharing period do not arranged described in finding, exchange, thus, all transmission of video members in this transmission of video queue are arranged in sequence number be not more than on the timesharing period of xN, avoid the waste occurring Link broadband resource.
Preferably, described dispensing unit, specifically for exceed described in basis standard transmission total time transmission of video member shared by the sequence number of transmission timesharing, for described exceed standard transmission total time transmission of video member, adjust successively according to order from large to small.
In embodiments of the present invention, adjust being arranged in sequence number and being greater than the transmission of video member of the timesharing period of xN according to a definite sequence, speed and the accuracy of adjustment can be improved.
Preferably, described first searches subelement, also for searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange;
Described first commutator unit, also for being not more than the timesharing period success that the next one on the timesharing period of xN do not arrange searching sequence number in described video queue, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
In embodiments of the present invention, pass through such scheme, as far as possible the transmission of video member being arranged in sequence number and being greater than the timesharing period of xN is adjusted to sequence number to be not more than on the timesharing period of xN, saves the transmission time to greatest extent, thus avoid the waste of Link broadband resource.
Preferably, described dispensing unit, also comprises:
Second determines subelement, for being not more than when search sequence number in described video queue the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Second searches subelement, for searching transmission of video members different from the mark of the collection port determined in described video queue;
Second commutator unit, for being adjusted to the timesharing period do not arranged before timesharing period that the described next one do not arrange by the arbitrary transmission of video member found.
In embodiments of the present invention, pass through such scheme, as far as possible the transmission of video member being arranged in sequence number and being greater than the timesharing period of xN is adjusted to sequence number to be not more than on the timesharing period of xN, saves the transmission time to greatest extent, thus avoid the waste of Link broadband resource.
Preferably, described initialization unit, specifically for:
For the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, formation transmission of video queue is arranged successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, last transmission of video members identical with the mark be positioned at first of sequence the timesharing period terminate after all timesharing periods.
In embodiments of the present invention, by the way to the initialization process of scheduling rule, be convenient to follow-up optimize and revise operation.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that a kind of video acquisition port provided by the invention and video-out port set up link-attached schematic diagram;
Fig. 2 (a) ~ Fig. 2 (c) is respectively the allocation list of three kinds of different scheduling rules;
The schematic flow sheet of a kind of video transmission method that Fig. 3 provides for the embodiment of the present invention one;
A kind of transmission of video sequential chart that Fig. 4 provides for the embodiment of the present invention;
The another kind of transmission of video sequential chart that Fig. 5 provides for the embodiment of the present invention;
A kind of method step schematic diagram determining transmission link scheduling rule that Fig. 6 provides for the embodiment of the present invention;
The initial configuration table of the scheduling rule that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 is optimized the steps flow chart schematic diagram of adjustment for a kind of allocation list for scheduling rule that the embodiment of the present invention provides;
Fig. 9 (a) ~ Fig. 9 (g) is respectively the process schematic optimizing and revising the allocation list of scheduling rule that the embodiment of the present invention provides;
A kind of video transmission equipment structural representation that Figure 10 provides for the embodiment of the present invention;
The configuration device structural representation of a kind of scheduling rule that Figure 11 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
In embodiments of the present invention, in order to avoid the situation of the link bandwidth resource waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, the mark of the collection port that the transmission of video members of each timesharing period transmission is carried is not identical, and the transmission of video member that each transmission of video queue comprises is all within xN timesharing period, avoid the situation that in prior art, appearance cannot arrange.
Below by specific embodiment, technical scheme of the present invention is described in detail, the present invention includes but be not limited to following examples.
Embodiment one:
As shown in Figure 3, be the schematic flow sheet of a kind of video transmission method that the embodiment of the present invention one provides, specifically comprise the following steps:
Step 101: the M road video source data obtained for M video acquisition port dynamic acquisition, according to identical timesharing period segmentation principle, is syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission.
Step 102: according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence.
Particularly, described scheduling rule can be provided by the client host of large screen system, and is received by controlling equipment, and utilizes described scheduling rule to control described Video transmission system.But it is inner that described client host also can be arranged on described controlling equipment, namely controlling equipment self just can realize optimizing and revising operation to scheduling rule, and after receiving the open command of client, performs following transmission of video and operate.
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
Particularly, in the present embodiment, by sequential chart as shown in Figure 4, step 102 can be explained.
In the video transmitting procedure of reality, generally the video source collected by video source is considered as the video source comprising multiple video packets of data.Suppose that video acquisition port 0 and video acquisition port 1 all will send video packets of data (video acquisition port 0: packet a to video-out port X; Video acquisition port 1: packet b).Before transmission of video starts, the first line (allow_0) be connected with video acquisition port 0, video acquisition port 1 respectively, the second circuit (allow_1) are set to low level by controlling equipment, video acquisition port 0, video acquisition port 1, when collecting low level, continue to send synchronizing information, but video acquisition port and video-out port do not connect by circuit switching equipment time Given this, therefore, video-out port can't detect described synchronizing information, when transmission of video starts, controlling equipment is according to the schedule information in the scheduling rule received, video acquisition port 0 connects with described video-out port X by indicating circuit switching equipment, now, described video-out port X can detect described synchronizing information, and the tertiary circuit self be connected with controlling equipment (sync_X) is set to high level, after controlling equipment detects described high level, first line (allow_0) is set to high level, video acquisition port 0 is after high level being detected, video packets of data 0 is sent to described video-out port X, until the timesharing period of presetting terminates, transmission of video suspends, enter video acquisition port switching state, first line (allow_0) is set to low level by controlling equipment again, video acquisition port 0 continues again to send synchronizing information, simultaneously, controlling equipment is according to the schedule information in the scheduling rule received, video acquisition port 1 connects with described video-out port X by indicating circuit switching equipment, video-out port X is when described synchronizing information being detected, the tertiary circuit self be connected with controlling equipment (sync_X) is set to high level, after controlling equipment detects described high level, second circuit (allow_1) is set to high level, video acquisition port 1 is after high level being detected, video packets of data 1 is sent to described video-out port X, until the timesharing period of presetting terminates, complete transmission of video.
It should be noted that, in the sequential chart shown in Fig. 4, consider that circuit switching equipment and first line, the second circuit and tertiary circuit are circuit, in the process of detection signal, feedback signal, commutation circuit, have certain time delay, therefore, actual sequential chart can be the situation shown in Fig. 5.The present invention does not limit this.
In embodiments of the present invention, in order to avoid the situation of the link bandwidth resource waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, make the mark of the collection port entrained by video packets of data of each timesharing period transmission not identical, and the video packets of data that each transmission of video queue comprises is all within xN the timesharing period required, avoids the situation that in prior art, appearance cannot arrange.And then, when utilizing described scheduling rule to carry out transmission of video, evade the situation of the Link broadband wasting of resources.
In embodiments of the present invention, described transmission link scheduling rule is determined by method step as shown in Figure 6:
Step 201: configure a transmission of video queue respectively for N number of video-out port.
Wherein, comprise multiple transmission of video member in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal.
Step 202: the transmission of video queue corresponding for each video-out port performs successively: determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging.
Step 203: after each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
Preferably, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member, specifically comprise:
Obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
Preferably, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the transmission of video member determined is adjusted to the timesharing period do not arranged found, and specifically comprises:
Adjust successively for being greater than the transmission of video member that the timesharing period of xN is arranged in sequence number: search sequence number in described transmission of video queue and be not more than first on the timesharing period of the xN timesharing period do not arranged, and searching successfully, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
Preferably, be greater than according to described sequence number transmission of video members that the timesharing period of xN is arranged the sequence number of timesharing period, be greater than the transmission of video member that the timesharing period of xN is arranged for described sequence number, adjust successively according to order from large to small.
Preferably, searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange, and searching successfully, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
Preferably, be not more than when searching sequence number in described video queue the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, described method also comprises:
Determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Search transmission of video members different from the mark of the collection port determined in described video queue;
The arbitrary transmission of video member found is adjusted to the timesharing period do not arranged before the timesharing period that the described next one do not arrange.
Preferably, configure a transmission of video queue respectively for N number of video-out port, specifically comprise:
For the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, a transmission of video queue is formed successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, last transmission of video members identical with the mark be positioned at first of sequence the timesharing period terminate after all timesharing periods.
Be described in detail below by the collocation method of concrete example to the scheduling rule in above embodiment, it should be noted that, following instantiation is only for ease of understanding the preferred embodiment that the solution of the present invention proposes.
In order to when carrying out the configuration of scheduling rule, being convenient to optimizing and revising scheduling rule, generally needing to carry out initialization operation to scheduling rule before optimizing and revising.Initialization operation involved in the present invention is not limited to following scheme, also comprises the other forms of initialization operation that can realize the present invention program of the prior art.
Video Transmission Scheme involved in the present embodiment is the transmission example of multi-to-multi, because the configuration information of the video acquisition port that relates in the middle of reality and video-out port may be a lot, compare common are and be: 64 corresponding 16 video-out ports of video acquisition port.And the present invention for convenience of description, be only described for corresponding three video-out ports 1,2,3 of three video acquisition ports A, B, C.Wherein, the video packets of data that video acquisition port A exports is: 3 packet A; The video packets of data that video acquisition port B exports is: 2 packet B; The video packets of data that video acquisition port C exports is: 2 packet C.
Initialized process can comprise the following steps:
The first step: the schedule information in the scheduling rule before emptying, for each video-out port distributes a transmission of video queue.Wherein, comprise 7 video packets of data in described transmission of video queue, described video packets of data carries the mark that corresponding video gathers port.
Particularly, transmission of video queue VQ (1) can be distributed for video-out port 1, for video-out port 2 distributes transmission of video queue VQ (2), distributes transmission of video queue VQ (3) for video-out port 3; 3 packet A, 2 packet B, 2 packet C are comprised in each transmission of video queue, meanwhile, the timesharing period t that can also be responsible for assigning default for each video data.
Second step: for 7 video packets of data in each transmission of video queue, sort according to the arrangement mode of ascending order or descending.Wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order.
Such as: can according to the mode of ascending order: video packets of data A, video packets of data A, video packets of data A, video packets of data B, video packets of data B, video packets of data C, video packets of data C; Or the mode of descending: video packets of data C, video packets of data C, video packets of data B, video packets of data B, video packets of data A, video packets of data A, video packets of data A.
3rd step: for each video-out port, a transmission of video queue is formed successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, last transmission of video members identical with the mark be positioned at first of sequence the timesharing period terminate after all timesharing periods.
Particularly, after the number of video packets of data is determined, can according to the timesharing period t preset, each timesharing period Allotment Serial Number is followed successively by according to sequential: [0, t) be the timesharing period 1, [t, 2t) be the timesharing period 2, [2t, 3t) be the timesharing period 3, [3t, 4t) be the timesharing period 4, [4t, 5t) be the timesharing period 5, distribute successively and obtain the timesharing period.Can determine thus, be 9t when the transmission of the standard required for transmitting video data bag A, B, C is total.
In implementation process particularly: by calculating in a upper transmission of video queue, video packets of data after sequence in the queue of this transmission of video as inserting time range, is inserted described insertion time range to infinitely great by time that last video packets of data place timesharing period identical with the mark be positioned at first of sequence terminates successively.Such as: as shown in Figure 7, in initialization procedure, transmission of video queue is arranged successively, first, for video-out port 1: the video packets of data after sequence can be arranged in 1 ~ timesharing period timesharing period 7 successively from the timesharing period 1 for each output port; Then, for video-out port 2: because 1 ~ timesharing period timesharing period 3 has all arranged video packets of data A, for avoiding conflict, therefore, after the timesharing period (i.e. timesharing period 3) that can only be last video packets of data A of A at the identification number of video-out port 1, for video-out port 2 arranges transmission of video queue, the video packets of data be about to after sequence is arranged in 4 ~ timesharing period timesharing period 10 successively from the timesharing period 4; Finally, for video-out port 3: because 1 ~ timesharing period timesharing period 6 arranges there is video packets of data A all respectively, in order to avoid transmission collision, therefore, after the timesharing period (i.e. timesharing period 6) that can only be last video packets of data A of A at the identification number of video-out port 2, for video-out port 3 arranges transmission of video queue, the video packets of data be about to after sequence is arranged in timesharing period timesharing period 7 13 successively from the timesharing period 7.No matter take described mode of the present invention to arrange video packets of data or other modes of the prior art, finally can form the initial configuration table of scheduling rule as shown in Figure 7.
From initial configuration table, after initialization, all video packets of data all there will not be conflict, but, on a lot of timesharing period, there are a lot of idle bandwidth resources, cause great waste, therefore, need improved by the schedule information adjusted in the initial configuration table of initialized scheduling rule or avoid the waste of bandwidth.
Concrete process of optimizing and revising is described in conjunction with scheme involved in the present invention below by way of the flow chart shown in Fig. 8.
Step 301: obtain the 7th video packets of data in described transmission of video queue.
Step 302: judge whether the sequence number of the timesharing period at described 7th video packets of data place is greater than 9, if so, then performs step 304; Otherwise, perform step 303.
Step 303: terminate optimizing and revising described transmission of video queue.
Step 304: search the first timesharing period do not arranged in described transmission of video queue, and judge whether the sequence number of described first timesharing period do not arranged is not more than 9, if so, then perform step 305, otherwise, perform step 303.
Step 305: judge whether there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in the first timesharing period do not arranged found, if exist, then performs step 306, otherwise, perform step 307.
Step 306: search the timesharing period that the next one that in described video queue, sequence number is not more than 9 does not arrange, and perform step 308.
Step 307: current transmission of video member is adjusted to described first timesharing period do not arranged, and jumps to 301.
Step 308: the mark determining the collection port entrained by video packets of data existed in the timesharing period that the described next one does not arrange.
Step 309: search video packets of data different from the mark of the collection port entrained by the described video packets of data determined in described video queue.
Step 310: the arbitrary video packets of data found is adjusted to described first timesharing period do not arranged, and jumps to 301.
(1), transmission of video queue VQ (1) is adjusted:
Obtain the 7th video packets of data in this VQ (1): packet C, and the sequence number of timesharing period shared by this packet C is not greater than 9, then determine the timesharing period that sequence number in this VQ (1) is greater than 9 has not arranged video packets of data, terminate optimizing and revising VQ (1).The allocation list of scheduling rule is now as shown in Fig. 9 (a), identical with the content in Fig. 7.
(2), transmission of video queue VQ (2) is adjusted:
First, obtain the 7th video packets of data: video packets of data C in this VQ (2), and the sequence number of the timesharing period at this video packets of data C place is greater than 9, then determine that the timesharing period upper arrangement that sequence number in this VQ (2) is greater than 9 has video packets of data, need to be optimized adjustment to VQ (2).
Then, search the first timesharing period do not arranged in described transmission of video queue, and determine that described first timesharing period do not arranged is for transmission timesharing 1, its sequence number is not more than 9; Then judge whether there is the video packets of data identical with the mark of video packets of data C in transmission timesharing 1 further, from the allocation list shown in Fig. 9 (a), there is not the video packets of data identical with the mark of video packets of data C in transmission timesharing 1, then the video packets of data C in VQ (2) is adjusted to described first timesharing period do not arranged.The allocation list of scheduling rule is now as shown in Fig. 9 (b), and 7 video packets of data in this VQ (2) all concentrate within 9t.
Owing to only there is the video packets of data that exceeds 9t in this VQ (2), therefore, after completing video packets of data C and being adjusted to described first timesharing period do not arranged, optimizing and revising VQ (2) can be terminated.
(3), transmission of video queue VQ (3) is adjusted:
First, obtain the 7th video packets of data: video packets of data C in this VQ (3), and the sequence number of timesharing period shared by this video packets of data C is greater than 9, then determine to exist in this VQ (3) transmission exceeding standard total time 9t video packets of data; And there is video packets of data B, video packets of data C exceed standard transmission total time, then can determine that follow-up needs are optimized adjustment to the queue position of video packets of data B, video packets of data C respectively.
It should be noted that, when exist multiple exceed the video packets of data of 9t time, can according to described multiple sequence number exceeding the timesharing period of the video packets of data of 9t, for the described multiple video packets of data exceeding 9t, adjust successively according to order from large to small, particularly, in this VQ (3), first can be optimized adjustment to the video packets of data C be positioned on sequence number larger timesharing period 13, timesharing period 12, then adjustment is optimized to the video packets of data B be positioned on the sequence number less timesharing period 11,10.
Particularly, when process being optimized to video packets of data C:
Search first in the described transmission of video queue timesharing period do not arranged, and determine that described first timesharing period do not arranged is the timesharing period 1, be positioned within 9t, then judge whether there is the video packets of data identical with the sequence number of video packets of data C in the timesharing period 1 further, from the allocation list shown in Fig. 9 (b), video packets of data C is there is in the timesharing period 1, then search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of 9 do not arrange, and to find the next timesharing period do not arranged be the timesharing period 2, judge whether there is the video packets of data identical with the sequence number of video packets of data C in the timesharing period 2 further, from the allocation list shown in Fig. 9 (b), video packets of data C is there is not in the timesharing period 2, then video packets of data C is adjusted to the timesharing period 2, the allocation list of scheduling rule is now as shown in Fig. 9 (c), in like manner, the video packets of data C being positioned at the timesharing period 12 is adjusted to the timesharing period 3, obtain the allocation list as shown in Fig. 9 (d).
When process is optimized to video packets of data B:
Search first in the described transmission of video queue timesharing period do not arranged, and determine that described first timesharing period do not arranged is the timesharing period 1, be positioned within 9t; Then judge whether there is the video packets of data identical with the sequence number of video packets of data B in the timesharing period 1 further, from the allocation list shown in Fig. 9 (d), video packets of data B is there is not in the timesharing period 1, then video packets of data B is adjusted to the timesharing period 1, the allocation list of scheduling rule is now as shown in Fig. 9 (e), in like manner, the video packets of data B being positioned at the timesharing period 10 is adjusted to the timesharing period 6, obtains the allocation list as shown in Fig. 9 (f).
Finally, omit 10 ~ timesharing period timesharing period 13, obtain the allocation list of the scheduling rule after optimizing and revising as shown in Fig. 9 (g).
In embodiments of the present invention, in order to avoid the situation of the link bandwidth resource waste that the transmission system of the corresponding multiple video-out port of multiple video acquisition port occurs, for the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission, according to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence; Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.Thus, make the mark of the collection port entrained by video packets of data of each timesharing period transmission not identical, and the video packets of data that comprises of each transmission of video queue all when standard transmission is total within, avoid the situation that in prior art, appearance cannot arrange.
Based on the same inventive concept of a kind of video transmission method provided with the embodiment of the present invention, the embodiment of the present invention additionally provides a kind of video transmission equipment.
Embodiment two:
As shown in Figure 10, be a kind of video transmission equipment structural representation that the embodiment of the present invention provides, mainly comprise following functions unit:
Cutting unit 401, for the M road video source data obtained for M video acquisition port dynamic acquisition, according to identical timesharing period segmentation principle, is syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission.
Transmission unit 402, for the transmission link scheduling rule that basis presets, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence.
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially: for each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
Preferably, described transmission link scheduling rule is determined by equipment as shown in figure 11, and described equipment comprises following functions unit:
Initialization unit 501, for configuring a transmission of video queue respectively for N number of video-out port, wherein, multiple transmission of video member is comprised in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal;
Dispensing unit 502, perform successively for the transmission of video queue corresponding for each video-out port: determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging;
After each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
Preferably, described dispensing unit 502, specifically comprises:
First determines subelement 5021, obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
Preferably, described dispensing unit 502, specifically comprises:
First searches subelement 5022, is not more than first on the timesharing period of the xN timesharing period do not arranged for searching sequence number in described transmission of video queue;
First commutator unit 5023, search successfully for searching unit 5022 first, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
Preferably, described dispensing unit 502, specifically for exceed described in basis standard transmission total time video packets of data shared by the sequence number of transmission timesharing, for described exceed standard transmission total time video packets of data, adjust successively according to order from large to small.
Preferably, described first searches subelement 5022, also for searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange;
Described first commutator unit 5023, also for being not more than the timesharing period success that the next one on the timesharing period of xN do not arrange searching sequence number in described video queue, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
Preferably, described dispensing unit 502, also comprises:
Second determines subelement 5024, for being not more than when search sequence number in described video queue the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Second searches subelement 5025, for searching transmission of video members different from the mark of the collection port determined in described video queue;
Second commutator unit 5026, for being adjusted to the timesharing period do not arranged before timesharing period that the described next one do not arrange by the arbitrary transmission of video member found.
Preferably, described initialization unit 501, specifically for: for the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, described multiple transmission of video member is arranged successively according to described transmission of video members sequences, form multiple transmission of video queue, and first transmission of video members in described each transmission of video queue the timesharing period meet: last transmission of video members identical with the mark of the video acquisition port that described first transmission of video member carries in previous video transmit queue the timesharing period terminate after all moment.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a video transmission method, is applied to multi-channel video transmission system, it is characterized in that, comprising:
For the M road video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period segmentation principle, be syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission;
According to the transmission link scheduling rule preset, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence;
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
2. the method for claim 1, is characterized in that, described transmission link scheduling rule is determined by following method:
A transmission of video queue is configured respectively for N number of video-out port, wherein, comprise multiple transmission of video member in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal;
The transmission of video queue corresponding for each video-out port performs successively:
Determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging;
After each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
3. method as claimed in claim 2, is characterized in that, determines that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member, specifically comprises:
Obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
4. method as claimed in claim 2 or claim 3, it is characterized in that, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the transmission of video member determined is adjusted to the timesharing period do not arranged found, specifically comprise:
Adjust successively for being greater than the transmission of video member that the timesharing period of xN is arranged in sequence number: search sequence number in described transmission of video queue and be not more than first on the timesharing period of the xN timesharing period do not arranged, and searching successfully, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
5. method as claimed in claim 4, it is characterized in that, be greater than according to described sequence number transmission of video members that the timesharing period of xN is arranged the sequence number of timesharing period, be greater than the transmission of video member that the timesharing period of xN is arranged for described sequence number, adjust successively according to order from large to small.
6. method as claimed in claim 5, it is characterized in that, described method also comprises:
Searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange, and searching successfully, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
7. method as claimed in claim 6, is characterized in that, be not more than the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, described method also comprises when searching sequence number in described video queue:
Determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Search transmission of video members different from the mark of the collection port determined in described video queue;
The arbitrary transmission of video member found is adjusted to the timesharing period do not arranged before the timesharing period that the described next one do not arrange.
8. method as claimed in claim 2, is characterized in that, configure a transmission of video queue respectively, specifically comprise for N number of video-out port:
For the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, formation transmission of video queue is arranged successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, last transmission of video members identical with the mark be positioned at first of sequence the timesharing period terminate after all timesharing periods.
9. a video transmission equipment, is applied to multi-channel video transmission system, it is characterized in that, comprising:
Cutting unit, for the M road video source data obtained for M video acquisition port dynamic acquisition, according to identical timesharing period segmentation principle, is syncopated as the corresponding data bag of every road video source data in current timesharing period domestic demand transmission;
Transmission unit, for the transmission link scheduling rule that basis presets, the link set up between each video acquisition port and corresponding video-out port connects, and transmits the packet of described correspondence;
Wherein, in the video source data of described M road, the number of the timesharing period shared by a road video source data that data packet number is maximum is x, the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period takies the duration of setting, and each timesharing period is by preset order arrangement; And according to from the 1st to the order of xth N number of timesharing period, the M road video source data that repeats dynamic acquisition obtains carries out cutting the cycle respectively;
Described transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, different video acquisition ports corresponding to xN timesharing period is set, and in the same timesharing period, the video acquisition port that each video-out port is corresponding is not identical.
10. equipment as claimed in claim 9, it is characterized in that, described transmission link scheduling rule is determined by following function unit:
Initialization unit, for configuring a transmission of video queue respectively for N number of video-out port, wherein, multiple transmission of video member is comprised in each transmission of video queue, described transmission of video member carries corresponding video and gathers the mark of port, and timesharing period shared by each transmission of video member is equal;
Dispensing unit, perform successively for the transmission of video queue corresponding for each video-out port: determining in described transmission of video queue, when the timesharing period upper arrangement that sequence number is greater than xN has a transmission of video member, search in described transmission of video queue, sequence number is not more than the timesharing period that the timesharing period of xN does not arrange, and the described transmission of video member determined is adjusted to find described in timesharing period of not arranging;
After each transmission of video queue all adjusts, obtain scheduling rule, wherein, in described scheduling rule, the transmission of video member that each transmission of video queue comprises all is arranged in sequence number and is not more than on the timesharing period of xN, and the mark of collection port that the transmission of video members that arranges of each timesharing period carries is not identical.
11. equipment as claimed in claim 10, it is characterized in that, described dispensing unit, specifically comprises:
First determines subelement, obtain the end transmission of video member in described transmission of video queue, and determine a described end transmission of video members the sequence number of timesharing period be greater than xN time, determine that the timesharing period upper arrangement that sequence number in described transmission of video queue is greater than xN has transmission of video member.
12. equipment as described in claim 10 or 11, it is characterized in that, described dispensing unit, specifically comprises:
First searches subelement, is not more than first on the timesharing period of the xN timesharing period do not arranged for searching sequence number in described transmission of video queue;
First commutator unit, search successfully for searching unit first, and when there is not the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, current transmission of video member is adjusted to described first timesharing period do not arranged.
13. equipment as claimed in claim 12, it is characterized in that, described dispensing unit, specifically for exceed described in basis standard transmission total time video packets of data shared by the sequence number of transmission timesharing, for described exceed standard transmission total time video packets of data, adjust successively according to order from large to small.
14. equipment as claimed in claim 13, is characterized in that,
Described first searches subelement, also for searching successfully, and when there is the transmission of video member identical with the mark of the collection port that current transmission of video member carries in determining the transmission of video queue that other video-out ports upper of described first timesharing period do not arranged are corresponding, search sequence number in described video queue and be not more than the timesharing period that the next one on the timesharing period of xN do not arrange;
Described first commutator unit, also for being not more than the timesharing period success that the next one on the timesharing period of xN do not arrange searching sequence number in described video queue, and when determining there is not the transmission of video member identical with the sequence number of the collection port that current transmission of video member carries in the transmission of video queue that on the timesharing period that the described next one does not arrange, other video-out ports are corresponding, current transmission of video member is adjusted to the timesharing period that the described next one does not arrange.
15. equipment as claimed in claim 14, it is characterized in that, described dispensing unit, also comprises:
Second determines subelement, for being not more than when search sequence number in described video queue the timesharing period that the next one on the timesharing period of xN do not arrange, and when searching unsuccessfully, determine the mark of the collection port that the transmission of video members existed in the transmission of video queue that in the timesharing period do not arranged before the timesharing period that the described next one does not arrange, other video-out ports are corresponding carries;
Second searches subelement, for searching transmission of video members different from the mark of the collection port determined in described video queue;
Second commutator unit, for being adjusted to the timesharing period do not arranged before timesharing period that the described next one do not arrange by the arbitrary transmission of video member found.
16. equipment as claimed in claim 9, is characterized in that, described initialization unit, specifically for:
For the mark of M video acquisition port sorts according to preset rules, described multiple transmission of video member sorts according to the sortord of the mark of self-contained video acquisition port, obtain transmission of video members sequences, wherein, between the transmission of video member that the mark of the video acquisition port carried is identical in no particular order;
For each video-out port, formation transmission of video queue is arranged successively according to described transmission of video members sequences, and first transmission of video members in described each transmission of video queue the timesharing period meet: in previous video transmit queue, with described be positioned at last identical transmission of video members of mark first of sequence the timesharing period terminate after all timesharing periods.
CN201410300199.XA 2014-06-26 2014-06-26 A kind of video transmission method and equipment Active CN105338258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410300199.XA CN105338258B (en) 2014-06-26 2014-06-26 A kind of video transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410300199.XA CN105338258B (en) 2014-06-26 2014-06-26 A kind of video transmission method and equipment

Publications (2)

Publication Number Publication Date
CN105338258A true CN105338258A (en) 2016-02-17
CN105338258B CN105338258B (en) 2018-05-25

Family

ID=55288512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410300199.XA Active CN105338258B (en) 2014-06-26 2014-06-26 A kind of video transmission method and equipment

Country Status (1)

Country Link
CN (1) CN105338258B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872589A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Multi-channel video playing method, multi-channel video playing server and multi-channel video playing terminal
CN106330767A (en) * 2016-08-23 2017-01-11 山东康威通信技术股份有限公司 Multi-terminal time-sharing scheduling method and system based on single-channel multiplexing
CN107018371A (en) * 2017-04-18 2017-08-04 浙江大华技术股份有限公司 A kind of video acquisition control method and device
CN111225243A (en) * 2020-01-20 2020-06-02 中南大学 Video block scheduling method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030076784A1 (en) * 2001-10-24 2003-04-24 Zarlink Semiconductor V.N. Inc. Methods of performance estimation in provisioning delay intolerant data services
US20050190794A1 (en) * 2003-08-29 2005-09-01 Krause Edward A. Video multiplexer system providing low-latency VCR-like effects and program changes
CN102158690A (en) * 2011-05-23 2011-08-17 北京自动测试技术研究所 Remote multichannel real-time video monitoring system
CN102244680A (en) * 2011-07-04 2011-11-16 东华大学 Generation method of panoramic video code stream based on body area sensing array

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030076784A1 (en) * 2001-10-24 2003-04-24 Zarlink Semiconductor V.N. Inc. Methods of performance estimation in provisioning delay intolerant data services
US20050190794A1 (en) * 2003-08-29 2005-09-01 Krause Edward A. Video multiplexer system providing low-latency VCR-like effects and program changes
CN102158690A (en) * 2011-05-23 2011-08-17 北京自动测试技术研究所 Remote multichannel real-time video monitoring system
CN102244680A (en) * 2011-07-04 2011-11-16 东华大学 Generation method of panoramic video code stream based on body area sensing array

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872589A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Multi-channel video playing method, multi-channel video playing server and multi-channel video playing terminal
CN106330767A (en) * 2016-08-23 2017-01-11 山东康威通信技术股份有限公司 Multi-terminal time-sharing scheduling method and system based on single-channel multiplexing
CN107018371A (en) * 2017-04-18 2017-08-04 浙江大华技术股份有限公司 A kind of video acquisition control method and device
CN107018371B (en) * 2017-04-18 2020-02-14 浙江大华技术股份有限公司 Video acquisition control method and device
CN111225243A (en) * 2020-01-20 2020-06-02 中南大学 Video block scheduling method and system

Also Published As

Publication number Publication date
CN105338258B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108270883A (en) Can automatic dispensing device address code method, breaker and storage medium
CN105338258A (en) Video transmission method and device
CN111865736B (en) Equipment control method and device
EP3079447B1 (en) Controlling networked lighting devices
RU2013150074A (en) METHOD AND DEVICE FOR JOINT USE OF DATA BETWEEN DIFFERENT NETWORK DEVICES
RU2006137364A (en) DEVICE AND METHOD FOR HIGH-SPEED DATA TRANSFER INTERFACE
CN106200454B (en) A kind of communication system and method for more MCU
CN110248226A (en) Throwing screen method, apparatus, system, storage medium and the processor of information
CN103995567B (en) A kind of dual system intelligent interaction all-in-one and its dual system switching method
CN110569208B (en) Control circuit, signal control device, signal control method and system
CN110069288A (en) USB device sharing method, apparatus and system
CN105700843A (en) KVM system realization method based on OSD
CN102693021B (en) Radio input device and changing method, computing equipment
CN105491431B (en) Control system for LED television complete machine
CN104391669A (en) Display terminal, terminal display control method and terminal display control system
CN105338477A (en) Multiport communication method, device and system based on radio-frequency transmission
CN107150340B (en) Robot group control device
CN104144212B (en) A kind of virtual desktop image transfer method, apparatus and system
CN107328034A (en) Air-conditioner set centralized management method, device and air-conditioning system
CN204595794U (en) USB computer switcher signal extender and extender system
CN106572566A (en) LED lamp control method and system
CN108476245B (en) Method for establishing port connection and port chip
CN103236962B (en) Fieldbus transmission method
CN109669366B (en) Control method and device
CN105357761A (en) Wireless password based bandwidth allocating method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant