CN105338258B - A kind of video transmission method and equipment - Google Patents

A kind of video transmission method and equipment Download PDF

Info

Publication number
CN105338258B
CN105338258B CN201410300199.XA CN201410300199A CN105338258B CN 105338258 B CN105338258 B CN 105338258B CN 201410300199 A CN201410300199 A CN 201410300199A CN 105338258 B CN105338258 B CN 105338258B
Authority
CN
China
Prior art keywords
video
transmission
timesharing
period
timesharing period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410300199.XA
Other languages
Chinese (zh)
Other versions
CN105338258A (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 kind of video transmission method and equipment, main contents include:For the M roads video source data that M video acquisition port dynamic acquisition obtains, according to preset transmission link scheduling rule, establish link connection and transmit corresponding data packet;The transmission link scheduling rule is:For each video-out port in N number of video-out port, xN timesharing period corresponding different video acquisition port is set, and is differed in the corresponding video acquisition port of same timesharing period each video-out port.So as to, so that each the mark of the acquisition port entrained by the video data packet of transmission time sharing transmissions differs, and the video data packet that each transmission of video queue is included was arranged on timesharing period of the sequence number no more than xN, while transmission time is saved, also avoid the situation that appearance can not arrange in the prior art, it, can be to avoid the waste of link bandwidth resource and then when carrying out transmission of video using the scheduling rule.

Description

A kind of video transmission method and equipment
Technical field
The present invention relates to technical field of information processing more particularly to a kind of video transmission method and equipment.
Background technology
, it is necessary to configure corresponding data transmission system in existing Multi-screen display system.In general, user is according to reality Layout of the video acquisition port (corresponding video source) on border with video-out port (corresponding display device), configuration circuit exchange square Battle array, to ensure that the video source gathered by video acquisition port can be sent to accordingly by the suitable video-out port of connection Display device on.
When above-mentioned transmission of video is applied to multiple video acquisition ports video source is sent to multiple video-out ports respectively When, as shown in Figure 1, since in circuit switching equipment, data transmission link man-to-man can only be established, therefore, can inevitably cause Transmission collision.Such as Fig. 2 (a) when 2 video source a of data video port 0 and 4 video source b of data video port 1 need to send out When giving video-out port A, the problem of being just present with transmission collision, therefore, it is necessary to match somebody with somebody video source 0 and video source 1 respectively It puts and is transmitted on the different timesharing periods, i.e., link is multiplexed time sharing transmissions, it is necessary to be switched in the current timesharing period:Data regard Frequency port 0 and video-out port A establishes data transmission link, in 2 video source a end of transmissions, in the 3rd timesharing period It switches to:Data video port 1 and video-out port A establishes data transmission link;In this transmission process, need in total 6 timesharing periods.
However, when 2 video source a and 4 video source b are required for being sent to video-out port A and video-out port B When, in order to avoid transmission collision, ideally, the total quantity of required timesharing period is 8, i.e., each video-out port receives The timesharing period of 4 video source b is all different, in actual transmission process, due to video acquisition port, regards such as Fig. 2 (b) still The number of frequency output port may be relatively more, and the size of the corresponding video source in each video acquisition port is also not necessarily equal, because This, is necessarily present with the situation that some links cannot arrange, so as to cause the waste of link bandwidth resource, as shown in Fig. 2 (c), For the situation that 16 video-out ports are corresponded to particularly with more complicated 64 video acquisition ports, link bandwidth money The waste in source is even more serious.
The content of the invention
The embodiment of the present invention provides a kind of video transmission method and equipment, does not conform to solve to exist in the prior art scheduling The problem of bandwidth resources waste caused by reason.
The embodiment of the present invention uses following technical scheme:
A kind of video transmission method, applied to multi-channel video Transmission system, including:
For the M roads video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing period cutting Principle is syncopated as the corresponding data bag that every road video source data is transmitted in current timesharing period domestic demand;
According to preset transmission link scheduling rule, each video acquisition port and corresponding video-out port are established Between link connection, transmit the corresponding data packet;
Wherein, in the video source data of the M roads during the occupied timesharing of the most video source data all the way of data packet number The number of section is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupancy is set Fixed duration, each timesharing period are arranged by preset order;And according to from the 1st to the order of (x n) th timesharing period, difference week Phase repeats to carry out cutting to the M roads video source data that dynamic acquisition obtains;
The transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, xN timesharing period corresponding difference is set Video acquisition port, and in the same timesharing period, the corresponding video acquisition port of each video-out port differs.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth resource waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Transmission of video member entrained by the mark of acquisition port differ, and the transmission of video that each transmission of video queue is included Member was arranged on timesharing period of the sequence number no more than xN, avoided the situation that appearance can not arrange in the prior art.
Preferably, the transmission link scheduling rule is determined by following methods:
A transmission of video queue is respectively configured for N number of video-out port, wherein, it is wrapped in each transmission of video queue Containing multiple transmission of video members, the transmission of video member carries the mark of corresponding video acquisition port, and each video passes The timesharing period shared by defeated member is equal;
It is performed successively for the corresponding transmission of video queue of each video-out port:
In the transmission of video queue is determined, when sequence number arranges to have transmission of video member on the timesharing period more than xN, It searches in the transmission of video queue, the timesharing period that sequence number does not arrange on the timesharing period no more than xN, and is determined described Transmission of video member adjust to the timesharing period not arranged described in finding;
After each transmission of video queue adjusts, scheduling rule is obtained, wherein, in the scheduling rule, each regard The transmission of video member that defeated queue is included is kept pouring in be arranged on timesharing period of the sequence number no more than xN, and each timesharing period The mark of acquisition port entrained by the transmission of video member of arrangement differs.
In embodiments of the present invention, adjustment is optimized to mode through the above way, so that each timesharing The mark of acquisition port entrained by the transmission of video member of period transmission differs, and each transmission of video queue is included Transmission of video member was arranged on timesharing period of the sequence number no more than xN, is saved the time of transmission, is avoided the prior art The middle situation for occurring excessively arranging.
Preferably, determine to arrange on the timesharing period of sequence number in the transmission of video queue more than xN to have transmission of video into Member, specifically includes:
The end transmission of video member in the transmission of video queue is obtained, and is determining the end transmission of video member When the sequence number of the timesharing period at place is more than xN, determine that sequence number arranges on the timesharing period more than xN in the transmission of video queue There is transmission of video member.
In the present invention is embodiment, the sequence number of the timesharing period according to shared by last transmission of video member determines whether pair The transmission of video queue is adjusted, convenient for judging.
Preferably, search in the transmission of video queue, when sequence number is not more than the timesharing not arranged on the timesharing period of xN Section, and definite transmission of video member was adjusted to the timesharing period not arranged found, it specifically includes:
It is adjusted successively for the transmission of video member being arranged on timesharing period of the sequence number more than xN:Described in lookup First timesharing period not arranged in transmission of video queue on timesharing period of the sequence number no more than xN, and searching successfully, And it determines to be not present in the corresponding transmission of video queue of other upper video-out ports of the described first timesharing period not arranged During identical with the mark for the acquisition port that current transmission of video member carries transmission of video member, by current transmission of video Member adjusts the timesharing period not arranged to described first.
In embodiments of the present invention, it is not more than the timesharing period not arranged of xN by searching for sequence number and is arranged in sequence number The transmission of video member on the timesharing period more than xN, and be not present in the timesharing period not arranged described in finding with working as When the identifying identical transmission of video member of acquisition port that preceding transmission of video member carries, swaps, so as to which this be regarded It keeps pouring in all transmission of video members in defeated queue to be arranged on timesharing period of the sequence number no more than xN, avoids the occurrence of Link broadband The waste of resource.
Preferably, according to during the timesharing where the transmission of video member being arranged on timesharing period of the sequence number more than xN The sequence number of section, it is suitable according to from large to small for the transmission of video member that is arranged on timesharing period of the sequence number more than xN Sequence is adjusted successively.
In embodiments of the present invention, according to certain order to be arranged in sequence number more than xN the timesharing period transmission of video into Member is adjusted, and can improve the speed and accuracy of adjustment.
Preferably, searching successfully, and determining other upper video-out ports of the described first timesharing period not arranged There is the video identical with the mark for gathering port that current transmission of video member carries in corresponding transmission of video queue to pass During defeated member, next timesharing period not arranged on timesharing period of the sequence number no more than xN in the video queue is searched, And searching successfully, and determine the corresponding transmission of video of other upper video-out ports of next timesharing period not arranged It, ought when the transmission of video member identical with the sequence number for gathering port that current transmission of video member carries being not present in queue Preceding transmission of video member was adjusted to next timesharing period not arranged.
In embodiments of the present invention, through the above scheme, regarding for timesharing period of the sequence number more than xN will be arranged in as far as possible It keeps pouring on the timesharing period that defeated member is adjusted to sequence number no more than xN, transmission time is saved to greatest extent, so as to avoid link The waste of broadband resource.
Preferably, when next point not arranged on timesharing period of the sequence number no more than xN in the lookup video queue When the period, and search failure when, the method further includes:
Determine other video output terminals in the timesharing period not arranged before next timesharing period not arranged The mark of acquisition port entrained by transmission of video member present in the corresponding transmission of video queue of mouth;
Search transmission of video member different from the mark for gathering port determined in the video queue;
Any transmission of video member found is adjusted into not pacifying to before next timesharing period not arranged The timesharing period of row.
In embodiments of the present invention, through the above scheme, regarding for timesharing period of the sequence number more than xN will be arranged in as far as possible It keeps pouring on the timesharing period that defeated member is adjusted to sequence number no more than xN, transmission time is saved to greatest extent, so as to avoid link The waste of broadband resource.
Preferably, a transmission of video queue is respectively configured for N number of video-out port, specifically includes:
Mark for M video acquisition port is ranked up according to preset rules, the multiple transmission of video member according to The sortord of the mark of self-contained video acquisition port is ranked up, and obtains transmission of video members sequences, wherein, it carries Video acquisition port the identical transmission of video member of mark between in no particular order;
For each video-out port, arrange to form a transmission of video successively according to the transmission of video members sequences Queue, and the timesharing period satisfaction where the first transmission of video member in each transmission of video queue:Previous video It transmits in queue, is tied with the timesharing period where the last one transmission of video member identical positioned at the mark first of sequence All timesharing periods after beam.
In embodiments of the present invention, the initialization process of scheduling rule is adjusted convenient for subsequent optimization through the above way Whole operation.
A kind of video transmission equipment, including:
Cutting unit, for being directed to the M roads 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 that every road video source data is transmitted in current timesharing period domestic demand;
Transmission unit, for according to preset transmission link scheduling rule, establish each video acquisition port with it is corresponding Video-out port between link connection, transmit the corresponding data packet;
Wherein, in the video source data of the M roads during the occupied timesharing of the most video source data all the way of data packet number The number of section is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupancy is set Fixed duration, each timesharing period are arranged by preset order;And according to from the 1st to the order of (x n) th timesharing period, difference week Phase repeats to carry out cutting to the M roads video source data that dynamic acquisition obtains;
The transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, xN timesharing period corresponding difference is set Video acquisition port, and in the same timesharing period, the corresponding video acquisition port of each video-out port differs.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth data waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Transmission of video member entrained by the mark of acquisition port differ, and the transmission of video that each transmission of video queue is included Member was arranged on timesharing period of the sequence number no more than xN, while transmission time is saved, it is thus also avoided that in the prior art There is situation about can not arrange.And then when carrying out transmission of video using the scheduling rule, Link broadband resource wave is evaded Situation about taking.
Preferably, the transmission link scheduling rule is determined by following function unit:
A transmission of video queue is respectively configured for being directed to N number of video-out port in initialization unit, wherein, each Comprising multiple transmission of video members in transmission of video queue, the transmission of video member carries the mark of corresponding video acquisition port Know, and the timesharing period shared by each transmission of video member is equal;
Dispensing unit performs successively for being directed to the corresponding transmission of video queue of each video-out port:In definite institute It states in transmission of video queue, when sequence number arranges to have transmission of video member on the timesharing period more than xN, searches the transmission of video In queue, timesharing period for not arranging on timesharing period of the sequence number no more than xN, and by definite transmission of video member's tune It is whole to the timesharing period not arranged found;
After each transmission of video queue adjusts, scheduling rule is obtained, wherein, in the scheduling rule, each regard The transmission of video member that defeated queue is included is kept pouring in be arranged on timesharing period of the sequence number no more than xN, and each timesharing period The mark of acquisition port entrained by the transmission of video member of arrangement differs.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth data waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Transmission of video member entrained by the mark of acquisition port differ, and the transmission of video that each transmission of video queue is included Member was arranged on timesharing period of the sequence number no more than xN, while transmission time is saved, it is thus also avoided that in the prior art There is situation about can not arrange.
Preferably, the dispensing unit, specifically includes:First determination subelement is obtained in the transmission of video queue End transmission of video member, and when the sequence number of the timesharing period where determining the end transmission of video member is more than xN, really Arrange have transmission of video member in the fixed transmission of video queue on timesharing period of the sequence number more than xN.
In the present invention is embodiment, the sequence number of the timesharing period according to shared by last transmission of video member determines whether pair The transmission of video queue is adjusted, convenient for judging.
Preferably, the dispensing unit, specifically includes:
First searches subelement, for searching the on the timesharing period of sequence number in the transmission of video queue no more than xN One timesharing period not arranged;
First exchanges subelement, for being searched successfully in the first searching unit, and determines described first point not arranged When the period upper corresponding transmission of video queue of other video-out ports in be not present and current transmission of video member carries When identifying identical transmission of video member of port is gathered, current transmission of video member is adjusted to described first and is not arranged The timesharing period.
In embodiments of the present invention, it is not more than the timesharing period not arranged of xN by searching for sequence number and is arranged in sequence number The transmission of video member on the timesharing period more than xN, and be not present in the timesharing period not arranged described in finding with working as When the identifying identical transmission of video member of acquisition port that preceding transmission of video member carries, swaps, so as to which this be regarded It keeps pouring in all transmission of video members in defeated queue to be arranged on timesharing period of the sequence number no more than xN, avoids the occurrence of Link broadband The waste of resource.
Preferably, the dispensing unit, specifically for according to the transmission of video member institute beyond standard transmission when total The sequence number of the transmission timesharing accounted for, for the transmission of video member beyond standard transmission when total, according to order from large to small It is adjusted successively.
In embodiments of the present invention, according to certain order to be arranged in sequence number more than xN the timesharing period transmission of video into Member is adjusted, and can improve the speed and accuracy of adjustment.
Preferably, described first subelement is searched, is additionally operable to searching successfully, and determine described first point not arranged When the period upper corresponding transmission of video queue of other video-out ports in exist and adopted with what current transmission of video member carried Collect when identifying identical transmission of video member of port, search in the video queue on timesharing period of the sequence number no more than xN Next timesharing period not arranged;
Described first exchanges subelement, is additionally operable in the video queue is searched on timesharing period of the sequence number no more than xN Next timesharing period success not arranged, and determine other upper video output terminals of next timesharing period not arranged The sequence number that the acquisition port carried with current transmission of video member is not present in mouthful corresponding transmission of video queue identical regards When keeping pouring in defeated member, current transmission of video member was adjusted to next timesharing period not arranged.
In embodiments of the present invention, through the above scheme, regarding for timesharing period of the sequence number more than xN will be arranged in as far as possible It keeps pouring on the timesharing period that defeated member is adjusted to sequence number no more than xN, transmission time is saved to greatest extent, so as to avoid link The waste of broadband resource.
Preferably, the dispensing unit, further includes:
Second determination subelement, for next on timesharing period of the sequence number no more than xN in the video queue when searching A timesharing period not arranged, and when searching failure, do not arranged before determining next timesharing period not arranged The timesharing period in adopting entrained by transmission of video member present in the corresponding transmission of video queue of other video-out ports Collect the mark of port;
Second searches subelement, for searching video different from the mark for gathering port determined in the video queue Transmit member;
Second exchanges subelement, next is not arranged for adjusting any transmission of video member for finding to described The timesharing period not arranged before the timesharing period.
In embodiments of the present invention, through the above scheme, regarding for timesharing period of the sequence number more than xN will be arranged in as far as possible It keeps pouring on the timesharing period that defeated member is adjusted to sequence number no more than xN, transmission time is saved to greatest extent, so as to avoid link The waste of broadband resource.
Preferably, the initialization unit, is specifically used for:
Mark for M video acquisition port is ranked up according to preset rules, the multiple transmission of video member according to The sortord of the mark of self-contained video acquisition port is ranked up, and obtains transmission of video members sequences, wherein, it carries Video acquisition port the identical transmission of video member of mark between in no particular order;
For each video-out port, arrange to form a transmission of video successively according to the transmission of video members sequences Queue, and the timesharing period satisfaction where the first transmission of video member in each transmission of video queue:Previous video It transmits in queue, terminates it with positioned at the timesharing period where identical the last one transmission of video member of the mark first of sequence All timesharing periods afterwards.
In embodiments of the present invention, the initialization process of scheduling rule is adjusted convenient for subsequent optimization through the above way Whole operation.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the schematic diagram that a kind of video acquisition port provided by the invention establishes link connection with video-out port;
Fig. 2 (a)~Fig. 2 (c) is respectively the allocation list of three kinds of different scheduling rules;
Fig. 3 is a kind of flow diagram for video transmission method that the embodiment of the present invention one provides;
Fig. 4 is a kind of transmission of video sequence diagram provided in an embodiment of the present invention;
Fig. 5 is another transmission of video sequence diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of method and step schematic diagram of definite transmission link scheduling rule provided in an embodiment of the present invention;
Fig. 7 is the initial configuration table of scheduling rule provided in an embodiment of the present invention;
Fig. 8 is the step flow that a kind of allocation list for scheduling rule provided in an embodiment of the present invention optimizes adjustment Schematic diagram;
Fig. 9 (a)~Fig. 9 (g) is respectively the process of the allocation list provided in an embodiment of the present invention for optimizing and revising scheduling rule Schematic diagram;
Figure 10 is a kind of video transmission equipment structure diagram provided in an embodiment of the present invention;
Figure 11 is a kind of configuration device structure schematic diagram of scheduling rule provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, the present invention is made below in conjunction with attached drawing into It is described in detail to one step, it is clear that described embodiment is only the implementation of part of the embodiment of the present invention rather than whole Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work All other embodiment, belongs to the scope of protection of the invention.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth resource waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Transmission of video member entrained by the mark of acquisition port differ, and the transmission of video that each transmission of video queue is included Member avoids the situation that appearance can not arrange in the prior art within xN timesharing period.
It describes in detail below by specific embodiment to technical scheme, the present invention includes but not limited to Following embodiment.
Embodiment one:
As shown in figure 3, a kind of flow diagram of the video transmission method provided for the embodiment of the present invention one, specifically includes Following steps:
Step 101:For the M roads video source data that M video acquisition port dynamic acquisition obtains, according to identical timesharing Period segmentation principle is syncopated as the corresponding data bag that every road video source data is transmitted in current timesharing period domestic demand.
Step 102:According to preset transmission link scheduling rule, each video acquisition port and corresponding video are established Link connection between output port transmits the corresponding data packet.
Specifically, the scheduling rule can be the client host offer by big screen system, and be received by controlling equipment, And control the Video transmission system using the scheduling rule.But the client host can also be arranged on the tune It spends inside equipment, i.e., controlling equipment itself can realize the operation of optimizing and revising to scheduling rule, and receive client's After open command, following transmission of video operation is performed.
Wherein, in the video source data of the M roads during the occupied timesharing of the most video source data all the way of data packet number The number of section is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupancy is set Fixed duration, each timesharing period are arranged by preset order;And according to from the 1st to the order of (x n) th timesharing period, difference week Phase repeats to carry out cutting to the M roads video source data that dynamic acquisition obtains;
The transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, xN timesharing period corresponding difference is set Video acquisition port, and in the same timesharing period, the corresponding video acquisition port of each video-out port differs.
Specifically, in the present embodiment, step 102 can be explained by sequence diagram as shown in Figure 4.
In actual video transmitting procedure, generally the video source collected by video source is considered as comprising multiple video counts According to the video source of bag.Assuming that video acquisition port 0 and video acquisition port 1 will send video data to video-out port X Wrap (video acquisition port 0:Data packet a;Video acquisition port 1:Data packet b).Before transmission video starts, controlling equipment will The first line (allow_0) that is connected respectively with video acquisition port 0, video acquisition port 1, the second circuit (allow_1) are put For low level, video acquisition port 0, video acquisition port 1 persistently send synchronizing information when collecting low level;But it reflects Video acquisition port and video-out port are not established in circuit switching equipment at this time and connected, therefore, video output terminals Mouth can't detect the synchronizing information;When transmission of video starts, controlling equipment is according in the scheduling rule received Scheduling information, video acquisition port 0 and the video-out port X are established and connected by indicating circuit switching equipment, at this point, described Video-out port X can detect the synchronizing information, and the tertiary circuit (sync_X) that itself will be connected with controlling equipment It is set to high level;After controlling equipment detects the high level, first line (allow_0) is set to high level, video acquisition Port 0 sends video data packet 0 after high level is detected, to the video-out port X, until the default timesharing period ties Beam, transmission of video pause, into video acquisition port switching state, first line (allow_0) is set to by controlling equipment again Low level, video acquisition port 0 persistently send synchronizing information again, meanwhile, controlling equipment is according in the scheduling rule received Video acquisition port 1 and the video-out port X are established and connected by scheduling information, indicating circuit switching equipment, video output Port x is set to high level when detecting the synchronizing information, by the tertiary circuit (sync_X) that itself is connected with controlling equipment, After controlling equipment detects the high level, the second circuit (allow_1) is set to high level, video acquisition port 1 is being detected To after high level, video data packet 1 is sent to the video-out port X, until the default timesharing period terminates, completes video Transmission.
It should be noted that in sequence diagram shown in Fig. 4, it is contemplated that circuit switching equipment and first line, second Circuit and tertiary circuit are circuit, during detection signal, feedback signal, switching circuit, have certain time delay, because This, actual sequence diagram can be the situation shown in Fig. 5.The present invention is defined not to this.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth resource waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Video data packet entrained by the mark of acquisition port differ, and the video data packet that each transmission of video queue is included Within the xN desired timesharing period, the situation that appearance can not arrange in the prior art is avoided.And then described in utilization When scheduling rule carries out transmission of video, the situation of the Link broadband wasting of resources is evaded.
In embodiments of the present invention, the transmission link scheduling rule is determined by method and step as shown in Figure 6:
Step 201:A transmission of video queue is respectively configured for N number of video-out port.
Wherein, in each transmission of video queue phase is carried comprising multiple transmission of video members, the transmission of video member The mark of video acquisition port is answered, and the timesharing period shared by each transmission of video member is equal.
Step 202:It is performed successively for the corresponding transmission of video queue of each video-out port:In the definite video It transmits in queue, when sequence number arranges to have transmission of video member on the timesharing period more than xN, searches in the transmission of video queue, The timesharing period that sequence number does not arrange on the timesharing period no more than xN, and the definite transmission of video member is adjusted to lookup To the timesharing period not arranged.
Step 203:After each transmission of video queue adjusts, scheduling rule is obtained, wherein, the scheduling rule In, the transmission of video member that each transmission of video queue is included was arranged on timesharing period of the sequence number no more than xN, and every The mark for the acquisition port entrained by transmission of video member that a timesharing period arranges differs.
Preferably, determine to arrange on the timesharing period of sequence number in the transmission of video queue more than xN to have transmission of video into Member, specifically includes:
The end transmission of video member in the transmission of video queue is obtained, and is determining the end transmission of video member When the sequence number of the timesharing period at place is more than xN, determine that sequence number arranges on the timesharing period more than xN in the transmission of video queue There is transmission of video member.
Preferably, search in the transmission of video queue, when sequence number is not more than the timesharing not arranged on the timesharing period of xN Section, and definite transmission of video member was adjusted to the timesharing period not arranged found, it specifically includes:
It is adjusted successively for the transmission of video member being arranged on timesharing period of the sequence number more than xN:Described in lookup First timesharing period not arranged in transmission of video queue on timesharing period of the sequence number no more than xN, and searching successfully, And it determines to be not present in the corresponding transmission of video queue of other upper video-out ports of the described first timesharing period not arranged During identical with the mark for the acquisition port that current transmission of video member carries transmission of video member, by current transmission of video Member adjusts the timesharing period not arranged to described first.
Preferably, according to during the timesharing where the transmission of video member being arranged on timesharing period of the sequence number more than xN The sequence number of section, it is suitable according to from large to small for the transmission of video member that is arranged on timesharing period of the sequence number more than xN Sequence is adjusted successively.
Preferably, searching successfully, and determining other upper video-out ports of the described first timesharing period not arranged There is the video identical with the mark for gathering port that current transmission of video member carries in corresponding transmission of video queue to pass During defeated member, next timesharing period not arranged on timesharing period of the sequence number no more than xN in the video queue is searched, And searching successfully, and determine the corresponding transmission of video of other upper video-out ports of next timesharing period not arranged It, ought when the transmission of video member identical with the sequence number for gathering port that current transmission of video member carries being not present in queue Preceding transmission of video member was adjusted to next timesharing period not arranged.
Preferably, when next point not arranged on timesharing period of the sequence number no more than xN in the lookup video queue When the period, and search failure when, the method further includes:
Determine other video output terminals in the timesharing period not arranged before next timesharing period not arranged The mark of acquisition port entrained by transmission of video member present in the corresponding transmission of video queue of mouth;
Search transmission of video member different from the mark for gathering port determined in the video queue;
Any transmission of video member found is adjusted into not pacifying to before next timesharing period not arranged The timesharing period of row.
Preferably, a transmission of video queue is respectively configured for N number of video-out port, specifically includes:
Mark for M video acquisition port is ranked up according to preset rules, the multiple transmission of video member according to The sortord of the mark of self-contained video acquisition port is ranked up, and obtains transmission of video members sequences, wherein, it carries Video acquisition port the identical transmission of video member of mark between in no particular order;
For each video-out port, a transmission of video team is sequentially formed according to the transmission of video members sequences Row, and the timesharing period satisfaction where the first transmission of video member in each transmission of video queue:Previous video passes In defeated queue, after terminating positioned at the timesharing period where identical the last one transmission of video member of the mark first of sequence All timesharing periods.
The collocation method of the scheduling rule in above example is described in detail below by specific example, it is necessary to Illustrate, in detail below the example preferred embodiment that only the solution of the present invention is proposed for ease of understanding.
In order to when being scheduled the configuration of rule, convenient for being optimized and revised to scheduling rule, generally require and be adjusted in optimization Initialization operation is carried out to scheduling rule before whole.Initialization operation according to the present invention is not limited to following scheme, also wraps Include the initialization operation of the other forms of the prior art that can realize the present invention program.
Involved Video Transmission Scheme is the transmission instance of multi-to-multi in the present embodiment, due to what is be related among reality The configuration information of video acquisition port and video-out port may be very much, and relatively common having is:64 video acquisition ends Corresponding 16 video-out ports of mouth.And the present invention is for ease of description, only corresponds to three with three video acquisition ports A, B, C It is illustrated exemplified by video-out port 1,2,3.Wherein, the video data packet of video acquisition port A outputs is:3 data packets A;Video acquisition port B output video data packet be:2 data packet B;Video acquisition port C output video data packet be: 2 data packet C.
The process of initialization may comprise steps of:
The first step:The scheduling information in scheduling rule before emptying distributes a video for each video-out port Transmit queue.Wherein, comprising 7 video data packets in the transmission of video queue, the video data packet, which carries, accordingly to be regarded Frequency gathers the mark of port.
Specifically, it can be that video-out port 1 distributes transmission of video queue VQ (1), be regarded for the distribution of video-out port 2 It keeps pouring in defeated queue VQ (2), distribute transmission of video queue VQ (3) for video-out port 3;3 are included in each transmission of video queue A data packet A, 2 data packet B, 2 data packet C, at the same time it can also distribute the default timesharing period for each video data packet t。
Second step:For 7 video data packets in each transmission of video queue, according to the arrangement mode of ascending or descending order It is ranked up.Wherein, between the identical transmission of video member of the mark of the video acquisition port of carrying in no particular order.
Such as:It can be in the way of ascending order:Video data packet A, video data packet A, video data packet A, video data Wrap B, video data packet B, video data packet C, video data packet C;Or the mode of descending:Video data packet C, video data packet C, video data packet B, video data packet B, video data packet A, video data packet A, video data packet A.
3rd step:For each video-out port, a video is sequentially formed according to the transmission of video members sequences Queue is transmitted, and the timesharing period where the first transmission of video member in each transmission of video queue meets:It is previous In transmission of video queue, tied with positioned at the timesharing period where identical the last one transmission of video member of the mark first of sequence All timesharing periods after beam.
Specifically, after the number of video data packet determines, can according to default timesharing period t, according to sequential according to Secondary is each timesharing period Allotment Serial Number:[0, t) for the timesharing period 1, [t, 2t) for the timesharing period 2, [2t, 3t) it is the timesharing period 3, [3t, 4t) for the timesharing period 4, [4t, 5t) for the timesharing period 5, it is sequentially allocated to obtain the timesharing period.It is possible thereby to determine, pass It is 9t when the transmission of the defeated required standard of video data packet A, B, C is total.
In specifically implementation process:By calculating in a upper transmission of video queue, with the mark first of the sequence The time that the timesharing period where the last one identical video data packet terminates will originally regard to infinity as insertion time range It keeps pouring in the video data packet after the sequence in defeated queue and is sequentially inserted into the insertion time range.Such as:As shown in fig. 7, first During beginningization, transmission of video queue is arranged successively for each output port, first, for video-out port 1:It can be with Video data packet after sequence is arranged in 1~timesharing period timesharing period 7 successively since the timesharing period 1;Then, for regarding Frequency output port 2:It, therefore, can only to avoid conflicting since 1~timesharing period timesharing period 3 all arranges have video data packet A After the timesharing period (i.e. timesharing period 3) of the last one video data packet A for being A in the identification number of video-out port 1, it is Video-out port 2 arranges transmission of video queue, and the video data packet after will sorting is arranged in successively since the timesharing period 4 4~timesharing period timesharing period 10;Finally, for video-out port 3:Since 1~timesharing period timesharing period 6 all pacifies respectively Row has video data packet A, in order to avoid transmission collision, therefore, can only the identification number of video-out port 2 be A last After the timesharing period (i.e. timesharing period 6) of a video data packet A, transmission of video queue is arranged for video-out port 3, it will Video data packet after sequence is arranged in the 7 timesharing period 13 of timesharing period successively since the timesharing period 7.No matter the present invention is taken The mode arrange video data packet or other modes of the prior art, can finally be formed as shown in Figure 7 The initial configuration table of scheduling rule.
From initial configuration table, after initializing, all video data packets are all not in conflict, but It is on many timesharing periods, there are much idle bandwidth resources, cause greatly to waste, therefore, it is necessary to by adjusting first Scheduling information in the initial configuration table of the scheduling rule of beginningization is come the waste that improves or avoid bandwidth.
Scheme according to the present invention is combined below by way of flow chart shown in Fig. 8 to carry out to specifically optimizing and revising process Description.
Step 301:Obtain the 7th video data packet in the transmission of video queue.
Step 302:Judge whether the sequence number of the timesharing period where the 7th video data packet is more than 9, if so, Perform step 304;Otherwise, step 303 is performed.
Step 303:The transmission of video queue is optimized and revised in end.
Step 304:It searched for the in the transmission of video queue first timesharing period not arranged, and judges described first Whether the sequence number for the timesharing period not arranged is no more than 9, if so, performing step 305, otherwise, performs step 303.
Step 305:Judge to whether there is in the first timesharing period not arranged for finding with current transmission of video into The acquisition port that member carries identifies identical transmission of video member, if in the presence of, step 306 is performed, otherwise, execution step 307。
Step 306:It searches sequence number in the video queue and is not more than for 9 next timesharing period not arranged, and perform Step 308.
Step 307:Current transmission of video member is adjusted to the timesharing period not arranged to described first, and is jumped to 301。
Step 308:Determine the acquisition entrained by video data packet present in next timesharing period not arranged The mark of port.
Step 309:Search the mark with the acquisition port entrained by the definite video data packet in the video queue Know different video data packets.
Step 310:Any video data packet found is adjusted to the timesharing period not arranged to described first, and is jumped Go to 301.
(1), transmission of video queue VQ (1) is adjusted:
Obtain the 7th video data packet in the VQ (1):Data packet C, and the sequence of the timesharing period shared by data packet C Number not greater than 9, it is determined that in the VQ (1) sequence number more than 9 the timesharing period on is not arranged with video data packet, terminate to VQ (1) optimize and revise.It is identical with the content in Fig. 7 shown in the allocation list of scheduling rule at this time such as Fig. 9 (a).
(2), transmission of video queue VQ (2) is adjusted:
First, the 7th video data packet in the VQ (2) is obtained:Video data packet C, and where video data packet C The sequence number of timesharing period be more than 9, it is determined that in the VQ (2) sequence number more than 9 the timesharing period on arrange have video data packet, it is necessary to Adjustment is optimized to VQ (2).
Then, searched for the in the transmission of video queue first timesharing period not arranged, and determine described first not The timesharing period of arrangement is transmission timesharing 1, and sequence number is not more than 9;It then determines whether to whether there is and video in transmission timesharing 1 The identical video data packet of mark of data packet C, from the allocation list shown in Fig. 9 (a), transmit in timesharing 1 there is no with regarding Frequency data packet C's identifies identical video data packet, then adjusts the video data packet C in VQ (2) to described first and do not pacify The timesharing period of row.Shown in the allocation list of scheduling rule at this time such as Fig. 9 (b), 7 video data packets in the VQ (2) collect In within 9t.
Due to only existing a video data packet for exceeding 9t in the VQ (2), complete video data packet C adjustment To the described first timesharing period not arranged, can terminate to optimize and revise VQ (2).
(3), transmission of video queue VQ (3) is adjusted:
First, the 7th video data packet in the VQ (3) is obtained:Video data packet C, and shared by video data packet C The sequence number of timesharing period is more than 9, it is determined that there is the video data packet beyond the transmission of standard 9t when total in the VQ (3);And it deposits When video data packet B, video data packet C are total beyond standard transmission, then can determine subsequently to need respectively to video data packet B, the queue position of video data packet C optimizes adjustment.
It should be noted that when there are it is multiple beyond the video data packet of 9t when, can be according to the multiple beyond 9t The sequence number of the timesharing period of video data packet, for multiple video data packets beyond 9t, according to order from large to small It is adjusted successively, it specifically, can be first to being located at the sequence number larger timesharing period 13, on the timesharing period 12 in the VQ (3) Video data packet C optimize adjustment, then the video data packet B to being located on the sequence number smaller timesharing period 11,10 is carried out It optimizes and revises.
Specifically, when optimizing processing to video data packet C:
It searches first in the transmission of video queue timesharing period not arranged, and determines described first and do not arrange The timesharing period for the timesharing period 1, within 9t;It then determines whether to whether there is and video data packet C in the timesharing period 1 The identical video data packet of sequence number, from the allocation list shown in Fig. 9 (b), video data packet is had existed in the timesharing period 1 C then searches next timesharing period not arranged on timesharing period of the sequence number no more than 9 in the video queue, and searches It is the timesharing period 2 to next timesharing period not arranged, determines whether to whether there is in the timesharing period 2 and video data packet From the allocation list shown in Fig. 9 (b), video data packet is not present in the identical video data packet of the sequence number of C in the timesharing period 2 C then adjusts video data packet C to the timesharing period 2, shown in allocation list such as Fig. 9 (c) of scheduling rule at this time, similarly, by position The allocation list to the timesharing period 3, obtained as shown in Fig. 9 (d) is adjusted in the video data packet C of timesharing period 12.
When optimizing processing to video data packet B:
It searches first in the transmission of video queue timesharing period not arranged, and determines described first and do not arrange The timesharing period for the timesharing period 1, within 9t;It then determines whether to whether there is and video data packet B in the timesharing period 1 The identical video data packet of sequence number, from the allocation list shown in Fig. 9 (d), there is no video data packet B in the timesharing period 1, Then video data packet B was adjusted to the timesharing period 1, shown in allocation list such as Fig. 9 (e) of scheduling rule at this time, similarly, will be located at The video data packet B of timesharing period 10 adjusts the allocation list to the timesharing period 6, obtained as shown in Fig. 9 (f).
Finally, 10~timesharing period timesharing period 13 is omitted, obtains the scheduling rule after optimizing and revising as shown in Fig. 9 (g) Allocation list then.
In embodiments of the present invention, in order to avoid transmission system that multiple video acquisition ports correspond to multiple video-out ports The situation for the link bandwidth resource waste that system occurs, the M roads video source number obtained for M video acquisition port dynamic acquisition According to according to identical timesharing period segmentation principle, being syncopated as pair that every road video source data is transmitted in current timesharing period domestic demand Data packet is answered, according to preset transmission link scheduling rule, establishes each video acquisition port and corresponding video output terminals Link connection between mouthful transmits the corresponding data packet;The transmission link scheduling rule is specially:For N number of video Each video-out port in output port, xN timesharing period of setting corresponding different video acquisition port, and Same timesharing period, the corresponding video acquisition port of each video-out port differ.So as to so that each timesharing period transmission Video data packet entrained by the mark of acquisition port differ, and the video data packet that each transmission of video queue is included Within when standard transmission is total, the situation that appearance can not arrange in the prior art is avoided.
Based on the same inventive concept with a kind of video transmission method provided in an embodiment of the present invention, the embodiment of the present invention is also Provide a kind of video transmission equipment.
Embodiment two:
As shown in Figure 10, for a kind of video transmission equipment structure diagram provided in an embodiment of the present invention, it is main include with Lower functional unit:
Cutting unit 401, for being directed to the M roads video source data that M video acquisition port dynamic acquisition obtains, according to phase Same timesharing period segmentation principle, is syncopated as the corresponding data bag that every road video source data is transmitted in current timesharing period domestic demand.
Transmission unit 402, for according to preset transmission link scheduling rule, establish each video acquisition port with it is right Link connection between the video-out port answered transmits the corresponding data packet.
Wherein, in the video source data of the M roads during the occupied timesharing of the most video source data all the way of data packet number The number of section is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupancy is set Fixed duration, each timesharing period are arranged by preset order;And according to from the 1st to the order of (x n) th timesharing period, difference week Phase repeats to carry out cutting to the M roads video source data that dynamic acquisition obtains;
The transmission link scheduling rule is specially:For each video-out port in N number of video-out port, XN timesharing period corresponding different video acquisition port is set, and in the same timesharing period, each video-out port corresponds to Video acquisition port differ.
Preferably, the transmission link scheduling rule is determined by equipment as shown in figure 11, and the equipment includes Following functions unit:
A transmission of video queue is respectively configured for being directed to N number of video-out port in initialization unit 501, wherein, often Comprising multiple transmission of video members in a transmission of video queue, the transmission of video member carries corresponding video acquisition port Mark, and the timesharing period shared by each transmission of video member is equal;
Dispensing unit 502 performs successively for being directed to the corresponding transmission of video queue of each video-out port:It is determining In the transmission of video queue, when sequence number arranges to have transmission of video member on the timesharing period more than xN, search the video and pass In defeated queue, timesharing period for not arranging on timesharing period of the sequence number no more than xN, and by the definite transmission of video member It adjusts to the timesharing period not arranged described in finding;
After each transmission of video queue adjusts, scheduling rule is obtained, wherein, in the scheduling rule, each regard The transmission of video member that defeated queue is included is kept pouring in be arranged on timesharing period of the sequence number no more than xN, and each timesharing period The mark of acquisition port entrained by the transmission of video member of arrangement differs.
Preferably, the dispensing unit 502, specifically includes:
First determination subelement 5021 obtains the end transmission of video member in the transmission of video queue, and is determining When the sequence number of timesharing period where the end transmission of video member is more than xN, determine that sequence number is big in the transmission of video queue There is transmission of video member in arrangement on the timesharing period of xN.
Preferably, the dispensing unit 502, specifically includes:
First searches subelement 5022, for searching the timesharing period that sequence number in the transmission of video queue is not more than xN First timesharing period not arranged;
First exchanges subelement 5023, for being searched successfully in the first searching unit 5022, and determines described first not Be not present in the corresponding transmission of video queue of other upper video-out ports of timesharing period of arrangement with current transmission of video into When the identifying identical transmission of video member of acquisition port that member carries, current transmission of video member is adjusted to described first A timesharing period not arranged.
Preferably, the dispensing unit 502, specifically for according to the video data packet institute beyond standard transmission when total Account for transmission timesharing sequence number, for it is described beyond standard transmission it is total when video data packet, according to order from large to small according to It is secondary to be adjusted.
Preferably, described first subelement 5022 is searched, is additionally operable to searching successfully, and determined described first and do not arrange The upper corresponding transmission of video queue of other video-out ports of timesharing period in exist and current transmission of video member carries Acquisition port mark identical transmission of video member when, search the timesharing period that sequence number in the video queue is not more than xN On next timesharing period not arranged;
Described first exchanges subelement 5023, is additionally operable to when sequence number is not more than the timesharing of xN in searching the video queue Next timesharing period success not arranged in section, and determine that other upper videos of next timesharing period not arranged are defeated The sequence number that the acquisition port carried with current transmission of video member is not present in the corresponding transmission of video queue of exit port is identical Transmission of video member when, current transmission of video member was adjusted to next timesharing period not arranged.
Preferably, the dispensing unit 502, further includes:
Second determination subelement 5024, for when on timesharing period of the sequence number no more than xN in the lookup video queue Next timesharing period not arranged, and when searching failure, determine before next timesharing period not arranged not In the timesharing period of arrangement entrained by transmission of video member present in the corresponding transmission of video queue of other video-out ports Acquisition port mark;
Second searches subelement 5025, different for searching the mark of the acquisition port in the video queue from determining Transmission of video member;
Second exchanges subelement 5026, next does not pacify for adjusting any transmission of video member found to described The timesharing period not arranged before the timesharing period of row.
Preferably, the initialization unit 501, is specifically used for:For M video acquisition port mark according to preset rules It is ranked up, the multiple transmission of video member is arranged according to the sortord of the mark of self-contained video acquisition port Sequence obtains transmission of video members sequences, wherein, between the identical transmission of video member of mark of the video acquisition port of carrying not Successively;
For each video-out port, the multiple transmission of video is arranged successively according to the transmission of video members sequences Member forms multiple transmission of video queues, and point where the first transmission of video member in each transmission of video queue When the period meet:The mark of the video acquisition port carried in previous video transmission queue with the first transmission of video member The timesharing period where identical the last one transmission of video member terminate after all moment.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (16)

1. a kind of video transmission method, applied to multi-channel video Transmission system, which is characterized in that including:
It is former according to identical timesharing period cutting for the M roads video source data that M video acquisition port dynamic acquisition obtains Then, it is syncopated as the corresponding data bag that every road video source data is transmitted in current timesharing period domestic demand;
According to preset transmission link scheduling rule, establish between each video acquisition port and corresponding video-out port Link connection, transmit the corresponding data packet;
Wherein, data packet number most occupied timesharing period of video source data all the way in the video source data of the M roads Number is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupies setting Duration, each timesharing period are arranged by preset order;And according to from the 1st, to the order of (x n) th timesharing period, the cycle is heavy respectively The multiple M roads video source data obtained to dynamic acquisition carries out cutting;
The transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, xN timesharing period is set corresponding different to regard Frequency acquisition port, and in the same timesharing period, the corresponding video acquisition port of each video-out port differ.
2. the method as described in claim 1, which is characterized in that the transmission link scheduling rule is determined by following methods:
A transmission of video queue is respectively configured for N number of video-out port, wherein, comprising more in each transmission of video queue A transmission of video member, the transmission of video member carry the mark of corresponding video acquisition port, and each transmission of video into The timesharing period shared by member is equal;
It is performed successively for the corresponding transmission of video queue of each video-out port:
In the transmission of video queue is determined, when sequence number arranges to have transmission of video member on the timesharing period more than xN, search In the transmission of video queue, sequence number is not more than the timesharing period not arranged on the timesharing period of xN, and described definite is regarded Defeated member is kept pouring in adjust to the timesharing period not arranged described in finding;
After each transmission of video queue adjusts, scheduling rule is obtained, wherein, in the scheduling rule, each video passes The transmission of video member that defeated queue is included was arranged on timesharing period of the sequence number no more than xN, and each timesharing period arranges Transmission of video member entrained by the mark of acquisition port differ.
3. method as claimed in claim 2, which is characterized in that determine timesharing of the sequence number more than xN in the transmission of video queue It arranges have transmission of video member on period, specifically includes:
The end transmission of video member in the transmission of video queue is obtained, and where the end transmission of video member is determined The sequence number of timesharing period when being more than xN, determine to arrange to regard on the timesharing period of sequence number in the transmission of video queue more than xN Keep pouring in defeated member.
4. method as claimed in claim 2 or claim 3, which is characterized in that search in the transmission of video queue, sequence number is not more than xN The timesharing period on timesharing period for not arranging, and definite transmission of video member is adjusted to the timesharing not arranged found Period specifically includes:
It is adjusted successively for the transmission of video member being arranged on timesharing period of the sequence number more than xN:Search the video First timesharing period not arranged on timesharing period of the sequence number no more than xN in queue is transmitted, and is being searched successfully, and really It is not present in the corresponding transmission of video queue of fixed other upper video-out ports of the described first timesharing period not arranged with working as When the identifying identical transmission of video member of acquisition port that preceding transmission of video member carries, by current transmission of video member Adjust the timesharing period not arranged to described first.
5. method as claimed in claim 4, which is characterized in that according to what is be arranged on timesharing period of the sequence number more than xN The sequence number of timesharing period where transmission of video member is passed for the video being arranged on timesharing period of the sequence number more than xN Defeated member is adjusted successively according to order from large to small.
6. method as claimed in claim 5, which is characterized in that the method further includes:
It is searching successfully, and is determining that the corresponding video of other upper video-out ports of the described first timesharing period not arranged passes When there is the transmission of video member identical with the mark for gathering port that current transmission of video member carries in defeated queue, search Next timesharing period not arranged in the video queue on timesharing period of the sequence number no more than xN, and searching successfully, And it determines to be not present in the corresponding transmission of video queue of other upper video-out ports of next timesharing period not arranged During identical with the sequence number for the acquisition port that current transmission of video member carries transmission of video member, by current transmission of video Member was adjusted to next timesharing period not arranged.
7. method as claimed in claim 6, which is characterized in that when sequence number is not more than the timesharing of xN in the lookup video queue Next timesharing period not arranged on period, and when searching failure, the method further includes:
Determine other video-out ports pair in the timesharing period not arranged before next timesharing period not arranged The mark of acquisition port entrained by transmission of video member present in the transmission of video queue answered;
Search transmission of video member different from the mark for gathering port determined in the video queue;
Any transmission of video member found was adjusted before next timesharing period not arranged and is not arranged The timesharing period.
8. method as claimed in claim 2 a, which is characterized in that video is respectively configured for N number of video-out port and passes Defeated queue, specifically includes:
Mark for M video acquisition port is ranked up according to preset rules, and the multiple transmission of video member is according to itself The sortord of the mark of the video acquisition port of carrying is ranked up, and obtains transmission of video members sequences, wherein, carrying regards Frequently between the identical transmission of video member of the mark of acquisition port in no particular order;
For each video-out port, arrange to form a transmission of video team successively according to the transmission of video members sequences Row, and the timesharing period satisfaction where the first transmission of video member in each transmission of video queue:Previous video passes In defeated queue, after terminating positioned at the timesharing period where identical the last one transmission of video member of the mark first of sequence All timesharing periods.
9. a kind of video transmission equipment, applied to multi-channel video Transmission system, which is characterized in that including:
Cutting unit, for being directed to the M roads video source data that M video acquisition port dynamic acquisition obtains, according to identical point When period segmentation principle, be syncopated as the corresponding data bag that every road video source data is transmitted in current timesharing period domestic demand;
Transmission unit, for according to preset transmission link scheduling rule, establishing each video acquisition port and being regarded with corresponding Link connection between frequency output port transmits the corresponding data packet;
Wherein, data packet number most occupied timesharing period of video source data all the way in the video source data of the M roads Number is x, and the total quantity of timesharing period is the product of x and video-out port sum N, each timesharing period occupies setting Duration, each timesharing period are arranged by preset order;And according to from the 1st, to the order of (x n) th timesharing period, the cycle is heavy respectively The multiple M roads video source data obtained to dynamic acquisition carries out cutting;
The transmission link scheduling rule is specially:
For each video-out port in N number of video-out port, xN timesharing period is set corresponding different to regard Frequency acquisition port, and in the same timesharing period, the corresponding video acquisition port of each video-out port differ.
10. equipment as claimed in claim 9, which is characterized in that the transmission link scheduling rule passes through following function unit It determines:
A transmission of video queue is respectively configured for being directed to N number of video-out port in initialization unit, wherein, each video It transmits comprising multiple transmission of video members in queue, the transmission of video member carries the mark of corresponding video acquisition port, And the timesharing period shared by each transmission of video member is equal;
Dispensing unit performs successively for being directed to the corresponding transmission of video queue of each video-out port:Determining described regard It keeps pouring in defeated queue, when sequence number arranges to have transmission of video member on the timesharing period more than xN, searches the transmission of video queue In, timesharing period for not arranging on timesharing period of the sequence number no more than xN, and by the definite transmission of video member adjust to The timesharing period not arranged found;
After each transmission of video queue adjusts, scheduling rule is obtained, wherein, in the scheduling rule, each video passes The transmission of video member that defeated queue is included was arranged on timesharing period of the sequence number no more than xN, and each timesharing period arranges Transmission of video member entrained by the mark of acquisition port differ.
11. equipment as claimed in claim 10, which is characterized in that the dispensing unit specifically includes:
First determination subelement obtains the end transmission of video member in the transmission of video queue, and is determining the end When the sequence number of timesharing period where transmission of video member is more than xN, point of the sequence number more than xN in the transmission of video queue is determined When the period on arrange have transmission of video member.
12. the equipment as described in claim 10 or 11, which is characterized in that the dispensing unit specifically includes:
First searches subelement, for searching first in the transmission of video queue on timesharing period of the sequence number no more than xN The timesharing period not arranged;
First exchanges subelement, for being searched successfully in the first searching unit, and during definite described first timesharing not arranged The acquisition carried with current transmission of video member is not present in section in the corresponding transmission of video queue of other video-out ports Current transmission of video member is adjusted point not arranged to described first by when identifying identical transmission of video member of port When the period.
13. equipment as claimed in claim 12, which is characterized in that the dispensing unit, specifically for being passed according to beyond standard Shared by video data packet when defeated total transmission timesharing sequence number, for it is described beyond standard transmission it is total when video data packet, It is adjusted successively according to order from large to small.
14. equipment as claimed in claim 13, which is characterized in that
Described first searches subelement, is additionally operable to searching successfully, and determines that the described first timesharing period not arranged goes up it There is the mark of the acquisition port carried with current transmission of video member in the corresponding transmission of video queue of his video-out port It is sensible with transmission of video member when, that searches on the timesharing period of sequence number in the video queue no more than xN next does not pacify The timesharing period of row;
Described first exchanges subelement, under being additionally operable in the video queue is searched on timesharing period of the sequence number no more than xN One timesharing period success not arranged, and determine other upper video-out ports pair of next timesharing period not arranged The video identical with the sequence number for gathering port that current transmission of video member carries is not present in the transmission of video queue answered to pass During defeated member, current transmission of video member was adjusted to next timesharing period not arranged.
15. equipment as claimed in claim 14, which is characterized in that the dispensing unit further includes:
Second determination subelement, for when search in the video queue on timesharing period of the sequence number no more than xN it is next not The timesharing period of arrangement, and when searching failure, point not arranged before determining next timesharing period not arranged When the period in collection terminal entrained by transmission of video member present in the corresponding transmission of video queue of other video-out ports The mark of mouth;
Second searches subelement, for searching transmission of video different from the mark for gathering port determined in the video queue Member;
Second exchanges subelement, for adjusting any transmission of video member found to next timesharing not arranged The timesharing period not arranged before period.
16. equipment as claimed in claim 10, which is characterized in that the initialization unit is specifically used for:
Mark for M video acquisition port is ranked up according to preset rules, and the multiple transmission of video member is according to itself The sortord of the mark of the video acquisition port of carrying is ranked up, and obtains transmission of video members sequences, wherein, carrying regards Frequently between the identical transmission of video member of the mark of acquisition port in no particular order;
For each video-out port, arrange to form a transmission of video team successively according to the transmission of video members sequences Row, and the timesharing period satisfaction where the first transmission of video member in each transmission of video queue:Previous video passes In defeated queue, after terminating positioned at the timesharing period where identical the last one transmission of video member of the mark first of sequence 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 CN105338258A (en) 2016-02-17
CN105338258B true 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)

