CN110099236B - Video data storage method, video data request method, video data storage device and video data request device - Google Patents

Video data storage method, video data request method, video data storage device and video data request device Download PDF

Info

Publication number
CN110099236B
CN110099236B CN201810091853.9A CN201810091853A CN110099236B CN 110099236 B CN110099236 B CN 110099236B CN 201810091853 A CN201810091853 A CN 201810091853A CN 110099236 B CN110099236 B CN 110099236B
Authority
CN
China
Prior art keywords
time
video data
requested
storage
utc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810091853.9A
Other languages
Chinese (zh)
Other versions
CN110099236A (en
Inventor
潘习文
李海燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201810091853.9A priority Critical patent/CN110099236B/en
Priority to PCT/CN2019/071212 priority patent/WO2019149045A1/en
Publication of CN110099236A publication Critical patent/CN110099236A/en
Application granted granted Critical
Publication of CN110099236B publication Critical patent/CN110099236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N5/9201Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving the multiplexing of an additional signal and the video signal
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a video data storage method, a video data request method, a video data storage device and a video data request device, wherein the video data storage method comprises the following steps: acquiring a preset storage starting moment corresponding to the camera equipment to be requested; judging whether a preset storage starting time is located in the daylight saving time period of the area where the camera equipment to be requested is located, if not, sending a video data storage request to the camera equipment to be requested when the storage starting time is determined to be reached; if the device is positioned in the summer time period, calculating the summer time request time corresponding to the preset storage starting time, and sending a video data storage request to the camera equipment to be requested when the summer time request time is determined to be reached; and receiving and storing the video data uploaded by the camera equipment to be requested. The embodiment of the invention can ensure that the video data stored by the video cloud storage server is consistent with the video data of the time period which is actually required to be acquired.

Description

Video data storage method, video data request method, video data storage device and video data request device
Technical Field
The invention relates to the technical field of video cloud storage, in particular to a video data storage method, a video data request method, a video data storage device and a video data request device.
Background
The video cloud storage technology is a technology for providing video cloud storage and query, and is increasingly widely applied to the security monitoring industry. The video cloud storage system generally comprises a video cloud storage server, a camera device and a client, wherein the video cloud storage server can receive and store videos shot by the camera device through a network, and the client can also acquire videos stored by the video cloud storage server through the network.
Summer time is a system for artificially defining local time for saving energy. When the local time of a country or region enters a certain time, the local time is artificially adjusted faster by 1 hour, for example, when the local time enters 2: when 00, adjust local time as fast as 3: 00; when the local time after the adjustment reaches a certain future time, the original local time is adjusted back, for example, when the local time after the adjustment reaches 2: at 00, the local time is again adjusted back to 1: 00, 2 of the first sunday of april of the year: 00 to 2 on the last sunday of october of the year: this period of 00 is the daylight saving time period.
In the video cloud storage system, a video cloud storage server, a camera device and a client may be located in different regions, because the video cloud storage server determines the Time of a video based on the UTC (Universal Time Coordinated) Time, and the camera device and the client determine the Time of the video based on the local Time of the camera device, when the region where the camera device is located enters daylight savings, the video cloud storage server acquires and stores video data uploaded by the camera device, and the situation that the acquired video data will be inconsistent with the video data in the actually required Time period may occur; when a client queries or downloads videos stored in the video cloud storage server for a certain time period, the queried or downloaded videos may not match the videos in the expected time period.
Disclosure of Invention
The embodiment of the invention aims to provide a video data storage method, a video data request method, a video data storage device and a video data request device, and when an area where a camera device or a client is located enters summer, video data stored by a video cloud storage server is consistent with video data of an actually required acquisition time period. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a video data storage method, including:
acquiring a preset storage starting moment corresponding to the camera equipment to be requested;
judging whether the preset storage starting time is located in the daylight saving time period of the area where the camera equipment to be requested is located, if the preset storage starting time is not located in the daylight saving time period, and when the storage starting time is determined to be reached, sending a video data storage request to the camera equipment to be requested;
if the preset storage starting time is located in the summer time period, calculating the summer time request time corresponding to the preset storage starting time, and sending a video data storage request to the to-be-requested camera equipment when the summer time request time is determined to be reached, wherein the summer time request time is compared with the preset storage starting time, and the summer time offset duration of the area where the to-be-requested camera equipment is located is advanced;
and receiving and storing the video data uploaded by the camera equipment to be requested.
Optionally, the sending a video data storage request to the image pickup apparatus to be requested includes:
and sending a video data storage request carrying storage duration to the camera equipment to be requested, wherein the video data storage request is used for requesting to store the video data of the storage duration.
Optionally, the method further comprises:
acquiring a preset storage finishing moment corresponding to the camera equipment to be requested;
judging whether the preset storage ending time is located in the daylight saving time period of the area where the camera equipment to be requested is located, if the preset storage ending time is not located in the daylight saving time period, and when the preset storage ending time is determined to be reached, sending a video data storage ending request to the camera equipment to be requested;
if the preset storage ending time is located in the daylight saving time period, calculating the daylight saving time ending request time corresponding to the preset storage ending time, and sending a video data ending storage request to the to-be-requested camera equipment when the daylight saving time ending request time is determined to be reached, wherein the daylight saving time ending request time is compared with the preset storage ending time, and the daylight saving time offset duration of the area where the to-be-requested camera equipment is located is advanced.
Optionally, the receiving and storing the video data uploaded by the to-be-requested image capturing apparatus includes:
receiving video data of a current video frame uploaded by a camera device to be requested;
determining a universal coordinated time (UTC) moment corresponding to the current video frame;
and when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the last video frame, storing the video data of the current video frame as the video data of a new first frame in a segmented storage mode, wherein the preset time is the UTC time corresponding to the time when the to-be-requested camera equipment is located in the area entering summer, or the preset time is the UTC time corresponding to the time when the to-be-requested camera equipment is located in the area leaving summer.
Optionally, the method further comprises:
and when the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame do not have the preset time, storing the video data of the current video frame as the video data which belongs to the same segment as the video data of the previous video frame in a segmented storage mode.
Optionally, before the storing the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segment storage manner, the method further includes:
determining whether a storage resource block for storing the video data of the previous video frame is full, if not, executing the step of storing the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segmented storage mode;
and if the current video frame is completely written, storing the video data of the current video frame in a next storage resource block as the video data of a first frame of a new section in a sectional storage mode.
In a second aspect, an embodiment of the present invention provides a video data request method, including:
acquiring the starting time and the ending time of a video to be requested;
respectively determining whether the starting time and the ending time are in the daylight saving time period of the area where the camera equipment to be requested is located;
when the starting time is in the daylight saving time period of the area where the camera equipment to be requested is located, converting the starting time into the starting universal coordinated time UTC time according to a conversion mode corresponding to the daylight saving time; when the ending time is positioned in the daylight saving time period, converting the ending time into an ending UTC time according to a conversion mode corresponding to the daylight saving time;
and sending a video data request carrying the starting UTC time and the ending UTC time.
Optionally, the separately determining whether the start time and the end time are located before a daylight saving time period of an area where the image capturing apparatus to be requested is located further includes:
sending a parameter acquisition request, wherein the parameter acquisition request is used for acquiring daylight saving time parameters of the area where the camera equipment to be requested is located;
receiving the returned daylight saving time parameter of the area where the camera equipment to be requested is located, wherein the daylight saving time parameter represents the daylight saving time starting and ending time of the area where the camera equipment to be requested is located;
the determining whether the start time and the end time are located during daylight saving time of an area where the image pickup apparatus to be requested is located includes:
and respectively determining whether the starting time and the ending time are between the daylight saving time starting and ending time of the region where the image pickup device to be requested is located.
Optionally, the sending the parameter obtaining request includes:
sending a parameter acquisition request carrying an equipment identifier of the camera equipment to be requested;
and/or sending a parameter acquisition request carrying a region identifier of a region where the to-be-requested camera device is located.
Optionally, the sending the video data request carrying the starting UTC time and the ending UTC time includes:
sending a video data query request carrying the starting UTC time and the ending UTC time;
the method further comprises the following steps:
receiving returned segment information of a data segment, wherein the data segment is stored in a segmented storage mode and comprises a segment start UTC time and a segment end UTC time;
converting the segment start UTC time and the segment end UTC time into local time of the region where the camera equipment to be requested is located according to a conversion mode corresponding to daylight saving time to obtain the segment start time and the segment end time;
and displaying the segment starting time and the segment ending time.
Optionally, after obtaining the segment start time and the segment end time, the method further includes:
judging whether the segment starting time and the segment ending time are within a preset time period or not according to the information of each segment after the conversion time, wherein the preset time period is a one-hour time period before the area where the camera equipment to be requested is located leaves daylight saving time;
if the segment starting time and the segment ending time are within the preset time period, adding a daylight saving time label in the segment of information after the conversion time;
and displaying the daylight saving time label.
Optionally, the sending the video data request carrying the starting UTC time and the ending UTC time includes:
sending a video data acquisition request carrying the starting UTC time and the ending UTC time;
the method further comprises the following steps:
and receiving the returned stored video data comprising the period from the starting UTC time to the ending UTC time.
In a third aspect, an embodiment of the present invention provides a video data storage apparatus, including:
the first acquisition module is used for acquiring a preset storage starting moment corresponding to the camera equipment to be requested;
the first sending module is used for judging whether the preset storage starting time is located in the daylight saving time period of the area where the camera equipment to be requested is located, and sending a video data storage request to the camera equipment to be requested when the storage starting time is determined to be reached if the preset storage starting time is not located in the daylight saving time period; if the storage starting time is located in the daylight saving time period, calculating the daylight saving time request time corresponding to the preset storage starting time, and sending a video data storage request to the camera equipment to be requested when the daylight saving time request time is determined to be reached, wherein the daylight saving time offset duration of the area where the camera equipment to be requested is located is advanced compared with the preset storage starting time at the daylight saving time request time;
and the storage module is used for receiving and storing the video data uploaded by the camera equipment to be requested.
Optionally, the first sending module is specifically configured to send a video data storage request carrying a storage duration to the to-be-requested image pickup device, and is configured to request to store the video data of the storage duration.
Optionally, the first obtaining module is further configured to obtain a preset storage end time corresponding to the to-be-requested image capturing apparatus;
the first sending module is further configured to determine whether the preset storage end time is located in a daylight saving time period of an area where the to-be-requested image pickup apparatus is located, and send a video data end storage request to the to-be-requested image pickup apparatus when it is determined that the preset storage end time is reached if the preset storage end time is not located in the daylight saving time period; if the preset storage ending time is located in the daylight saving time period, calculating the daylight saving time ending request time corresponding to the preset storage ending time, and sending a video data ending storage request to the to-be-requested camera equipment when the daylight saving time ending request time is determined to be reached, wherein the daylight saving time ending request time is compared with the preset storage ending time, and the daylight saving time offset duration of the area where the to-be-requested camera equipment is located is advanced.
Optionally, the storage module includes:
the receiving submodule is used for receiving the video data of the current video frame uploaded by the camera equipment to be requested;
the determining submodule is used for determining the UTC time corresponding to the current video frame;
and the storage submodule is used for storing the video data of the current video frame as the video data of a new first frame in a segmented storage mode when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the last video frame, wherein the preset time is the UTC time corresponding to the time when the area where the camera equipment to be requested is located enters summer or the UTC time corresponding to the time when the area where the camera equipment is located leaves summer.
Optionally, the storage module is further configured to store, when there is no preset time between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, the video data of the current video frame as video data belonging to the same segment as the video data of the previous video frame in a segment storage manner.
Optionally, the apparatus further comprises:
a first determining module, configured to determine whether a storage resource block for storing video data of a previous video frame is full, and if not, execute the step of storing the video data of the current video frame as video data belonging to the same segment as the video data of the previous video frame in a segment storage manner;
and the storage module is used for storing the video data of the current video frame as the video data of a first frame of a new section in a sectional storage mode in a next storage resource block if the video data of the current video frame is fully written.
In a fourth aspect, an embodiment of the present invention provides a video data request apparatus, including:
the second acquisition module is used for acquiring the starting time and the ending time of the video to be requested;
the second determining module is used for respectively determining whether the starting time and the ending time are in the daylight saving time period of the area where the camera equipment to be requested is located;
the conversion module is used for converting the starting time into an initial universal coordinated time UTC (universal time coordinated) time according to a conversion mode corresponding to daylight savings time when the starting time is located in the daylight savings time period of the area where the camera equipment to be requested is located; when the ending time is positioned in the daylight saving time period, converting the ending time into an ending UTC time according to a conversion mode corresponding to the daylight saving time;
and the second sending module is used for sending the video data request carrying the starting UTC time and the ending UTC time.
Optionally, the apparatus further comprises:
the third sending module is used for sending a parameter obtaining request, wherein the parameter obtaining request is used for obtaining daylight saving time parameters of the area where the camera equipment to be requested is located;
the first receiving module is used for receiving the returned daylight saving time parameter of the area where the camera equipment to be requested is located, wherein the daylight saving time parameter represents the daylight saving time starting and ending time of the area where the camera equipment to be requested is located;
the second determining module is specifically configured to determine whether the start time and the end time are located between the daylight saving time start-stop time of the area where the image capturing apparatus to be requested is located.
Optionally, the third sending module is specifically configured to send a parameter obtaining request carrying an apparatus identifier of the image capturing apparatus to be requested; and/or sending a parameter acquisition request carrying a region identifier of a region where the to-be-requested camera device is located.
Optionally, the second sending module is specifically configured to send a video data query request carrying the start UTC time and the end UTC time;
the device further comprises:
the second receiving module is used for receiving the segment information of the returned data segment, wherein the data segment is stored in a segmented storage mode and comprises a segment start UTC time and a segment end UTC time;
the conversion module is further configured to convert the segment start UTC time and the segment end UTC time into a local time of an area where the to-be-requested image pickup apparatus is located according to a conversion manner corresponding to daylight saving time, so as to obtain a segment start time and a segment end time;
and the display module is used for displaying the segment starting time and the segment ending time.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the segment starting time and the segment ending time are within a preset time period or not according to the information of each segment after the conversion time, wherein the preset time period is a one-hour time period before the area where the camera equipment to be requested is located leaves daylight savings time;
the increasing module is used for increasing a daylight saving time label in the information of the section after the conversion time if the section starting time and the section ending time are positioned in the preset time period;
the display module is also used for displaying the summer time label.
Optionally, the second sending module is specifically configured to send a video data acquisition request carrying the start UTC time and the end UTC time;
and the second receiving module is used for receiving the returned stored video data from the starting UTC time to the ending UTC time.
In a fifth aspect, an embodiment of the present invention further provides a cloud storage server, including a processor and a memory, where the memory is used for storing a computer program;
the processor is configured to implement the method steps of the video data storage method provided by the first aspect of the embodiment of the present invention when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory is used for storing a computer program;
the processor is configured to implement the method steps of the video data request method according to the second aspect of the embodiment of the present invention when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is executed by a processor to perform the method steps of the video data storage method provided in the first aspect of the present invention.
In an eighth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executed by a processor to perform the method steps of the video data request method provided in the second aspect of the present invention.
According to the video data storage method and the storage device provided by the embodiment of the invention, whether the preset storage starting time is subjected to offset processing or not is determined by acquiring the preset storage starting time corresponding to the camera equipment to be requested and judging whether the preset storage starting time is positioned in the daylight saving time period of the area where the camera equipment to be requested is positioned or not; when the area where the camera device is located enters the daylight saving time period, the daylight saving time request time corresponding to the preset storage starting time can be calculated, and when the daylight saving time request time is determined to be reached, a video data storage request is sent to the camera device to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of the actually required acquisition time period, and the accuracy of video data storage is improved.
According to the video data request method and the video data request device provided by the embodiment of the invention, the starting time and the ending time of the video to be requested in the daylight savings time period are converted into the starting UTC time and the ending UTC time according to the conversion mode corresponding to the daylight savings time, and the video data request carrying the starting UTC time and the ending UTC time is sent to the video cloud storage server, so that the video data corresponding to the starting UTC time and the ending UTC time period can be correctly searched by the video cloud storage server according to the starting UTC time and the ending UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating setting of a time period by a client according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video data storage method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video cloud storage system;
fig. 4 is a schematic flowchart of a video data storage method according to an embodiment of the present invention, where the video data uploaded by a to-be-requested image capture device is received and stored;
fig. 5 is another schematic flow chart illustrating a method for storing video data according to an embodiment of the present invention, where the method receives and stores video data uploaded by an image capturing apparatus to be requested;
fig. 6 is a flowchart illustrating another video data storage method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a video data requesting method according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating another video data requesting method according to an embodiment of the present invention;
FIG. 9 is a diagrammatic illustration of daylight savings time data segments and non-daylight savings time data segments depicted in a time axis;
FIG. 10 is a diagram illustrating daylight savings time parameters according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating information of a data segment shown in an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a video data storage device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a storage module in a video data storage device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a video data requesting device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a cloud storage server according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, as shown in fig. 1, a user can set a time period of a day through a client to acquire and store video data captured by an image capturing apparatus during the time period. The time period may be set from point to point on each day of the week, and a plurality of such time periods may be set during the day. For example, set to 8: 00-9: 00 acquires video data. When the video cloud storage server judges that the area where the camera device is located reaches the starting time of the time period, the video cloud storage server can send a video data storage request to the camera device, the camera device receives the video data storage request and then transmits video data to the video cloud storage server, and the video cloud storage server stores the video data; when the video cloud storage server judges that the area where the camera device is located reaches the end time of the time period, the video cloud storage server can send a video data storage end request to the camera device, and the camera device stops transmitting the video data to the video cloud storage server after receiving the request. When the video cloud storage server and the image pickup apparatus may be located in different time zones, and the video cloud storage server determines the time of the area where the image pickup apparatus is located, the local system time of the video cloud storage server may be converted into the UTC time, and then the time of the area where the image pickup apparatus is located is determined based on the UTC time, for example, when the local system time of the video cloud storage server is 14 points 0 minutes 0 seconds, the image pickup apparatus is located in an east two zone, and the local system time of the video cloud storage server is 14 points 0 minutes 0 seconds, the corresponding UTC time is the local system time of the video cloud storage server minus the time zone, that is, 14-8 points 6, that is, 6 points 0 minutes 0 seconds, and the time of the area where the image pickup apparatus is located is the UTC time plus the time zone, that is, 6+ 2.
However, when the area where the image pickup apparatus is located enters daylight savings time, the time when the image pickup apparatus is located is set faster by 1 hour. If the video cloud storage server still requests the video data from the camera device according to the preset video recording start time, the acquired video data is inconsistent with the video data in the actually required time period. For example, if the image pickup apparatus needs to acquire video data at a preset recording start time of 8 points, and the image pickup apparatus makes a video data storage request at 14 points, the time of the area where the image pickup apparatus is located is already daylight saving time 9 points, the video data after daylight saving time 9 points of the area where the image pickup apparatus is located will be actually acquired and stored, instead of the video data at the required recording start time of 8 points.
Method embodiment one
In order to solve the existing problems, as shown in fig. 2, an embodiment of the present invention provides a video data storage method, which may be applied to a video cloud storage server, and of course, may also be applied to other types of devices having a data processing operation function, where the process may include the following steps:
and S101, acquiring a preset storage starting time corresponding to the to-be-requested camera device.
In the embodiment of the invention, the preset storage starting time may be the time at which the video cloud storage server is located, corresponding to the video recording starting time in the video recording plan. The start time and the end time of the video recording in the video recording plan may be set based on the time of the area where the corresponding image capturing apparatus to be requested is located, for example, setting 8: 00-9: 00 is a video recording start time and end time, wherein 8 points and 9 points can refer to the time of the area where the to-be-requested camera device is located; the video cloud storage server may be obtained by converting the video recording start time into the preset storage start time based on a time difference between an area where the image pickup apparatus to be requested is located and an area where the video cloud storage server is located.
In the video recording plan, videos of a plurality of time periods to be requested to be shot by the camera device can be stored in one day, so that a plurality of video recording starting times can exist in one day, and the video recording starting times correspond to a plurality of preset storage starting times. It should be noted that there may be a plurality of image capturing apparatuses to be requested, and each image capturing apparatus to be requested may correspond to a plurality of preset storage start times.
S102, determining whether the preset storage start time is in the daylight saving time period of the area where the image capturing apparatus to be requested is located.
As described above, the preset storage start time is the time at which the video cloud storage server is located corresponding to the video recording start time in the video recording plan, and therefore, the server can determine whether to perform offset processing on the preset storage start time by determining whether the preset storage start time is located in the daylight savings time period of the area where the image pickup apparatus to be requested is located.
And S103, if the preset storage starting time is not in the daylight saving time period, when the preset storage starting time is determined to be reached, sending a video data storage request to the camera equipment to be requested.
For example, when the preset storage start time is 14 points, which corresponds to 8 points of the video recording start time in the video recording plan, and if the time is not located in the daylight savings time period of the area where the image pickup apparatus to be requested is located, the preset storage start time remains unchanged, the video cloud storage server may send a video data storage request to the image pickup apparatus to be requested, so that the image pickup apparatus may transmit video data to the video cloud storage server after receiving the video data storage request.
And S104, if the preset storage starting time is in the daylight saving time period, calculating the daylight saving time request time corresponding to the preset storage starting time, and sending a video data storage request to the camera equipment to be requested when the daylight saving time request time is determined to be reached, wherein the daylight saving time offset duration of the area where the camera equipment to be requested is located is advanced compared with the preset storage starting time at the daylight saving time request time.
However, if the preset storage starting time is located in the daylight saving time period, a daylight saving time request time corresponding to the preset storage starting time needs to be calculated, that is, the preset storage starting time needs to be subjected to offset processing, so as to ensure that the video data stored by the video cloud storage server is consistent with the video data in the actually required time period.
Specifically, for example, the preset video recording start time is 8 points, the video cloud storage server is located in the eighty region, and the image capturing apparatus is located in the eighty region, and then the preset storage start time corresponding to the video recording start time is 14 points. The video cloud storage server may calculate the daylight saving time request time corresponding to 14 points as 13 points, where the daylight saving time of the area where the to-be-requested image capturing apparatus is located is shifted by a duration in advance, that is, 1 hour, by 13 points compared to 14 points. When the video cloud storage server determines that the point 13 is reached (at the moment, the time of the area where the image pickup device to be requested is located is daylight saving time 8), a video data storage request is sent to the image pickup device to be requested, and then the actually acquired video data is the video data of the area where the image pickup device is located after the time of 8.
And S105, receiving and storing the video data to be uploaded by the camera equipment.
In the embodiment of the invention, after the video cloud storage server receives the video data transmitted by the camera equipment to be requested, the video data can be stored in the database of the video cloud storage server, and the stored video data and the video data information are called out when the video needs to be viewed.
Fig. 3 is a schematic structural diagram of a video cloud storage system, and as shown in fig. 3, the video cloud storage system generally includes a client, a video cloud storage server, and a camera device, where the client performs data interaction with the video cloud storage server through a cloud storage SDK (Software Development Kit) in the client.
At present, when a video cloud storage system stores video data transmitted by an image pickup apparatus, the process is as follows: after the video cloud storage server receives the video frames transmitted by the camera equipment, the UTC time stamps corresponding to the video frames are recorded based on the UTC time corresponding to the local system time of the video cloud storage system. When a client inquires or acquires a video stored in a video cloud storage server by a camera device, the video inquiry starting time and the video inquiry ending time are determined based on the local time of the camera device, and the video inquiry starting UTC time and the video inquiry ending UTC time are calculated.
The segment storage method is a video storage method, and can store received video data in a plurality of data segments in a storage resource block of a storage medium. One storage resource block may include a plurality of data segments, and one data segment only belongs to one storage resource block. The storage time of each data segment is the same or the occupied storage space is the same.
In order to solve the existing problem, in an optional implementation manner of the embodiment of the present invention, as shown in fig. 4, the step S105 may specifically include:
and S1051, receiving the video data of the current video frame uploaded by the camera equipment.
In the embodiment of the invention, the video cloud storage server can receive the video data uploaded by the camera equipment, wherein the video data can be transmitted in the form of video frames, and the video cloud storage server receives each video frame. The current video frame in the embodiment of the present invention may be a frame of video frame received by the video cloud storage server at the current time.
And S1052, determining the UTC time corresponding to the current video frame.
When the video cloud storage server receives the video frames, the time for receiving each video frame can be determined based on the system time of the video cloud storage server, so that the UTC time corresponding to the time can be determined.
And S1053, when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, storing the video data of the current video frame as the video data of the first frame of the new segment in a segmented storage mode, wherein the preset time is the UTC time corresponding to the time when the camera device is located in the area entering summer, or the preset time is the UTC time corresponding to the time when the camera device is located in the area leaving summer.
It is easy to understand that in a region using the daylight savings time system, the start time and the end time of daylight savings time in the region are usually preset. In the embodiment of the invention, the preset time can be obtained by acquiring the starting time and the ending time of the daylight saving time of the area where the camera device is located and converting the starting time and the ending time into the corresponding UTC time.
When a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the last video frame, the preset time indicates that the two video frames just cross the time when summer time enters or finishes, namely the time when the local time of the camera equipment jumps. At this time, the video cloud storage server may perform a segment change operation, that is, store the current video frame as the video data of the first frame of the new segment, so that the video data of the current video frame and the video data of the previous video frame are located in different data segments.
Through the segment changing operation, the UTC time corresponding to the video frame in the data segment before the new segment is the time before the time jump, and the UTC time corresponding to the video frame in the new segment is the time after the time jump. And therefore does not occur in one data segment, including both the video frame before the time jump and the video frame after the time jump. Thus, when the client converts the UTC time of the video frame in the data segment before the new segment, the conversion can be performed based on the conversion mode before the time jump (namely UTC time + local time zone); when the UTC time of the video frame in the new segment is converted, the conversion can be uniformly performed based on the conversion mode after the time jump (i.e. the UTC time + the local time zone + the offset is 1 hour), so that the start-stop time of each converted segment is consistent with the actual start-stop time of the segment, thereby avoiding the situation that the end time after the conversion is earlier than the start time or the time period after the conversion is one hour more than the time period of the actual video data.
Optionally, in another optional implementation manner of the embodiment of the present invention, as shown in fig. 5, the step S105 may specifically include:
s1051', the image pickup apparatus transmits the video data to a video cloud storage server.
In the embodiment of the invention, the shooting equipment can transmit the shot video data to the video cloud storage server in the form of video frames after coding the shot video data. In a video cloud storage system, there may be a plurality of image pickup apparatuses, each of which may be located in a different region, that upload captured video data to a video cloud storage server of the video cloud storage system, and the video cloud storage server may store the video data. In the embodiment of the invention, the data transmission process can be aimed at a single camera device and a video cloud storage server.
It is easy to understand that the video data uploaded by the camera device may be transmitted to the video cloud storage server frame by frame, and the video cloud storage server may also receive the video frames frame by frame. The current video frame may be one of the video frames in the video data received by the video cloud storage server at the current time, rather than a specific video frame in the received video data.
And S1052', the video cloud storage server determines the UTC time corresponding to the current video frame.
This step is similar to S1052 in the first embodiment of the method, and is not described again here.
S1053', when the video cloud storage server determines that the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame have a preset time, storing the video data of the current video frame as the video data of the first frame of the new segment in the segmented storage mode.
This step is similar to S1053 in the first embodiment of the method, and is not described herein again.
S1054', when there is no preset time between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, storing the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segment storage mode.
Further, when there is no preset time between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, it indicates that the two video frames do not cross the time when summer season enters or ends, that is, the local time of the camera device does not jump. At this time, the video cloud storage server may not perform the segment change operation, that is, store the video data of the two frames of video frames into the same data segment.
It should be noted that, when the video cloud storage server stores video data, since the time trip point only occurs at the time when summer time is entered or ended, in most cases, the video cloud storage server stores the video data in the current segment storage manner, and then enters the next segment of data storage after one segment of data is full. However, in the storage process of the video cloud storage server, the moment when two frames of video frames cross to enter summer time or end summer time inevitably occurs, forced segment change operation needs to be performed, and if the segment change operation is not performed, the start-stop time of the segment converted by the client is inconsistent with the actual start-stop time of the segment.
As another optional implementation manner of the embodiment of the present invention, as can be seen from the foregoing, one storage resource block may include a plurality of data segments, and one data segment only belongs to one storage resource block. When the video cloud storage server stores the video data in the storage resource block, a segment number may be created to indicate the start of a data segment when the video data starts to be written into the storage resource block, and when the video data stops being written into the storage resource block or when one storage resource block is full, the segment number may be marked as the end of the data segment.
Before storing the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segment storage mode, it may be determined whether a storage resource block storing the video data of the previous video frame is full, and different storage modes may be executed according to different determined results. Specifically, if the storage resource block is not full, the video data can be continuously written in the storage resource block; if a memory resource block is full, video data may be written in the next memory resource block.
In the video data storage method provided by the embodiment of the invention, whether the preset storage starting time is subjected to offset processing or not is determined by acquiring the preset storage starting time corresponding to the camera equipment to be requested and judging whether the preset storage starting time is positioned in the daylight saving time period of the area where the camera equipment to be requested is positioned; when the area where the camera device is located enters the daylight saving time period, the daylight saving time request time corresponding to the preset storage starting time can be calculated, and when the daylight saving time request time is determined to be reached, a video data storage request is sent to the camera device to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of the actually required acquisition time period.
Method embodiment two
As shown in fig. 6, an embodiment of the present invention further provides a video data storage method, where the method specifically includes:
s201, the video cloud storage server obtains a preset storage starting time corresponding to the camera equipment to be requested.
In the embodiment of the invention, the preset storage starting time can be the time of the video cloud storage server corresponding to the video starting time in the video plan, wherein the video starting time in the video plan can be set in the client by a user and then sent to the video cloud storage server, so that the video cloud storage server can easily acquire the preset storage starting time.
The video cloud storage server can be connected with a plurality of camera devices. The to-be-requested image pickup apparatus may be an object to which the video cloud storage server is to send a video data storage request, and the to-be-requested image pickup apparatus may be one or more of the plurality of image pickup apparatuses.
The preset storage start time corresponding to the image capturing apparatus to be requested may be a set of preset storage start times corresponding to the image capturing apparatus, that is, the preset storage start time may be multiple times of a day.
S202, the video cloud storage server judges whether a preset storage starting time is located in the summer time period of the area where the camera equipment to be requested is located, and if the preset storage starting time is not located in the summer time period, the video cloud storage server sends a video data storage request to the camera equipment to be requested when determining that the storage starting time is reached; if the storage preset storage starting time is located in the summer time period, the video cloud storage server calculates the summer time request time corresponding to the preset storage starting time, and sends a video data storage request to the camera equipment to be requested when the video cloud storage server determines that the summer time request time is reached, wherein the summer time request time is compared with the preset storage starting time, and the summer time offset duration of the area where the camera equipment to be requested is located is advanced.
Step S202 above describes a process of sending a video data storage request to the image capturing apparatus to be requested by the video cloud storage server when the preset storage start time is located in the daylight saving time period of the area where the image capturing apparatus to be requested is located, and step S202 above is similar to step S103 and step S104 in the first method embodiment, and is not described again here.
And S203, after receiving the video data storage request, the camera device sends video data to the video cloud storage server.
And S204, the video cloud storage server stores the received video data.
S205, the video cloud storage server sends a video data storage ending request.
When the video cloud storage server no longer needs to receive the video data sent by the to-be-requested image pickup device, a video data storage ending request may be sent to the to-be-requested image pickup device, so that the to-be-requested image pickup device stops sending the video data to the video cloud storage server.
Specifically, the video cloud storage server may obtain a preset storage end time corresponding to the to-be-requested image capturing device. Similar to the preset storage starting time, the preset storage ending time is the time at which the video cloud storage server corresponding to the video recording ending time in the video recording plan is located, and is not described herein again.
As described above, the preset storage end time is the time at which the video cloud storage server is located corresponding to the video recording end time in the video recording plan, and therefore, the server can determine whether to offset the preset storage end time by determining whether the preset storage end time is located during daylight savings time in the area where the image pickup apparatus to be requested is located.
For example, when the preset storage end time is 15 points, which corresponds to 9 points of the video recording end time in the video recording plan, and if the time is not located in the daylight savings time period of the area where the image pickup apparatus to be requested is located, the preset storage end time remains unchanged, the video cloud storage server may send a video data end storage request to the image pickup apparatus to be requested, so that the image pickup apparatus may transmit video data to the video cloud storage server after receiving the video data storage request, and the image pickup apparatus to be requested stops sending video data to the video cloud storage server.
However, if the preset storage end time is located in the daylight saving time period, a daylight saving time end request time corresponding to the preset storage end time needs to be calculated, that is, the preset storage end time needs to be subjected to offset processing, so as to ensure that video data stored in the video cloud storage server is consistent with video data in an actually required time period.
For example, the preset video recording end time is 9 points, the video cloud storage server is located in the eighty region, and the image pickup device is located in the eighty region, and then the preset storage end time corresponding to the video recording end time is 15 points. The video cloud storage server may calculate the daylight saving time ending request time corresponding to 15 points as 14 points, where the daylight saving time of the area where the to-be-requested image capturing apparatus is located is shifted by a duration in advance, that is, 1 hour, by 14 points compared to 15 points. When the video cloud storage server determines that 14 o ' clock is reached (at the moment, the time of the area where the image pickup apparatus to be requested is located is daylight saving time 9 o ' clock), a video data storage ending request is sent to the image pickup apparatus to be requested, and then actually acquired video data of the area where the image pickup apparatus is located before the time of 9 o ' clock is also obtained.
Optionally, as another optional implementation manner of the embodiment of the present invention, the video cloud storage server may directly send a video data storage request carrying a storage duration to the to-be-requested image capturing apparatus without sending a video data storage end request, so that the to-be-requested image capturing apparatus transmits video data to the video cloud storage server after receiving the video data storage request, and stops transmitting the video data to the video cloud storage server when the storage duration set in the transmission request is reached.
For example, if the preset storage start time is not located in the daylight saving time period of the area where the image pickup apparatus to be requested is located, the preset storage start time acquired by the video cloud storage server is 14 points, the storage time of the video data is 1 hour, when the video cloud storage server determines that 14 points are reached (at this time, the time of the area where the image pickup apparatus to be requested is 8 points), the video data storage request carrying the storage time of 1 hour can be sent to the camera equipment to be requested, and after the camera equipment to be requested receives the video data storage request, the real-time video data transmission to the video cloud storage server is started, and when 15 o 'clock is reached (at the moment when the area where the image pickup apparatus to be requested is located is 9 o' clock), namely, the 1-hour storage time set in the video data storage request is reached, and the to-be-requested camera equipment stops transmitting the video data to the video cloud storage server.
For another example, if the preset storage start time is located in the daylight saving time period of the area where the image capturing apparatus to be requested is located, the preset storage start time acquired by the video cloud storage server is 14 points, the calculated daylight saving time request time is 13 points, the storage of the video data is often 1 hour, when the video cloud storage server determines that 13 points are reached (at this time, the time of the area where the image capturing apparatus to be requested is located is 8 points in daylight saving time), the video data storage request carrying the storage time of 1 hour can be sent to the camera equipment to be requested, after the camera equipment to be requested receives the video data storage request, real-time video data is transmitted to the video cloud storage server, when 14 o 'clock is reached (at the moment, the time of the area where the to-be-requested image pickup apparatus is located is daylight saving time 9 o' clock), the 1 hour time length set in the transmission request is reached, and the to-be-requested image pickup apparatus stops transmitting the video data to the video cloud storage server.
In the video data storage method provided by the embodiment of the invention, whether the preset storage starting time is subjected to offset processing or not is determined by acquiring the preset storage starting time corresponding to the camera equipment to be requested and judging whether the preset storage starting time is positioned in the daylight saving time period of the area where the camera equipment to be requested is positioned; when the area where the camera device is located enters the daylight saving time period, the daylight saving time request time corresponding to the preset storage starting time can be calculated, and when the daylight saving time request time is determined to be reached, a video data storage request is sent to the camera device to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of the actually required acquisition time period.
In the current video data request method, the request process may be as follows: the client acquires a time period parameter, which is input by a user and is in the form of year, month, day, hour, minute and second, as the start time and the end time of the video to be viewed, wherein the time period parameter is generally determined based on the time of the region in which the image pickup apparatus is located. And the client subtracts the time zone of the area where the camera equipment is positioned from the starting time and the ending time, converts the time zone into corresponding starting UTC time and ending UTC time, and sends a video data request carrying the starting UTC time and the ending UTC time to the video cloud storage server, so that the video cloud storage server searches video data in a corresponding UTC time period in the stored video according to the starting UTC time and the ending UTC time in the video data request, and sends the searched video data to the client. After the client receives the video data, the start UTC time and the end UTC time in the received video data can be added to the time zone of the area where the image pickup apparatus is located, so that the time period represented by the time of the area where the image pickup apparatus is located can be converted back for the user to view.
However, if the area where the image pickup apparatus is located in the daylight savings time period, when the client converts the start time and the end time into the corresponding UTC time, the client does not know whether the start time and the end time are the time when the image pickup apparatus enters the daylight savings time period, and if the conversion is still performed according to the current conversion method, a problem occurs in that the video searched from the video cloud storage server is inconsistent with the actually required video time period.
Method embodiment three
In order to solve the above problem, as shown in fig. 7, an embodiment of the present invention provides a video data request method, which can be applied to a client, and of course, can also be applied to other types of devices having a data processing operation function, where the process may include the following steps:
s301, acquiring the starting time and the ending time of the video to be requested.
In the embodiment of the invention, the starting time and the ending time of the video to be requested can be obtained through the client.
When shooting a video, the image capturing apparatus generally stamps a time stamp (i.e., superimposes a time OSD on a video image) on the video, so as to facilitate a user to view the video at a later date. Therefore, the user can input the starting time and the ending time of the video to be requested through the client, so that the client can acquire the starting time and the ending time.
S302, respectively, determines whether the start time and the end time are during daylight saving time in the area where the image pickup apparatus to be requested is located.
The following four cases may exist for the start time and the end time of the video to be requested:
case 1: the start time and the end time of the video to be requested may both be during daylight saving time in the area where the image pickup apparatus to be requested is located.
Case 2: the start time is not located during daylight savings time in the area where the image pickup apparatus to be requested is located, and the end time is located during daylight savings time in the area where the image pickup apparatus to be requested is located, indicating that the time period formed by the start time and the end time just spans the time when daylight savings time is entered.
Case 3: the start time is located during daylight savings time of the area where the image pickup apparatus to be requested is located, and the end time is not located during daylight savings time of the area where the image pickup apparatus to be requested is located, indicating that the time period consisting of the start time and the end time just spans the time at which daylight savings time ends.
Case 4: the start time and the end time of the video to be requested may not be both located during daylight saving time in the area where the image pickup apparatus to be requested is located.
It is therefore necessary to separately determine whether the start time and the end time are during daylight saving time in the area where the image pickup apparatus to be requested is located.
S303, when the starting time is in the daylight saving time period of the area where the camera equipment to be requested is located, converting the starting time into the starting UTC time according to a conversion mode corresponding to the daylight saving time; and when the ending time is positioned in the daylight saving time period, converting the ending time into the UTC ending time according to a conversion mode corresponding to the daylight saving time.
In the embodiment of the invention, if the starting time of the video to be requested is positioned in the daylight saving time period of the area where the camera equipment to be requested is positioned, the starting time can be converted into the starting UTC time according to the corresponding conversion mode of the daylight saving time; if the ending time of the video to be requested is in the daylight saving time period of the area where the image pickup apparatus to be requested is located, the ending time may be converted into the ending UTC time in a conversion manner corresponding to daylight saving time.
The conversion mode corresponding to daylight saving time may be a preset conversion mode, for example, offset processing may be performed on the original time.
Specifically, a time offset parameter may be preset in the video cloud storage system, and when the client converts the start time and the end time, the start time and/or the end time may be offset by using the time offset parameter, and then converted into the corresponding start UTC time and end UTC time.
S304, sending a video data request carrying the starting UTC time and the ending UTC time.
After the client obtains the start UTC time and the end UTC time, the client can send video data requests carrying the start UTC time and the end UTC time to the video cloud storage server, so that the video cloud storage server can search video data with the time consistent with the video time to be requested through the start UTC time and the end UTC time corresponding to the converted start time and end time respectively, and return the searched video data to the client.
According to the video data request method provided by the embodiment of the invention, the starting time and the ending time of the video to be requested in the daylight savings time period are converted into the starting UTC time and the ending UTC time according to the conversion mode corresponding to the daylight savings time, and the video data request carrying the starting UTC time and the ending UTC time is sent to the video cloud storage server, so that the video data corresponding to the starting UTC time and the ending UTC time can be correctly searched by the video cloud storage server according to the starting UTC time and the ending UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period.
Method example four
As shown in fig. 8, an embodiment of the present invention further provides a video data request method, where the method specifically includes:
s401, the client acquires the starting time and the ending time of the video to be requested.
This step is similar to step S301 of the third embodiment of the method, and is not described again here.
S402, the client determines whether the start time and the end time are during daylight saving time of the area where the image capturing apparatus to be requested is located.
This step is similar to step S302 of the third embodiment of the method, and is not described again here.
S403, the client determines that when the starting time is in the daylight saving time period of the area where the camera equipment to be requested is located, the starting time is converted into the starting UTC time according to a conversion mode corresponding to the daylight saving time; and the client determines that the ending time is in the daylight saving time period, and converts the ending time into the UTC ending time according to a corresponding conversion mode of the daylight saving time.
In the embodiment of the present invention, the specific conversion manner of the start UTC time and the end UTC time may be:
if the starting time and the ending time are both in the daylight saving time period, the starting time and the ending time can be reduced by preset values, and then the time zone of the area where the camera equipment is located is subtracted, so that the starting UTC time and the ending UTC time are obtained through conversion.
If the starting time is not in the daylight saving time period, the ending time is in the daylight saving time period and is greater than the first time, the ending time can be reduced by a preset value, and then the time zone of the area where the camera device is located is subtracted, so that the starting UTC time and the ending UTC time are obtained through conversion. Wherein the first time is the time for increasing the starting time of the daylight saving time by one hour; for example, when the daylight savings time starts at 2 o 'clock of a certain month of a certain year, the first time is 3 o' clock of the month of the year.
If the starting time is not in the daylight saving time period, the ending time is in the daylight saving time period, and the ending time is less than or equal to the first time, the starting time of the daylight saving time can be directly used as the ending time, and the time zone of the area where the camera is located is subtracted, so that the starting UTC time and the ending UTC time are obtained through conversion;
if the starting time is in the daylight saving time period and the ending time is not in the daylight saving time period, the starting time can be reduced by a preset value, and then the time zone of the area where the camera is located is subtracted, so that the starting UTC time and the ending UTC time are obtained through conversion.
S404, the client sends a video data request carrying the starting UTC time and the ending UTC time to a video cloud storage server.
This step is similar to step S304 of the third embodiment of the method, and is not described herein again.
S405, the video cloud storage server receives the video data request and sends the found video data to the client.
After receiving the video data request carrying the start UTC time and the end UTC time, the video cloud storage server can search the video data corresponding to the UTC time period from the stored video data and send the video data to the client.
Specifically, if the video frame corresponding to the start UTC time is a key frame and the video frame corresponding to the end UTC time is also a key frame, the video cloud storage server may send video data within the two key frames to the client;
if the video frame corresponding to the starting UTC moment is a non-key frame and the video frame corresponding to the ending UTC moment is a key frame, the video cloud storage server can determine that the previous key frame of the non-key frame is a key frame and send video data within the two key frames to the client;
if the video frame corresponding to the starting UTC moment is a key frame and the video frame corresponding to the ending UTC moment is a non-key frame, the video cloud storage server can determine the next key frame of the non-key frame as a key frame and send video data within the two key frames to the client;
if the video frame corresponding to the starting UTC moment is a non-key frame, the video cloud storage server can determine that a previous key frame of the non-key frame is a key frame; if the video frame corresponding to the moment of finishing the UTC is also a non-key frame, the video cloud storage server may determine that a subsequent key frame of the non-key frame is a key frame, and send video data within the two key frames to the client.
At present, since the video cloud storage server stores video data based on UTC time, as shown in fig. 9, if the time of a certain data segment is just over the start time or the end time of daylight saving time of the area where the image capturing apparatus is located, after the client acquires the data segment, it is impossible to distinguish which part is a video during daylight saving time and which part is a video during non-daylight saving time.
For this situation, as an optional implementation manner of the embodiment of the present invention, after the video cloud storage system returns segment information of all data segments in a corresponding time period to the client, the client may convert a start time and an end time described by the UTC time in each segment information into a start time and an end time described by a time of a region where the image pickup apparatus is located, and meanwhile, in order to distinguish 1:0 to 2:0 that a daylight savings time period and a daylight savings time end are repeated, an extension field may be marked in the segment information of the data segment of 1:0 to 2:0 that the daylight savings time period is located, specifically, for example, a daylight savings time label may be marked in the video, and the video of the segment is marked as a video located in the daylight savings time period, so as to distinguish 1: 00-2: 00.
As an optional implementation manner of the embodiment of the present invention, the client may further send a parameter obtaining request to the video cloud storage server, where the parameter obtaining request is used to obtain daylight saving time parameters of an area where the to-be-requested image capturing apparatus is located.
As shown in fig. 10, the daylight saving time parameter carries specific year, month, and day time points at which the area where the image pickup apparatus is located starts and ends daylight saving time, and may also carry a time to adjust to be faster after entering daylight saving time, that is, an offset time. The video cloud storage server can store the daylight saving time parameter, so that the client can acquire the daylight saving time parameter of a certain image pickup device stored by the video cloud storage server through the network, and respectively judge whether the starting time and the ending time of the video to be requested are positioned in the daylight saving time period of the area where the image pickup device is positioned according to the acquired daylight saving time starting and ending time corresponding to the image pickup device.
As another optional implementation manner of the embodiment of the present invention, when the client sends a parameter acquisition request to the video cloud storage server, the video cloud storage server may specify an equipment Identifier (ID) of the image capturing apparatus and/or a region identifier of a region in which the image capturing apparatus is located, for example, a serial number of the image capturing apparatus, longitude and latitude information of the region in which the image capturing apparatus is located, time zone information, and the like.
As another optional implementation manner of the embodiment of the present invention, sometimes a client only needs to check whether video data in a certain time period is stored in a video cloud storage server, and does not download the video data, and if the video cloud storage server stores the video data in the certain time period, information of all data segments included in the video data in the certain time period may be returned to the client.
After receiving the segment information of the data segments, the client can convert the segment start UTC time and the segment end UTC time of each data segment into the local time of the area where the camera equipment to be requested is located according to the conversion mode corresponding to daylight saving time, so as to obtain the segment start time and the segment end time of each data segment.
It should be noted that, the segment information of the data segment received by the client in the embodiment of the present invention may be the segment information of the data segment of the video data stored in the video data storage method according to the first method embodiment and the second method embodiment of the present invention. In the segment information of the data segments received by the client, the segment start UTC time and the segment end UTC time of each data segment may be both the time after the daylight saving time of the area where the image pickup apparatus is located, or both the times without the daylight saving time of the area where the image pickup apparatus is located. Therefore, when the segment start UTC time and the segment end UTC time of each data segment are converted, and when the segment start UTC time and the segment end UTC time of each data segment are both the time after entering daylight savings time of the area where the image pickup device is located, a preset value can be added to the segment start UTC time and the segment end UTC time of a pair of data segments, and the time zone where the image pickup device is located is added, so that the segment start time and the segment end time of each data segment are obtained; when the segment start UTC time and the segment end UTC time of each data segment are both the time of the region where the image pickup apparatus is located and the daylight saving time is not entered, the segment start UTC time and the segment end UTC time may be added to the time zone of the region where the image pickup apparatus is located, so as to obtain the segment start time and the segment end time of each data segment.
As shown in fig. 11, after obtaining the segment start time and the segment end time of each data segment, the client may further display the segment start time and the segment end time of each data segment, and may further display information such as an ID of a camera shooting device that shoots each data segment, a duration of each data segment, a size of each data segment, a number of a disk device in the video cloud storage server where each data segment is located, a block number of a storage resource block where each data segment is located, and a segment number of each data segment.
As another optional implementation manner of the embodiment of the present invention, sometimes a client needs to download video data stored by a video cloud storage server, and the client may send a video data acquisition request carrying a start UTC time and an end UTC time to the video cloud storage server, so that the video cloud storage server searches for video data corresponding to the video data acquisition request and returns the video data to the client. The video data may be video data stored in a video cloud storage server and including a period from a start UTC time to an end UTC time.
According to the video data request method provided by the embodiment of the invention, the client converts the starting time and the ending time of the video to be requested during daylight savings time into the starting UTC time and the ending UTC time according to the corresponding conversion mode of daylight savings time, and sends the video data request carrying the starting UTC time and the ending UTC time to the video cloud storage server, so that the video data corresponding to the starting UTC time and the ending UTC time can be correctly searched by the video cloud storage server according to the starting UTC time and the ending UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period.
Corresponding to the above method embodiment, the embodiment of the present invention also provides a corresponding device embodiment.
As shown in fig. 12, an embodiment of the present invention provides a video data storage apparatus, including:
the first obtaining module 501 is configured to obtain a preset storage start time corresponding to the to-be-requested image capturing apparatus.
A first sending module 502, configured to determine whether the preset storage starting time is located in a daylight saving time period of an area where the image capturing apparatus to be requested is located, and send a video data storage request to the image capturing apparatus to be requested when the preset storage starting time is determined to reach the storage starting time if the preset storage starting time is not located in the daylight saving time period; and if the storage starting time is positioned in the summer time period, calculating the summer time request time corresponding to the preset storage starting time, and sending a video data storage request to the camera equipment to be requested when the summer time request time is determined to be reached, wherein the summer time request time is compared with the preset storage starting time and the summer time offset duration of the area where the camera equipment to be requested is positioned is advanced.
The storage module 503 is configured to receive and store video data uploaded by the image capturing apparatus to be requested.
Optionally, the first sending module 502 may be specifically configured to send a video data storage request carrying a storage duration to the to-be-requested image pickup apparatus, and be used to request to store the video data of the storage duration.
Optionally, the first obtaining module 501 is further configured to obtain a preset storage end time corresponding to the to-be-requested image capturing apparatus;
the first sending module 502 is further configured to determine whether the preset storage end time is located in a daylight saving time period of an area where the image capturing apparatus is located, and send a video data storage end request to the image capturing apparatus to be requested when the preset storage end time is determined to be reached if the preset storage end time is not located in the daylight saving time period; and if the preset storage ending time is positioned in the summer time period, calculating the summer time ending request time corresponding to the preset storage ending time, and sending a video data ending storage request to the camera equipment to be requested when the summer time ending request time is determined to be reached, wherein the summer time ending request time is compared with the preset storage ending time to advance the summer time offset duration of the area where the camera equipment to be requested is positioned.
Optionally, as shown in fig. 13, the storage module 503 may include:
the receiving sub-module 5031 is configured to receive video data of the current video frame uploaded by the image capturing apparatus.
The determining sub-module 5032 is configured to determine a universal coordinated time UTC time corresponding to the current video frame.
The storage sub-module 5033 is configured to, when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, store the video data of the current video frame as video data of a new first frame in a segment storage manner, where the preset time is the UTC time corresponding to the time when the image capturing apparatus enters daylight saving in the area where the image capturing apparatus is located, or the preset time is the UTC time corresponding to the time when the image capturing apparatus leaves daylight saving in the area where the image capturing apparatus is located.
Optionally, the storage module 503 is further configured to store, when there is no preset time between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in the segment storage manner.
Optionally, the apparatus may further include:
a first determining module 504, configured to determine whether a storage resource block storing video data of a previous video frame is full, and if not, execute a step of storing the video data of a current video frame as video data in a same segment as the video data of the previous video frame in a segmented storage manner;
the storage module 503 may be further configured to store, in a next storage resource block, the video data of the current video frame as the video data of the first frame of the new segment in the segment storage manner if the current video frame is completely written.
The video data storage device provided by the embodiment of the invention determines whether to perform offset processing on the preset storage starting time by acquiring the preset storage starting time corresponding to the camera equipment to be requested and judging whether the preset storage starting time is positioned in the daylight saving time period of the area where the camera equipment to be requested is positioned; when the area where the camera device is located enters the daylight saving time period, the daylight saving time request time corresponding to the preset storage starting time can be calculated, and when the daylight saving time request time is determined to be reached, a video data storage request is sent to the camera device to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of the actually required acquisition time period.
As shown in fig. 14, an embodiment of the present invention provides a video data request apparatus, including:
the second obtaining module 601 is configured to obtain a start time and an end time of a video to be requested.
A second determining module 602, configured to determine whether the start time and the end time are located in the daylight saving time period of the area where the image capturing apparatus to be requested is located, respectively.
A conversion module 603, configured to, when the start time is located in a daylight savings time period of an area where the to-be-requested image capturing apparatus is located, convert the start time into an initial universal coordinated time UTC time according to a conversion manner corresponding to daylight savings time; and when the ending time is positioned in the daylight saving time period, converting the ending time into the UTC ending time according to a conversion mode corresponding to the daylight saving time.
A second sending module 604, configured to send a video data request carrying the starting UTC time and the ending UTC time.
Optionally, the apparatus may further include:
a third sending module 605, configured to send a parameter obtaining request, where the parameter obtaining request is used to obtain daylight saving time parameters of an area where the to-be-requested image capturing apparatus is located.
The first receiving module 606 is configured to receive a daylight saving time parameter of the area where the to-be-requested image capturing apparatus is located, where the daylight saving time parameter indicates a daylight saving time starting and ending time of the area where the to-be-requested image capturing apparatus is located.
The second determining module 602 is specifically configured to determine whether the start time and the end time are located between the start and end times of daylight saving time of the area where the image capturing apparatus to be requested is located.
Optionally, the third sending module 605 is specifically configured to send a parameter obtaining request carrying an apparatus identifier of the image capturing apparatus to be requested; and/or sending a parameter acquisition request carrying a region identifier of a region where the to-be-requested camera device is located.
Optionally, the second sending module 604 may be specifically configured to send a video data query request carrying the start UTC time and the end UTC time;
the above apparatus may further include:
the second receiving module 607 is configured to receive segment information of a returned data segment, where the data segment is stored in a segmented storage manner, and the segment information includes a segment start UTC time and a segment end UTC time.
A display module 608, configured to display the segment start time and the segment end time.
Optionally, the apparatus further comprises:
the judging module 609 is configured to judge, for each piece of information after the conversion time, whether a piece of start time and a piece of end time are within a preset time period, where the preset time period is a time period of one hour before the area where the to-be-requested image pickup apparatus is located leaves daylight savings time;
an adding module 6010, configured to add a daylight saving time label to the segment information after the transition time if the segment start time and the segment end time are within a preset time period;
and the display module 608 is further used for displaying the daylight saving time label.
The conversion module 603 is further configured to convert the segment start UTC time and the segment end UTC time into a local time of an area where the to-be-requested image capturing apparatus is located according to a conversion manner corresponding to daylight savings time, so as to obtain the segment start time and the segment end time.
Optionally, the second sending module 604 may be specifically configured to send a video data acquisition request carrying the start UTC time and the end UTC time;
the second receiving module 607 is configured to receive the returned stored video data including the period from the start UTC time to the end UTC time.
According to the video data request device provided by the embodiment of the invention, the starting time and the ending time of the video to be requested in the daylight savings time period are converted into the starting UTC time and the ending UTC time according to the conversion mode corresponding to the daylight savings time, and the video data request carrying the starting UTC time and the ending UTC time is sent to the video cloud storage server, so that the video data corresponding to the starting UTC time and the ending UTC time can be correctly searched by the video cloud storage server according to the starting UTC time and the ending UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period.
As shown in fig. 15, the cloud storage server 700 includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the video data request method according to the first method embodiment and the second method embodiment when executing the program stored in the memory 703.
According to the cloud storage server provided by the embodiment of the invention, whether the preset storage starting time is subjected to offset processing or not is determined by acquiring the preset storage starting time corresponding to the to-be-requested camera device and judging whether the preset storage starting time is positioned in the daylight saving time period of the area where the to-be-requested camera device is positioned; when the area where the camera to be requested is located enters the summer time period, a summer time request time corresponding to a preset storage starting time can be calculated, and when the summer time request time is determined to be reached, a video data storage request is sent to the camera to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of an actually required acquisition time period.
An embodiment of the present invention further provides an electronic device, as shown in fig. 16, an electronic device 800 includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the video data request method according to the third method embodiment and the fourth method embodiment when executing the program stored in the memory 803.
According to the electronic equipment provided by the embodiment of the invention, the starting time and the ending time of the video to be requested in the daylight savings time period are converted into the starting UTC time and the ending UTC time according to the conversion mode corresponding to the daylight savings time, and the video data request carrying the starting UTC time and the ending UTC time is sent to the video cloud storage server, so that the video data corresponding to the starting UTC time and the ending UTC time period can be correctly searched by the video cloud storage server according to the starting UTC time and the ending UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, so as to implement the video data request method according to the first method embodiment and the second method embodiment.
The computer-readable storage medium provided by the embodiment of the invention determines whether to perform offset processing on the preset storage starting time by acquiring the preset storage starting time corresponding to the to-be-requested camera device and judging whether the preset storage starting time is located in the daylight saving time period of the area where the to-be-requested camera device is located; when the area where the camera to be requested is located enters the summer time period, a summer time request time corresponding to a preset storage starting time can be calculated, and when the summer time request time is determined to be reached, a video data storage request is sent to the camera to be requested, so that the video data stored by the video cloud storage server is ensured to be consistent with the video data of an actually required acquisition time period.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, so as to implement the video data request method according to the third method embodiment and the fourth method embodiment.
According to the computer-readable storage medium provided by the embodiment of the invention, the start time and the end time of the video to be requested in the daylight savings time period are converted into the start UTC time and the end UTC time according to the conversion mode corresponding to the daylight savings time, and the video data request carrying the start UTC time and the end UTC time is sent to the video cloud storage server, so that the video data corresponding to the start UTC time and the end UTC time period can be correctly searched by the video cloud storage server according to the start UTC time and the end UTC time, and the video data searched by the video cloud storage server is consistent with the actually required video data time period.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
For the apparatus/electronic device/storage medium embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (24)

