CN106412505A - Video display method and apparatus in P2P mode - Google Patents

Video display method and apparatus in P2P mode Download PDF

Info

Publication number
CN106412505A
CN106412505A CN201610863619.4A CN201610863619A CN106412505A CN 106412505 A CN106412505 A CN 106412505A CN 201610863619 A CN201610863619 A CN 201610863619A CN 106412505 A CN106412505 A CN 106412505A
Authority
CN
China
Prior art keywords
destination channel
target device
target
monitoring device
equipment
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.)
Pending
Application number
CN201610863619.4A
Other languages
Chinese (zh)
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 CN201610863619.4A priority Critical patent/CN106412505A/en
Publication of CN106412505A publication Critical patent/CN106412505A/en
Pending legal-status Critical Current

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The embodiment of the invention provides a video display method and apparatus in a P2P mode, for solving the problem that the video display duration in the existing P2P mode affects the watching of users. The method comprises the following steps: receiving an operation instruction, and selecting a target device and a target channel; performing private network penetration to obtain a video clip of a preset duration shot by the target device, and storing the video clip; and when a device and a channel carried in a preview instruction are the target device and the target channel, playing the stored video clip, and obtaining other videos excluding the video clips. In the embodiment of the invention, after receiving the operation instruction, a client selects the target device and the target channel according to stored monitoring device information and channel information, performs the private network penetration and stores the video clip, and when a user selects the target device and the target channel to perform preview, the stored video clip is directly displayed, thereby shortening the waiting time of the user and improving the user experience.

Description

