CN106341663A - Video sharing method and apparatus - Google Patents

Video sharing method and apparatus Download PDF

Info

Publication number
CN106341663A
CN106341663A CN201610859022.2A CN201610859022A CN106341663A CN 106341663 A CN106341663 A CN 106341663A CN 201610859022 A CN201610859022 A CN 201610859022A CN 106341663 A CN106341663 A CN 106341663A
Authority
CN
China
Prior art keywords
video
split screen
screen number
common multiple
sharing request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610859022.2A
Other languages
Chinese (zh)
Other versions
CN106341663B (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 Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201610859022.2A priority Critical patent/CN106341663B/en
Publication of CN106341663A publication Critical patent/CN106341663A/en
Application granted granted Critical
Publication of CN106341663B publication Critical patent/CN106341663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching

Abstract

The present invention provides a video sharing method and apparatus. The method includes the following steps that: a server receives video sharing requests of users, and when the number of the received video sharing requests is larger than one, the lowest common multiple of the number of split screens in all the video sharing requests is calculated according to the number of split screens required by video display terminals in each video sharing request; the lowest common multiple and the video sharing requests are sent to a video acquisition device; after receiving the least common multiple, the video acquisition device segments acquired video images according to the least common multiple and codes sub-video images obtained after segmentation; and the coded sub-video images are transmitted according to the video sharing requests, the addresses of the video display terminals for video sharing and the number of split screens required by the video display terminals, and after the sub-video images are decoded, the corresponding video display terminals display the decoded sub-video images. With the above video sharing method and apparatus adopted, resource waste caused by repeated coding required by multi-user video sharing can be avoided.

Description

Video sharing method and device
Technical field
The present invention relates to video information process field, in particular to a kind of video sharing method and device.
Background technology
With urban construction, video monitoring system is in urban security management, emergency event is disposed, crowded place monitors Etc. aspect play more and more important effect.Image capture device (such as, fisheye camera) in video monitoring system is being adopted Share it is provided that carrying out video to multiple video display terminals after collecting video information.Carrying out multiple video display terminals When video is shared, need to carry out being separately encoded process according to the video sharing request of the video display terminal of different split screen numbers, then Data after coding is individually sent, and is shown by video display terminal after the decoding.In said process, video capture device meeting The video sharing request of the video display terminal of different split screen numbers is encoded respectively, repeated encoding can waste video acquisition and set Standby resource, the performance of impact video capture device.
Content of the invention
In view of this, the purpose of the embodiment of the present invention is that the solution reception providing a kind of highly effective and safe efficiency again high is multiplex Family operates the method and device of a video capture device simultaneously, to improve the video acquisition that repeated encoding in prior art brings The waste of device coding performance.
The present invention first preferred embodiment provides a kind of video sharing method, is applied to video monitoring system, described regards Frequency monitoring system includes server, video capture device and video display terminal, and methods described includes:
The video sharing request of described server receive user, described video sharing request includes the video of shared video Split screen number needed for the address of display terminal and video display terminal;
When the quantity of the video sharing request in reception for the described server is more than one, according in each video sharing request Split screen number needed for video display terminal is calculated the least common multiple of split screen number in all video sharing request;
Described least common multiple and described video sharing request are sent to described video capture device by described server;
Described video capture device after receiving described least common multiple, by collection video image according to described minimum Common multiple is split, and the sub-video image obtaining after segmentation is encoded;
Described video capture device according to described video sharing request, according to the address of the video display terminal of shared video And the split screen number needed for video display terminal, the sub-video image after coding is transmitted, and after the decoding by regarding accordingly Frequency display terminal is shown.
The present invention second preferred embodiment provides a kind of video sharing method, is applied to and video capture device communication link The server connecing, methods described includes:
The video sharing request of receive user, described video sharing request includes the video display terminal of shared video Split screen number needed for address and video display terminal, wherein, described split screen number is taken advantage of using horizontal split screen number and vertical split screen number Product representation;
When the quantity of the video sharing request receiving is more than one, according to video display in each video sharing request eventually The required split screen number in end is calculated the least common multiple of split screen number in all video sharing request;
Described least common multiple and described video sharing request are sent to described video capture device, are adopted by described video Collection equipment, after receiving described least common multiple, the video image of collection is split according to described least common multiple, and The sub-video image obtaining after segmentation is encoded.Sub-video image after coding is shown eventually according to the video of shared video Split screen number needed for the address at end and video display terminal is transmitted, and is carried out by corresponding video display terminal after the decoding Display.
The present invention the 3rd preferred embodiment provides a kind of video sharing method, is applied to show eventually with server and video The video capture device of end communication connection, methods described includes:
When the quantity receiving the video sharing request in receive user for the described server is more than one, by described server root It is calculated split screen number in all video sharing request according to the split screen number needed for video display terminal in each video sharing request Least common multiple.Wherein, described least common multiple adopts the product representation of horizontal least common multiple and vertical least common multiple. Described horizontal least common multiple is the least common multiple of the horizontal split screen number of split screen number in the video sharing request receiving, described Vertical least common multiple is the least common multiple of the vertical split screen number of split screen number in the video sharing request receiving;
The video image of collection is split according to described least common multiple, and to the sub-video image obtaining after segmentation Encoded;
According to described video sharing request, according to address and the video display terminal institute of the video display terminal of shared video The split screen number needing, the sub-video image after coding is transmitted, and is shown by corresponding video display terminal after the decoding Show.
The present invention the 4th preferred embodiment provides a kind of video sharing means, is applied to and video capture device communication link The server connecing, described device includes:
Respond module, for the video sharing request of receive user.Described video sharing request includes shared video Split screen number needed for the address of video display terminal and video display terminal.Wherein, described split screen number adopt horizontal split screen number with The product representation of vertical split screen number;
Computing module, for when the quantity of the video sharing request receiving is more than one, being shared according to each video please The split screen number needed for video display terminal is asked to be calculated the least common multiple of split screen number in all video sharing request;
Output module, sets for described least common multiple and described video sharing request are sent to described video acquisition Standby.By described video capture device after receiving described least common multiple, by the video image of collection according to described minimum public Multiple is split, and the sub-video image obtaining after segmentation is encoded.By the sub-video image after coding according to shared Split screen number needed for the address of the video display terminal of video and video display terminal is transmitted, and after the decoding by corresponding Video display terminal is shown.
The present invention the 5th preferred embodiment provides a kind of video sharing means, is applied to show eventually with server and video The video capture device of end communication connection, described device includes:
Receiver module, when the quantity for receiving the video sharing request in receive user for the described server is more than one, All videos are calculated altogether by split screen number according to needed for video display terminal in each video sharing request for the described server Enjoy the least common multiple of split screen number in request.Wherein, described least common multiple adopts horizontal least common multiple and vertically minimum public affairs The product representation of multiple.Described horizontal least common multiple is the horizontal split screen number of the split screen number in the video sharing request receiving Least common multiple, described vertical least common multiple is the minimum of the vertical split screen number of split screen number in the video sharing request receiving Common multiple;
Image segmentation module, for being split the video image of collection, and to segmentation according to described least common multiple The sub-video image obtaining afterwards is encoded;
Sending module, for according to described video sharing request, according to the video display terminal of shared video address and Split screen number needed for video display terminal, the sub-video image after coding is transmitted, and after the decoding by corresponding video Display terminal is shown.
For prior art, video sharing method provided in an embodiment of the present invention and device, server receive user Video sharing request, when the video sharing request receiving is more than one, according to the split screen number meter in each video sharing request Calculate the least common multiple of split screen number in all video sharing request.Video capture device is according to described least common multiple to video Image is split, and sub-video image is encoded, then by the sub-video image after coding according in video sharing request The address of video display terminal and video display terminal needed for split screen number be transmitted, and after the decoding by corresponding video Display terminal is shown.Solve and need to carry out the wasting of resources that repeated encoding brings in multiple users share video.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodiment Figure is briefly described it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is server provided in an embodiment of the present invention, video capture device and video display terminal communication schematic diagram.
Fig. 2 is the block diagram of server shown in Fig. 1.
Fig. 3 is the block diagram of video capture device shown in Fig. 1.
The schematic flow sheet of the video sharing method that Fig. 4 provides for first embodiment of the invention.
Fig. 5 is the schematic diagram being grouped using a kind of sub-video image provided in an embodiment of the present invention.
The schematic flow sheet of the video sharing method that Fig. 6 provides for second embodiment of the invention.
Fig. 7 is a kind of schematic flow sheet of the sub-step of step s420 in Fig. 6.
The schematic flow sheet of the video sharing method that Fig. 8 provides for third embodiment of the invention.
Fig. 9 is a kind of schematic flow sheet of the sub-step of step s530 in Fig. 8.
A kind of functional block diagram of the video sharing means that Figure 10 provides for fourth embodiment of the invention.
Another kind of functional block diagram of the video sharing means that Figure 11 provides for fourth embodiment of the invention.
A kind of functional block diagram of the video sharing means that Figure 12 provides for fifth embodiment of the invention.
Another kind of functional block diagram of the video sharing means that Figure 13 provides for fifth embodiment of the invention.
Icon: 100- server;110- first memory;120- first processor;130- first network module;200- regards Frequency collecting device;210- second memory;220- second processing device;230- second mixed-media network modules mixed-media;240- camera;300- video Display terminal;400- the first video sharing means;410- respond module;420- computing module;421- first calculating sub module; 422- second calculating sub module;423- the 3rd calculating sub module;430- output module;500- the second video sharing means;510- Receiver module;520- image segmentation module;530- sending module;531- is grouped submodule;532- encapsulates submodule;533- is arranged Submodule;534- sending submodule.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Generally here The assembly of the embodiment of the present invention described and illustrated in place's accompanying drawing can be arranged with various different configurations and design.Therefore, Hereinafter the detailed description of the embodiments of the invention providing in the accompanying drawings is not intended to limit with the model of claimed invention Enclose, but be merely representative of the selected embodiment of the present invention.Based on the embodiment in the present invention, those of ordinary skill in the art are not having There is the every other embodiment being obtained under the premise of making creative work, broadly fall into the scope of protection of the invention.
It should also be noted that similar label and letter expression similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then do not need it to be defined further and explains in subsequent accompanying drawing.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or hint relative importance.
Refer to Fig. 1, Fig. 1 is server 100, video capture device 200 and the video that present pre-ferred embodiments provide The schematic diagram of display terminal 300 communication.Video capture device 200 in the embodiment of the present invention can be for obtaining video image Any electronic installation (such as, panoramic camera).The video sharing request of server 100 receiving user's input, to video altogether Enjoy request to be processed, and result is sent to video capture device 200.Video capture device 200 is according to the place receiving Reason result carries out image procossing to video image, the video image after image procossing is sent to video display terminal 300 enterprising Row display.
Refer to Fig. 2, Fig. 2 is the block diagram of the server 100 shown in Fig. 1 that present pre-ferred embodiments provide. Described server 100 includes first memory 110, first processor 120, first network module 130.
Described first memory 110, first processor 120 and first network module 130 are direct or indirect each other Ground is electrically connected with, to realize transmission or the interaction of data.For example, these elements each other can be total by one or more communication Line or holding wire are realized being electrically connected with.Be stored with first memory 110 first video sharing means 400, described first video Sharing means 400 include at least one and can be stored in described first memory 110 in the form of software or firmware (firmware) In software function module, described first processor 120 pass through to run be stored in software program in first memory 110 and The first video sharing means 400 in module, the such as embodiment of the present invention, thus execute various function application and data processing.
Wherein, described first memory 110 may be, but not limited to, random access memory (random access Memory, ram), read-only storage (read only memory, rom), programmable read only memory (programmable Read-only memory, prom), erasable read-only memory (erasable programmable read-only Memory, eprom), electricallyerasable ROM (EEROM) (electric erasable programmable read-only Memory, eeprom) etc..Wherein, first memory 110 is used for storage program, and described first processor 120 is receiving execution After instruction, execute described program.Further, the software program in above-mentioned first memory 110 and module may also include behaviour Make system, it may include various soft for management system task (such as memory management, storage device control, power management etc.) Part assembly and/or driving, and mutually can communicate with various hardware or component software, thus providing the operation ring of other software assembly Border.
Described first processor 120 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned first Processor 120 can be general processor, at central processing unit (central processing unit, cpu), network Reason device (network processor, np) etc..Can also be digital signal processor (dsp)), special IC (asic), Field programmable gate array (fpga) or other PLDs, discrete gate or transistor logic, discrete hard Part assembly.Can realize or execute disclosed each method in the embodiment of the present invention, step and logic diagram.General processor Can be microprocessor or this processor can also be any conventional processor etc..
First network module 130 is used for setting up communication connection between server 100 and external communications terminals by network, Realize the transmitting-receiving operation of network signal and data.Above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that the structure shown in Fig. 2 is only illustrating, server 100 may also include more more than shown in Fig. 2 or more Few assembly, or there are the configurations different from shown in Fig. 2.Each assembly shown in Fig. 2 can be using hardware, software or its group Close and realize.
Refer to Fig. 3, Fig. 3 is that the square frame of the video capture device 200 shown in Fig. 1 that present pre-ferred embodiments provide shows It is intended to.Described video capture device 200 includes second memory 210, second processing device 220, the second mixed-media network modules mixed-media 230, shooting 240.
Be stored with described second memory 210 second video sharing means 500, described second video sharing means 500 The software function in described second memory 210 can be stored in including at least one in the form of software or firmware (firmware) Module.
Wherein, described second memory 210, second processing device 220 and the second mixed-media network modules mixed-media 230 and first in Fig. 2 are deposited The hardware configuration of reservoir 110, first processor 120 and first network module 130 is identical, and here is just no longer introduced one by one.
Camera 240 is used for obtaining video or the image information of monitor area, and described camera 240 can be that panorama is taken the photograph As head (such as, fish-eye camera).
First embodiment
Refer to Fig. 4, Fig. 4 is the flow chart of the video sharing method that first embodiment of the invention provides, methods described should For video monitoring system, described video monitoring system includes server 100, video capture device 200 and video display terminal 300.Below video sharing method idiographic flow is described in detail.
Step s111, the video sharing request of server 100 receive user.
In the present embodiment, user by remote control or can run on answering on mobile terminal (such as, smart mobile phone) With software (e.g., Server control software) input video sharing request.Described video sharing request includes regarding of shared video Split screen number needed for the address of frequency display terminal 300 and video display terminal 300, wherein, split screen number adopts horizontal split screen number Product representation with vertical split screen number.If video display terminal 300 is 2 × 2 Mosaic screen, in the case, video shows The horizontal split screen number of terminal 300 and vertical split screen number are respectively 2.
Step s112, described server 100, when the quantity of the video sharing request receiving is more than one, regards according to each In frequency sharing request, the split screen number needed for video display terminal 300 is calculated the minimum of split screen number in all video sharing request Common multiple.
Described server 100 is receiving video sharing request, also the quantity of video sharing request is recorded.When described When the video sharing request quantity that server 100 receives is more than one, according to each video in the video sharing request receiving The horizontal split screen number of the split screen number in sharing request obtains the horizontal least common multiple of horizontal split screen number, is shared according to each video The vertical split screen number of the split screen number in request obtains the vertical least common multiple of vertical split screen number.Using described horizontal least common multiple The least common multiple of split screen number in product representation all videos sharing request of number and described vertical least common multiple.
Specifically, when such as user sends video sharing request based on video display terminal a, user is based on video and shows Show that terminal b also sends video sharing request.If video display terminal a is the Mosaic screen of x (a) × y (a), video display terminal b It is the Mosaic screen of x (b) × y (b), wherein, x (a) represents the horizontal split screen number of video display terminal a, y (a) represents that video shows Show the vertical split screen number of terminal a, x (b) represents the horizontal split screen number of video display terminal b, y (b) represents video display terminal b's Vertical split screen number.Described server 100 is calculated video display terminal according to video display terminal a and video display terminal b The circular of the least common multiple of a, b split screen number is as follows.
N (a)=x (a) × y (a)
N (b)=x (b) × y (b)
N (ab)=[x (a), x (b)] × [y (a), y (b)]
Wherein, n (a) represents the split screen number of video display terminal a, and n (b) represents the split screen number of video display terminal b.[x (a), x (b)] represent video display terminal a, b the horizontal split screen number of split screen number horizontal least common multiple, [y (a), y (b)] Represent the vertical least common multiple of the vertical split screen number of split screen number of video display terminal a, b.N (ab) is expressed as video display eventually The least common multiple [x (a), x (b)] of the horizontal split screen number of split screen number of end a, b and the least common multiple [y of vertical split screen number (a), y (b)] product, n (ab) is the least common multiple of video display terminal a, b split screen number.
Step s113, described least common multiple and described video sharing request are sent to video and adopt by described server 100 Collection equipment 200.
Step s114, described video capture device 200 after receiving described least common multiple, will collection video image Split according to described least common multiple, and the sub-video image obtaining after segmentation is encoded.
Next, in the form of son of illustrating, introduce how described video capture device 200 enters according to described least common multiple Row image segmentation.
Assume have two video display terminals to need shared video information, described two video display terminals are respectively video and show Show terminal a and video display terminal b.Wherein, the split screen number of video display terminal a is 2 × 2, the split screen number of video display terminal b For 1 × 3, the minimum of video display terminal a, b split screen number can be calculated based on video display terminal a and video display terminal b Common multiple n (ab)=2 × 6=12.
Described video capture device 200 video to collection according to described horizontal least common multiple and vertical least common multiple Image carries out horizontal and vertical image segmentation.Specifically, the Video Image Segmentation gathering is 12 by described video capture device 200 Part, obtain 12 one's share of expenses for a joint undertaking video images, and 12 parts of sub-video image is encoded.
Step s115, described video capture device 200 shows according to described video sharing request, the video according to shared video Show the split screen number needed for the address of terminal 300 and video display terminal 300, the sub-video image after coding is transmitted, and Shown by corresponding video display terminal 300 after the decoding.
In the present embodiment, described video capture device 200 is according to described video sharing request, according to regarding of shared video Split screen number needed for the address of frequency display terminal 300 and video display terminal 300, the sub-video image after coding is transmitted Method specific as follows:
Sub-video image after encoding is carried out by packet according to the split screen number in video sharing request and obtains data flow.
Specifically, according to the horizontal split screen number in the split screen number in video sharing request and vertical split screen number to coding after Sub-video image is grouped, and every group of sub-video image split screen in the position in collection image and described video sharing request exists Position on described video display terminal 300 corresponds to.
Described data flow is packaged.
To the different five-tuple of data flow setting after encapsulation, wherein, described five-tuple includes source ip address, purpose ip ground Location, source port, destination interface and transport layer protocol.
Data flow after setting is transmitted.
Illustrate below by specific example, refer to Fig. 5, Fig. 5 is using one kind provided in an embodiment of the present invention The schematic diagram that sub-video image is grouped.Or with video display terminal a (n (a)=2 × 2) described above and video As a example display terminal b (n (b)=1 × 3), described video capture device 200 is according to the split screen number of video display terminal a and split screen The position in video display terminal a can by coding after 12 one's share of expenses for a joint undertaking video images be divided into (1,3,5), (2,4,6), (7,9, 11), 4 groups of (8,10,12).Described video capture device 200 shows in video according to the split screen number of video display terminal b and split screen 12 one's share of expenses for a joint undertaking video images after coding can be divided into (1,2,3,4), (5,6,7,8), (9,10,11,12) by the position in terminal b 3 groups.Respectively the data after above-mentioned packet is packaged, each group of sub-video image after encapsulation corresponds to one data flow.? In encapsulation process, per share data flow is sent to transmission protocol layer and is packaged by described video capture device 200, such as rtp/ The agreements such as tcp.After the completion of encapsulation, sent encapsulating the data flow finishing by the second mixed-media network modules mixed-media 230.Data flow is point Be not transmitted, the five-tuple of per share data flow is different, and wherein, five-tuple includes: source ip address, purpose ip address, Source port, destination interface and transport layer protocol.Different five-tuples, can be used for distinguishing different data streams.
The data flow being sent to video display terminal 300 is shown by video display terminal 300 after the decoding.Specifically, with As a example being sent to a group data stream (such as, (1,3,5)) of video display terminal a, described video capture device 200 is by same group 1,3,5 sub-video view data put in rtp/tcp protocol layer simultaneously.So when being decoded, just can restore The video image picture of this 1/4 little split screen.And 4 bursts of data flows all carry out the decoding of little split screen in this manner, finally It is spliced into the complete video image of a width.
Specifically, in above process, decoding can be completed by special decoding server, decoding server therein Can be independently of server 100 and the hardware device of individualism it is also possible to real by the server 100 with decoding function Existing;Decoding can also be realized by the video display terminal 300 with decoding function simultaneously.
If subsequently increase newly or reduce video sharing request, described server 100 will recalculate new split screen number Amount.
In the present embodiment, if the video sharing request quantity that described server 100 receives is one, video is shared The split screen number with horizontal split screen number and the product representation of vertical split screen number in request is sent to video capture device 200.Video Collecting device 200 carries out segmentation according to horizontal split screen number and vertical split screen number to video image and obtains sub-video image, to each Sub-video image is encoded, and the sub-video image after each coding corresponds to one data flow, after data flow is sent and decodes Video display terminal 300 is shown.
Second embodiment
Refer to Fig. 6, the schematic flow sheet of the video sharing method that Fig. 6 provides for second embodiment of the invention.Described side Method is applied to the server 100 with video capture device 200 communication connection.Below video sharing method idiographic flow is carried out in detail Thin elaboration.
Step s410, the video sharing request of receive user.
In the present embodiment, video sharing request includes the address of video display terminal 300 and the video of shared video Split screen number needed for display terminal 300, wherein, described split screen number adopts the product representation of horizontal split screen number and vertical split screen number.
Step s420, when the quantity of the video sharing request receiving is more than one, according in each video sharing request Split screen number needed for video display terminal 300 is calculated the least common multiple of split screen number in all video sharing request.
Refer to Fig. 7, described step s420 includes sub-step s421, sub-step s422 and sub-step s421.
Described sub-step s421, obtains horizontal split screen according to the horizontal split screen number of the split screen number in each video sharing request The horizontal least common multiple of number.
Described sub-step s422, obtains vertical split screen according to the vertical split screen number of the split screen number in each video sharing request The vertical least common multiple of number.
Described sub-step s423, least common multiple adopts described horizontal least common multiple and described vertical least common multiple Product representation.
Step s430, described least common multiple and described video sharing request are sent to video capture device 200.
In the present embodiment, described server 100 is by the product using horizontal least common multiple and vertical least common multiple The least common multiple representing is sent to described video capture device 200.By described video capture device 200 described in receive After little common multiple, the video image of collection is split according to described least common multiple, and to the sub-video obtaining after segmentation Image is encoded, and the sub-video image after coding is shown according to the address of the video display terminal 300 of shared video and video Show that the split screen number needed for terminal 300 is transmitted, and shown by corresponding video display terminal 300 after the decoding.
3rd embodiment
Refer to Fig. 8, the schematic flow sheet of the video sharing method that Fig. 8 provides for third embodiment of the invention.Described side Method is applied to the video capture device 200 with server 100 and video display terminal 300 communication connection.Below video is shared Method idiographic flow is described in detail.
Step s510, when the quantity receiving the video sharing request in receive user for the described server 100 is more than one, by Split screen number according to needed for video display terminal 300 in each video sharing request for the described server 100 is calculated all regarding The least common multiple of split screen number in frequency sharing request.
Wherein, described least common multiple adopts the product representation of horizontal least common multiple and vertical least common multiple.Described Laterally least common multiple is the least common multiple of the horizontal split screen number of split screen number in the video sharing request receiving, described vertical Least common multiple is the least common multiple of the vertical split screen number of split screen number in the video sharing request receiving.
Step s520, the video image of collection is split according to described least common multiple, and obtains to after segmentation Sub-video image is encoded.
In the present embodiment, described step s520 is specific as follows: public according to described horizontal least common multiple and vertically minimum Multiple carries out horizontal and vertical image segmentation to the video image of collection.
Step s530, according to described video sharing request, according to the address of the video display terminal 300 of shared video and regard Split screen number needed for frequency display terminal 300, the sub-video image after coding is transmitted, and after the decoding by corresponding video Display terminal 300 is shown.
Refer to Fig. 9, described step s530 includes sub-step s531, sub-step s532, sub-step s533 and sub-step s534.
Sub-video image after encoding is grouped by described sub-step s531 according to the split screen number in video sharing request Obtain data flow.
Specifically, video capture device 200 is according to the horizontal split screen number in the split screen number in video sharing request and vertical Split screen number is grouped to the sub-video image after coding, position in collection image of every group of sub-video image and described video In sharing request, position on described video display terminal 300 for the split screen corresponds to.
Described sub-step s532, described data flow is packaged.
Described sub-step s533, to the different five-tuple of data flow setting after encapsulation.Wherein, described five-tuple includes source ip Address, purpose ip address, source port, destination interface and transport layer protocol.
Described sub-step s534, the data flow after setting is transmitted.
Fourth embodiment
Refer to Figure 10, Figure 10 is a kind of functional module frame of the video sharing means that fourth embodiment of the invention provides Figure.First video sharing means 400 are applied to the server 100 with video capture device 200 communication connection.Described first video Sharing means 400 include respond module 410, computing module 420 and output module 430.
Described respond module 410 is used for the video sharing request of receive user.Described video sharing request includes shared Split screen number needed for the address of video display terminal 300 of video and video display terminal 300, wherein, described split screen number adopts The laterally product representation of split screen number and vertical split screen number.
Described computing module 420 is used for when the quantity of the video sharing request receiving is more than one, according to each video In sharing request, the split screen number needed for video display terminal 300 is calculated the minimum public affairs of split screen number in all video sharing request Multiple.Specifically, refer to Figure 11, described computing module 420 may include that the first calculating sub module 421, second calculates submodule Block 422 and the 3rd calculating sub module 423.
Described first calculating sub module 421 is used for being obtained according to the horizontal split screen number of the split screen number in each video sharing request Horizontal least common multiple to horizontal split screen number.
Described second calculating sub module 422 is used for being obtained according to the vertical split screen number of the split screen number in each video sharing request Vertical least common multiple to vertical split screen number.
Described 3rd calculating sub module 423 be used for by described least common multiple adopt described horizontal least common multiple with described The product representation of vertical least common multiple.
Described output module 430, for being sent to described video by described least common multiple and described video sharing request Collecting device 200.By described video capture device 200 after receiving described least common multiple, the video image of collection is pressed Split according to described least common multiple.And the sub-video image obtaining after segmentation is encoded, by the sub-video after coding Image is transmitted according to the split screen number needed for the address of the video display terminal 300 of shared video and video display terminal 300, And shown by corresponding video display terminal 300 after the decoding.
5th embodiment
Refer to Figure 12, Figure 12 is a kind of functional module frame of the video sharing means that fifth embodiment of the invention provides Figure.Second video sharing means 500 are applied to set with the video acquisition of server 100 and video display terminal 300 communication connection Standby 200.Described second video sharing means 500 include receiver module 510, image segmentation module 520 and sending module 530.
Described receiver module 510, the quantity for receiving the video sharing request in receive user for the described server 100 is big When one, calculated by split screen number according to needed for video display terminal 300 in each video sharing request for the described server 100 Obtain the least common multiple of split screen number in all video sharing request.Wherein, described least common multiple adopts horizontal least common multiple Number and the product representation of vertical least common multiple.Described horizontal least common multiple is the split screen number in the video sharing request receiving Horizontal split screen number least common multiple, described vertical least common multiple is the perpendicular of the split screen number in the video sharing request receiving Least common multiple to split screen number.
Described image splits module 520, for the video image of collection is split according to described least common multiple, and The sub-video image obtaining after segmentation is encoded.
In the present embodiment, described image segmentation module 520 is according to described horizontal least common multiple and vertical least common multiple Several video images to collection carry out horizontal and vertical image segmentation.
Described sending module 530, for according to described video sharing request, according to the video display terminal of shared video Split screen number needed for 300 address and video display terminal 300, the sub-video image after coding is passed through the second mixed-media network modules mixed-media 230 are transmitted, and are shown by corresponding video display terminal 300 after the decoding.
Refer to Figure 13, described sending module 530 may include that packet submodule 531, encapsulation submodule 532, setting Module 533 and sending submodule 534.
Described packet submodule 531, for according to the split screen number in video sharing request by encode after sub-video image Carry out packet and obtain data flow.
Specifically, described packet submodule 531, according to the horizontal split screen number in the split screen number in video sharing request and perpendicular To split screen number, the sub-video image after coding is grouped, every group of sub-video image position in collection image is regarded with described The position dividing in frequency sharing request on described video display terminal 300 corresponds to.
Described encapsulation submodule 532, for being packaged described data flow.
Described setting submodule 533, for the different five-tuple of data flow setting after encapsulation, described five-tuple includes source Ip address, purpose ip address, source port, destination interface and transport layer protocol.
Described sending submodule 534, for being transmitted the data flow after setting.
In sum, video sharing method provided in an embodiment of the present invention and device, the video of server receive user is altogether Enjoy request, when the video sharing request receiving is more than one, the split screen number in sharing according to each video calculates all regarding The least common multiple of split screen number in frequency sharing request.Video capture device is carried out to video image point according to described least common multiple Cut, and sub-video image is encoded, then the sub-video image after coding is shown according to the video in video sharing request Split screen number needed for the address of terminal and video display terminal is transmitted, and is entered by corresponding video display terminal after the decoding Row display.Solve and need to carry out the wasting of resources that repeated encoding brings in multiple users share video.
It should be understood that disclosed system and method in several embodiments that the embodiment of the present invention is provided, also may be used To realize by another way.System and method embodiment described above is only schematically, for example, in accompanying drawing Flow chart and block diagram show the system of multiple embodiments according to the present invention, the enabling of method and computer program product Architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a program Section or a part for code, a part for described module, program segment or code comprises one or more patrolling for realization regulation Collect the executable instruction of function.It should also be noted that at some as the function of in the implementation replaced, being marked in square frame Can be to occur different from the order being marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also execute sometimes in the opposite order, and this is depending on involved function.It is also noted that block diagram and/or Each square frame in flow chart and the combination of the square frame in block diagram and/or flow chart, can be with the function of execution regulation or dynamic The special hardware based system made is realizing, or can be realized with combining of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation Divide or modules individualism is it is also possible to two or more modules are integrated to form an independent part.
If described function realized using in the form of software function module and as independent production marketing or use when, permissible It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words Partly being embodied in the form of software product of part that prior art is contributed or this technical scheme, this meter Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual People's computer, electronic equipment, or network equipment etc.) execution each embodiment methods described of the present invention all or part step Suddenly.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising of his property, so that including a series of process of key elements, method, article or equipment not only include those key elements, and And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or equipment institute Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including institute Also there is other identical element in process, method, article or the equipment of stating key element.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should also be noted that similar label and letter exist Representing similar terms in figure below, therefore, once being defined in a certain Xiang Yi accompanying drawing, being then not required in subsequent accompanying drawing It is defined further and to be explained.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.