1. A video data storage method is applied to a video cloud storage server, and comprises the following steps:
acquiring a preset storage starting moment corresponding to the camera equipment to be requested;
judging whether the preset storage starting time is located in the daylight saving time period of the area where the camera equipment to be requested is located, if the preset storage starting time is not located in the daylight saving time period, and when the storage starting time is determined to be reached, sending a video data storage request to the camera equipment to be requested;
if the preset storage starting time is located in the summer time period, calculating the summer time request time corresponding to the preset storage starting time, and sending a video data storage request to the to-be-requested camera equipment when the summer time request time is determined to be reached, wherein the summer time request time is compared with the preset storage starting time, and the summer time offset duration of the area where the to-be-requested camera equipment is located is advanced;
receiving and storing the video data uploaded by the camera equipment to be requested;
the receiving and storing the video data uploaded by the camera device to be requested comprises the following steps:
receiving video data of a current video frame uploaded by a camera device to be requested; determining a universal coordinated time (UTC) moment corresponding to the current video frame; and when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the last video frame, storing the video data of the current video frame as the video data of a new first frame in a segmented storage mode, wherein the preset time is the UTC time corresponding to the time when the to-be-requested camera equipment is located in the area entering summer, or the preset time is the UTC time corresponding to the time when the to-be-requested camera equipment is located in the area leaving summer.
2. The video data storage method according to claim 1, wherein the sending of the video data storage request to the image pickup apparatus to be requested includes:
and sending a video data storage request carrying storage duration to the camera equipment to be requested, wherein the video data storage request is used for requesting to store the video data of the storage duration.
3. The video data storage method of claim 1, wherein the method further comprises:
acquiring a preset storage finishing moment corresponding to the camera equipment to be requested;
judging whether the preset storage ending time is located in the daylight saving time period of the area where the camera equipment to be requested is located, if the preset storage ending time is not located in the daylight saving time period, and when the preset storage ending time is determined to be reached, sending a video data storage ending request to the camera equipment to be requested;
if the preset storage ending time is located in the daylight saving time period, calculating the daylight saving time ending request time corresponding to the preset storage ending time, and sending a video data ending storage request to the to-be-requested camera equipment when the daylight saving time ending request time is determined to be reached, wherein the daylight saving time ending request time is compared with the preset storage ending time, and the daylight saving time offset duration of the area where the to-be-requested camera equipment is located is advanced.
4. The video data storage method of claim 1, wherein the method further comprises:
and when the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame do not have the preset time, storing the video data of the current video frame as the video data which belongs to the same segment as the video data of the previous video frame in a segmented storage mode.
5. The method according to claim 4, wherein before storing the video data of the current video frame as video data belonging to the same segment as the video data of the previous video frame in a segment storage mode, the method further comprises:
determining whether a storage resource block for storing the video data of the previous video frame is full, if not, executing the step of storing the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segmented storage mode;
and if the current video frame is completely written, storing the video data of the current video frame in a next storage resource block as the video data of a first frame of a new section in a sectional storage mode.
6. A video data request method applied to a client, the method comprising:
acquiring the starting time and the ending time of a video to be requested; the video data of the video to be requested is the video data of a current video frame uploaded by the camera equipment to be requested, and the UTC time corresponding to the current video frame is determined; when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, storing the video data of the current video frame into a video cloud storage server as the video data of a first frame of a new segment in a segmented storage mode; the preset time is the UTC time corresponding to the time when the area where the camera equipment to be requested is located enters summer time, or the preset time is the UTC time corresponding to the time when the camera equipment to be requested is located leaves summer time;
respectively determining whether the starting time and the ending time are in the daylight saving time period of the area where the camera equipment to be requested is located;
when the starting time is in the daylight saving time period of the area where the camera equipment to be requested is located, converting the starting time into the starting universal coordinated time UTC time according to a conversion mode corresponding to the daylight saving time; when the ending time is positioned in the daylight saving time period, converting the ending time into an ending UTC time according to a conversion mode corresponding to the daylight saving time;
and sending a video data request carrying the starting UTC time and the ending UTC time.
7. The video data request method according to claim 6, wherein, in said separately determining whether the start time and the end time are located before a daylight savings time period of a region in which the image pickup apparatus to be requested is located, further comprising:
sending a parameter acquisition request, wherein the parameter acquisition request is used for acquiring daylight saving time parameters of the area where the camera equipment to be requested is located;
receiving the returned daylight saving time parameter of the area where the camera equipment to be requested is located, wherein the daylight saving time parameter represents the daylight saving time starting and ending time of the area where the camera equipment to be requested is located;
the determining whether the start time and the end time are located during daylight saving time of an area where the image pickup apparatus to be requested is located includes:
and respectively determining whether the starting time and the ending time are between the daylight saving time starting and ending time of the region where the image pickup device to be requested is located.
8. The method of claim 7, wherein the sending the parameter acquisition request comprises:
sending a parameter acquisition request carrying an equipment identifier of the camera equipment to be requested;
and/or sending a parameter acquisition request carrying a region identifier of a region where the to-be-requested camera device is located.
9. The method of claim 6, wherein the sending the video data request carrying the start UTC time and the end UTC time comprises:
sending a video data query request carrying the starting UTC time and the ending UTC time;
the method further comprises the following steps:
receiving returned segment information of a data segment, wherein the data segment is stored in a segmented storage mode and comprises a segment start UTC time and a segment end UTC time;
converting the segment start UTC time and the segment end UTC time into local time of the region where the camera equipment to be requested is located according to a conversion mode corresponding to daylight saving time to obtain the segment start time and the segment end time;
and displaying the segment starting time and the segment ending time.
10. The method of claim 9, wherein after obtaining the segment start time and the segment end time, the method further comprises:
judging whether the segment starting time and the segment ending time are within a preset time period or not according to the information of each segment after the conversion time, wherein the preset time period is a one-hour time period before the area where the camera equipment to be requested is located leaves daylight saving time;
if the segment starting time and the segment ending time are within the preset time period, adding a daylight saving time label in the segment of information after the conversion time;
and displaying the daylight saving time label.
11. The method of claim 6, wherein the sending the video data request carrying the start UTC time and the end UTC time comprises:
sending a video data acquisition request carrying the starting UTC time and the ending UTC time;
the method further comprises the following steps:
and receiving the returned stored video data comprising the period from the starting UTC time to the ending UTC time.
12. A video data storage apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a preset storage starting moment corresponding to the camera equipment to be requested;
the first sending module is used for judging whether the preset storage starting time is located in the daylight saving time period of the area where the camera equipment to be requested is located, and sending a video data storage request to the camera equipment to be requested when the storage starting time is determined to be reached if the preset storage starting time is not located in the daylight saving time period; if the storage starting time is located in the daylight saving time period, calculating the daylight saving time request time corresponding to the preset storage starting time, and sending a video data storage request to the camera equipment to be requested when the daylight saving time request time is determined to be reached, wherein the daylight saving time offset duration of the area where the camera equipment to be requested is located is advanced compared with the preset storage starting time at the daylight saving time request time;
the storage module is used for receiving and storing the video data uploaded by the camera equipment to be requested;
wherein the storage module comprises:
the receiving submodule is used for receiving the video data of the current video frame uploaded by the camera equipment to be requested; the determining submodule is used for determining the UTC time corresponding to the current video frame; and the storage submodule is used for storing the video data of the current video frame as the video data of a new first frame in a segmented storage mode when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the last video frame, wherein the preset time is the UTC time corresponding to the time when the area where the camera equipment to be requested is located enters summer or the UTC time corresponding to the time when the area where the camera equipment is located leaves summer.
13. The video data storage device according to claim 12, wherein the first sending module is specifically configured to send a video data storage request carrying a storage duration to the to-be-requested image pickup apparatus, and is configured to request to store the video data of the storage duration.
14. The video data storage device according to claim 12, wherein the first obtaining module is further configured to obtain a preset storage end time corresponding to the image capturing apparatus to be requested;
the first sending module is further configured to determine whether the preset storage end time is located in a daylight saving time period of an area where the to-be-requested image pickup apparatus is located, and send a video data end storage request to the to-be-requested image pickup apparatus when it is determined that the preset storage end time is reached if the preset storage end time is not located in the daylight saving time period; if the preset storage ending time is located in the daylight saving time period, calculating the daylight saving time ending request time corresponding to the preset storage ending time, and sending a video data ending storage request to the to-be-requested camera equipment when the daylight saving time ending request time is determined to be reached, wherein the daylight saving time ending request time is compared with the preset storage ending time, and the daylight saving time offset duration of the area where the to-be-requested camera equipment is located is advanced.
15. The apparatus of claim 12, wherein the storage module is further configured to store the video data of the current video frame as the video data belonging to the same segment as the video data of the previous video frame in a segmented storage manner when a preset time does not exist between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame.
16. The video data storage device of claim 15, wherein the device further comprises:
a first determining module, configured to determine whether a storage resource block for storing video data of a previous video frame is full, and if not, execute the step of storing the video data of the current video frame as video data belonging to the same segment as the video data of the previous video frame in a segment storage manner;
and the storage module is used for storing the video data of the current video frame as the video data of a first frame of a new section in a sectional storage mode in a next storage resource block if the video data of the current video frame is fully written.
17. A video data request apparatus, characterized in that the apparatus comprises:
the second acquisition module is used for acquiring the starting time and the ending time of the video to be requested; the video data of the video to be requested is the video data of a current video frame uploaded by the camera equipment to be requested, and the UTC time corresponding to the current video frame is determined; when a preset time exists between the UTC time corresponding to the current video frame and the UTC time corresponding to the previous video frame, storing the video data of the current video frame into a video cloud storage server as the video data of a first frame of a new segment in a segmented storage mode; the preset time is the UTC time corresponding to the time when the area where the camera equipment to be requested is located enters summer time, or the preset time is the UTC time corresponding to the time when the camera equipment to be requested is located leaves summer time;
the second determining module is used for respectively determining whether the starting time and the ending time are in the daylight saving time period of the area where the camera equipment to be requested is located;
the conversion module is used for converting the starting time into an initial universal coordinated time UTC (universal time coordinated) time according to a conversion mode corresponding to daylight savings time when the starting time is located in the daylight savings time period of the area where the camera equipment to be requested is located; when the ending time is positioned in the daylight saving time period, converting the ending time into an ending UTC time according to a conversion mode corresponding to the daylight saving time;
and the second sending module is used for sending the video data request carrying the starting UTC time and the ending UTC time.
18. The video data request apparatus of claim 17, wherein the apparatus further comprises:
the third sending module is used for sending a parameter obtaining request, wherein the parameter obtaining request is used for obtaining daylight saving time parameters of the area where the camera equipment to be requested is located;
the first receiving module is used for receiving the returned daylight saving time parameter of the area where the camera equipment to be requested is located, wherein the daylight saving time parameter represents the daylight saving time starting and ending time of the area where the camera equipment to be requested is located;
the second determining module is specifically configured to determine whether the start time and the end time are located between the daylight saving time start-stop time of the area where the image capturing apparatus to be requested is located.
19. The video data request device according to claim 18, wherein the third sending module is specifically configured to send a parameter obtaining request carrying an apparatus identifier of the image capturing apparatus to be requested; and/or sending a parameter acquisition request carrying a region identifier of a region where the to-be-requested camera device is located.
20. The apparatus according to claim 17, wherein the second sending module is specifically configured to send a video data query request carrying the start UTC time and the end UTC time;
the device further comprises:
the second receiving module is used for receiving the segment information of the returned data segment, wherein the data segment is stored in a segmented storage mode and comprises a segment start UTC time and a segment end UTC time;
the conversion module is further configured to convert the segment start UTC time and the segment end UTC time into a local time of an area where the to-be-requested image pickup apparatus is located according to a conversion manner corresponding to daylight saving time, so as to obtain a segment start time and a segment end time;
and the display module is used for displaying the segment starting time and the segment ending time.
21. The video data request apparatus of claim 20, wherein the apparatus further comprises:
the judging module is used for judging whether the segment starting time and the segment ending time are within a preset time period or not according to the information of each segment after the conversion time, wherein the preset time period is a one-hour time period before the area where the camera equipment to be requested is located leaves daylight savings time;
the increasing module is used for increasing a daylight saving time label in the information of the section after the conversion time if the section starting time and the section ending time are positioned in the preset time period;
the display module is also used for displaying the summer time label.
22. The video data request device according to claim 17, wherein the second sending module is specifically configured to send a video data acquisition request carrying the start UTC time and the end UTC time;
the device further comprises: and the second receiving module is used for receiving the returned stored video data from the starting UTC time to the ending UTC time.
23. A cloud storage server, comprising a processor and a memory, wherein the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-5.
24. An electronic device comprising a processor and a memory, wherein the memory is configured to store a computer program;
the processor, when executing the program stored in the memory, is adapted to carry out the method steps of any of claims 6-11.
CN201810091853.9A 2018-01-30 2018-01-30 Video data storage method, video data request method, video data storage device and video data request device Active CN110099236B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810091853.9A CN110099236B (en) 2018-01-30 2018-01-30 Video data storage method, video data request method, video data storage device and video data request device
PCT/CN2019/071212 WO2019149045A1 (en) 2018-01-30 2019-01-10 Video data storage method, request method, storage apparatus and request apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810091853.9A CN110099236B (en) 2018-01-30 2018-01-30 Video data storage method, video data request method, video data storage device and video data request device

