CN104144318A - Video inverted-order playback and rapid positioning method based on HIKVISION DVR - Google Patents
Video inverted-order playback and rapid positioning method based on HIKVISION DVR Download PDFInfo
- Publication number
- CN104144318A CN104144318A CN201310165754.8A CN201310165754A CN104144318A CN 104144318 A CN104144318 A CN 104144318A CN 201310165754 A CN201310165754 A CN 201310165754A CN 104144318 A CN104144318 A CN 104144318A
- Authority
- CN
- China
- Prior art keywords
- video
- time
- playback
- upside down
- order
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention discloses a video inverted-order playback and rapid positioning method based on a HIKVISION DVR. The video inverted-order playback and rapid positioning method includes the following steps: (1) playing stopping time of a current video is obtained, and playback is started from the time point; (2) starting time is set to be 0, and it is shown that playback can be continued from the stopping time of the video; (3) the starting time and the stopping time are converted into system file time, so that related bottom-layer system functions can be conveniently called; (4) downloading threads are started, wherein the mutual exclusion variable concept is used in the threads to control the threads to access a variable in order, and thread blocking is prevented; (5) starting from the stopping time, videos are played every five seconds, video bit streams in every five seconds are processed, and inverted-order playing of the corresponding videos is carried out through a buffering area and a callback function; (6) the process is repeated till a playback stopping process is started, and playback is finished; (7) a video in-order playing process is started.
Description
Technical field
The present invention relates to field of video monitoring, be specifically related to a kind of playback of video inverted order and method for rapidly positioning based on Haikang DVR, mainly solve again reproducing fast and locating of certain section of important video.
Background technology
DVR is digital video recorder, and it is a set of computer system of carrying out image stores processor, have to image/voice record a video for a long time, the function of recording, telemonitoring and control.Haikang DVR develops one of more stable product in this field in recent years.And the video playback based on DVR has become the Main Means of video monitoring in recent years, and video playback on the DVR of Haikang is mainly divided into two classes: according to time playback video file with according to file name playback video file.By playback video file, can meet the function that user retrieves for examination certain section of important video, the video of retrieving for examination after DVR sends according to stream of video frames played in order.
Although this played in order mode has met the demand that user retrieves for examination historical video, in some concrete application, still there are following restraining factors:
(1) retrieve for examination in the process of video, key video sequence section is difficult for catching.
When user retrieves for examination certain section of video file in order, in the process of retrieving for examination, certain video-frequency band may be the category that user is concerned about, but because the irreversibility of playing, user obtains after this section of interested video can only be write down the cardinal principle time and starts next replay.So just do not reach the object of obtaining this key video sequence point within the limited time.
(2) key video sequence point can not be located fast.
User retrieves for examination in video process, while retrieving for examination the frame of video of Dao Mou road key, due to the succession of video playback, thinks to catch immediately this frame and is limited to.Can only, when replay next time, capture in real time this frame.
(3) sensitive video frequency section is difficult to obtain control.
User retrieves for examination in video process, can carry out Play Control function to the video-frequency band of being concerned about, comprises time-out, plays, stops, putting soon, puts slowly, single frames stepping, single frames retreat, loop play, accurately navigate to certain frame etc.But the realization meeting of these functions imperfectly can not get complete representing due to what video-frequency band captured.
Summary of the invention
The object of the invention is the problems referred to above for prior art, a kind of video inverted order playback technology based on Haikang DVR is provided, solution is retrieved for examination in the process of video, and key video sequence section is difficult for catching, key video sequence point can not be located fast, sensitive video frequency section is difficult to obtain the problems such as control:
The playback of video inverted order and a method for rapidly positioning based on Haikang DVR, is characterized in that, comprises the steps:
(1) obtain the present video playback end time, from this time point, start to put upside down;
(2) being set the time started is 0, represents to start can continue to put upside down from the video end time;
(3) time started and end time are converted to the system file time, are convenient to call relevant first floor system function;
(4) start download thread, in this thread, use the concept of mutual exclusion variable, to control each thread access variable in order, prevent that thread from stopping up;
(5) count from the end time, play one section of video every 5 seconds, processes the video code flow in this 5 second; Utilize buffering area and call back function to carry out the Reverse Play of corresponding video;
(6) repeat above-mentioned flow process, until enter the end of putting upside down after the flow process that stops putting upside down;
(7) start to enter the played in order flow process of video.
Described step (5) further comprises:
(51) detect in real time download progress, when download progress 100%, after downloading, the code stream that stops this road video receives;
(52) utilize the size of buffer area and the port flow data that corresponding position calculation makes new advances;
(53) utilize new calculating location to start to call bottom function and carry out Reverse Play.
Described step (6) further comprises:
(61) obtain the time of this halt of putting upside down;
(62) stop putting upside down thread, and clear up associated internal memory.
The present invention has realized the reproduction of important picture and the quick location of key frame of video, has also realized the effective control in video Reverse Play process simultaneously.Mainly contain following advantage:
(1) fast Acquisition key video sequence section.
When user retrieves for examination video, when in progress video-frequency band being returned while looking into, can start the function of putting upside down.Start to intercept and capture code stream from the current time period, then extract key frame and put upside down.When putting certain point upside down, user can play to watch this section of sensitive video frequency from this point again.
(2) quick locator key video point.
User retrieves for examination in video process, in the time will again retrieving for examination certain key picture, can start the function of putting upside down, when putting this key picture upside down, just can boot sequence playing function, and accurately navigate to this frame place picture.
(3) key video sequence section is control effectively.
User retrieves for examination in video process, utilizes the function of putting upside down can reappear fast certain key video sequence section, and this key video sequence section is carried out to Play Control, comprises time-out, plays, stops, putting soon, puts slowly, single frames stepping, single frames retreat, loop play.
Accompanying drawing explanation
Fig. 1 is the process chart of putting upside down of the present invention
Fig. 2 is the control flow chart of putting upside down of the present invention
Embodiment
The main Haikang DVR bottom function support that relies on of putting upside down of video based on Haikang DVR, under the environment of supporting, develops a kind of video based on Haikang DVR function of putting upside down according to actual video monitoring demand at existing Floor layer Technology.Handling process put upside down as shown in Figure 1, put control flow upside down as shown in Figure 2.
Mainly comprise the steps:
(1) obtain the present video playback end time, from this time point, start to put upside down;
(2) being set the time started is 0, represents to start can continue to put upside down from the video end time;
(3) time started and end time are converted to the system file time, are convenient to call relevant first floor system function;
(4) start download thread, in this thread, use the concept of mutual exclusion variable, to control each thread access variable in order, prevent that thread from stopping up;
(5) count from the end time, play one section of video every 5 seconds, processes the video code flow in this 5 second; Utilize buffering area and call back function to carry out the Reverse Play of corresponding video;
(6) repeat above-mentioned flow process, until enter the end of putting upside down after the flow process that stops putting upside down;
(7) start to enter the played in order flow process of video.
Described step (5) further comprises:
(51) detect in real time download progress, when download progress 100%, after downloading, the code stream that stops this road video receives;
(52) utilize the size of buffer area and the port flow data that corresponding position calculation makes new advances;
(53) utilize new calculating location to start to call bottom function and carry out Reverse Play.
Described step (6) further comprises:
(61) obtain the time of this halt of putting upside down;
(62) stop putting upside down thread, and clear up associated internal memory.
This method designs generation for locating fast the video of browsing in played in order, by continuous experiment, show that the broadcasting interval in every 5 seconds is processed the video flowing of download and applies for that suitable buffering area (4096*1024) is more satisfactory state.And, in actual process, due to certain buffer time of processing needs of video flowing, set more satisfactory time delay interval 40ms.
In the process of putting upside down, newly expanded the function of the Play Control of putting upside down simultaneously.As reverse fast (support 2,4,8,16 speeds), slow play (2,4,8,16 speed), single frames is play, and the function such as pulls.
Claims (3)
1. the playback of video inverted order and the method for rapidly positioning based on Haikang DVR, is characterized in that, comprises the steps:
(1) obtain the present video playback end time, from this time point, start to put upside down;
(2) being set the time started is 0, represents to start can continue to put upside down from the video end time;
(3) time started and end time are converted to the system file time, are convenient to call relevant first floor system function;
(4) start download thread, in this thread, use the concept of mutual exclusion variable, to control each thread access variable in order, prevent that thread from stopping up;
(5) count from the end time, play one section of video every 5 seconds, processes the video code flow in this 5 second; Utilize buffering area and call back function to carry out the Reverse Play of corresponding video;
(6) repeat above-mentioned flow process, until enter the end of putting upside down after the flow process that stops putting upside down;
(7) start to enter the played in order flow process of video.
2. method according to claim 1, is characterized in that: described step (5) further comprises:
(51) detect in real time download progress, when download progress 100%, after downloading, the code stream that stops this road video receives;
(52) utilize the size of buffer area and the port flow data that corresponding position calculation makes new advances;
(53) utilize new calculating location to start to call bottom function and carry out Reverse Play.
3. method according to claim 1, is characterized in that: described step (6) further comprises:
(61) obtain the time of this halt of putting upside down;
(62) stop putting upside down thread, and clear up associated internal memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310165754.8A CN104144318A (en) | 2013-05-08 | 2013-05-08 | Video inverted-order playback and rapid positioning method based on HIKVISION DVR |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310165754.8A CN104144318A (en) | 2013-05-08 | 2013-05-08 | Video inverted-order playback and rapid positioning method based on HIKVISION DVR |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104144318A true CN104144318A (en) | 2014-11-12 |
Family
ID=51853379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310165754.8A Pending CN104144318A (en) | 2013-05-08 | 2013-05-08 | Video inverted-order playback and rapid positioning method based on HIKVISION DVR |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104144318A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989639A (en) * | 2015-02-16 | 2016-10-05 | 径卫视觉科技(上海)有限公司 | Life auxiliary type intelligent driving recording system |
CN107509110A (en) * | 2017-08-03 | 2017-12-22 | 乐蜜有限公司 | A kind of loop play method and device of video file |
CN111372118A (en) * | 2018-12-25 | 2020-07-03 | 深圳Tcl新技术有限公司 | Screen capturing method, intelligent terminal and storage medium |
CN111866549A (en) * | 2019-04-29 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Video processing method and device, terminal and storage medium |
CN112738635A (en) * | 2020-12-28 | 2021-04-30 | 上海掌门科技有限公司 | Method and equipment for playing video information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060117351A1 (en) * | 2004-07-15 | 2006-06-01 | Microsoft Corporation | Content recordation techniques |
CN101390393A (en) * | 2006-02-28 | 2009-03-18 | 联合视频制品公司 | Systems and methods for enhanced trick-play functions |
US20090290849A1 (en) * | 2008-05-16 | 2009-11-26 | Sony Corporation | Image processing apparatus, image processing method, image playback apparatus, image playback method, and program |
CN101933093A (en) * | 2008-02-04 | 2010-12-29 | 微软公司 | Rewind playback of media |
WO2012036658A1 (en) * | 2010-09-17 | 2012-03-22 | Thomson Licensing | Method for semantics based trick mode play in video system |
-
2013
- 2013-05-08 CN CN201310165754.8A patent/CN104144318A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060117351A1 (en) * | 2004-07-15 | 2006-06-01 | Microsoft Corporation | Content recordation techniques |
CN101390393A (en) * | 2006-02-28 | 2009-03-18 | 联合视频制品公司 | Systems and methods for enhanced trick-play functions |
CN101933093A (en) * | 2008-02-04 | 2010-12-29 | 微软公司 | Rewind playback of media |
US20090290849A1 (en) * | 2008-05-16 | 2009-11-26 | Sony Corporation | Image processing apparatus, image processing method, image playback apparatus, image playback method, and program |
WO2012036658A1 (en) * | 2010-09-17 | 2012-03-22 | Thomson Licensing | Method for semantics based trick mode play in video system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989639A (en) * | 2015-02-16 | 2016-10-05 | 径卫视觉科技(上海)有限公司 | Life auxiliary type intelligent driving recording system |
CN107509110A (en) * | 2017-08-03 | 2017-12-22 | 乐蜜有限公司 | A kind of loop play method and device of video file |
US11070886B2 (en) | 2017-08-03 | 2021-07-20 | Hong Kong Liveme Corporation Limited | Method and apparatus for looping a video file |
CN111372118A (en) * | 2018-12-25 | 2020-07-03 | 深圳Tcl新技术有限公司 | Screen capturing method, intelligent terminal and storage medium |
CN111866549A (en) * | 2019-04-29 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Video processing method and device, terminal and storage medium |
US11600299B2 (en) | 2019-04-29 | 2023-03-07 | Tencent Technology (Shenzhen) Company Limited | Video processing method and apparatus, terminal, and storage medium |
CN111866549B (en) * | 2019-04-29 | 2023-03-24 | 腾讯科技(深圳)有限公司 | Video processing method and device, terminal and storage medium |
US11922972B2 (en) | 2019-04-29 | 2024-03-05 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for video coding |
CN112738635A (en) * | 2020-12-28 | 2021-04-30 | 上海掌门科技有限公司 | Method and equipment for playing video information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107295284B (en) | Method and device for generating, retrieving and playing video file consisting of audio and picture | |
US9779775B2 (en) | Automatic generation of compilation videos from an original video based on metadata associated with the original video | |
US10902676B2 (en) | System and method of controlling a virtual camera | |
US20160099023A1 (en) | Automatic generation of compilation videos | |
CN104144318A (en) | Video inverted-order playback and rapid positioning method based on HIKVISION DVR | |
US7644364B2 (en) | Photo and video collage effects | |
US7483624B2 (en) | System and method for indexing a video sequence | |
US8542255B2 (en) | Associating media content items with geographical data | |
US20050216839A1 (en) | Audio scrubbing | |
KR101484844B1 (en) | Apparatus and method for privacy masking tool that provides real-time video | |
WO2017079241A1 (en) | Improved highlight-based movie navigation, editing and sharing | |
EP3748973A1 (en) | Method and system for programmable loop recording | |
WO2017092330A1 (en) | Playing method and apparatus based on player | |
KR101519576B1 (en) | Method and apparatus for correcting rotation of video frames | |
CN110944123A (en) | Intelligent guide method for sports events | |
WO2017012440A1 (en) | Audio/video jump-playing method and apparatus | |
CN104639954A (en) | Video reverse back checking method based on digital video recorder | |
WO2017080241A1 (en) | Time-lapse photographing method and device | |
US20150324395A1 (en) | Image organization by date | |
US10741213B1 (en) | Systems and methods for modifying video edits | |
CN111541927A (en) | Video playing method and device | |
US10096259B2 (en) | Video playback device and method | |
CN102340705B (en) | System and method for obtaining key frame | |
CN104170367A (en) | Virtual shutter image capture | |
US11545186B2 (en) | Systems and methods for efficient media editing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141112 |
|
WD01 | Invention patent application deemed withdrawn after publication |