Families Citing this family (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
CN106330767B (en) * 2016-08-23 2020-07-28 山东康威通信技术股份有限公司 Multi-terminal time-sharing scheduling method and system based on single-channel multiplexing
CN107018371B (en) * 2017-04-18 2020-02-14 浙江大华技术股份有限公司 Video acquisition control method and device
CN111225243B (en) * 2020-01-20 2021-02-02 中南大学 Video block scheduling method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* 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
CA2537293C (en) * 2003-08-29 2014-04-01 Rgb Networks, Inc. Advanced, adaptive video multiplexer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105338258A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105430508B (en) Video broadcasting method and device
CN105338258B (en) A kind of video transmission method and equipment
CN102415059B (en) Bus control device
CN106171032B (en) Data transmission method and equipment
CN104767809B (en) A kind of download control method and system
CN103929492A (en) Method, devices and system for load balancing of service chain
JP5793690B2 (en) Interface device and memory bus system
CN105229973A (en) The formation of network and the visualization device of action
CN107104897A (en) Data transmission method and system based on path
CN102023890A (en) A data processing apparatus and method for setting dynamic priority levels for transactions according to latency feedback
CN105703927A (en) Resource allocation method, network device and network system
CN110087141A (en) Method of transmitting video data, device, client and server
CN110069288A (en) USB device sharing method, apparatus and system
CN106059940A (en) Flow control method and device
CN103607731B (en) A kind of processing method and processing device of measurement report
CN106412630A (en) Video list switch control method and apparatus
CN103905341B (en) Resource regulating method, apparatus and system
CN111615151B (en) Method and device for screening online channels
CN103796277B (en) Method, system and device for indicating beacon frame sending and sending beacon frame
CN106547333A (en) Mobile terminal and its method of work
CN107465585A (en) Method for information display and device
CN101079880B (en) System and method for automatically updating software interface according to contents of program
CN105549911B (en) The data transmission method and device of NVRAM
JP2010244470A (en) Distributed processing system and distributed processing method
CN103236962B (en) Fieldbus transmission method

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