Image display method and device under a kind of P2P mode
Technical field
The present invention relates to stream media technology field, particularly to the image display method under a kind of P2P mode and device.
Background technology
In recent years, with the rapid raising of the network bandwidth, computer process ability and memory capacity, and various video letter The appearance of breath treatment technology, the advantage of video monitoring system is more obvious, and the opening of its height, integration and flexibility are In video monitoring system, the overall performance lifting of each equipment creates necessary condition, is also the development of whole security protection industry simultaneously Provide more wide development space.However, the internal networking structure of each enterprises and institutions is complex, most IP do not fix Etc. factor, lead to connect monitoring device using the direct-connected mode of IP, carrying out the drawbacks of video shows this method also gradually exposes Out.Therefore propose the video display technology under P2P mode in prior art.
Carried out during video shows using P2P mode existing, when showing every time, user will be in electronic equipment In client in manually select the monitoring device carrying out video preview, client carries out penetrating through private network afterwards, works as successful connection Afterwards, obtain the video information in this monitoring device, then in this video information locally displayed.Because user during above-mentioned display Select to carry out the monitoring device of video preview, penetrating through private network time all long, therefore will show to video bring very long Time delay, impact user viewing.
Content of the invention
The embodiment of the invention discloses the image display method under a kind of P2P mode and device, in order to solve existing P2P side Video display delayed under formula is long, the viewing problem of impact user.
For reaching above-mentioned purpose, the embodiment of the invention discloses the image display method under a kind of P2P mode, the method bag Include:
When client receives operating instruction, logical according to the monitoring device information pre-saving and each monitoring device Road information, selection target equipment and destination channel;
According to described target device and destination channel, carry out penetrating through private network, the described target obtaining described target device is led to What the corresponding image capture device in road shot sets the video segment of duration and preserves;
When receiving instruction for previewing, when judging the equipment and the destination channel that carry in described instruction for previewing, play and preserve Described video segment, and other video segments in addition to described video segment are obtained according to described destination channel.
Further, methods described also includes:
The number of times in described monitoring device information, described target device being used is updated, and described target is set The number of times that standby described destination channel is used is updated.
Further, methods described also includes:
Record the time that described target device is used for the last time, and record described destination channel and used for the last time Time.
Further, the described channel information according to the monitoring device information preserving and each monitoring device, selection target Equipment and destination channel include:
The number of times that each monitoring device according to preserving is used, selection target equipment;And
The number of times being used according to each passage of the described target device preserving, selection target passage.
Further, the described number of times being used according to each monitoring device preserving, selection target equipment includes:
Identification is by the most monitoring device of access times;
When the monitoring device most by access times is one, in the described monitoring device conduct most by access times Target device;
When the monitoring device most by access times is at least two, arbitrarily select in described at least two monitoring devices Select one as target device, or, using described at least two monitoring devices as target device.
Further, when the monitoring device most by access times is at least two, described each prison according to preservation The number of times that control equipment is used, selection target equipment includes:
The time being used for the last time according to described at least two monitoring devices, selection target equipment.
Further, what the described corresponding image capture device of described destination channel obtaining described target device shot sets The long video segment of timing before preserving, also includes:
Judge whether the residual memory space of electronic equipment is more than given threshold;
If it is, what the corresponding image capture device of described destination channel subsequently being obtained described target device shot The step setting the video segment of duration and preserving.
Further, when the residual memory space of electronic equipment is not more than given threshold, the described target of described acquisition sets The video segment of setting duration that the standby corresponding image capture device of described destination channel shoots and preserve including:
Determine content to be covered in the memory space of described electronic equipment;
Obtain the video setting duration that the corresponding image capture device of described destination channel of described target device shoots Fragment, is saved in the corresponding memory space of described content to be covered and described residual memory space.
Further, what the described corresponding image capture device of described destination channel obtaining described target device shot sets The long video segment of timing includes:
Obtain the video setting duration that the corresponding image capture device of described destination channel of described target device shoots Key frame in fragment.
The embodiment of the invention discloses the video display devices under a kind of P2P mode, this device includes:
Selecting module, for when client receives operating instruction, according to the monitoring device information pre-saving and often The channel information of individual monitoring device, selection target equipment and destination channel;
Acquisition module, for according to described target device and destination channel, carrying out penetrating through private network, obtains described target device The setting video segment of duration that shoots of the corresponding image capture device of described destination channel and preserve;
Playing module, for when receiving instruction for previewing, judging that the equipment that carries in described instruction for previewing and target leads to During road, play the described video segment preserving, and other in addition to described video segment are obtained according to described destination channel and regard Frequency fragment.
Further, described device also includes:
Update module, the number of times for being used to described target device in described monitoring device information is updated, And the number of times that the described destination channel of described target device used is updated.
Further, described device also includes:
Logging modle, for recording the time that described target device is used for the last time, and records described destination channel The time being used for the last time.
Further, described selecting module, specifically for the number of times being used according to each monitoring device preserving, selects Target device;And the number of times that used of each passage according to the described target device preserving, selection target passage.
Further, described selecting module, specifically for identification by the most monitoring device of access times;When by using secondary When the most monitoring device of number is one, in the described monitoring device most by access times as target device;When being used When the most monitoring device of number of times is at least two, arbitrarily selects one in described at least two monitoring devices and set as target Standby, or, using described at least two monitoring devices as target device.
Further, when the monitoring device most by access times is at least two, described selecting module, specifically for The time that last is used according to described at least two monitoring devices, selection target equipment.
Further, described device also includes:
Judge module, whether the residual memory space for judging electronic equipment is more than given threshold.If it is, triggering obtains Delivery block.
Further, when the described residual memory space when electronic equipment is more than given threshold, described acquisition module, specifically For determining content to be covered in the memory space of described electronic equipment;Obtain the described destination channel pair of described target device The video segment of the setting duration that the image capture device answered shoots, is saved in the corresponding memory space of described content to be covered And in described residual memory space.
Further, described acquisition module, specifically for obtaining the corresponding figure of described destination channel of described target device As the key frame in the video segment setting duration that collecting device shoots.
Embodiments provide the image display method under a kind of mode in P2P and device, the method includes:Work as visitor When family termination receives operating instruction, according to the channel information of the monitoring device information pre-saving and each monitoring device, select Target device and destination channel;According to described target device and destination channel, carry out penetrating through private network, obtain described target device The video segment of setting duration that the corresponding image capture device of described destination channel shoots simultaneously preserves;When receiving instruction for previewing When, when judging the equipment carrying in described instruction for previewing and passage for described target device and destination channel, play the institute preserving State video segment, and other video segments in addition to described video segment are obtained according to described destination channel.Due at this In bright embodiment, client is after receiving operating instruction, logical according to the monitoring device information preserving and each monitoring device Road information, selection target equipment and destination channel, and carried out penetrating through private network, save video segment, when taking in instruction for previewing When the equipment of band and passage are described target device and destination channel, directly display the video segment of preservation it is ensured that video is believed The timely display of breath, shortens the time of user's wait, improves the experience of user.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Video display process under a kind of P2P mode that Fig. 1 provides for the embodiment of the present invention 1;
The detailed process that under a kind of P2P mode that Fig. 2 provides for the embodiment of the present invention 2, video shows;
The detailed process that under a kind of P2P mode that Fig. 3 provides for the embodiment of the present invention 3, video shows;
Video display devices structure chart under a kind of P2P mode that Fig. 4 provides for the embodiment of the present invention 1;
Video display devices structure chart under a kind of P2P mode that Fig. 5 provides for the embodiment of the present invention 2;
Video display devices structure chart under a kind of P2P mode that Fig. 6 provides for the embodiment of the present invention 3.
Specific embodiment
For the shortening video display delayed under P2P mode, improve the viewing experience of user, the embodiment of the present invention provides A kind of image display method under P2P mode and device.
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 is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Embodiment 1:
Video display process under a kind of P2P mode that Fig. 1 provides for the embodiment of the present invention 1, this process includes following step Rapid inclusion:
S101:When client receives operating instruction, set according to the monitoring device information pre-saving and each monitoring Standby channel information, selection target equipment and destination channel.
In embodiments of the present invention, should show under P2P mode that the process of video was applied to the client in electronic equipment, When user thinks to watch monitor video on the client, can open client makes client run, and client receives operating instruction After bring into operation, and automatically selection target equipment from the monitoring device information that electronic equipment pre-saves, electronic equipment is also pre- First save the channel information of each monitoring device, after client has automatically selected target device, can be according to the mesh pre-saving The channel information of marking device, automatically selects destination channel.
The monitoring device information that electronic equipment pre-saves and channel information can be set in advance in electronic equipment Information, for example, can be the information that user is manually operated input, can also be described electronic equipment and other electronic equipments The information that Network Synchronization obtains.
Wherein, described monitoring device can be network hard disk video recorder (NVR), web camera (IPC), and described monitoring sets Standby information can be the title of equipment, the information of this equipment of unique mark such as the coordinate of equipment position, sequence number of equipment. One passage or multiple passage can be had on one monitoring device, a passage corresponds to an image capture device.
S102:According to described target device and destination channel, carry out penetrating through private network, obtain the described mesh of described target device What the mark corresponding image capture device of passage shot sets the video segment of duration and preserves.
After client has selected target device and destination channel automatically, can be according to selected target device and destination channel Carry out penetrating through private network operation, when carrying out target device logon operation after penetrating through private network success, target device logs in successfully, client Start to obtain the video segment that the corresponding image capture device of described destination channel of described target device shoots.
The video segment that client obtains the setting duration that image capture device shoots can not be oversize nor too short.This is Because, if the duration of the video segment obtaining is too short, after user have selected equipment and the passage carrying out preview, by this piece of video Section is shown, and when obtaining other video segments in addition to described video segment, other video segments also do not obtain simultaneously Arrive, this video segment has finished, cause video interim card.If video segment duration is oversize, if user does not select Described target device and destination channel carry out preview, and video segment duration is oversize, wastes the memory space of electronic equipment, and Waste substantial amounts of Internet resources.So, the video segment obtaining and preserving is the video segment of a setting duration, described Set duration to go to set according to the custom of the user of statistics or equipment performance.
S103:When receiving instruction for previewing, judge that the equipment carrying in described instruction for previewing and passage are described target When equipment and destination channel, play the described video segment preserving, and obtained except described video segment according to described destination channel Outside other video segments.
When user needs to watch video, can select to carry out equipment and the passage of preview, when receiving instruction for previewing, and The equipment carrying in described instruction for previewing and passage, when being described target device and destination channel, client can be play and be saved in Video segment in electronic equipment, while playing video segment, client also may proceed to be obtained according to described destination channel Other video segments in addition to described video segment.
When the non-described target device of the equipment carrying in described instruction for previewing, or the passage carrying in instruction for previewing is non-described During destination channel, client can re-start penetrating through private network operation according to the equipment carrying in described instruction for previewing and passage, wears Thoroughly obtain the video that the equipment carrying in described instruction for previewing and the corresponding image capture device of passage shoot after success.
Because in embodiments of the present invention, when client is when receiving operating instruction, the monitoring according to pre-saving sets Standby information and channel information, selection target equipment and the destination channel of each monitoring device, and carried out penetrating through private network, save Video segment, when the equipment carrying in described instruction for previewing and passage are described target device and destination channel, directly displays The video segment preserving, it is ensured that the timely display of video information, shortens the time of user's wait, improves the body of user Test.
Embodiment 2:
In order to when carrying out video display, improve this target device of selection and the accuracy rate of destination channel, in above-mentioned reality On the basis of applying example, in another embodiment of the present invention, methods described also includes:
The number of times in described facility information, described target device being used is updated, and to described target device The number of times that described destination channel is used is updated.
In this embodiment of the invention, after user's selection target equipment and destination channel, client can set described The number of times in standby information, described target device being used is updated, and the access times of target device will increase.Described The number of times in channel information, the described destination channel of described target device being used is updated, the access times of destination channel Also can increase.
Specifically, different monitoring devices and passage can be directed to, its corresponding number of times value added is set, each monitoring sets Standby with passage corresponding number of times value added can identical it is also possible to different.All monitoring devices or passage quilt for example can be directed to Increase identical number of times, when monitoring device or passage are only used once, access times increase is once during use;Can also be directed to Different monitoring devices or passage increase different number of times when being used, according to its importance, when a certain monitoring device or a certain When passage is in very important position, when it is only used once, access times increase by three times, when certain several monitoring device or logical When road is in somewhat important position, it is only used once, access times increase is twice.
Channel information, selection target equipment and target therefore according to the monitoring device information preserving and each monitoring device Passage includes:
The number of times that each monitoring device according to preserving is used, selection target equipment;And
The number of times being used according to each passage of the described target device preserving, selection target passage.
Because the number of times that monitoring device and passage are used, its number of times being used can be reflected to a certain extent, and its Importance, so, when client automatically selects target device and destination channel carries out video display, this target device of selection And the accuracy rate that destination channel is the equipment and passage carrying in described instruction for previewing will be higher.
Further, in order to ensure this target device of selection and destination channel is setting of carrying in described instruction for previewing Standby and passage, methods described includes:
Record the time that described target device is used for the last time, and record described destination channel and used for the last time Time.
The described number of times being used according to each monitoring device preserving, selection target equipment includes:
Identification is by the most monitoring device of access times;
When the monitoring device most by access times is one, in the described monitoring device conduct most by access times Target device;
When the monitoring device most by access times is at least two, arbitrarily select in described at least two monitoring devices Select one as target device, or, using described at least two monitoring devices as target device.
In addition, being also the same when destination channel selects,
Identify after have selected target device in this target device by passage that access times are most;
When the passage most by access times is one, lead to as target in the described passage most by access times Road;
When the passage most by access times is at least two, described at least two passages arbitrarily select a work For destination channel, or, using described at least two passages as destination channel.
That is in embodiments of the present invention client select target device can one or two with On, the destination channel of same selection is probably one or plural.
In addition, when the monitoring device most by access times is at least two, described each monitoring according to preservation sets The standby number of times being used, selection target equipment includes:
The time that last is used according to described at least two monitoring devices, selection target equipment.
By the most monitoring device of access times can be one can also be two and more than, when most by access times Monitoring device be one when, just using the described monitoring device most by access times as target device, when by access times Most monitoring devices be two and above when, can be made by access times most two and above monitoring device described For target device it is also possible to using by most one of of access times as monitoring objective equipment, access times are most One of as target device when, can arbitrarily select one of it is also possible to select by last one of use time As target device.
Further, since being also recorded for each monitoring device in embodiments of the present invention and when passage is used for the last time Between, therefore when being selected, the time that can directly be used for the last time according to monitoring device and passage, select last , as target device, the passage being used for the last time in this target device is as passage for the secondary monitoring device being used.
It is of course also possible to the combination number of times being used and the selection of time destination channel being used for the last time and target set Standby, if being one by the most monitoring device of access times, using this monitoring device as target device, this target device is made It is one with the most passage of number of times, using this passage as destination channel;If by the most monitoring device of access times be to Few two, then, as target device, this target device is by most the leading to of access times for the monitoring device being used for the last time Road is at least two, and the passage being used for the last time is as destination channel.
The detailed process that under a kind of P2P mode that Fig. 2 provides for the embodiment of the present invention 2, video shows, this process include with Lower step:
S201:Client receives operating instruction, and in the monitoring device information preserving in this electronic equipment, record has each prison The number of times being used of control equipment, and the time being used for the last time, also preserve each passage quilt of each monitoring device The number of times using, and the time being used for the last time.
S202:Identify by the most monitoring device of access times, when the monitoring device most by access times is one, In the described monitoring device most by access times as target device, when the monitoring device most by access times is at least two When individual, by by use time, monitoring device the latest is defined as target device for the last time.
S203:According to described target device and destination channel, carry out penetrating through private network, obtain the described mesh of described target device What the mark corresponding image capture device of passage shot sets the video segment of duration and preserves.
S204:When receiving instruction for previewing, judge to carry in described instruction for previewing equipment and passage be described target When equipment and destination channel, play the described video segment preserving, and obtained except described video segment according to described destination channel Outside other video segments.
Embodiment 3:
On the basis of above-described embodiment 1, in order to get the video segment of the setting duration that described target device shoots, The video segment of the setting duration that the described corresponding image capture device of described destination channel obtaining described target device shoots And before preserving, also include:
Judge whether the residual memory space of electronic equipment is more than given threshold;
If it is, what the corresponding image capture device of described destination channel subsequently being obtained described target device shot The step setting the video segment of duration and preserving.
Remaining for electronic equipment memory space can be compared by client with the memory space threshold value setting, ordinary circumstance Under, the residual memory space of electronic equipment is very big, and the residual memory space of the memory space of electronic equipment is more than given threshold, foot Enough store the described video segment setting duration.But, when user stores suddenly substantial amounts of information in the electronic device, almost The all memory spaces taking, when wanting to watch the video in monitoring device, client judges the memory space of electronic equipment Residual memory space is not more than given threshold, cannot obtain the video segment of setting duration of described target device shooting and protect Deposit.
In order to ensure that this memory space can use for next video display, when judging that carry in described instruction for previewing set Standby and when passage is described target device and destination channel, after playing the described video segment preserving, will preserve in memory space This video segment delete;Or when the non-described target device of equipment carrying in described instruction for previewing, or the passage carrying out preview During non-described destination channel, this video segment preserving in memory space is deleted.
Because whether client can judge the residual memory space of the memory space of electronic equipment more than setting threshold every time Value, when being judged as YES, just carries out obtaining the described target device video segment of setting duration shooting the process preserving, protects Demonstrate,prove client and necessarily can get video segment.
When the residual memory space of electronic equipment is not more than given threshold, the described mesh of the described target device of described acquisition The setting video segment of duration that the mark corresponding image capture device of passage shoots and preserve including:
Determine content to be covered in the memory space of described electronic equipment;
Obtain the video of the setting duration of the corresponding image capture device of described destination channel that described target device shoots Fragment, is saved in the corresponding memory space of described content to be covered and described residual memory space.
When the residual memory space that client judges electronic equipment is not more than given threshold, in order to reduce user further Stand-by period before video shows, the corresponding image of described destination channel that client also can obtain described target device is adopted What collection equipment shot sets the video segment of duration and preserves.
Specific client can first determine to be covered in the memory space of described electronic equipment when obtaining video segment Content, described content to be covered refers to stored content in this memory space.Client is confirming depositing of electronic equipment In storage space during content to be covered, according to the difference of given threshold and residual memory space, the content institute to be covered of selection The memory space taking is more than described difference, then can ensure that the video segment that image capture device shoots necessarily can obtain Arrive.
In the various embodiments described above, the described video segment obtaining the setting duration that described target device shoots includes:
Obtain the key frame in the video segment of setting duration that described target device shoots.
Key frame uses intraframe coding, does not rely on before and after's frame during decoding.Wherein obtain the key frame of this video segment simultaneously Preservation belongs to prior art, in embodiments of the present invention this is not repeated.
The detailed process that under a kind of mode in P2P that Fig. 3 provides for the embodiment of the present invention 3, video shows, this process includes Following steps
S301:When client receives operating instruction, set according to the monitoring device information pre-saving and each monitoring Standby channel information, selection target equipment and destination channel.
S302:Judge whether the residual memory space of electronic equipment is more than given threshold, if it is, carrying out S303, no Then, carry out S304.
S303:According to described target device and destination channel, carry out penetrating through private network, obtain the described mesh of described target device What the mark corresponding image capture device of passage shot sets the video segment of duration and preserves.
S304:Determine content to be covered in the memory space of described electronic equipment;Obtain the described of described target device The video segment of the setting duration that the corresponding image capture device of destination channel shoots, is saved in described content to be covered and corresponds to Memory space and described residual memory space in.
S305:When receiving instruction for previewing, judge that the equipment carrying in described instruction for previewing and passage are described target When equipment and destination channel, play the described video segment preserving, and obtained except described video segment according to described destination channel Outside other video segments.
Fig. 4 is under the image display method corresponding P2P mode under a kind of P2P mode providing with the embodiment of the present invention 1 Video display devices structure chart, described device includes:
Selecting module 41, for when client receives operating instruction, according to the monitoring device information pre-saving and The channel information of each monitoring device, selection target equipment and destination channel;
Acquisition module 42, for according to described target device and destination channel, carrying out penetrating through private network, obtains described target and sets What the standby corresponding image capture device of described destination channel shot sets the video segment of duration and preserves;
Playing module 43, for when receiving instruction for previewing, judging the equipment and the passage that carry in described instruction for previewing During for described target device and destination channel, play the described video segment preserving, and obtained except institute according to described destination channel State other video segments outside video segment.
Fig. 5 is under the image display method corresponding P2P mode under a kind of P2P mode providing with the embodiment of the present invention 2 Video display devices structure chart, on the basis of Fig. 4, described device also includes:
Update module 44, the number of times for being used to described target device in described monitoring device information is carried out more Newly, and to the described destination channel of described target device the number of times being used is updated.
Logging modle 45, for recording the time that described target device is used for the last time, and it is logical to record described target The time that road is used for the last time.
Described selecting module 41, specifically for the number of times being used according to each monitoring device preserving, selection target sets Standby;And the number of times that used of each passage according to the described target device preserving, selection target passage.
Described selecting module 41, specifically for identification by the most monitoring device of access times;When most by access times Monitoring device be one when, in the described monitoring device most by access times as target device;When by access times When many monitoring devices are at least two, described at least two monitoring devices arbitrarily select one as target device, or, Using described at least two monitoring devices as target device.
When the monitoring device most by access times is at least two, described selecting module 41, specifically for according to institute State last time of being used of at least two monitoring devices, selection target equipment.
Fig. 6 is under the image display method corresponding P2P mode under a kind of P2P mode providing with the embodiment of the present invention 3 Video display devices structure chart, on the basis of Fig. 4, described device also includes:
Judge module 46, whether the residual memory space for judging electronic equipment is more than given threshold.If it is, triggering Acquisition module 42.
When the described residual memory space when electronic equipment is not more than given threshold, described acquisition module 42, specifically for Determine content to be covered in the memory space of described electronic equipment;The described destination channel obtaining described target device is corresponding The video segment of the setting duration that image capture device shoots, is saved in the corresponding memory space of described content to be covered and institute State in residual memory space.
Described acquisition module 42, the corresponding IMAQ of described destination channel specifically for obtaining described target device sets Key frame in the standby video segment of setting duration shooting.
Embodiments provide the image display method under a kind of P2P mode and device, the method includes:Work as client When termination receives operating instruction, according to the channel information of the monitoring device information pre-saving and each monitoring device, select mesh Marking device and destination channel;According to described target device and destination channel, carry out penetrating through private network, obtain the institute of described target device State the video segment of setting duration of destination channel corresponding image capture device shooting and preserve;Receive instruction for previewing when working as When, when judging the equipment carrying in described instruction for previewing and passage for described target device and destination channel, play the institute preserving State video segment, and other video segments in addition to described video segment are obtained according to described destination channel.Due at this In bright embodiment, client is after receiving operating instruction, logical according to the monitoring device information preserving and each monitoring device Road information, selection target equipment and destination channel, and carried out penetrating through private network, save video segment, when described instruction for previewing In the equipment that carries and passage when being described target device and destination channel, directly display the video segment of preservation it is ensured that regarding The timely display of frequency information, shortens the time of user's wait, improves the experience of user.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple Single, in place of correlation, the part referring to embodiment of the method illustrates.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the application can be using in one or more computers wherein including computer usable program code The upper computer program implemented of usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) produces The form of product.
The application is the flow process with reference to method, equipment (system) and computer program according to the embodiment of the present application Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent Select embodiment and fall into being had altered and changing of the application scope.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the application to the application God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprise these changes and modification.