Publications (2)

Publication Number Publication Date
CN110099236A CN110099236A (en) 2019-08-06
CN110099236B true CN110099236B (en) 2021-03-02

Family

ID=67442245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810091853.9A Active CN110099236B (en) 2018-01-30 2018-01-30 Video data storage method, video data request method, video data storage device and video data request device

Country Status (2)

Country Link
CN (1) CN110099236B (en)
WO (1) WO2019149045A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051242A1 (en) * 2019-09-16 2021-03-25 Oppo广东移动通信有限公司 Time determination method and apparatus, and device
CN112579820B (en) * 2019-09-27 2023-03-24 浙江宇视科技有限公司 Time hopping video data processing method, device, medium and electronic equipment
CN113127417A (en) * 2019-12-30 2021-07-16 浙江宇视科技有限公司 File query method, device, equipment and storage medium
CN111683215B (en) * 2020-06-05 2023-03-24 杭州海康威视数字技术股份有限公司 Video playback method and device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1115945A (en) * 1994-05-09 1996-01-31 Lg电子株式会社 Reserved-recording method for video cassette recorder
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
CN101873456A (en) * 2009-04-24 2010-10-27 上海乐金广电电子有限公司 Video recording data reproduction device on digital video recorder and method thereof
CN102244758A (en) * 2011-07-08 2011-11-16 杭州华三通信技术有限公司 Video-recording-file-based data acquisition method and equipment
CN103092959A (en) * 2013-01-18 2013-05-08 中兴通讯股份有限公司 Processing method and device for task time zone
CN105556849A (en) * 2013-07-05 2016-05-04 萨热姆通讯能源电信简易股份有限公司 Method of making compressed data available by an electrical meter
JP2016178406A (en) * 2015-03-19 2016-10-06 パナソニックIpマネジメント株式会社 Imaging device, recording device and video output control device
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009133776A (en) * 2007-11-30 2009-06-18 Sony Corp Image pickup device and time correction method
JP2012165142A (en) * 2011-02-04 2012-08-30 Canon Inc Information processor, control method therefor, and program
KR20150001889A (en) * 2013-06-27 2015-01-07 삼성전자주식회사 Method and apparatus for managing contents
CN104918005A (en) * 2015-04-14 2015-09-16 谢冬 Device, system and method for intercepting and sending monitoring record in real-time
CN107026900B (en) * 2017-03-06 2020-02-14 浙江大华技术股份有限公司 Shooting task allocation method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1115945A (en) * 1994-05-09 1996-01-31 Lg电子株式会社 Reserved-recording method for video cassette recorder
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
CN101873456A (en) * 2009-04-24 2010-10-27 上海乐金广电电子有限公司 Video recording data reproduction device on digital video recorder and method thereof
CN102244758A (en) * 2011-07-08 2011-11-16 杭州华三通信技术有限公司 Video-recording-file-based data acquisition method and equipment
CN103092959A (en) * 2013-01-18 2013-05-08 中兴通讯股份有限公司 Processing method and device for task time zone
CN105556849A (en) * 2013-07-05 2016-05-04 萨热姆通讯能源电信简易股份有限公司 Method of making compressed data available by an electrical meter
JP2016178406A (en) * 2015-03-19 2016-10-06 パナソニックIpマネジメント株式会社 Imaging device, recording device and video output control device
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device