Claims (10)

1. a kind of video sharing method, is applied to video monitoring system, and described video monitoring system includes server, video acquisition Equipment and video display terminal are it is characterised in that methods described includes:
The video sharing request of described server receive user, the video that described video sharing request includes shared video shows Split screen number needed for the address of terminal and video display terminal;
When the quantity of the video sharing request in reception for the described server is more than one, according to video in each video sharing request Split screen number needed for display terminal is calculated the least common multiple of split screen number in all video sharing request;
Described least common multiple and described video sharing request are sent to described video capture device by described server;
Described video capture device after receiving described least common multiple, by collection video image according to described least common multiple Number is split, and the sub-video image obtaining after segmentation is encoded;
Described video capture device according to described video sharing request, according to the address of the video display terminal of shared video and regard Split screen number needed for frequency display terminal, the sub-video image after coding is transmitted, and is shown by corresponding video after the decoding Show that terminal is shown.
2. a kind of video sharing method, is applied to the video capture device with server and video display terminal communication connection, its It is characterised by, methods described includes:
When the quantity receiving the video sharing request in receive user for the described server is more than one, by described server according to every In individual video sharing request, the split screen number needed for video display terminal is calculated in all video sharing request split screen number Little common multiple, wherein, described least common multiple adopts the product representation of horizontal least common multiple and vertical least common multiple, described Laterally least common multiple is the least common multiple of the horizontal split screen number of split screen number in the video sharing request receiving, described vertical Least common multiple is the least common multiple of the vertical split screen number of split screen number in the video sharing request receiving;
The video image of collection is split according to described least common multiple, and the sub-video image obtaining after segmentation is carried out Coding;
According to described video sharing request, according to needed for the address of the video display terminal of shared video and video display terminal Split screen number, the sub-video image after coding is transmitted, and is shown by corresponding video display terminal after the decoding.
3. method according to claim 2 is it is characterised in that the described video image by collection is according to described least common multiple The step that number is split includes:
Horizontal and vertical image is carried out to the video image of collection according to described horizontal least common multiple and vertical least common multiple Segmentation.
4. method according to claim 2 it is characterised in that described according to described video sharing request, regard according to shared Split screen number needed for the address of the video display terminal of frequency and video display terminal, the sub-video image after coding is transmitted Step include:
Sub-video image after encoding is carried out by packet according to the split screen number in video sharing request and obtains data flow;
Described data flow is packaged;
To the different five-tuples of data flow setting after encapsulation, described five-tuple include source ip address, purpose ip address, source port, Destination interface and transport layer protocol;
Data flow after setting is transmitted.
5. method according to claim 4 will be it is characterised in that the split screen number in the described sharing request according to video will encode Sub-video image afterwards carries out being grouped and obtains the step of data flow and include:
According to the horizontal split screen number in the split screen number in video sharing request and vertical split screen number to the sub-video image after coding It is grouped, every group of sub-video image split screen in the position in collection image and described video sharing request shows in described video Show that the position in terminal corresponds to.
6. a kind of video sharing means, are applied to the server of video capture device communication connection it is characterised in that described dress Put including:
Respond module, for the video sharing request of receive user, described video sharing request includes the video of shared video Split screen number needed for the address of display terminal and video display terminal, wherein, described split screen number adopt horizontal split screen number with vertical The product representation of split screen number;
Computing module, for when the quantity of the video sharing request receiving is more than one, according in each video sharing request Split screen number needed for video display terminal is calculated the least common multiple of split screen number in all video sharing request;
Output module, for described least common multiple and described video sharing request are sent to described video capture device, by Described video capture device, after receiving described least common multiple, the video image of collection is entered according to described least common multiple Row segmentation, and the sub-video image obtaining after segmentation is encoded, by the sub-video image after coding according to shared video Split screen number needed for the address of video display terminal and video display terminal is transmitted, and is shown by corresponding video after the decoding Show that terminal is shown.
7. device according to claim 6 is it is characterised in that described computing module includes:
First calculating sub module, obtains horizontal split screen for the horizontal split screen number according to the split screen number in each video sharing request The horizontal least common multiple of number;
Second calculating sub module, obtains vertical split screen for the vertical split screen number according to the split screen number in each video sharing request The vertical least common multiple of number;
3rd calculating sub module, for adopting described horizontal least common multiple vertical minimum public with described described least common multiple The product representation of multiple.
8. a kind of video sharing means, are applied to the video capture device with server and video display terminal communication connection, its It is characterised by, described device includes:
Receiver module, when the quantity for receiving the video sharing request in receive user for the described server is more than one, by institute State split screen number according to needed for video display terminal in each video sharing request for the server be calculated all videos share please Seek the least common multiple of middle split screen number, wherein, described least common multiple adopts horizontal least common multiple and vertical least common multiple Product representation, described horizontal least common multiple be receive video sharing request in the horizontal split screen number of split screen number minimum Common multiple, described vertical least common multiple is the least common multiple of the vertical split screen number of split screen number in the video sharing request receiving Number;
Image segmentation module, for being split the video image of collection according to described least common multiple, and obtains to after segmentation To sub-video image encoded;
Sending module, for according to described video sharing request, according to address and the video of the video display terminal of shared video Split screen number needed for display terminal, the sub-video image after coding is transmitted, and is shown by corresponding video after the decoding Terminal is shown.
9. device according to claim 8 is it is characterised in that described sending module includes:
Packet submodule, obtains for the sub-video image after encoding being carried out packet according to the split screen number in video sharing request Data flow;
Encapsulation submodule, for being packaged described data flow;
Setting submodule, for the different five-tuple of data flow setting after encapsulation, described five-tuple includes source ip address, purpose Ip address, source port, destination interface and transport layer protocol;
Sending submodule, for being transmitted the data flow after setting.
10. device according to claim 9 it is characterised in that: described packet submodule be used for according to video sharing request In split screen number in horizontal split screen number and vertical split screen number to coding after sub-video image be grouped, every group of sub-video figure As the position in collection image is corresponding with the position dividing in described video sharing request on described video display terminal.
CN201610859022.2A 2016-09-28 2016-09-28 Video sharing method and device Active CN106341663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610859022.2A CN106341663B (en) 2016-09-28 2016-09-28 Video sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610859022.2A CN106341663B (en) 2016-09-28 2016-09-28 Video sharing method and device