Claims (18)

1. the image display method under a kind of P2P mode is it is characterised in that methods described includes:
When client receives operating instruction, according to the passage letter of the monitoring device information pre-saving and each monitoring device Breath, selection target equipment and destination channel;
According to described target device and destination channel, carry out penetrating through private network, obtain the described destination channel pair of described target device What the image capture device answered shot sets the video segment of duration and preserves;
When receiving instruction for previewing, judge that the equipment carrying in described instruction for previewing and passage are described target device and target During passage, play the described video segment preserving, and other in addition to described video segment are obtained according to described destination channel Video segment.
2. method according to claim 1 is it is characterised in that methods described also includes:
The number of times in described monitoring device information, described target device being used is updated, and to described target device The number of times that described destination channel is used is updated.
3. method according to claim 2 is it is characterised in that methods described also includes:
Record the time that described target device is used for the last time, and record that described destination channel used for the last time when Between.
4. according to the method in claim 2 or 3 it is characterised in that described according to preserve monitoring device information and each The channel information of monitoring device, selection target equipment and destination channel include:
The number of times that each monitoring device according to preserving is used, selection target equipment;And
The number of times being used according to each passage of the described target device preserving, selection target passage.
5. method according to claim 4 it is characterised in that described according to preserve each monitoring device used time Number, selection target equipment includes:
Identification is by the most monitoring device of access times;
When the monitoring device most by access times is one, in the described monitoring device most by access times as target Equipment;
When the monitoring device most by access times is at least two, described at least two monitoring devices arbitrarily select one Individual as target device, or, using described at least two monitoring devices as target device.
6. method according to claim 4 is it is characterised in that working as by the most monitoring device of access times is at least two When, the described number of times being used according to each monitoring device preserving, selection target equipment includes:
The time being used for the last time according to described at least two monitoring devices, selection target equipment.
7. method according to claim 1 is it is characterised in that the described destination channel pair of the described target device of described acquisition Before what the image capture device answered shot sets the video segment of duration and preserve, also include:
Judge whether the residual memory space of electronic equipment is more than given threshold;
If it is, the setting that the corresponding image capture device of described destination channel subsequently being obtained described target device shoots The video segment of duration the step preserving.
8. method according to claim 7 is it is characterised in that the residual memory space working as electronic equipment no more than sets threshold During value, the video of the setting duration that the corresponding image capture device of described destination channel of the described target device of described acquisition shoots Fragment and preserve including:
Determine content to be covered in the memory space of described electronic equipment;
Obtain the video segment setting duration that the corresponding image capture device of described destination channel of described target device shoots, It is saved in the corresponding memory space of described content to be covered and described residual memory space.
9. method according to claim 1 is it is characterised in that the described destination channel pair of the described target device of described acquisition The video segment of the setting duration that the image capture device answered shoots includes:
Obtain the video segment setting duration that the corresponding image capture device of described destination channel of described target device shoots In key frame.
10. the video display devices under a kind of P2P mode are it is characterised in that described device includes:
Selecting module, for when client receives operating instruction, according to the monitoring device information pre-saving and each prison The channel information of control equipment, selection target equipment and destination channel;
Acquisition module, for according to described target device and destination channel, carrying out penetrating through private network, obtains the institute of described target device State the video segment of setting duration of destination channel corresponding image capture device shooting and preserve;
Playing module, during for when receiving instruction for previewing, judging the equipment and the destination channel that carry in described instruction for previewing, Play the described video segment preserving, and other piece of video in addition to described video segment are obtained according to described destination channel Section.
11. devices according to claim 12 are it is characterised in that described device also includes:
Update module, the number of times for being used to described target device in described monitoring device information is updated, and right The number of times that the described destination channel of described target device is used is updated.
12. devices according to claim 11 are it is characterised in that described device also includes:
Logging modle, for recording the time that described target device is used for the last time, and it is last to record described destination channel The time once being used.
13. devices according to claim 11 or 12 it is characterised in that described selecting module, specifically for according to preservation The number of times that used of each monitoring device, selection target equipment;And each the passage quilt according to the described target device preserving The number of times using, selection target passage.
14. devices according to claim 13, it is characterised in that described selecting module, are used secondary specifically for identification The most monitoring device of number;When the monitoring device most by access times is one, in the described prison most by access times Control equipment is as target device;When the monitoring device most by access times is at least two, in described at least two monitoring One is arbitrarily selected as target device in equipment, or, using described at least two monitoring devices as target device.
15. devices according to claim 13 are it is characterised in that working as by the most monitoring device of access times is at least two When individual, described selecting module, specifically for the time that last is used according to described at least two monitoring devices, select mesh Marking device.
16. devices according to claim 10 are it is characterised in that described device also includes:
Judge module, whether the residual memory space for judging electronic equipment is more than given threshold.If it is, triggering obtains mould Block.
17. devices according to claim 16 it is characterised in that the described residual memory space when electronic equipment be more than set When determining threshold value, described acquisition module, specifically for determining content to be covered in the memory space of described electronic equipment;Obtain institute State the video segment setting duration that the corresponding image capture device of described destination channel of target device shoots, be saved in described In the corresponding memory space of content to be covered and described residual memory space.
18. devices according to claim 10 it is characterised in that described acquisition module, specifically for obtaining described target Key frame in the video segment of setting duration that the corresponding image capture device of described destination channel of equipment shoots.
CN201610863619.4A 2016-09-29 2016-09-29 Video display method and apparatus in P2P mode Pending CN106412505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610863619.4A CN106412505A (en) 2016-09-29 2016-09-29 Video display method and apparatus in P2P mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610863619.4A CN106412505A (en) 2016-09-29 2016-09-29 Video display method and apparatus in P2P mode

