CN110505426A - Video recording playback method, device, electronic equipment and readable storage medium storing program for executing - Google Patents
Video recording playback method, device, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110505426A CN110505426A CN201810482929.0A CN201810482929A CN110505426A CN 110505426 A CN110505426 A CN 110505426A CN 201810482929 A CN201810482929 A CN 201810482929A CN 110505426 A CN110505426 A CN 110505426A
- Authority
- CN
- China
- Prior art keywords
- video
- label
- time
- video clip
- played back
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 150000001875 compounds Chemical class 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
Abstract
The application provides a kind of video recording playback method, device, electronic equipment and readable storage medium storing program for executing, this method comprises: when needing to adjust back system time, according at the time of carrying out system time readjustment and readjustment duration determines duplicate object time section;The first label is arranged in video clip before adjusting back to system time in the object time section, and the second label is arranged to the video clip in the object time section after system time readjustment;When needing to carry out playing back videos, state is arranged according to the label of video clip to be played back and practical video time is treated playback video clip and is ranked up.This method can optimize playing back videos effect.
Description
Technical field
This application involves Video Supervision Technique more particularly to a kind of video recording playback method, device, electronic equipment and readable deposit
Storage media.
Background technique
Hard disk video recorder can be used for recording a video to the monitor video in video monitoring system.When in hard disk video recorder
In video process, when adjustment occurred for the time (system time) of hard disk video recorder, it is possible that the record in repetition time section
Picture.
For example, for supporting the daylight-saving time (with the 2:00 on the last one Sunday in March to the last one Sunday in October
For 3:00) hard disk video recorder of function, if hard disk video recorder end of daylight savings carry out time readjustment (i.e. October last
The 3:00 on a Sunday adjusts back the time to open video recording when 2:00), then will appear the time interval of two 2:00~3:00
Video recording.
When needing to play back the video recording in the repetition time section, since the actual time of these video recordings cannot be distinguished
It is successive, it is possible that play the incorrect situation of order.
Summary of the invention
In view of this, the application provides a kind of video recording playback method, device, electronic equipment and readable storage medium storing program for executing.
Specifically, the application is achieved by the following technical solution:
According to the embodiment of the present application in a first aspect, providing a kind of video recording playback method, comprising:
When needing to adjust back system time, according to carry out system time readjustment at the time of and readjustment duration determine it is duplicate
Object time section;
The first label is arranged in video clip before adjusting back to system time in the object time section, and to system time
The second label is arranged in video clip after readjustment in the object time section;
When needing to carry out playing back videos, state and practical video time are arranged according to the label of video clip to be played back
Playback video clip is treated to be ranked up;Wherein, for the video clip to be played back in same object time section, setting is
The practical video time of the video clip to be played back of the first label is stated earlier than the video film to be played back for being provided with second label
The practical video time of section.
It is optionally, described that video clip the first label of setting in the preceding object time section is adjusted back to system time,
Include:
Before system time readjustment, when system time reaches the initial time in the object time section, and it is current
When video recording, terminate current video clip, and starts new video clip;
Before system time readjustment, at the time of system time, which reaches, carries out system time readjustment, and currently recording a video
When, terminate current video clip, and start new video clip after system time readjustment;
First label is arranged to the video clip in the object time section.
Optionally, the second label is arranged in the video clip after the readjustment to system time in the object time section,
Include:
After system time readjustment, when system time reaches the finish time in the object time section, and it is current
When video recording, terminate current video clip, and starts new video clip;
Second label is arranged to the video clip of not set first label in the object time section.
Optionally, the label setting state of basis video clip to be played back and practical video time treat playback record
Photo section is ranked up, comprising:
When the not set label of two video clips to be played back, or it is provided with identical label or in which one is provided with
Label, when another not set label, according to this two wait play back video recording at the beginning of, to two video clips to be played back
It is ranked up;
When being provided with different labels wait play back video clip for two, according to the segment to be played back for being provided with the first label
At the beginning of earlier than be provided with the second label wait play back segment at the beginning of principle, to two videos film to be played back
Section is ranked up.
Optionally, the label setting state of basis video clip to be played back and practical video time treat playback record
After photo section is ranked up, further includes:
According to being provided with the video clip to be played back of the first label and being provided with the video clip to be played back of the second label, really
Surely overlapping time block;
When drawing video recording progress bar, wash with watercolours is carried out to the corresponding progress bar of the overlapping time block using pre-set color
Dye.
Optionally, the label setting state of basis video clip to be played back and practical video time are to respectively wait play back
After video clip is ranked up, further includes:
Shown in playback file list sequence after video clip to be played back information, and to be provided with the first label or
The video clip to be played back of second label is identified.
According to the second aspect of the embodiment of the present application, a kind of playing back videos device is provided, comprising:
System time adjustment unit, for when needing to adjust back system time, at the time of according to system time readjustment is carried out
And readjustment duration determines duplicate object time section;
Video record processing unit, for the video clip setting first in the object time section before being adjusted back to system time
Label, and the second label is arranged to the video clip in the object time section after system time readjustment;
Playing back videos unit, for shape to be arranged according to the label of video clip to be played back when needing to carry out playing back videos
State and practical video time are treated playback video clip and are ranked up;Wherein, in same object time section wait return
Video clip is put, is provided with the practical video time of the video clip to be played back of first label earlier than being provided with described second
The practical video time of the video clip to be played back of label.
Optionally, the video record processing unit is specifically used for before system time readjustment, when system time reaches the mesh
When marking the initial time of time interval, and currently recording a video, terminate current video clip, and start new video clip;In
Before system time readjustment, at the time of system time, which reaches, carries out system time readjustment, and currently when recording a video, terminate current
Video clip, and start new video clip after system time readjustment;Video clip in the object time section is set
Set the first label.
Optionally, the video record processing unit, described in being reached when system time after system time is adjusted back
The finish time in object time section, and currently terminate current video clip, and start new video clip when recording a video;
Second label is arranged to the video clip of not set first label in the object time section.
Optionally, the playing back videos unit specifically for when the not set label of two video clips to be played back, or is set
It is equipped with identical label or in which one is provided with label, when another not set label, according to two video recordings to be played back
Time started is ranked up two video clips to be played back;When two video clips to be played back are provided with different labels
When, according to be provided with the first label wait play back segment at the beginning of opening earlier than the segment to be played back for being provided with the second label
The principle of time beginning, is ranked up two video clips to be played back.
Optionally, the playing back videos unit is also used to according to the video clip to be played back for being provided with the first label and sets
It is equipped with the video clip to be played back of the second label, determines overlapping time block;When drawing video recording progress bar, default face is used
Color renders the overlapping corresponding progress bar of time block.
Optionally, the playing back videos unit, recording a video after being also used to show sequence in playback file list wait play back
The information of segment, and the video clip to be played back for being provided with the first label or the second label is identified.
According to the third aspect of the embodiment of the present application, a kind of electronic equipment, including processor, communication interface, storage are provided
Device and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes above-mentioned video recording playback method.
According to the fourth aspect of the embodiment of the present application, a kind of machine readable storage medium is provided, it is described computer-readable to deposit
Computer program is stored in storage media, the computer program realizes above-mentioned video recording playback method when being executed by processor.
The video recording playback method of the embodiment of the present application, by determining duplicate mesh when needing to carry out system time readjustment
Time interval is marked, and respectively to target after the video clip and system time readjustment in object time section before system time readjustment
Different labels is arranged in video clip in time interval, in turn, can be according to wait play back record when needing to carry out playing back videos
As to be played back video clip of the set label to same object time section is ranked up, avoid the occurrence of due to system time
The incorrect situation of broadcasting order of readjustment and the video clip in the repetition time section of generation optimizes playing back videos effect
Fruit.
Detailed description of the invention
Fig. 1 is a kind of flow chart of video recording playback method shown in one exemplary embodiment of the application;
Fig. 2A~2D is the video film to be played back that the hard disk video recorder shown in one exemplary embodiment of the application will search
The implementation process schematic diagram of section insertion result chained list;
Fig. 3 is a kind of structural schematic diagram of playing back videos device shown in one exemplary embodiment of the application;
Fig. 4 is a kind of hardware structural diagram of playing back videos device shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.
In order to make those skilled in the art more fully understand technical solution provided by the embodiments of the present application, and keep the application real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present application
Case is described in further detail.
It referring to Figure 1, is a kind of flow diagram of video recording playback method provided by the embodiments of the present application, wherein the record
As back method can be applied to the monitoring device in video monitoring system with recording function, such as hard disk video recorder, such as Fig. 1 institute
Show, which may comprise steps of:
It for ease of understanding and describes, is hereinafter said by taking the executing subject hard disk video recorder of step S100~S120 as an example
It is bright.
Step S100, when needing to adjust back system time, according to carry out system time readjustment at the time of and readjustment duration
Determine duplicate object time section.
In the embodiment of the present application, it is contemplated that in practical application scene, hard disk video recorder is it is possible that be
The case where system time readjustment, for example, the hard disk video recorder for supporting the daylight-saving time, when end of daylight savings, hard disk video recorder is needed
System time is adjusted back into 1 hour, when hard disk video recorder opens video recording during system time readjustment, it is possible that
The video recording in repetition time section.
In order to which the video recording in repetition time section caused by being adjusted back as system time is identified, need first to determine due to
Repetition time section (referred to herein as object time section) caused by system time is adjusted back.
Correspondingly, in the embodiment of the present application, when needing to adjust back system time, hard disk video recorder can be according to being
At the time of system time readjustment and readjustment duration determines duplicate object time section.
It is T at the time of as an example it is assumed that carrying out system time readjustmenta, when readjustment a length of T△, then object time section be
[Ta-T△, Ta]。
For ease of description, the initial time in object time section is hereinafter denoted as TS, finish time is denoted as TW。
Wherein, it is consistent at the time of the finish time in object time section is with progress system time readjustment.For example, when being
It is T at the time of system time readjustmentaWhen, TW=Ta。
Step S110, the video clip before adjusting back to system time in object time section is arranged the first label, and to being
The second label is arranged in video clip after system time readjustment in object time section.
In the embodiment of the present application, when object time section internal storage starting of the hard disk video recorder before and after system time readjustment
When video recording, hard disk video recorder can be respectively the video clip and system time time before system time is adjusted back in object time section
Different labels is arranged in the video recording in object time section after tune, to distinguish the video clip of the duplicate target interval.
Wherein, the video clip before adjusting back herein for system time in object time section is known as the first label, will
It is known as the second label for the video clip in object time section after system time readjustment.
The application in one embodiment, it is above-mentioned system time is adjusted back before video clip in object time section
First label is set, may include:
Before system time readjustment, when the initial time in system time arrival object time section, and currently recording a video
When, terminate current video clip, and start new video clip;
Terminate current video film when recording a video at the time of system time, which reaches, carries out system time readjustment, and currently
Section carries out time readjustment, and starts new video clip after system time readjustment.
In this embodiment, it is adjusted back for there is the system time of readjustment plan, system time when such as end of daylight savings
Readjustment, at the time of hard disk video recorder can plan to determine progress system time readjustment according to readjustment, and readjustment duration, and be
Before system time readjustment, when system time reaches initial time (the i.e. T in object time sectionS) when, if hard disk video recorder opens
Video recording, then hard disk video recorder can carry out video recording slice section processing, that is, terminate current video clip, and start new video film
Section;Before system time readjustment, (the end with object time section at the time of system time, which reaches, carries out system time readjustment
Moment TWWhen unanimously), if hard disk video recorder opens video recording, hard disk video recorder can carry out video recording slice section processing again,
Terminate current video clip, and start new video clip after system time readjustment, before obtaining system time readjustment
Video clip in object time section, so as in object time section before adjusting back system time video clip and its
The video clip of its time separates, to improve the treatment effeciency in follow-up process.
In this embodiment, hard disk video recorder obtains before system time is adjusted back object time section (i.e. [TS, TW]) in record
After photo section, the first label can be arranged to the video clip.
Similarly, in this embodiment, the video clip setting after the above-mentioned readjustment to system time in object time section the
Two labels may include:
After system time readjustment, the finish time in object time section after system time reaches system time readjustment,
And when currently recording a video, terminate current video clip, and start new video clip;
Second label is arranged to the video clip of the first label not set in object time section.
In this embodiment, after hard disk video recorder carries out system time readjustment, can occur object time section again, when
The finish time that system time reaches object time section after system time is adjusted back, (i.e. system time arrived again at TW) when, hard disk
Video recorder can carry out video recording slice section processing again, that is, terminate current video clip, and start new video clip, to obtain
Video clip after system time readjustment in object time section, so as in object time section after adjusting back system time
Video clip and the video clip of other time separate, to improve the treatment effeciency in follow-up process.
In this embodiment, when system time reaches the finish time in object time section after being adjusted back due to system time,
There can be two object time section (i.e. [T in hard disk video recorderS, TW]) in video clip, at this point, hard disk video recorder can be with
To video clip (video clip obtained after system time readjustment) second label of setting of wherein not set first label.
It should be noted that in the embodiment of the present application, hard disk video recorder is that the video clip in object time section is set
It is also not necessary to carry out video recording slice section processing in the manner described above when setting label, for example, hard disk video recorder can be in system
When time readjustment is completed, local video recording is inquired, and intercept out the video clip in object time section, which is set
Set the first label;After system time readjustment, when system time reaches the finish time in object time section, inquiry is local herein
Video recording, filter out and be provided with after the video clip of the first label, intercept out the video clip in object time section, and right
The second label is arranged in the video clip.
Step S120, when needing to carry out playing back videos, state and reality are arranged according to the label of video clip to be played back
Border video time is ranked up respectively video clip to be played back;Wherein, for recording a video in same object time section wait play back
Segment, be provided with the practical video time of the video clip to be played back of the first label earlier than be provided with the second label wait play back record
The practical video time of photo section.
In the embodiment of the present application, when needing to carry out playing back videos, hard disk video recorder can be searched for according to the video recording of input
The qualified video clip of parameter search (video clip referred to herein as to be played back).
After hard disk video recorder is obtained wait play back video clip, state can be arranged according to the label of video clip to be played back
And practical video time is treated playback video clip and is ranked up.
Wherein, the label setting state of video clip to be played back can include but is not limited to: be provided with the first label, setting
There are the second label and not set label.
It should be noted that in the embodiment of the present application, not set label is to refer in particular to not set first label of video clip
Or second label, the embodiment of the present application is subsequent no longer to be repeated.
Wait play back video clip practical video time can according at the beginning of playing back video clip or/and to the end of
Time determines.
It for ease of understanding and describes, the video recording time started is hereinafter passed through with the practical video time of video clip to be played back
For characterization.
In the embodiment of the present application, it is contemplated that for the video clip in same object time section, due to being provided with first
The video clip of label is the video recording before system time readjustment, and the video clip for being provided with the second label is system time readjustment
Therefore video recording afterwards is provided with the practical video time of the video clip of the first label earlier than the video recording for being provided with the second label
The practical video time of segment.
Accordingly for the video clip to be played back in same object time section, be provided with the first label wait play back
Practical video time of the practical video time of video clip earlier than the video clip to be played back for being provided with the second label.
As it can be seen that in method flow shown in Fig. 1, by determining duplicate target when needing to carry out system time readjustment
Time interval, and after the video clip and system time readjustment before being adjusted back respectively to system time in object time section when target
Between video clip in section different labels is set, in turn, can be according to wait play back video recording when needing to carry out playing back videos
Set label is ranked up the video clip to be played back in same object time section, avoids the occurrence of since system time returns
The incorrect situation of broadcasting order of tune and the video clip in the repetition time section of generation, optimizes playing back videos effect.
The application in one embodiment, the label of above-mentioned basis video clip to be played back setting state and reality
Video time is treated playback video clip and is ranked up, and may include:
When the not set label of two video clips to be played back, or it is provided with identical label or in which one is provided with
Label, when another not set label, according to this two wait play back video recording at the beginning of to two video clips to be played back
It is ranked up;
When being provided with different labels wait play back video clip for two, according to the segment to be played back for being provided with the first label
At the beginning of earlier than be provided with the second label wait play back segment at the beginning of principle, to two videos film to be played back
Section is ranked up.
For ease of understanding and description, hereinafter with right according to the sequence at the beginning of wait play back video clip from morning to night
For video clip to be played back is ranked up.
In this embodiment, when there are multiple when playing back video clip, video clip to be played back for any two, firmly
State is arranged in the label of available two video clips to be played back of disk video recorder.
When this two when playing back video clip not set label, hard disk video recorder can be according to this two wait play back record
Two video clips to be played back are ranked up at the beginning of photo section;Wherein, wait play back in video recording queue, when beginning
Between early video clip to be played back come before time started later video clip to be played back.
When two video clips to be played back, one of them is provided with label, when another is not provided with label, hard disk record
Camera can also according to this two wait play back video clip at the beginning of two video clips to be played back are ranked up.
When being provided with label wait play back video clip for this two, hard disk video recorder may further determine that this two to
Whether the label for playing back video clip setting is identical.
If two video clips to be played back are provided with identical label and (are provided with label, and the label phase being arranged
Together, such as it is the first label or is the second label), then hard disk video recorder can also be according to two video clips to be played back
Time started is ranked up two video clips to be played back.
If two video clips to be played back are provided with different labels and (are provided with label, but the label being arranged is not
Together, one of them be the first label, another be the second label), then hard disk video recorder can by be provided with the first label to
Playback video clip comes before the video clip to be played back for being provided with the second label.
Further, in the embodiment of the present application, it is contemplated that in existing playing back videos scheme, when there are repetition time sections
Video recording when, play back the time interval that will duplicate in progress bar, cause to puzzle to user, therefore, in order to more intuitively
The video clip information for showing the repetition time section generated since system time is adjusted back advanced optimizes playing back videos effect
Fruit can preset a color (referred to herein as pre-set color) for identifying and be provided with recording a video wait play back for the first label
The overlapping time block of segment and the video clip to be played back for being provided with the second label.
Correspondingly, the application in one embodiment, state is arranged in the label of above-mentioned basis video clip to be played back
And after practical video time is to respectively video clip to be played back is ranked up, can also include:
According to being provided with the video clip to be played back of the first label and being provided with the video clip to be played back of the second label, really
Surely overlapping time block;
When drawing video recording progress bar, wash with watercolours is carried out to the corresponding progress bar of the overlapping time block using pre-set color
Dye.
It in this embodiment, can be according to being provided with after hard disk video recorder has been determined wait play back video clip
The video clip to be played back of one label and the video clip to be played back for being provided with the second label determine overlapping time block (its
Specific implementation can be illustrated below in association with example).
After hard disk video recorder has determined overlapping time block, (it is for identifying certain moment drawing video recording progress bar
It is no to need to be played back video recording) when, pre-set color can be used, the overlapping corresponding progress bar of time block is rendered, in turn,
User intuitively can determine whether there is the repetition time area generated since system time is adjusted back according to the color of progress bar
Between wait play back video recording and specific repetition time section.
Wherein, the pre-set color with for identify some time be carved with video recording to be played back progress bar color and for identifying
Certain moment, there is no the colors of the progress bar of video recording to be played back to be all different.
Further, the application in one embodiment, hard disk video recorder treat playback video clip be ranked up
Later, shown in playback file list sequence after video clip to be played back information, can be provided with the first label or
The video clip to be played back of second label is identified, and is such as increased in the information of the video clip to be played back of display wait play back record
Label set by photo section, so that allowing users to more intuitively understand the video clip to be played back in repetition time section is
It is being got before system time readjustment or got after system time readjustment, in turn, selected according to self-demand
Selecting property plays.
It should be noted that in the embodiment of the present application, the display device for carrying out playing back videos can record for hard disk
The included display screen (if having) of camera is also possible to the display of other terminals played back to hard disk video recorder request video recording
Screen.
In order to make those skilled in the art more fully understand technical solution provided by the embodiments of the present application, below with reference to specific
Example is illustrated technical solution provided by the embodiments of the present application.
In this embodiment, to support the hard disk video recorder of daylight-saving time to carry out system according to pre-set daylight-saving time mechanism
For time adjustment.
In this embodiment, hard disk video recorder provides daylight-saving time configuration, and whether option can include but is not limited to the daylight-saving time
It opens, time started daylight-saving time, the end of daylight savings time, deviation etc. when school.
Hereinafter to open the daylight-saving time, and time started daylight-saving time is the 2:00 on the last one Sunday in March, daylight-saving time
End time is the 3:00 on the last one Sunday in October, and deviation is for 1 hour when school.
According to above-mentioned daylight-saving time configuration information, hard disk video recorder can determine that duplicate object time section is that October is last
[2:00, the 3:00] on one Sunday, i.e., the initial time in duplicate object time section are the last one Sunday in October
2:00, finish time are the 3:00 on the last one Sunday in October.
In this embodiment, hard disk video recorder can be to system time (such as RTC (Real-Time Clock, real-time clock)
Time) it is monitored, when system time reaches integral point, hard disk video recorder may determine that whether system time arrives into the summertime
When at the time of (2:00 on the last one Sunday in March);If it is not, resuming waiting for being judged when system time reaches integral point;
If so, terminating current video clip, system time is adjusted to 1 hour (being adjusted to 3:00) backward, and start new video recording
Segment.
Into after the daylight-saving time, before end of daylight savings, when system time reaches integral point, hard disk video recorder can be sentenced
At the beginning of whether disconnected system time reaches object time section (i.e. the 2:00 on the last one Sunday in October);
If at the beginning of not reaching object time section, resuming waiting for repeating to judge when system time reaches integral point;
If terminating current video clip at the beginning of reaching object time section, starting new video clip, and work as
When system time reaches integral point, judge whether system time reaches the end of daylight savings time (target i.e. before system time readjustment
The finish time of time interval, the 3:00 on the last one Sunday in October).
If not reaching the end of daylight savings time, resume waiting for repeating to judge when system time reaches integral point;
If reaching the end of daylight savings time, terminate current video clip, the time adjusts forward to 1 hour (to be adjusted
To 2:00), and start new video clip.
At this point, hard disk video recorder can search for the video recording of [2:00, the 3:00] on the last one Sunday in October in hard disk
Segment reads the piece segment information in the corresponding hard disk of these video clips, is arranged daylight-saving time label (i.e. the first label), and again
Hard disk is written.
After end of daylight savings, when system time reaches integral point, hard disk video recorder may determine that whether system time arrives
Up to object time section finish time (system time readjustment after object time section finish time, October the last one
The 3:00 on Sunday).
If not reaching the finish time in object time section, resume waiting for repeating to judge when system time reaches integral point;
If reaching the finish time in object time section, terminate current video clip, and start new video clip.
At this point, hard disk video recorder can search for the video recording of [2:00, the 3:00] on the last one Sunday in October in hard disk
Segment is filled into the video clip for being provided with daylight-saving time label, reads the piece segment information in the corresponding hard disk of these video clips,
Label (the second label) when winter is set, and re-write hard disk.
Further, in this embodiment, when hard disk video recorder receives playing back videos request, hard disk video recorder can be with
According to the video recording search parameter of input search for qualified video clip (video clip i.e. to be played back), and to search to
Playback video clip is from morning to night ranked up according to the video recording time started.
In this embodiment, hard disk video recorder carries out when playing back video clip search, can traverse according to hard disk number each
Video file in hard disk, and the video clip to be played back searched is inserted into result chained list (can be deposited in the result chained list
Store up the index information of video recording to be played back).
Specifically, in this embodiment it is possible to which a comparison pointer is arranged in result chained list (is denoted as Ptmp), this compares
The video clip that pointer is directed toward is denoted as RStmp, T is denoted as at the beginning of the video cliptmp.Original state, as a result chained list is sky,
At this point, being empty at the beginning of comparing the video clip and video clip that pointer is directed toward.
(RS is denoted as when hard disk video recorder searches video clip to be played backi, T is denoted as at the beginning of video clipi) when,
It whether there is video clip in hard disk video recorder definitive result chained list.
If it is not, then hard disk video recorder is by video clip RSiIt is inserted into the result chained list, and continues video clip to be played back
Search.
It should be noted that when hard disk video recorder is inserted into video clip in result chained list each time, by PtmpIt is directed toward result
The tail portion of chained list.
If in result chained list, there are video clips:
If 1, RSiNot set label (label when i.e. not set daylight-saving time label or winter), then hard disk video recorder compares TiWith
Ttmp:
If i) Ti> Ttmp, then hard disk video recorder is by RSiIt is inserted into RStmpBelow, and terminate this time to compare;
Ii) if Ti< Ttmp, then hard disk video recorder is by PtmpBe moved along, compound ratio of laying equal stress on compared with.
Wherein, PtmpIt is moved along primary, PtmpIt is directed toward the previous video clip of the mobile preceding video clip being directed toward.
As an example it is assumed that from front to back successively including video clip 1~3 in result chained list, then video clip 4 needs to insert
When entering result chained list, PtmpIt is initial to be directed toward video clip 3, TtmpAt the beginning of video clip 3;If PtmpIt is moved along once,
Then PtmpIt is directed toward video clip 2;If PtmpIt is moved along again once, then PtmpIt is directed toward video clip 1.
Wherein, if video clip 4 is inserted into behind video clip 2, video clip 4 video clip 2 and video clip 3 it
Between, i.e. video clip sequence is followed successively by video clip 1, video clip 2, video clip 4 and video clip 3.
Wherein, if PtmpIt is directed toward result chained list head, and Ti< Ttmp, then by RSiIt is inserted into result chained list foremost, and is terminated
This compares.
If 2, RSiIt is provided with daylight-saving time label:
If i) RtmpBe provided with daylight-saving time label or not set label, then:
If a) Ti> Ttmp, then hard disk video recorder is by RSiIt is inserted into RStmpBelow, and terminate this time to compare;
If b) Ti< Ttmp, then hard disk video recorder is by PtmpBe moved along, compound ratio of laying equal stress on compared with.
Ii) if RtmpLabel when being provided with the winter, then hard disk video recorder is by PtmpBe moved along, compound ratio of laying equal stress on compared with.
Wherein, work as PtmpWhen being directed toward result chained list head, if RtmpIt is provided with daylight-saving time label or not set label, and Ti<
Ttmp;Alternatively, RtmpLabel when being provided with the winter, then hard disk video recorder is by RSiIt is inserted into result chained list foremost, and terminates this time to compare
Compared with.
If 3), RSiLabel when being provided with the winter:
If i) RtmpLabel or not set label when being provided with the winter, then:
If a) Ti> Ttmp, then hard disk video recorder is by RSiIt is inserted into RStmpBelow, and terminate this time to compare;
If b) Ti< Ttmp, then hard disk video recorder is by PtmpBe moved along, compound ratio of laying equal stress on compared with.
Ii) if RtmpIt is provided with daylight-saving time label, then hard disk video recorder is by RSiIt is inserted into RStmpBelow, and terminate this time to compare
Compared with.
Wherein, work as PtmpWhen being directed toward result chained list head, if RtmpLabel or not set label when being provided with the winter, and Ti<
Ttmp, then hard disk video recorder is by RSiIt is inserted into result chained list foremost, and terminates this time to compare.
In this embodiment, the video clip to be played back searched is inserted into the implementation process of result chained list by hard disk video recorder
Schematic diagram can be as shown in Fig. 2A~Fig. 2 D.
In this embodiment, it after hard disk video recorder is to respectively video clip to be played back is ranked up, can calculate respectively wait return
The video clip (may be multiple) of label when putting the video clip for being provided with daylight-saving time label in video clip and being provided with the winter
Overlapping time block.
For example, it is assumed that being provided with the daylight-saving time including 2:10~2:20 (date is identical, similarly hereinafter) wait play back in video clip
The video clip of the video clip of label and label when being provided with the winter, and 2:40~2:50 is provided with daylight-saving time label
Video clip and when being provided with the winter label video clip, then overlapping time block include [2:10,2:20] and [2:
40,2:50].
Overlapping time block pre-set color block is drawn when drawing video recording progress bar, playback file list display is just
Really sequence after wait play back video clip information list and identify be provided with daylight-saving time label or winter when label video film
Section, user can double-click file and play back.
In the embodiment of the present application, by when needing to carry out system time readjustment, determining duplicate object time section, and
After video clip and system time readjustment before being adjusted back respectively to system time in object time section in object time section
Different labels is arranged in video clip, in turn, can be according to wait play back the set mark of video recording when needing to carry out playing back videos
Label the video clip to be played back in same object time section is ranked up, avoid the occurrence of due to system time adjust back and generate
The incorrect situation of broadcasting order of video clip in repetition time section, optimizes playing back videos effect.
Method provided by the present application is described above.Device provided by the present application is described below:
Fig. 3 is referred to, is a kind of structural schematic diagram of playing back videos device provided by the embodiments of the present application, wherein the record
As playback reproducer can be applied to the monitoring device in above method embodiment, as shown in figure 3, the playing back videos device can wrap
It includes:
System time adjustment unit 310, for when needing to adjust back system time, according to carry out system time readjustment when
It carves and readjustment duration determines duplicate object time section;
Video record processing unit 320 is arranged for the video clip in the object time section before adjusting back to system time
First label, and the second label is arranged to the video clip in the object time section after system time readjustment;
Playing back videos unit 330, for being arranged according to the label of video clip to be played back when needing to carry out playing back videos
State and practical video time are treated playback video clip and are ranked up;Wherein, in same object time section to
Video clip is played back, is provided with the practical video time of the video clip to be played back of first label earlier than being provided with described the
The practical video time of the video clip to be played back of two labels.
In a kind of optional embodiment, the video record processing unit 320 is specifically used for before system time readjustment,
When system time reaches the initial time in the object time section, and is currently recording a video, terminate current video clip, and
Start new video clip;Before system time readjustment, at the time of system time, which reaches, carries out system time readjustment, and it is current
When recording a video, terminate current video clip, and start new video clip after system time readjustment;To the object time
The first label is arranged in video clip in section.
In a kind of optional embodiment, the video record processing unit 320 is adjusted back also particularly useful in system time
Afterwards, when system time reaches the finish time in the object time section, and is currently recording a video, terminate current video film
Section, and start new video clip;To the second mark of video clip setting of not set first label in the object time section
Label.
In a kind of optional embodiment, the playing back videos unit 330, specifically for when two videos film to be played back
The not set label of section, or be provided with identical label or in which one is provided with label, when another not set label, root
According to this two wait play back video recording at the beginning of, which is ranked up;When two wait play back video recording
When segment is provided with different labels, according to be provided with the first label wait play back segment at the beginning of earlier than being provided with second
Label wait play back segment at the beginning of principle, which is ranked up.
In a kind of optional embodiment, the playing back videos unit 330 is also used to basis and is provided with the first label
Video clip to be played back and the video clip to be played back for being provided with the second label determine overlapping time block;It records a video drawing
When progress bar, the overlapping corresponding progress bar of time block is rendered using pre-set color.
In a kind of optional embodiment, the playing back videos unit 330 is also used to show in playback file list
The information of video clip to be played back after sequence, and the video clip to be played back for being provided with the first label or the second label is carried out
Mark.
Fig. 4 is referred to, is the hardware structural diagram of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment
It may include processor 401, communication interface 402, memory 403 and communication bus 404.Processor 401, communication interface 402 with
And memory 403 completes mutual communication by communication bus 404.Wherein, storage has computer program on memory 403;
Processor 401 can execute above-described video recording playback method by executing the program stored on memory 403.
Memory 403 referred to herein can be any electronics, magnetism, optics or other physical storage devices, can be with
Include or store information, such as executable instruction, data, etc..For example, memory 402 may is that RAM (Radom Access
Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver (such as hard drive
Device), solid state hard disk, any kind of storage dish (such as CD, dvd) perhaps similar storage medium or their group
It closes.
The embodiment of the present application also provides a kind of machine readable storage mediums for being stored with computer program, such as in Fig. 4
Memory 403, the computer program processor 401 in electronic equipment can execute as shown in Figure 4 to realize above description
Video recording playback method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (14)
1. a kind of video recording playback method characterized by comprising
When needing to adjust back system time, according to carry out system time readjustment at the time of and readjustment duration determine duplicate target
Time interval;
The first label is arranged in video clip before adjusting back to system time in the object time section, and adjusts back to system time
The second label is arranged in the video clip in the object time section afterwards;
When needing to carry out playing back videos, state is arranged according to the label of video clip to be played back and practical video time is treated
Playback video clip is ranked up;Wherein, for the video clip to be played back in same object time section, it is provided with described
The practical video time of the video clip to be played back of one label is earlier than the video clip to be played back for being provided with second label
Practical video time.
2. the method according to claim 1, wherein described adjust back the preceding object time section to system time
The first label is arranged in interior video clip, comprising:
Before system time readjustment, when system time reaches the initial time in the object time section, and currently recording a video
When, terminate current video clip, and start new video clip;
Before system time readjustment, at the time of system time, which reaches, carries out system time readjustment, and currently when recording a video, knot
Shu Dangqian video clip, and start new video clip after system time readjustment;
First label is arranged to the video clip in the object time section.
3. according to the method described in claim 2, it is characterized in that, it is described to system time readjustment after the object time section
The second label is arranged in interior video clip, comprising:
After system time readjustment, when system time reaches the finish time in the object time section, and currently recording a video
When, terminate current video clip, and start new video clip;
Second label is arranged to the video clip of not set first label in the object time section.
4. the method according to claim 1, wherein state is arranged in the label of basis video clip to be played back
And practical video time is treated playback video clip and is ranked up, comprising:
When the not set label of two video clips to be played back, or it is provided with identical label or in which one is provided with label,
When another not set label, according to this two wait play back video recording at the beginning of, this two video clips to be played back are carried out
Sequence;
When being provided with different labels wait play back video clip for two, according to opening for the segment to be played back for being provided with the first label
Begin the time earlier than be provided with the second label wait play back segment at the beginning of principle, to two video clips to be played back into
Row sequence.
5. the method according to claim 1, wherein state is arranged in the label of basis video clip to be played back
And practical video time treat playback video clip be ranked up after, further includes:
According to being provided with the video clip to be played back of the first label and being provided with the video clip to be played back of the second label, determines and hand over
Folded time block;
When drawing video recording progress bar, the overlapping corresponding progress bar of time block is rendered using pre-set color.
6. the method according to claim 1, wherein state is arranged in the label of basis video clip to be played back
And after practical video time is to respectively video clip to be played back is ranked up, further includes:
The information of video clip to be played back after showing sequence in playback file list, and to being provided with the first label or second
The video clip to be played back of label is identified.
7. a kind of playing back videos device characterized by comprising
System time adjustment unit, for when needing to adjust back system time, according at the time of carrying out system time readjustment and
Readjustment duration determines duplicate object time section;
Video record processing unit, for the first mark of video clip setting in the object time section before being adjusted back to system time
Label, and the second label is arranged to the video clip in the object time section after system time readjustment;
Playing back videos unit, for when needing to carry out playing back videos, according to the label of video clip to be played back be arranged state with
And practical video time is treated playback video clip and is ranked up;Wherein, for being recorded wait play back in same object time section
Photo section is provided with the practical video time of the video clip to be played back of first label earlier than being provided with second label
Video clip to be played back practical video time.
8. device according to claim 7, which is characterized in that
The video record processing unit is specifically used for before system time readjustment, when system time reaches the object time section
Initial time, and currently terminate current video clip, and start new video clip when recording a video;It is returned in system time
Before tune, terminate current video clip when recording a video at the time of system time, which reaches, carries out system time readjustment, and currently,
And start new video clip after system time readjustment;To the first mark of video clip setting in the object time section
Label.
9. device according to claim 8, which is characterized in that
The video record processing unit, also particularly useful for after system time is adjusted back, when system time reaches the object time area
Between finish time, and currently terminate current video clip, and start new video clip when recording a video;To the target
The second label is arranged in the video clip of not set first label in time interval.
10. device according to claim 7, which is characterized in that
The playing back videos unit specifically for when the not set label of two video clips to be played back, or is provided with identical
Label or in which one are provided with label, when another not set label, according to this two wait play back video recording at the beginning of,
Two video clips to be played back are ranked up;When being provided with different labels wait play back video clip for two, according to setting
Be equipped with the first label wait play back segment at the beginning of earlier than be provided with the second label wait play back segment at the beginning of
Principle is ranked up two video clips to be played back.
11. device according to claim 7, which is characterized in that
The playing back videos unit is also used to according to the video clip to be played back for being provided with the first label and is provided with the second label
Video clip to be played back, determine overlapping time block;When drawing video recording progress bar, using pre-set color to described overlapping
The corresponding progress bar of time block rendered.
12. device according to claim 7, which is characterized in that
The playing back videos unit, the information of the video clip to be played back after being also used to show sequence in playback file list,
And the video clip to be played back for being provided with the first label or the second label is identified.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method of claim 1-6.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-6 any method and step when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810482929.0A CN110505426B (en) | 2018-05-18 | 2018-05-18 | Video playback method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810482929.0A CN110505426B (en) | 2018-05-18 | 2018-05-18 | Video playback method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110505426A true CN110505426A (en) | 2019-11-26 |
CN110505426B CN110505426B (en) | 2022-03-01 |
Family
ID=68584112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810482929.0A Active CN110505426B (en) | 2018-05-18 | 2018-05-18 | Video playback method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110505426B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111565326A (en) * | 2019-12-03 | 2020-08-21 | 海信视像科技股份有限公司 | Updating method of reserved recording time and display equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040252207A1 (en) * | 2001-05-16 | 2004-12-16 | Shigeaki Yamamoto | Monitoring camera device and image data management method for monitoring camera device |
CN1734655A (en) * | 2004-08-13 | 2006-02-15 | 上海乐金广电电子有限公司 | Data recording/playing method |
US20080126408A1 (en) * | 2006-06-23 | 2008-05-29 | Invensys Systems, Inc. | Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters |
CN101873456A (en) * | 2009-04-24 | 2010-10-27 | 上海乐金广电电子有限公司 | Video recording data reproduction device on digital video recorder and method thereof |
JP2011130284A (en) * | 2009-12-18 | 2011-06-30 | Funai Electric Co Ltd | Video recorder |
CN103425537A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Time adjusting method and time adjusting device |
CN104469486A (en) * | 2013-09-18 | 2015-03-25 | 晶睿通讯股份有限公司 | Pre-processing method for playing video data and playing interface device |
US20170099511A1 (en) * | 2015-10-01 | 2017-04-06 | Sorenson Media, Inc. | Frequency capping for media content |
-
2018
- 2018-05-18 CN CN201810482929.0A patent/CN110505426B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040252207A1 (en) * | 2001-05-16 | 2004-12-16 | Shigeaki Yamamoto | Monitoring camera device and image data management method for monitoring camera device |
CN1734655A (en) * | 2004-08-13 | 2006-02-15 | 上海乐金广电电子有限公司 | Data recording/playing method |
US20080126408A1 (en) * | 2006-06-23 | 2008-05-29 | Invensys Systems, Inc. | Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters |
CN101873456A (en) * | 2009-04-24 | 2010-10-27 | 上海乐金广电电子有限公司 | Video recording data reproduction device on digital video recorder and method thereof |
JP2011130284A (en) * | 2009-12-18 | 2011-06-30 | Funai Electric Co Ltd | Video recorder |
CN103425537A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Time adjusting method and time adjusting device |
CN104469486A (en) * | 2013-09-18 | 2015-03-25 | 晶睿通讯股份有限公司 | Pre-processing method for playing video data and playing interface device |
US20170099511A1 (en) * | 2015-10-01 | 2017-04-06 | Sorenson Media, Inc. | Frequency capping for media content |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111565326A (en) * | 2019-12-03 | 2020-08-21 | 海信视像科技股份有限公司 | Updating method of reserved recording time and display equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110505426B (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8704931B2 (en) | Apparatus and method of photographing moving image | |
CN102393854B (en) | Method and device obtaining audio/video data | |
WO2019213809A1 (en) | Video processing method and system, terminal device and system of mobile device | |
JP2002359811A (en) | Automated video editing system and method | |
US9437243B1 (en) | Method of generating highlights for live videos | |
US20100027959A1 (en) | Image processing program, image processing device and image processing method | |
CN101872639B (en) | Method and device for storing and retrieving image data on digital hard disk video recorder | |
CN111385670A (en) | Target role video clip playing method, system, device and storage medium | |
US20240114198A1 (en) | Video processing method, apparatus, device and storage medium | |
CN104995639A (en) | Terminal and method for managing video file | |
AU2021312196B2 (en) | Video dubbing method. device, apparatus, and storage medium | |
CN109327680A (en) | Multi-path video data concurrently stores and read method | |
JP5164367B2 (en) | Image display processing apparatus, processing method, and program | |
CN110505426A (en) | Video recording playback method, device, electronic equipment and readable storage medium storing program for executing | |
CN101668150A (en) | Information processing apparatus | |
CN101621621A (en) | Shooting apparatus and timing shooting method thereof | |
US20200273494A1 (en) | System and method for automated assembly of audiovisual montage | |
US9478258B2 (en) | Method of recording multiple highlights concurrently | |
US11677905B2 (en) | System and method for labeling networked meetings and video clips from a main stream of video | |
CN101141602B (en) | Image recording and reproducing apparatus | |
CN109040848A (en) | Barrage is put upside down method, apparatus, electronic equipment and storage medium | |
CN108966027A (en) | A kind of audio video synchronization back method and device | |
US20020168173A1 (en) | Method and apparatus for copying and processing audiovisual information | |
KR101213153B1 (en) | System and method for searching video data having simultaneous play function | |
CN110730358B (en) | Live video time shifting control method, terminal and storage medium |
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 |