Publications (2)

Publication Number Publication Date
CN106341663A true CN106341663A (en) 2017-01-18
CN106341663B CN106341663B (en) 2019-06-11

Family

ID=57840450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610859022.2A Active CN106341663B (en) 2016-09-28 2016-09-28 Video sharing method and device

Country Status (1)

Country Link
CN (1) CN106341663B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471513A (en) * 2018-03-28 2018-08-31 国网辽宁省电力有限公司信息通信分公司 Video fusion method, apparatus and server
CN116600090A (en) * 2023-07-17 2023-08-15 微网优联科技(成都)有限公司 Operation and maintenance control method and system for IPC network camera

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
EP2131275A2 (en) * 2008-05-09 2009-12-09 Nexcom International Co. Ltd. Video control system, display system control device and video controlling method for e.g. video wall
CN101668130A (en) * 2009-09-17 2010-03-10 深圳市启欣科技有限公司 Television splicing wall partition compensating system
CN103986960A (en) * 2014-06-03 2014-08-13 王军明 Method for single-video picture division route teletransmission precise synchronization tiled display
CN104750451A (en) * 2015-04-10 2015-07-01 京东方科技集团股份有限公司 Splicing device and splicing display system
CN105045552A (en) * 2015-08-26 2015-11-11 小米科技有限责任公司 Multi-screen splicing display method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2131275A2 (en) * 2008-05-09 2009-12-09 Nexcom International Co. Ltd. Video control system, display system control device and video controlling method for e.g. video wall
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
CN101668130A (en) * 2009-09-17 2010-03-10 深圳市启欣科技有限公司 Television splicing wall partition compensating system
CN103986960A (en) * 2014-06-03 2014-08-13 王军明 Method for single-video picture division route teletransmission precise synchronization tiled display
CN104750451A (en) * 2015-04-10 2015-07-01 京东方科技集团股份有限公司 Splicing device and splicing display system
CN105045552A (en) * 2015-08-26 2015-11-11 小米科技有限责任公司 Multi-screen splicing display method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471513A (en) * 2018-03-28 2018-08-31 国网辽宁省电力有限公司信息通信分公司 Video fusion method, apparatus and server
CN116600090A (en) * 2023-07-17 2023-08-15 微网优联科技(成都)有限公司 Operation and maintenance control method and system for IPC network camera
CN116600090B (en) * 2023-07-17 2023-09-19 微网优联科技(成都)有限公司 Operation and maintenance control method and system for IPC network camera