Publications (1)

Publication Number Publication Date
CN106412505A true CN106412505A (en) 2017-02-15

Family

ID=59229139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610863619.4A Pending CN106412505A (en) 2016-09-29 2016-09-29 Video display method and apparatus in P2P mode

Country Status (1)

Country Link
CN (1) CN106412505A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729314A (en) * 2018-12-24 2019-05-07 浙江大华技术股份有限公司 A kind of method for processing video frequency, device, electronic equipment and storage medium
CN109743552A (en) * 2019-01-17 2019-05-10 宇龙计算机通信科技(深圳)有限公司 A kind of object monitor method, apparatus, server and storage medium
CN109768957A (en) * 2018-11-30 2019-05-17 视联动力信息技术股份有限公司 A kind of processing method and system of monitoring data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267545A (en) * 2008-04-30 2008-09-17 中兴通讯股份有限公司 A program switching method and device
CN101448072A (en) * 2008-12-29 2009-06-03 北京中星微电子有限公司 Video viewing method and system of Internet video monitoring system
CN103401755A (en) * 2013-08-15 2013-11-20 山东神思电子技术股份有限公司 Method for data transmission in virtual communication link
CN104168441A (en) * 2013-05-16 2014-11-26 北大方正集团有限公司 Video monitoring system and video monitoring method
CN104168457A (en) * 2014-08-18 2014-11-26 浙江宇视科技有限公司 Method and device for playing multiple media streams on demand
CN104980448A (en) * 2015-08-06 2015-10-14 Tcl集团股份有限公司 Remote monitoring method, remote monitoring device and remote monitoring system
US20160164923A1 (en) * 2008-08-25 2016-06-09 Paul J. Dawes Method for data routing in networks

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267545A (en) * 2008-04-30 2008-09-17 中兴通讯股份有限公司 A program switching method and device
US20160164923A1 (en) * 2008-08-25 2016-06-09 Paul J. Dawes Method for data routing in networks
CN101448072A (en) * 2008-12-29 2009-06-03 北京中星微电子有限公司 Video viewing method and system of Internet video monitoring system
CN104168441A (en) * 2013-05-16 2014-11-26 北大方正集团有限公司 Video monitoring system and video monitoring method
CN103401755A (en) * 2013-08-15 2013-11-20 山东神思电子技术股份有限公司 Method for data transmission in virtual communication link
CN104168457A (en) * 2014-08-18 2014-11-26 浙江宇视科技有限公司 Method and device for playing multiple media streams on demand
CN104980448A (en) * 2015-08-06 2015-10-14 Tcl集团股份有限公司 Remote monitoring method, remote monitoring device and remote monitoring system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109768957A (en) * 2018-11-30 2019-05-17 视联动力信息技术股份有限公司 A kind of processing method and system of monitoring data
CN109729314A (en) * 2018-12-24 2019-05-07 浙江大华技术股份有限公司 A kind of method for processing video frequency, device, electronic equipment and storage medium
CN109743552A (en) * 2019-01-17 2019-05-10 宇龙计算机通信科技(深圳)有限公司 A kind of object monitor method, apparatus, server and storage medium