Also Published As

Publication number Publication date
WO2019149045A1 (en) 2019-08-08
CN110099236A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN110099236B (en) Video data storage method, video data request method, video data storage device and video data request device
US11665378B2 (en) Establishment and use of time mapping based on interpolation using low-rate fingerprinting, to help facilitate frame-accurate content revision
CN110266420B (en) Clock synchronization method, clock synchronization apparatus, and computer-readable storage medium
CN109391799B (en) Monitoring video synchronization method and device and video acquisition equipment
CN109558065B (en) Data deleting method and distributed storage system
US11086945B2 (en) System and method for updating upload-period of apparatus data
EP3366004B1 (en) Providing camera settings from at least one image/video hosting service
CN109819265B (en) Data storage method, data acquisition method and system
CN107566857B (en) Video downloading method, device, system, server and terminal
CN108874826B (en) Video segment sequencing method and cloud storage system
JP6574031B2 (en) Mobile video call quality measurement method and system
CN103139608A (en) Remote media playing signal time delay test method and test system
TW202131704A (en) Advanced preparation for content revision based on expected latency in obtaining new content
CN114509753A (en) Fusion method of radar video data and related equipment
CN105991744B (en) Method and apparatus for synchronizing user application data
CN110149219B (en) Shooting equipment configuration method and device
CN101997869A (en) Method and apparatus for requesting data, and method and apparatus for obtaining data
CN115412192A (en) Time synchronization method, device, equipment and medium for network television private network
WO2018188365A1 (en) Synchronous playback method, device and system
CN114928425A (en) Terminal device time synchronization system, method, device and storage medium
CN103873891A (en) TS streaming media file fast positioning method and system
CN111432283A (en) Video playback time determination method and device
CN112825053B (en) Data backup method, electronic equipment and storage medium
CN107071586B (en) System time setting method and device of television terminal
CN108574856A (en) Determine that video file tries the method, apparatus, equipment and medium of cut off

Legal Events

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