WO2018077266A1 - 监控录像的断点续传方法及装置 - Google Patents
监控录像的断点续传方法及装置 Download PDFInfo
- Publication number
- WO2018077266A1 WO2018077266A1 PCT/CN2017/108359 CN2017108359W WO2018077266A1 WO 2018077266 A1 WO2018077266 A1 WO 2018077266A1 CN 2017108359 W CN2017108359 W CN 2017108359W WO 2018077266 A1 WO2018077266 A1 WO 2018077266A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- breakpoint
- time
- download
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000005540 biological transmission Effects 0.000 title claims abstract description 25
- 238000012806 monitoring device Methods 0.000 claims abstract description 66
- 238000012544 monitoring process Methods 0.000 claims description 133
- 230000008569 process Effects 0.000 claims description 18
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Definitions
- the present application relates to the field of monitoring security, and in particular to a method and device for a breakpoint transmission of a surveillance video.
- monitoring equipment is widely used in various public places to monitor on-site safety.
- monitoring equipment is generally installed in various shopping malls and office buildings.
- the early monitoring equipment is generally a closed-circuit monitoring system, which includes a front-end camera device, a back-end host device, and a display.
- the front-end camera device collects the live image and transmits it to the back-end host device, and simultaneously displays the monitoring video through the display.
- the client can establish a connection with the monitoring device through the network, watch the monitoring video in real time, and download the monitoring video stored by the monitoring device.
- the client sends the start time and the end time of the monitoring video to be downloaded to the corresponding monitoring device, and the monitoring device codes the corresponding monitoring video from the start time to the end time.
- the stream is returned to the client, and the client saves the code stream to complete the download.
- the start time of the surveillance video requested by the client is 8:00 am on September 15, 2016, and the end time is 10:00 am on September 15, 2016. Then the monitoring equipment will be at 8:00 am on September 15, 2016.
- the surveillance video stream during the 10:00 am is sent to the client.
- the client needs to restart the download from the beginning of the surveillance video, and cannot continue to download from the interrupted location, which will result in a lot of waste of time and traffic, especially in the In some environments with limited bandwidth, it takes more time.
- the embodiment of the present application discloses a method and a device for continuously transmitting a breakpoint of a surveillance video, which are used to solve the present problem.
- the technical solutions are as follows:
- the embodiment of the present application provides a method for a resume transmission of a surveillance video, which is applied to a client, and the method includes:
- the download instruction carries a start time and an end time of the target surveillance video to be downloaded
- breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein the breakpoint identifier is : Recorded during the abnormal end of the monitoring video download process;
- the video stream is received and saved.
- the step of searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time includes:
- the determining, according to the part of the monitoring video that is found, the step of determining a download breakpoint time of the target monitoring video including:
- the timestamp corresponding to the last I image is determined as the download breakpoint time, or the time of the first preset duration before the timestamp corresponding to the last I image is determined as the download breakpoint time.
- the determining, according to the part of the monitoring video that is found, the step of determining a download breakpoint time of the target monitoring video including:
- the time obtained by the addition calculation is determined as the download breakpoint time, or the time of the second preset time before the time calculated by the addition is determined as the download breakpoint time.
- the method further includes:
- the part of the monitored video recorded is merged with the video file downloaded by the resume of the breakpoint.
- the step of splicing the searched partial monitoring video with the downloaded video file of the current breakpoint resuming includes:
- the video file downloaded by the current breakpoint is spliced with the found partial surveillance video at the same I frame image position.
- the step of splicing the searched partial monitoring video with the downloaded video file of the current breakpoint resuming includes:
- the method before the step of searching for the currently downloaded partial surveillance video corresponding to the target surveillance video, the method further includes:
- the downloading instruction further carries device information.
- the method further includes:
- the embodiment of the present application further provides a device for monitoring a video recording point, which is applied to a client, and the device includes:
- a download instruction module configured to obtain a download instruction, where the download instruction carries a start time and an end time of the target surveillance video to be downloaded;
- a breakpoint identification determining module configured to determine whether there is a breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, The breakpoint identifier is: recorded when the monitoring video downloading process ends abnormally;
- Downloading a breakpoint time determination module configured to determine a download breakpoint moment of the target surveillance video according to the part of the monitored video recorded;
- Downloading a breakpoint time sending module configured to send the download breakpoint time, the end time to a target monitoring device that stores the target surveillance video, so that the target monitoring device records the target surveillance video from the Transmitting a video stream from the breakpoint moment to the end moment to the client;
- the video stream receiving module is configured to receive and save the video stream.
- the breakpoint identifier determining module includes:
- the search unit has been downloaded to search for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time and the end time.
- the download breakpoint time determination module includes:
- An image determining unit configured to determine a last I frame image of the part of the monitored video records when the target monitoring video is a standard code stream;
- a first download breakpoint time determining unit configured to determine a timestamp corresponding to the last I image as a download breakpoint time, or a first preset duration before a timestamp corresponding to the last I image The moment is determined as the download breakpoint moment.
- the download breakpoint time determination module includes:
- a duration determining unit configured to determine a video duration of the part of the monitored video recording when the target monitoring video is a non-standard code stream, and add the starting time to the video duration
- the second download breakpoint time determining unit is configured to determine the time obtained by the addition calculation as the download breakpoint time, or determine the time of the second preset duration before the time calculated by the addition as the download breakpoint time.
- the device further includes:
- the file splicing module is configured to splicing the part of the monitored video records and the video files downloaded by the resume of the current breakpoint after the end of the resume of the breakpoint.
- the file splicing module includes:
- a first image determining unit configured to: when the target monitoring video is a standard code stream, determine image data of a last I frame image of the found partial monitoring video;
- a second image determining unit configured to determine, from an image frame of a third preset duration from the beginning of the downloaded video file of the current breakpoint, the last frame of the monitored video with the found portion The same I frame image as the image data of the I frame image;
- a first file splicing unit configured to splicing the video file downloaded by the current breakpoint and the part of the monitored video recorded at the same I frame image position.
- the file splicing module includes:
- a first converting unit configured to: when the target monitoring video is a non-standard code stream, The image data of the last fourth preset duration of the found part of the surveillance video is converted into binary data;
- a second conversion unit configured to convert the image data of the fifth preset duration of the downloaded video file that is downloaded by the current breakpoint into binary data
- a data determining unit configured to determine, from the binary data converted by the data of the fifth preset duration, the same binary data as the data converted by the fourth preset duration
- a first file splicing unit configured to splicing the video file downloaded by the current breakpoint and the part of the monitored video recorded at the same binary data position.
- the device further includes:
- the download interruption number judging module is configured to determine, according to the breakpoint identifier, whether the number of download interruptions exceeds a preset number before searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein The breakpoint identifier corresponds to the number of download interruptions;
- the downloading instruction further carries device information.
- the device further comprises:
- a target monitoring device determining module configured to determine, according to the device information, a target monitoring device that stores the target monitoring video, before sending the downloading breakpoint time and the ending time to a target monitoring device that stores the target monitoring video .
- the embodiment of the present application further provides an electronic device, which is applicable to a breakpoint transmission of a surveillance video, where the electronic device includes:
- the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power supply circuit is used for each circuit of the electronic device or The device is powered;
- the memory is for storing executable program code;
- the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory for performing the following steps:
- the download instruction carries a start of a target surveillance video to be downloaded Time and end time;
- breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein the breakpoint identifier is : Recorded during the abnormal end of the monitoring video download process;
- the video stream is sent to the electronic device;
- the video stream is received and saved.
- an embodiment of the present application further provides an application, where the application is used to perform a breakpoint retransmission method of the above surveillance video at runtime.
- the embodiment of the present application further provides a storage medium, which is used for storing an application, and the application is used to execute a breakpoint continuous transmission method of the above surveillance video during operation.
- the client first obtains a download instruction, and determines whether there is a breakpoint identifier corresponding to the start time and the end time, and if yes, searches for the currently downloaded part corresponding to the target surveillance video according to the start time.
- Monitoring the video and determining a download breakpoint time of the target surveillance video according to the part of the monitored video, and then sending the download breakpoint time and the end time to a target monitoring device storing the target surveillance video, And causing the target monitoring device to send the video code stream of the target surveillance video from the download breakpoint time to the end time to the client, and finally receive and save the video code stream.
- FIG. 1 is a flowchart of a method for continuously transmitting a breakpoint of a surveillance video according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a file splicing manner corresponding to a video file of a standard code stream according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a file splicing manner corresponding to a video file of a non-standard code stream according to an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of a device for maintaining a breakpoint of a surveillance video according to an embodiment of the present application.
- the downloading time and the traffic are saved in order to save the downloading of the monitoring video after the downloading of the monitoring video is interrupted.
- the embodiment of the present application provides a method and a device for stopping the transmission of the monitoring video.
- a method for continuously transmitting a breakpoint of a surveillance video is applied to a client, and includes the following steps:
- the method provided by the embodiment of the present application is applied to a client, and the client can establish a wired or wireless connection with the monitoring device to perform data transmission.
- the wireless connection may be a connection method such as a WIFI connection or a cellular mobile network (the system may be 3G, 4G, etc.).
- the client can obtain the download instruction of the user, and can also obtain the download instruction when the preset download rule is met.
- the client can also obtain the download instruction through other existing methods, which is not specifically limited herein, wherein the download The command generally carries the start time and the end time of the target surveillance video to be downloaded.
- the user enters the target monitoring video to be downloaded at the client to start at 2016.
- the end time is 14:30 on September 15th, 2016, then the client can get the start time of the carrier as 10:10 on September 15, 2016, and the end time is 2016.
- the client can also obtain the download command when the preset download rule is met.
- the preset rule can be: download the surveillance video from 8:00 to 10:00 every day at 12 noon, then the client is at 12 noon every day. It is possible to obtain a download instruction that the carrying start time is 8 o'clock on the day and the end time is 10 o'clock on the day.
- the client After the client obtains the above download command, in order to determine whether the target monitoring video to be downloaded is a download interruption recording, it may be determined whether there is a breakpoint identifier corresponding to the start time and the end time carried by the download instruction.
- the breakpoint identifier is recorded when an abnormal end occurs during the download of the surveillance video, that is, in the process of downloading the surveillance video, if a download interruption occurs due to human or network reasons, the client You can record the breakpoint ID. Further, if the client determines that there is a breakpoint identifier corresponding to the start time and the end time carried by the download instruction, it indicates that the target surveillance video to be downloaded has been interrupted during the download process, that is, the target to be downloaded.
- the surveillance video is the download interruption video.
- the target monitoring video to be downloaded is not the download interruption video. It can be understood that if the target surveillance video to be downloaded is not the download interruption video, the client can download the target surveillance video to be downloaded from the start time carried by the download instruction.
- the client may further search for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time. Since a user generally does not download the surveillance video with the same time period, that is, the start time of the target surveillance video is generally different, the client can record the corresponding start time of the surveillance video when downloading a surveillance video.
- the manner of searching for the downloaded partial surveillance video may be:
- the number of users of the client may be multiple, and multiple users may download the same monitoring video at the beginning of the time. If the same monitoring video at the beginning of the moment is interrupted during the downloading process, the client is based on the starting moment.
- searching for the currently downloaded part of the surveillance video corresponding to the target surveillance video some of the currently downloaded partial surveillance recordings may be found, and the breakpoints of the currently downloaded partial surveillance video of these searches may not be at the target. Monitor the start and end of the recording.
- the client when downloading a surveillance video, the client can record the identification information corresponding to the start time and the end time of the surveillance video, such as the default file name, so as to ensure the breakpoint time of the part of the surveillance video that is found. It is between the start time and the end time of the target surveillance video to ensure the accuracy of the search and avoid affecting the subsequent steps.
- the client may also associate the breakpoint identifier with the currently downloaded partial surveillance video when the breakpoint identifier is recorded, so that the currently downloaded portion can be found after the breakpoint identifier is determined. It is reasonable to monitor the video.
- the client may further detect whether there is already a start time carried by the download instruction. The surveillance video corresponding to the end time, if it exists, will not be repeated.
- the client may determine whether there is already a monitoring video corresponding to the start time and the end time carried by the download instruction by searching for a default file corresponding to the start time and the end time. It is also possible to determine whether there is already a monitoring video corresponding to the start time and the end time carried by the download instruction by recording the complete download identifier, that is, downloading the target surveillance video corresponding to the download instruction corresponding to the download instruction.
- the client can record one with the The complete download identifier corresponding to the target surveillance video, when the client detects the complete download identifier, it indicates that the target surveillance video has been completely downloaded, and there is no need to re-download, further saving download time and traffic.
- the client After finding the part of the surveillance video, the client can determine the download breakpoint time of the target surveillance video according to the part of the surveillance video that is found.
- the manner of determining the download breakpoint time of the target surveillance video may include:
- the timestamp corresponding to the last I picture frame is determined as the download breakpoint time, or the time of the first preset time period before the timestamp corresponding to the last I frame is determined as the download breakpoint time.
- the types of the above standard code streams mainly include h.264, h.265, MPEG-4, etc.
- the client can determine the last I frame in the part of the monitored video that is found.
- the image it can be understood that the last I frame image is the one I frame image closest to the tail in the part of the surveillance video.
- the method for determining the last I frame image in the part of the surveillance video is an image processing method commonly used in the field, and those skilled in the art can perform specific operations according to factors such as the code stream type of the part of the surveillance video. This will not be explained in detail.
- the client may determine the timestamp corresponding to the last I frame image as the download breakpoint time. For example, the timestamp corresponding to the timestamp of the last I-frame image is 9:20:5, 10, 10 milliseconds on September 15, 2016, so the client can place 9:20 on September 15, 2016. 10 milliseconds is determined as the download breakpoint moment.
- the client may also determine the time of the first preset duration before the time stamp corresponding to the last I frame image as the download breakpoint time, where
- the first preset duration may be determined by a person skilled in the art according to the type of the code stream of the target monitoring video and the duration of the partial monitoring video, and is not limited herein, for example, may be 3 seconds, 5 seconds, or the like.
- the manner of determining the download breakpoint time of the target surveillance video may include:
- the time obtained by the addition calculation is determined as the download breakpoint time, or the time of the second preset time before the time calculated by the addition is determined as the download breakpoint time.
- the client can determine the video duration of the part of the surveillance video by any existing method, and then add the start time and the duration of the video, and determine the time calculated by the addition as the download breakpoint. time.
- the video duration of this part of the surveillance video is 50 minutes
- the starting time is 10:10 on September 15, 2016, then the download breakpoint is 11:00 on September 15, 2016.
- the time of the second preset duration before the time calculated by the addition may be determined as the download breakpoint time, wherein the second preset duration may be It is determined by a person skilled in the art according to factors such as the length of the partial surveillance video, and is not specifically limited herein, and may be, for example, 3 seconds, 5 seconds, or the like.
- S104 Send the download breakpoint time and the end time to a target monitoring device that stores the target surveillance video, so that the target monitoring device records the target surveillance video from the download breakpoint moment to the The video stream of the end time is sent to the client;
- the download breakpoint time and the end time may be sent to the target monitoring device storing the target surveillance video, so that the target monitoring device can receive the download breakpoint time and
- the recorded code stream of the target surveillance video from the download breakpoint time to the end time is sent to the client, and the breakpoint transmission of the target surveillance video is realized, instead of restarting from the start time to the The video stream at the end time is sent to the client, saving a lot of download time and traffic.
- the client After receiving the video stream sent by the target monitoring device, the client saves the video stream to complete the download of the target surveillance video.
- the client first obtains a download instruction, and determines whether there is a breakpoint identifier corresponding to the start time and the end time, and if yes, searches for the target monitor according to the start time. Recording a part of the currently downloaded partial surveillance video corresponding to the video, and determining a download breakpoint time of the target surveillance video according to the found partial surveillance video, and then transmitting the download breakpoint time and the ending time to storing the Target monitoring device of the target monitoring video, so that the target monitoring device sends the video code stream of the target surveillance video from the download breakpoint time to the end time to the client, and finally receives and saves the video Code stream.
- the target surveillance video download is interrupted and downloaded again, the resume transmission is resumed from the download breakpoint time, and the downloading time and the traffic volume can be saved without re-downloading from the start time of the target surveillance video.
- the client in order to ensure the integrity and accuracy of the target monitoring video of the final download, and avoid data loss and redundancy, after the end of the resume transmission, the client can find the data.
- Some of the surveillance videos that have arrived are spliced with the video files downloaded from this resume.
- the method for splicing the partial surveillance video that is found and the video file downloaded by the current resume may include:
- the video file downloaded by the current breakpoint is spliced with the found partial surveillance video at the same I frame image position.
- the client can determine the image data 230 of the last I frame image of the portion of the monitored video 210 that is found. Then, the client may determine, from the image frame data 240 of the third preset duration starting from the download of the downloaded video file 220 at the current breakpoint, the last I frame image of the partial surveillance video 210 that is found above.
- the image data 230 has the same image data (indicated by the same image data in the figure), and further determines the same number of images in the video file 220 downloaded from this resume. According to the corresponding I frame image.
- the third preset duration may be determined by a person skilled in the art according to the searched partial surveillance video 210 and the duration of the video file 220 downloaded by the current resume, the type of the code stream, and the like. It is not specifically limited, and may be, for example, 5 seconds or 6 seconds.
- the manner of determining the image data 230 of the last I frame image and the video file 220 downloaded from the resume of the current breakpoint are determined to be the same as the image data 230 of the last I frame image.
- the manner of the I frame image corresponding to the image data is the image processing mode adopted in the art, and those skilled in the art can perform the code stream of the downloaded video file 210 and the downloaded video file 220 according to the found partial video recording 210. The type and other factors operate, and will not be specified here.
- the client After determining the image data 230 of the last I frame image and the I frame image corresponding to the same image data of the last I frame image data 230 in the video file 220 downloaded by the current breakpoint, The client can splicing the downloaded video file 220 and the found partial surveillance video 210 at the position 250 of the same I-frame image to obtain the spliced partial surveillance video 260.
- the method for splicing the part of the monitored video and the video file downloaded by the current resume may include:
- the client can convert the image data of the last fourth preset duration of the found partial surveillance video 310 into binary data 330. Then, the client can convert the image data of the fifth preset duration from the start of the downloaded video file 320 to the binary data 340.
- the fourth preset duration and the fifth preset duration may be determined by a person skilled in the art according to factors such as the partial surveillance video 310 found and the duration of the video file 320 downloaded by the current breakpoint.
- the fourth preset duration may be 2 seconds or the like, and the fifth preset duration may be 5 seconds or 6 seconds, and the like.
- the foregoing method for converting image data into binary data is a data processing method adopted by the field, and those skilled in the art can perform the video downloaded according to the partial monitoring video 310 and the downloaded video of the current breakpoint.
- the image data of the file 320 is operated and the like, and will not be specifically described herein.
- the client can convert the binary data converted from the data 340 of the fifth preset duration. Determining the same binary data (in the figure represented by the same binary data) as the data conversion binary data 330 of the fourth preset duration, and continuing to download the downloaded video file 320 and the found partial monitoring The video 310 is spliced at the same position 350 of the binary data to obtain a spliced partial surveillance video 360.
- the method may further include:
- the client can record the breakpoint identifier corresponding to the number of download interruptions when the breakpoint identifier is recorded, so that the number of download interruptions can be determined by the breakpoint identifier, thereby determining the number of download interruptions. Whether it exceeds the preset number of times. It should be noted that the preset number of times may be determined by a person skilled in the art according to factors such as network conditions, for example, may be 10 times, etc., and is not specifically limited herein.
- the client can continue to perform the search for the target surveillance video according to the above start time.
- the client Corresponding to the currently downloaded part of the monitoring video recording step, resume the breakpoint.
- the download instruction may further carry the device information, in order to conveniently determine the target monitoring device.
- the method may further include:
- the client may establish a connection with the target monitoring device, and send the downloading breakpoint time and ending time to the target monitoring device.
- the device information generally includes an IP address, port information, a user name, and password information corresponding to the target monitoring device.
- the embodiment of the present application further provides a device for maintaining a video recording breakpoint.
- a device for monitoring video recording is provided.
- a breakpoint continuous transmission device for monitoring video is applied to a client, and the device includes:
- the download instruction obtaining module 410 is configured to obtain a download instruction
- the download instruction carries a start time and an end time of the target surveillance video to be downloaded.
- the breakpoint identifier determining module 420 is configured to determine whether there is a breakpoint identifier corresponding to the start time and the end time, and if yes, search for the target surveillance video according to the start time Some of the surveillance videos that have been downloaded;
- the breakpoint identifier is recorded when the monitoring video is abnormally ended during the downloading process.
- the download breakpoint determination module 430 is configured to determine a download breakpoint moment of the target surveillance video according to the found partial surveillance video;
- Downloading a breakpoint time sending module 440 configured to send the download breakpoint time and the end time to a target monitoring device that stores the target monitoring video, so that the target monitoring device selects the target monitoring video Transmitting a video code stream from the download breakpoint moment to the end moment to the client;
- the video stream receiving module 450 is configured to receive and save the video stream.
- the client first obtains a download instruction, and determines whether there is a breakpoint identifier corresponding to the start time and the end time, and if yes, searches for the target monitor according to the start time. Recording a part of the currently downloaded partial surveillance video corresponding to the video, and determining a download breakpoint time of the target surveillance video according to the found partial surveillance video, and then transmitting the download breakpoint time and the ending time to storing the Target monitoring device of the target monitoring video, so that the target monitoring device sends the video code stream of the target surveillance video from the download breakpoint time to the end time to the client, and finally receives and saves the video Code stream.
- the target surveillance video download is interrupted and downloaded again, the resume transmission is resumed from the download breakpoint time, and the downloading time and the traffic volume can be saved without re-downloading from the start time of the target surveillance video.
- the breakpoint identifier determining module 420 may include:
- the search unit (not shown) has been downloaded for searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time and the end time.
- the download breakpoint time determination module 430 may include:
- An image determining unit (not shown), configured to determine a last I frame image of the part of the monitored video records when the target monitoring video is a standard code stream;
- a first download breakpoint time determining unit (not shown) for determining a timestamp corresponding to the last I image as a download breakpoint time, or a time corresponding to the last I image The time at which the first preset duration is before the stamp is determined as the download breakpoint moment.
- the download breakpoint time determination module 430 may include:
- a duration determining unit (not shown), configured to determine a video duration of the part of the monitored video records when the target monitoring video is a non-standard stream, and add the starting time to the video duration Calculation
- a second download breakpoint time determining unit (not shown) for determining the time obtained by the addition calculation as the download breakpoint time, or determining the time of the second preset duration before the time calculated by the addition as the download Breakpoint moment.
- the device may further include:
- the file splicing module (not shown) is configured to splicing the found partial monitoring video with the downloaded video file of the current breakpoint after the end of the resume.
- the file splicing module may include:
- a first image determining unit (not shown), configured to determine image data of a last I frame image of the found partial monitoring video when the target monitoring video is a standard code stream;
- a second image determining unit (not shown) for determining the portion to be found from the image frame of the third preset duration starting from the download of the downloaded video file by the current breakpoint The same I frame image of the image data of the last I frame image of the surveillance video;
- a first file splicing unit (not shown), configured to perform the current video file downloaded by the current resume and the partial video surveillance video at the same I frame image position splice.
- the file splicing module may include:
- a first conversion unit (not shown), configured to convert image data of the last fourth preset duration of the found partial surveillance video into binary when the target surveillance video is a non-standard code stream Data
- a second conversion unit (not shown) for converting the image data of the fifth preset duration of the downloaded video file of the current breakpoint conversion into binary data
- a data determining unit (not shown), configured to determine, from the binary data converted by the data of the fifth preset duration, binary data that is the same as the binary data of the fourth preset duration data conversion;
- a first file splicing unit (not shown), configured to splicing the downloaded video file of the current breakpoint and the found partial monitoring video at the same binary data position .
- the device further includes:
- the download interruption number judging module may be configured to determine the number of download interruptions according to the breakpoint identifier before searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time. Whether the preset number of times exceeds, wherein the breakpoint identifier corresponds to the number of download interruptions;
- the downloading instruction may further carry device information.
- the device may further comprise:
- a target monitoring device determining module (not shown), configured to determine, according to the device information, before storing the downloading breakpoint time and the ending time to storing the target monitoring device of the target monitoring video Target monitoring device for target surveillance video.
- an electronic device which is suitable for monitoring resume transmission of a video recording, and the electronic device includes:
- the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power supply circuit is used for each circuit of the electronic device or The device is powered;
- the memory is for storing executable program code;
- the processor runs the program corresponding to the executable program code by reading executable program code stored in the memory, Used to perform the following steps:
- the download instruction carries a start time and an end time of the target surveillance video to be downloaded
- breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein the breakpoint identifier is : Recorded during the abnormal end of the monitoring video download process;
- the video stream is sent to the electronic device;
- the video stream is received and saved.
- the electronic device may exist in various forms including, but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server consists of a processor , a hard disk , a memory , a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the electronic device can resume the transmission from the download breakpoint when the target monitoring video download is interrupted, and does not need to re-download from the start time of the target surveillance video, which can save a large amount. Download time and traffic.
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and the performing the searching for the target according to the start time
- the steps of monitoring the video recording corresponding to the currently downloaded part of the surveillance video may include:
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and when the target monitoring video is a standard code stream, the executed
- the determining, according to the part of the monitoring video that is found, the step of determining a download breakpoint of the target surveillance video may include:
- the timestamp corresponding to the last I image is determined as the download breakpoint time, or the time of the first preset duration before the timestamp corresponding to the last I image is determined as the download breakpoint time.
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, when the target monitoring video is a non-standard code stream, And determining, according to the part of the monitoring video that is found, the step of downloading the breakpoint of the target surveillance video, which may include:
- the time obtained by the addition calculation is determined as the download breakpoint time, or the time of the second preset time before the time calculated by the addition is determined as the download breakpoint time.
- the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and the executed method may further include:
- the part of the monitored video recorded is merged with the video file downloaded by the resume of the breakpoint.
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and when the target monitoring video is a standard code stream, the executed
- the step of splicing the part of the monitored video recording with the video file downloaded by the current breakpoint may include:
- the video file downloaded by the current breakpoint is spliced with the found partial surveillance video at the same I frame image position.
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and when the target monitoring video is a non-standard code stream, is executed.
- the step of splicing the part of the monitored video recording with the downloaded video file of the current resume download may include:
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and the performing the searching for the target according to the start time
- the step of monitoring the video corresponding to the currently downloaded part of the surveillance video may further include:
- the downloading instruction may further carry device information.
- the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, and the executing the downloading breakpoint time and the ending time to store the target Before the step of monitoring the target monitoring device of the video, the method may further include:
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- the application further provides an application program for performing the monitoring video breakpoint retransmission method provided by the embodiment of the present application at runtime.
- the monitoring video breakpoint resume transmission method includes:
- the download instruction carries a start time and an end time of the target surveillance video to be downloaded
- breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein the breakpoint identifier is : Recorded during the abnormal end of the monitoring video download process;
- the video stream is received and saved.
- the step of searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time may include:
- the step of determining a download breakpoint moment of the target surveillance video according to the part of the monitored video recording may include:
- the timestamp corresponding to the last I image is determined as the download breakpoint time, or the time of the first preset duration before the timestamp corresponding to the last I image is determined as the download breakpoint time.
- the step of determining a download breakpoint time of the target surveillance video according to the part of the monitored video records that is found may include :
- the time obtained by the addition calculation is determined as the download breakpoint time, or the time of the second preset time before the time calculated by the addition is determined as the download breakpoint time.
- the method further includes:
- the part of the monitored video recorded is merged with the video file downloaded by the resume of the breakpoint.
- the target monitoring video is a standard code stream
- the part of the monitored video recording and the video file downloaded by the current breakpoint are filed.
- the step of splicing may include:
- the video file downloaded by the current breakpoint is spliced with the found partial surveillance video at the same I frame image position.
- the target monitoring video is a non-standard code stream
- the part of the monitored video recording is spliced with the video file downloaded by the current resume.
- the steps can include:
- the method may further include:
- the downloading instruction may further carry device information.
- the method may further include:
- a storage medium is further provided, where the storage medium is used to execute the monitoring video breakpoint retransmission method provided by the embodiment of the present application at runtime.
- the monitoring video breakpoint resume transmission method includes:
- the download instruction carries a start time and an end time of the target surveillance video to be downloaded
- breakpoint identifier corresponding to the start time and the end time, and if yes, searching for a currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time, wherein the breakpoint identifier is : Recorded during the abnormal end of the monitoring video download process;
- the video stream is received and saved.
- the step of searching for the currently downloaded partial surveillance video corresponding to the target surveillance video according to the start time may include:
- the step of determining a download breakpoint moment of the target surveillance video according to the part of the monitored video recording may include:
- the timestamp corresponding to the last I image is determined as the download breakpoint time, or the time of the first preset duration before the timestamp corresponding to the last I image is determined as the download breakpoint time.
- the step of determining a download breakpoint time of the target surveillance video according to the part of the monitored video records that is found may include :
- the time obtained by the addition calculation is determined as the download breakpoint time, or the time of the second preset time before the time calculated by the addition is determined as the download breakpoint time.
- the method may further include:
- the part of the monitored video recorded is merged with the video file downloaded by the resume of the breakpoint.
- Steps can include:
- the video file downloaded by the current breakpoint is spliced with the found partial surveillance video at the same I frame image position.
- the step of splicing the part of the monitored video recorded and the video file downloaded by the resume of the current breakpoint may include:
- the method may further include:
- the downloading instruction may further carry device information.
- the method may further include:
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
本申请实施例公开了一种监控录像的断点续传方法及装置,应用于客户端,所述方法包括:获得下载指令;判断是否存在与下载指令携带的开始时刻和结束时刻对应的断点标识;如果是,根据开始时刻,查找目标监控录像对应的当前已下载的部分监控录像;根据该部分监控录像,确定目标监控录像的下载断点时刻;发送下载断点时刻、结束时刻至存储目标监控录像的目标监控设备,以使目标监控设备将目标监控录像的从下载断点时刻到结束时刻的录像码流发送至客户端;接收并保存录像码流。采用本方案可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
Description
本申请要求于2016年10月31日提交中国专利局、申请号为201610931170.0发明名称为“监控录像的断点续传方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及监控安防领域,特别是涉及一种监控录像的断点续传方法及装置。
目前,监控设备广泛应用于各种公共场所,用于监控现场安全,例如各大商场、办公楼内等场所一般都安装有监控设备。早期的监控设备一般是闭路监控***,该***包括前端摄像设备、后端主机设备及显示器,具体的,前端摄像设备采集现场图像,并将其传输至后端主机设备,通过显示器同步显示监控视频图像,供工作人员实时观看现场情况,以监控现场安全。
随着网络技术的飞速发展,监控设备逐渐改革升级,可以通过网络实现远程监控等功能。客户端可以通过网络与监控设备建立连接,实时观看监控视频,也可以下载监控设备存储的监控录像。在监控录像下载过程中,客户端接收用户的下载指令后,向对应的监控设备发送所要下载的监控录像的开始时刻及结束时刻,监控设备则将对应的监控录像从开始时刻到结束时刻的码流返回给客户端,客户端进行码流的保存,进而完成下载。例如:客户端所请求监控录像的开始时刻为2016年9月15日上午八点,结束时刻为2016年9月15日上午十点,那么监控设备便将2016年9月15日上午八点至上午十点这段时间内的监控录像码流发送给客户端。
但是,一旦在下载过程中由于网络或者人为原因导致下载中断,客户端需从监控录像的开始时刻重新开始下载,无法从中断的位置继续下载,这样会造成时间和流量的大量浪费,特别是在一些带宽有限的环境中,会花费更多时间。
发明内容
本申请实施例公开了一种监控录像的断点续传方法及装置,用以解决现
有技术中下载监控录像时不能断点续传造成的时间和流量浪费的问题。技术方案如下:
第一方面,本申请实施例提供了一种监控录像的断点续传方法,应用于客户端,所述方法包括:
获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;
判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
接收并保存所述录像码流。
可选的,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤,包括:
根据所述开始时刻和所述结束时刻,查找所述目标监控录像对应的当前已下载的部分监控录像。
可选的,当所述目标监控录像为标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,包括:
确定所查找到的部分监控录像中的最后一幅I帧图像;
将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
可选的,当所述目标监控录像为非标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,包括:
确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频
时长进行加法计算;
将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
可选的,所述方法还包括:
在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
可选的,当所述目标监控录像为标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,包括:
确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
可选的,当所述目标监控录像为非标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,包括:
将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
可选的,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤之前,所述方法还包括:
根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
可选的,所述下载指令还携带设备信息,
相应的,所述发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备的步骤之前,所述方法还包括:
根据所述设备信息确定存储所述目标监控录像的目标监控设备。
第二方面,本申请实施例还提供了一种监控录像的断点续传装置,应用于客户端,所述装置包括:
下载指令获得模块,用于获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;
断点标识判断模块,用于判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
下载断点时刻确定模块,用于根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
下载断点时刻发送模块,用于发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
录像码流接收模块,用于接收并保存所述录像码流。
可选的,所述断点标识判断模块包括:
已下载查找单元,用于根据所述开始时刻和所述结束时刻,查找与所述目标监控录像对应的当前已下载的部分监控录像。
可选的,所述下载断点时刻确定模块包括:
图像确定单元,用于当所述目标监控录像为标准码流时,确定所查找到的部分监控录像中的最后一幅I帧图像;
第一下载断点时刻确定单元,用于将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
可选的,所述下载断点时刻确定模块包括:
时长确定单元,用于当所述目标监控录像为非标准码流时,确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
第二下载断点时刻确定单元,用于将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
可选的,所述装置还包括:
文件拼接模块,用于在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
可选的,所述文件拼接模块包括:
第一图像确定单元,用于当所述目标监控录像为标准码流时,确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
第二图像确定单元,用于从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的的最后一幅I帧图像的图像数据相同的I帧图像;
第一文件拼接单元,用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
可选的,所述文件拼接模块包括:
第一转化单元,用于当所述目标监控录像为非标准码流时,将所述所查
找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
第二转化单元,用于将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
数据确定单元,用于从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
第一文件拼接单元,用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
可选的,所述装置还包括:
下载中断次数判断模块,用于在根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像之前,根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
可选的,所述下载指令还携带设备信息,
相应的,所述装置还包括:
目标监控设备确定模块,用于在发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备之前,根据所述设备信息确定存储所述目标监控录像的目标监控设备。
第三方面,本申请实施例还提供了一种电子设备,适用于监控录像的断点续传,所述电子设备包括:
壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始
时刻和结束时刻;
判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述电子设备;
接收并保存所述录像码流。
第四方面,本申请实施例还提供了一种应用程序,所述应用程序用于在运行时执行上述监控录像的断点续传方法。
第五方面,本申请实施例还提供了一种存储介质,其特征在于,用于存储应用程序,所述应用程序在运行时用于执行上述监控录像的断点续传方法。
本方案中,客户端首先获得下载指令,判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,并根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻,然后发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至客户端,最后接收并保存所述录像码流。采用本方案可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例所提供的一种监控录像的断点续传方法的流程图;
图2为本申请实施例所提供的标准码流的录像文件对应的一种文件拼接方式的示意图;
图3为本申请实施例所提供的非标准码流的录像文件对应的一种文件拼接方式的示意图;
图4为本申请实施例所提供的一种监控录像的断点续传装置的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了使监控录像下载中断后再次下载时无需重新开始下载,以节省下载时间和流量,本申请实施例提供了一种监控录像的断点续传方法及装置。
下面首先对本申请实施例所提供的一种监控录像的断点续传方法进行介绍。
如图1所示,一种监控录像的断点续传方法,应用于客户端,包括以下步骤:
S101,获得下载指令;
本申请实施例所提供的方法应用于客户端,该客户端可以与监控设备建立有线或无线连接,进而进行数据的传输。其中,无线连接可以为WIFI连接或蜂窝移动网络(制式可以为3G、4G等)等连接方式。
客户端可以获得用户的下载指令,也可以在满足预先设定的下载规则时获得下载指令,当然,客户端也可以通过其他现有方式获取下载指令,在此不做具体限定,其中,该下载指令一般携带待下载的目标监控录像的开始时刻和结束时刻。
举例而言,用户在客户端输入待下载的目标监控录像的开始时刻为2016
年9月15日10点10分,结束时刻为2016年9月15日14点30分,那么客户端便可以获得携带开始时刻为2016年9月15日10点10分,结束时刻为2016年9月15日14点30分的下载指令。客户端也可以在满足预先设定的下载规则时获得下载指令,例如,预先设定规则可以为:每天中午12点下载当天8点到10点的监控录像,那么客户端在每天中午12点便可以获得携带开始时刻为当天8点,结束时刻为当天10点的下载指令。
S102,判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像;
客户端获得了上述下载指令后,为了判断待下载的目标监控录像是否为下载中断录像,可以判断是否存在与该下载指令所携带的开始时刻和结束时刻对应的断点标识。
需要说明的是,该断点标识为监控录像下载过程中发生异常结束时所记录的,也就是说,在监控录像下载过程中,如果发生了人为或者网络等原因引起的下载中断时,客户端便可以记录下该断点标识。进而,如果客户端判断出存在与该下载指令所携带的开始时刻和结束时刻对应的断点标识,便说明该待下载的目标监控录像曾经在下载过程中中断过,也就是该待下载的目标监控录像为下载中断录像。
如果客户端判断出不存在与该下载指令所携带的开始时刻和结束时刻对应的断点标识,说明该待下载的目标监控录像不是下载中断录像。可以理解的是,如果该待下载的目标监控录像不是下载中断录像,那么客户端便可以从下载指令所携带的开始时刻开始下载该待下载的目标监控录像。
当客户端判断出存在与该下载指令所携带的开始时刻和结束时刻对应的断点标识时,可以进一步根据该开始时刻,查找目标监控录像对应的当前已下载的部分监控录像。由于一个用户一般不会下载时间段相同的监控录像,也就是说目标监控录像的开始时刻一般是不同的,所以客户端在下载一段监控录像时,可以记录与该段监控录像的开始时刻对应的不重复的标识信息,例如默认文件名等,由于该标识信息是唯一的,且与已下载的监控录像一一对应,所以便可以通过查找与上述开始时刻对应的标识信息,来查找上述目
标监控录像对应的当前已下载的部分监控录像。
在本申请的一个实施例中,为了进一步保证可以查找到准确的上述目标监控录像对应的当前已下载的部分监控录像,查找该已下载的部分监控录像的方式可以为:
根据所述开始时刻和所述结束时刻,查找与所述目标监控录像对应的当前已下载的部分监控录像。
由于在一些情况下,客户端的用户可能为多个,多个用户可能下载过开始时刻相同的监控录像,如果这些开始时刻相同的监控录像在下载过程中中断过,那么客户端在根据该开始时刻,查找目标监控录像对应的当前已下载的部分监控录像时,可能会查找到多个当前已下载的部分监控录像,而这些查找的当前已下载的部分监控录像的断点时刻,可能并不在目标监控录像的开始时刻和结束时刻之间。
鉴于此,客户端在下载一段监控录像时,可以记录与该段监控录像的开始时刻和结束时刻对应的标识信息,例如默认文件名等,这样便可以保证所查找的部分监控录像的断点时刻是在目标监控录像的开始时刻和结束时刻之间的,以保证查找的准确性,避免影响后续步骤的进行。当然,客户端也可以在记录上述断点标识时,将该断点标识与该当前已下载的部分监控录像进行关联,这样在确定了该断点标识后便可以查找到该当前已下载的部分监控录像,这都是合理的。
需要说明的是,为了避免在某些情况下重复下载同一段监控录像,当该待下载的目标监控录像不是下载中断录像时,客户端可以进一步检测是否已经存在与该下载指令所携带的开始时刻和结束时刻对应的监控录像,如果存在,便不再进行重复下载。
举例而言,客户端可以通过查找与该开始时刻和结束时刻对应的默认文件来确定是否已经存在与该下载指令所携带的开始时刻和结束时刻对应的监控录像。也可以通过记录完整下载标识的方式来确定是否已经存在与该下载指令所携带的开始时刻和结束时刻对应的监控录像,也就是说,在完整下载一个下载指令所对应的待下载的目标监控录像时,客户端可以记录一个与该
目标监控录像对应的完整下载标识,那么当客户端检测到该完整下载标识时,说明目标监控录像已经完整下载,便不需要再重新下载,进一步节省下载时间和流量。
S103,根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
查找到该部分监控录像后,客户端便可以根据所查找到的部分监控录像,确定上述目标监控录像的下载断点时刻。
当上述目标监控录像为标准码流时,确定该目标监控录像的下载断点时刻的方式可以包括:
确定所查找到的部分监控录像中的最后一幅I帧图像;
将所述最后一幅I图像帧对应的时间戳确定为下载断点时刻,或,将所述最后I帧对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
上述标准码流的类型主要包括h.264、h.265、MPEG-4等,如果目标监控录像为标准码流,那么客户端便可以确定所查找到的部分监控录像中的最后一幅I帧图像,可以理解的是,该最后一幅I帧图像即为该部分监控录像中,最接近尾部的一幅I帧图像。需要说明的是,确定该部分监控录像中的最后一幅I帧图像的方式为本领域常用的图像处理方法,本领域技术人员可以根据该部分监控录像的码流类型等因素进行具体操作,在此不做详细说明。
确定了上述最后一幅I帧图像后,客户端可以将该最后一幅I帧图像对应的时间戳确定为下载断点时刻。例如,该最后一幅I帧图像对应的时间戳所代表的时刻为2016年9月15日9点20分5秒10毫秒,那么客户端便可以将2016年9月15日9点20分5秒10毫秒确定为下载断点时刻。
为了避免数据丢失,确保最终所下载的目标监控录像的完整性,客户端还可以将上述最后一幅I帧图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻,其中,该第一预设时长可以由本领域技术人员根据上述目标监控录像的码流类型及部分监控录像的时长等因素进行确定,在此不作具体限定,例如可以为3秒、5秒等。
当上述目标监控录像为非标准码流时,确定该目标监控录像的下载断点时刻的方式可以包括:
确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
查找到上述部分监控录像后,客户端便可以采用现有任意方式确定该部分监控录像的视频时长,进而将上述开始时刻与该视频时长进行加法计算,将加法计算所得的时刻确定为下载断点时刻。例如,该部分监控录像的视频时长为50分钟,该开始时刻为2016年9月15日10点10分,那么下载断点时刻即为2016年9月15日11点。
为了避免数据丢失,确保最终所下载的目标监控录像的完整性,还可以将将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻,其中,该第二预设时长可以由本领域技术人员根据部分监控录像的时长等因素进行确定,在此不作具体限定,例如可以为3秒、5秒等。
S104,发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
客户端确定了上述下载断点时刻后,便可以将该下载断点时刻及上述结束时刻发送至存储上述目标监控录像的目标监控设备,这样,该目标监控设备便可以接收该下载断点时刻及该结束时刻,进而将该目标监控录像的从该下载断点时刻到该结束时刻的录像码流发送至客户端,实现目标监控录像的断点续传,而不是重新将从上述开始时刻到该结束时刻的录像码流发送至客户端,节省了大量下载时间和流量。
S105,接收并保存所述录像码流。
客户端接收到上述目标监控设备发送的录像码流后,将该录像码流进行保存,进而完成对目标监控录像的下载。
可见,本申请实施例所提供的方案中,客户端首先获得下载指令,判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,并根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻,然后发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至客户端,最后接收并保存所述录像码流。采用本方案可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
作为本申请实施例的一种实施方式,为了保证最终下载的目标监控录像的完整性及准确性,避免出现数据丢失和冗余,在本次断点续传结束后,客户端可以将所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
当上述目标监控录像为标准码流时,将所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的方式具体可以包括:
确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
如图2所示,客户端可以确定所查找到的部分监控录像210的最后一幅I帧图像的图像数据230。然后客户端可以从本次断点续传所下载的录像文件220的开始第三预设时长的图像帧数据240中,确定与上述所查找到的部分监控录像210的最后一幅I帧图像的图像数据230相同的图像数据(图中以相同图像数据表示),进而确定本次断点续传所下载的录像文件220中与该相同的图像数
据对应的I帧图像。
需要说明的是,该第三预设时长可以由本领域技术人员根据所查找到的部分监控录像210和本次断点续传所下载的录像文件220的时长、码流类型等因素确定,在此不做具体限定,例如可以为5秒或者6秒等。
进一步需要说明的是,上述最后一幅I帧图像的图像数据230的确定方式,以及从本次断点续传所下载的录像文件220中确定与该最后一幅I帧图像的图像数据230相同的图像数据对应的I帧图像的方式均为本领域采用的图像处理方式,本领域技术人员可以根据所查找到的部分监控录像210和本次断点续传所下载的录像文件220的码流类型等因素进行操作,在此不做具体说明。
确定了上述最后一幅I帧图像的图像数据230以及本次断点续传所下载的录像文件220中与该最后一幅I帧图像的图像数据230相同的图像数据对应的I帧图像后,客户端便可以将本次断点续传所下载的录像文件220与所查找到的部分监控录像210在该相同的I帧图像的位置250进行拼接,得到拼接后的部分监控录像260。
当上述目标监控录像为非标准码流时,将所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的方式具体可以包括:
将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
如图3所示,客户端可以将所查找到的部分监控录像310的最后第四预设时长的图像数据转化为二进制数据330。然后客户端可以将本次断点续传所下载的录像文件320的开始第五预设时长的图像数据转化为二进制数据340。
需要说明的是,该第四预设时长及第五预设时长可以由本领域技术人员根据所查找到的部分监控录像310和本次断点续传所下载的录像文件320的时长等因素确定,在此不做具体限定,例如,该第四预设时长可以为2秒等,该第五预设时长则可以为5秒或者6秒等。
进一步需要说明的是,上述将图像数据转化为二进制数据的方式为本领域采用的数据处理方式,本领域技术人员可以根据所查找到的部分监控录像310和本次断点续传所下载的录像文件320的图像数据等因素进行操作,在此不做具体说明。
确定了上述第五预设时长的数据转化的二进制数据340及上述第四预设时长的数据转化的二进制数据330后,客户端便可以从该第五预设时长的数据340转化的二进制数据中,确定与该第四预设时长的数据转化的二进制数据330相同的二进制数据(图中以相同二进制数据表示),将本次断点续传所下载的录像文件320和所查找到的部分监控录像310在相同的二进制数据的位置350进行拼接,得到拼接后的部分监控录像360。
通过上述文件拼接方式可以将断点续传所下载的多个录像文件拼接为一个录像文件,避免数据丢失和冗余。同时,如果本次断点续传时再次发生异常结束,那么在下一次断点续传该监控录像时,可以根据拼接后的已下载的部分监控录像更加精确地确定断点时刻。
作为本申请实施例的一种实施方式,在根据上述开始时刻,查找目标监控录像对应的当前已下载的部分监控录像的步骤之前,所述方法还可以包括:
根据所述断点标识,判断下载中断次数是否超过预设次数;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
为了方便记录监控录像的下载中断次数,客户端在记录上述断点标识时,可以将该断点标识与下载中断次数对应,这样便可以通过该断点标识确定下载中断次数,进而判断下载中断次数是否超过预设次数。需要说明的是,该预设次数可以由本领域技术人员根据网络状况等因素确定,例如可以为10次等,在此不做具体限定。
当判断出下载中断次数超过预设次数时,说明下载中断次数很多,下载中断比较频繁,那么很可能是由于网络状况不良引起的下载中断,所以此时客户端可以暂时停止断点续传,避免由于频繁尝试连接目标监控设备进行断点续传而造成的下载时间和流量浪费。
当判断出下载中断次数没有超过预设次数时,说明下载中断次数较少,由于网络状况不良引起的下载中断的可能性较小,那么客户端便可以继续执行根据上述开始时刻,查找目标监控录像对应的当前已下载的部分监控录像的步骤,进行断点续传。
作为本申请实施例的一种实施方式,由于监控设备可能为多台,为了方便确定目标监控设备,上述下载指令还可以携带设备信息。
相应的,在客户端发送上述下载断点时刻、结束时刻至存储上述目标监控录像的目标监控设备的步骤之前,所述方法还可以包括:
根据上述设备信息确定存储上述目标监控录像的目标监控设备。
客户端根据该设备信息确定了目标监控设备后,便可以与该目标监控设备建立连接,并将上述下载断点时刻、结束时刻发送至该目标监控设备。该设备信息一般包括目标监控设备对应的IP地址、端口信息、用户名及密码信息等。
相应于上述方法实施例,本申请实施例还提供了一种监控录像的断点续传装置,下面对本申请实施例所提供的一种监控录像的断点续传装置进行介绍。
如图4所示,一种监控录像的断点续传装置,应用于客户端,所述装置包括:
下载指令获得模块410,用于获得下载指令;
其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻。
断点标识判断模块420,用于判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的
当前已下载的部分监控录像;
其中,所述断点标识为:监控录像下载过程中异常结束时所记录的。
下载断点时刻确定模块430,用于根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
下载断点时刻发送模块440,用于发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
录像码流接收模块450,用于接收并保存所述录像码流。
可见,本申请实施例所提供的方案中,客户端首先获得下载指令,判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,并根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻,然后发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至客户端,最后接收并保存所述录像码流。采用本方案可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
作为本申请实施例的一种实施方式,所述断点标识判断模块420可以包括:
已下载查找单元(图中未示出),用于根据所述开始时刻和所述结束时刻,查找与所述目标监控录像对应的当前已下载的部分监控录像。
作为本申请实施例的一种实施方式,所述下载断点时刻确定模块430可以包括:
图像确定单元(图中未示出),用于当所述目标监控录像为标准码流时,确定所查找到的部分监控录像中的最后一幅I帧图像;
第一下载断点时刻确定单元(图中未示出),用于将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
作为本申请实施例的一种实施方式,所述下载断点时刻确定模块430可以包括:
时长确定单元(图中未示出),用于当所述目标监控录像为非标准码流时,确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
第二下载断点时刻确定单元(图中未示出),用于将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
作为本申请实施例的一种实施方式,所述装置还可以包括:
文件拼接模块(图中未示出),用于在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
作为本申请实施例的一种实施方式,所述文件拼接模块可以包括:
第一图像确定单元(图中未示出),用于当所述目标监控录像为标准码流时,确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
第二图像确定单元(图中未示出),用于从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的的最后一幅I帧图像的图像数据相同的I帧图像;
第一文件拼接单元(图中未示出),用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
作为本申请实施例的一种实施方式,所述文件拼接模块可以包括:
第一转化单元(图中未示出),用于当所述目标监控录像为非标准码流时,将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
第二转化单元(图中未示出),用于将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
数据确定单元(图中未示出),用于从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
第一文件拼接单元(图中未示出),用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
作为本申请实施例的一种实施方式,所述装置还包括:
下载中断次数判断模块(图中未示出),可以用于根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像之前,根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
作为本申请实施例的一种实施方式,所述下载指令还可以携带设备信息,
相应的,所述装置还可以包括:
目标监控设备确定模块(图中未示出),用于在发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备之前,根据所述设备信息确定存储所述目标监控录像的目标监控设备。
另外,根据本申请的实施例,还提供了一种电子设备,适用于监控录像的断点续传,所述电子设备包括:
壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,
以用于执行以下步骤:
获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;
判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述电子设备;
接收并保存所述录像码流。
在本实施例中,该电子设备可以以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、***总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
可以看出,本实施例中,电子设备可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,所执行的所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤,可以包括:
根据所述开始时刻和所述结束时刻,查找所述目标监控录像对应的当前已下载的部分监控录像。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,当所述目标监控录像为标准码流时,所执行的所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像中的最后一幅I帧图像;
将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,当所述目标监控录像为非标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,所执行的方法还可以包括:
在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,当所述目标监控录像为标准码流时,所执行的所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,可以包括:
确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,当所述目标监控录像为非标准码流时,所执行的所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,可以包括:
将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
在本申请的一种实现方式中,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,所执行的所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤之
前,所述方法还可以包括:
根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
在本申请的一种实现方式中,所述下载指令还可以携带设备信息,
相应的,上述处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,所执行的所述发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备的步骤之前,所述方法还可以包括:
根据所述设备信息确定存储所述目标监控录像的目标监控设备。
对于电子设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本申请还提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的监控录像断点续传方法。其中,监控录像断点续传方法包括:
获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;
判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
接收并保存所述录像码流。
可以看出,通过本申请实施例提供的应用程序的运行,可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
在本申请的一种实现方式中,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤,可以包括:
根据所述开始时刻和所述结束时刻,查找所述目标监控录像对应的当前已下载的部分监控录像。
在本申请的一种实现方式中,当所述目标监控录像为标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像中的最后一幅I帧图像;
将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,当所述目标监控录像为非标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,所述方法还包括:
在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
在本申请的一种实现方式中,当所述目标监控录像为标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件
拼接的步骤,可以包括:
确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
在本申请的一种实现方式中,当所述目标监控录像为非标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,可以包括:
将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
在本申请的一种实现方式中,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤之前,所述方法还可以包括:
根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
在本申请的一种实现方式中,所述下载指令还可以携带设备信息,
相应的,所述发送所述下载断点时刻、所述结束时刻至存储所述目标监
控录像的目标监控设备的步骤之前,所述方法还可以包括:
根据所述设备信息确定存储所述目标监控录像的目标监控设备。
对于应用程序实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
另外,根据本申请的实施例,还提供了一种存储介质,该存储介质用于存储应用程序,该应用程序用于在运行时执行本申请实施例提供的监控录像断点续传方法。其中,监控录像断点续传方法包括:
获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;
判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;
根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;
发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;
接收并保存所述录像码流。
可以看出,通过本申请实施例提供的应用程序的运行,可以在目标监控录像下载中断后再次下载时,从下载断点时刻进行断点续传,不需要重新从目标监控录像的开始时刻进行下载,可以节省大量的下载时间和流量。
在本申请的一种实现方式中,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤,可以包括:
根据所述开始时刻和所述结束时刻,查找所述目标监控录像对应的当前已下载的部分监控录像。
在本申请的一种实现方式中,当所述目标监控录像为标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像中的最后一幅I帧图像;
将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,当所述目标监控录像为非标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,可以包括:
确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;
将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
在本申请的一种实现方式中,所述方法还可以包括:
在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
在本申请的一种实现方式中,当所述目标监控录像为标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,可以包括:
确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;
从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
在本申请的一种实现方式中,当所述目标监控录像为非标准码流时,所
述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,可以包括:
将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;
将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;
从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;
将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
在本申请的一种实现方式中,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤之前,所述方法还可以包括:
根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;
如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
在本申请的一种实现方式中,所述下载指令还可以携带设备信息,
相应的,所述发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备的步骤之前,所述方法还可以包括:
根据所述设备信息确定存储所述目标监控录像的目标监控设备。
对于存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、
“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。
Claims (21)
- 一种监控录像的断点续传方法,其特征在于,应用于客户端,所述方法包括:获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;接收并保存所述录像码流。
- 如权利要求1所述的方法,其特征在于,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤,包括:根据所述开始时刻和所述结束时刻,查找所述目标监控录像对应的当前已下载的部分监控录像。
- 如权利要求1所述的方法,其特征在于,当所述目标监控录像为标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,包括:确定所查找到的部分监控录像中的最后一幅I帧图像;将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
- 如权利要求1所述的方法,其特征在于,当所述目标监控录像为非标准码流时,所述根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻的步骤,包括:确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
- 如权利要求1所述的方法,其特征在于,所述方法还包括:在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
- 如权利要求5所述的方法,其特征在于,当所述目标监控录像为标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,包括:确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的最后一幅I帧图像的图像数据相同的I帧图像;将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
- 如权利要求5所述的方法,其特征在于,当所述目标监控录像为非标准码流时,所述将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接的步骤,包括:将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像 在所述相同的二进制数据的位置进行拼接。
- 如权利要求1-7任一项所述的方法,其特征在于,所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤之前,所述方法还包括:根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
- 如权利要求8所述的方法,其特征在于,所述下载指令还携带设备信息,相应的,所述发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备的步骤之前,所述方法还包括:根据所述设备信息确定存储所述目标监控录像的目标监控设备。
- 一种监控录像的断点续传装置,其特征在于,应用于客户端,所述装置包括:下载指令获得模块,用于获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;断点标识判断模块,用于判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;下载断点时刻确定模块,用于根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;下载断点时刻发送模块,用于发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述客户端;录像码流接收模块,用于接收并保存所述录像码流。
- 如权利要求10所述的装置,其特征在于,所述断点标识判断模块包括:已下载查找单元,用于根据所述开始时刻和所述结束时刻,查找与所述目标监控录像对应的当前已下载的部分监控录像。
- 如权利要求10所述的装置,其特征在于,所述下载断点时刻确定模块包括:图像确定单元,用于当所述目标监控录像为标准码流时,确定所查找到的部分监控录像中的最后一幅I帧图像;第一下载断点时刻确定单元,用于将所述最后一幅I图像对应的时间戳确定为下载断点时刻,或,将所述最后一幅I图像对应的时间戳之前第一预设时长的时刻确定为下载断点时刻。
- 如权利要求10所述的装置,其特征在于,所述下载断点时刻确定模块包括:时长确定单元,用于当所述目标监控录像为非标准码流时,确定所查找到的部分监控录像的视频时长,将所述开始时刻与所述视频时长进行加法计算;第二下载断点时刻确定单元,用于将加法计算所得的时刻确定为下载断点时刻,或,将加法计算所得的时刻之前第二预设时长的时刻确定为下载断点时刻。
- 如权利要求10所述的装置,其特征在于,所述装置还包括:文件拼接模块,用于在本次断点续传结束后,将所述所查找到的部分监控录像与本次断点续传所下载的录像文件进行文件拼接。
- 如权利要求14所述的装置,其特征在于,所述文件拼接模块包括:第一图像确定单元,用于当所述目标监控录像为标准码流时,确定所述所查找到的部分监控录像的最后一幅I帧图像的图像数据;第二图像确定单元,用于从所述本次断点续传所下载的录像文件的开始第三预设时长的图像帧中,确定与所述所查找到的部分监控录像的的最后一幅I帧图像的图像数据相同的I帧图像;第一文件拼接单元,用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的I帧图像的位置进行拼接。
- 如权利要求14所述的装置,其特征在于,所述文件拼接模块包括:第一转化单元,用于当所述目标监控录像为非标准码流时,将所述所查找到的部分监控录像的最后第四预设时长的图像数据转化为二进制数据;第二转化单元,用于将所述本次断点续传所下载的录像文件的开始第五预设时长的图像数据转化为二进制数据;数据确定单元,用于从所述第五预设时长的数据转化的二进制数据中,确定与所述第四预设时长的数据转化的二进制数据相同的二进制数据;第一文件拼接单元,用于将所述本次断点续传所下载的录像文件与所述所查找到的部分监控录像在所述相同的二进制数据的位置进行拼接。
- 如权利要求10所述的装置,其特征在于,所述装置还包括:下载中断次数判断模块,用于在根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像之前,根据所述断点标识,判断下载中断次数是否超过预设次数,其中,所述断点标识与所述下载中断次数对应;如果否,继续执行所述根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像的步骤。
- 如权利要求10-17任一项所述的装置,其特征在于,所述下载指令还携带设备信息,相应的,所述装置还包括:目标监控设备确定模块,用于在发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备之前,根据所述设备信息确定存储所述目标监控录像的目标监控设备。
- 一种电子设备,其特征在于,适用于监控录像的断点续传,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:获得下载指令,其中,所述下载指令携带待下载的目标监控录像的开始时刻和结束时刻;判断是否存在与所述开始时刻和结束时刻对应的断点标识,如果是,根据所述开始时刻,查找所述目标监控录像对应的当前已下载的部分监控录像,其中,所述断点标识为:监控录像下载过程中异常结束时所记录的;根据所查找到的部分监控录像,确定所述目标监控录像的下载断点时刻;发送所述下载断点时刻、所述结束时刻至存储所述目标监控录像的目标监控设备,以使所述目标监控设备将所述目标监控录像的从所述下载断点时刻到所述结束时刻的录像码流发送至所述电子设备;接收并保存所述录像码流。
- 一种应用程序,其特征在于,所述应用程序用于在运行时执行权利要求1-9任一项所述的监控录像的断点续传方法。
- 一种存储介质,其特征在于,用于存储应用程序,所述应用程序在运行时用于执行权利要求1-9任一项所述的监控录像的断点续传方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610931170.0 | 2016-10-31 | ||
CN201610931170.0A CN108023906B (zh) | 2016-10-31 | 2016-10-31 | 监控录像的断点续传方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018077266A1 true WO2018077266A1 (zh) | 2018-05-03 |
Family
ID=62023118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/108359 WO2018077266A1 (zh) | 2016-10-31 | 2017-10-30 | 监控录像的断点续传方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108023906B (zh) |
WO (1) | WO2018077266A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740062A (zh) * | 2019-10-24 | 2020-01-31 | 泰康保险集团股份有限公司 | 断点续传方法和装置 |
CN111600945A (zh) * | 2020-05-13 | 2020-08-28 | 上海英方软件股份有限公司 | 一种基于块传输的ftp服务器断点下载方法及装置 |
CN112203050A (zh) * | 2020-09-30 | 2021-01-08 | 普联技术有限公司 | 一种视频续传的方法及装置 |
CN116634209A (zh) * | 2023-07-24 | 2023-08-22 | 武汉能钠智能装备技术股份有限公司 | 一种基于热插拔的断点视频恢复***及方法 |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110620889B (zh) * | 2018-06-20 | 2022-04-05 | 杭州海康威视数字技术股份有限公司 | 视频监控***、网络硬盘录像机及数据传送方法 |
CN109617971A (zh) * | 2018-12-14 | 2019-04-12 | 浩云科技股份有限公司 | 一种下载断点续传的方法及装置 |
CN109756708B (zh) * | 2018-12-28 | 2021-05-14 | 深圳英飞拓智能技术有限公司 | 音视频数据的续传方法及装置 |
CN109729319A (zh) * | 2019-01-21 | 2019-05-07 | 山东劳动职业技术学院(山东劳动技师学院) | 一种监控设备的录像文件断网续传的实现方法 |
CN109862398A (zh) * | 2019-03-29 | 2019-06-07 | 北京奇艺世纪科技有限公司 | 多媒体数据传输方法、装置及*** |
CN111478751B (zh) * | 2020-03-30 | 2023-03-24 | 百富计算机技术(深圳)有限公司 | 一种数据断点续传方法、装置及终端设备 |
CN111698466B (zh) * | 2020-05-07 | 2022-03-01 | 浙江大华技术股份有限公司 | 监控录像断点下载的方法、装置、设备和介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007114054A (ja) * | 2005-10-20 | 2007-05-10 | Funai Electric Co Ltd | 映像記録再生装置および電気機器 |
CN102104623A (zh) * | 2010-12-20 | 2011-06-22 | 广州市动景计算机科技有限公司 | 通过移动终端进行媒体文件断点续播的方法和*** |
CN103065662A (zh) * | 2013-01-22 | 2013-04-24 | 中兴通讯股份有限公司 | 一种媒体资源在设备中续播的方法及*** |
CN105338297A (zh) * | 2014-08-11 | 2016-02-17 | 杭州海康威视***技术有限公司 | 一种视频数据存储及回放***、装置和方法 |
CN105530547A (zh) * | 2014-09-30 | 2016-04-27 | 中兴通讯股份有限公司 | 一种网络电视点播内容的书签显示方法、装置及机顶盒 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179393A (zh) * | 2006-12-14 | 2008-05-14 | 腾讯科技(深圳)有限公司 | 一种实现文件断点续传的方法及*** |
CN101546321B (zh) * | 2008-03-28 | 2013-11-13 | 爱国者电子科技有限公司 | 一种移动存储设备的断点续传的方法 |
CN101459693A (zh) * | 2008-12-29 | 2009-06-17 | 中兴通讯股份有限公司 | 一种流媒体下载方法及*** |
CN102811344A (zh) * | 2011-12-08 | 2012-12-05 | 苏州科达科技有限公司 | 一种视频监控***中提高存储稳定性的控制方法以及装置 |
-
2016
- 2016-10-31 CN CN201610931170.0A patent/CN108023906B/zh active Active
-
2017
- 2017-10-30 WO PCT/CN2017/108359 patent/WO2018077266A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007114054A (ja) * | 2005-10-20 | 2007-05-10 | Funai Electric Co Ltd | 映像記録再生装置および電気機器 |
CN102104623A (zh) * | 2010-12-20 | 2011-06-22 | 广州市动景计算机科技有限公司 | 通过移动终端进行媒体文件断点续播的方法和*** |
CN103065662A (zh) * | 2013-01-22 | 2013-04-24 | 中兴通讯股份有限公司 | 一种媒体资源在设备中续播的方法及*** |
CN105338297A (zh) * | 2014-08-11 | 2016-02-17 | 杭州海康威视***技术有限公司 | 一种视频数据存储及回放***、装置和方法 |
CN105530547A (zh) * | 2014-09-30 | 2016-04-27 | 中兴通讯股份有限公司 | 一种网络电视点播内容的书签显示方法、装置及机顶盒 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740062A (zh) * | 2019-10-24 | 2020-01-31 | 泰康保险集团股份有限公司 | 断点续传方法和装置 |
CN111600945A (zh) * | 2020-05-13 | 2020-08-28 | 上海英方软件股份有限公司 | 一种基于块传输的ftp服务器断点下载方法及装置 |
CN112203050A (zh) * | 2020-09-30 | 2021-01-08 | 普联技术有限公司 | 一种视频续传的方法及装置 |
CN112203050B (zh) * | 2020-09-30 | 2022-09-06 | 普联技术有限公司 | 一种视频续传的方法及装置 |
CN116634209A (zh) * | 2023-07-24 | 2023-08-22 | 武汉能钠智能装备技术股份有限公司 | 一种基于热插拔的断点视频恢复***及方法 |
CN116634209B (zh) * | 2023-07-24 | 2023-11-17 | 武汉能钠智能装备技术股份有限公司 | 一种基于热插拔的断点视频恢复***及方法 |
Also Published As
Publication number | Publication date |
---|---|
CN108023906B (zh) | 2020-06-12 |
CN108023906A (zh) | 2018-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018077266A1 (zh) | 监控录像的断点续传方法及装置 | |
US10484806B2 (en) | Managing audio output through an intermediary | |
US10943272B2 (en) | Smart broadcasting device | |
JP6490654B2 (ja) | 生放送でタイムマシン機能を提供する方法およびシステム | |
CN106791958B (zh) | 位置标记信息生成方法及装置 | |
US9100460B2 (en) | Media stream fragment request | |
WO2017201935A1 (zh) | 视频播放方法及装置 | |
US20120224825A1 (en) | Selectively using local non-volatile storage in conjunction with transmission of content | |
EP2748788A2 (en) | Method for transferring media playback from a different device | |
TW201215109A (en) | Monitoring user activity on a mobile device | |
WO2018205833A1 (zh) | 音乐文件信息的传输方法及装置、存储介质以及电子装置 | |
WO2017202060A1 (zh) | 一种视频播放方法及装置 | |
CN110662017B (zh) | 一种视频播放质量检测方法和装置 | |
WO2017063283A1 (zh) | 智能车载终端触发***和方法 | |
CN107146608B (zh) | 一种播放控制方法、装置及智能设备 | |
US7877525B1 (en) | Resuming media objects delivered via progressive downloading services upon data loss events | |
JP2010278860A (ja) | 映像記録装置および外部端末 | |
CN102622254B (zh) | 电视机宕机处理方法和*** | |
CN104050236A (zh) | 网站内容更新提示方法、服务器和客户端 | |
CN112118487B (zh) | 一种视频播放控制方法、装置、设备、及介质 | |
WO2015089790A1 (zh) | 业务处理方法、装置和*** | |
CN116939283A (zh) | 设备控制方法、装置、电子设备及存储介质 | |
WO2022218425A1 (zh) | 一种录音推流方法、装置、设备及介质 | |
TW200920125A (en) | Method of recovering missed parts of mobile TV broadcasts | |
CN112637668B (zh) | 一种视频播放方法、装置、设备及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17866056 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17866056 Country of ref document: EP Kind code of ref document: A1 |