Also Published As

Publication number Publication date
CN106341663B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN102196248B (en) Mobile video monitoring system and method
CN103647954B (en) Mobile video monitor system based on 3G channels Yu intelligent terminal
CN102196243A (en) Video data processing method, device and system
CN106303571B (en) The method and system of adaptive screen rotation are realized in image acquisition process
CN106303554A (en) A kind of video living transmission system and method
CN105516664A (en) Intelligent monitoring system based on cloud storage and monitoring method thereof
CN106227492B (en) Combination and mobile intelligent terminal interconnected method and device
CN104053054A (en) Data collection method and device
CN201369791Y (en) Security monitoring system of mobile multi-media
CN106534789A (en) Integrated intelligent security and protection video monitoring system
CN101009803A (en) High-resolution video transfer system and method
CN112653913A (en) Screen projection method and device, client device and readable storage medium
CN103873822A (en) Method, equipment and system for monitoring system to select camera to browse in real time
CN102143353A (en) Method for real-time collecting video
CN107623833B (en) Control method, device and system for video conference
CN106341663A (en) Video sharing method and apparatus
CN103049238A (en) Method and device for transmitting image data
CN101600097B (en) Method and system for security protection monitoring for mobile multimedia
CN103581695B (en) System and method for achieving access of mobile terminal to global eye
CN111696204A (en) Visual scheduling method, system, device and storage medium
CN104967917A (en) Instant video coding method and electronic device
CN109525872B (en) Display screen preview system and preview method
CN106507172A (en) Information coding method, coding/decoding method and device
CN104581036A (en) Multi-screen control method and device for performing video and audio multi-screen display
CN110570614B (en) Video monitoring system and intelligent camera

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