Similar Documents

Publication Publication Date Title
US10991397B2 (en) Masking in video stream
CN106878767B (en) Video broadcasting method and device
CN109040766B (en) Live video processing method and device and storage medium
CN111013150B (en) Game video editing method, device, equipment and storage medium
WO2017107649A1 (en) Video transmission method and device
CN107613235A (en) video recording method and device
US20180013975A1 (en) Multiple device recording process and system
US20190364211A1 (en) System and method for editing video contents automatically technical field
KR20220062095A (en) Rack detection method and apparatus, device, readable storage medium
CN104506922A (en) Method, device and equipment for broadcasting video signal
CN107436941A (en) Vehicle movement trajectory analysis method and vehicle movement track analyzing device
CN104869203A (en) Unsmooth running testing method and device, and testing equipment
CN106412505A (en) Video display method and apparatus in P2P mode
CN109040773A (en) A kind of video improvement method, apparatus, equipment and medium
CN104410872A (en) Method and device for checking video sources
JPH0993588A (en) Moving image processing method
CN104079926A (en) Video performance testing method for remote desktop software
CN106658227A (en) Video play time length compressing method and device
CN109155840A (en) Moving image segmenting device and monitoring method
CN105635256A (en) Multimedia synchronization method, device and system
CN104182959B (en) target searching method and device
CN105975494A (en) Service information pushing method and apparatus
CN117221626A (en) Video data processing method and device
CN110415318B (en) Image processing method and device
CN113992638A (en) Synchronous playing method and device of multimedia resources, storage position and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215