CN103309930B - Based on historical video frequency searching and the method for down loading of index service - Google Patents

Based on historical video frequency searching and the method for down loading of index service Download PDF

Info

Publication number
CN103309930B
CN103309930B CN201310079769.2A CN201310079769A CN103309930B CN 103309930 B CN103309930 B CN 103309930B CN 201310079769 A CN201310079769 A CN 201310079769A CN 103309930 B CN103309930 B CN 103309930B
Authority
CN
China
Prior art keywords
file
idx
video
download
downloaded
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
CN201310079769.2A
Other languages
Chinese (zh)
Other versions
CN103309930A (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.)
Sichuan Tianyi Network Co ltd
Original Assignee
SICHUAN SURFING NETWORK SERVICE 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 SICHUAN SURFING NETWORK SERVICE Co Ltd filed Critical SICHUAN SURFING NETWORK SERVICE Co Ltd
Priority to CN201310079769.2A priority Critical patent/CN103309930B/en
Publication of CN103309930A publication Critical patent/CN103309930A/en
Application granted granted Critical
Publication of CN103309930B publication Critical patent/CN103309930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of historical video frequency searching and method for down loading based on index service, based on historical video frequency searching and the method for down loading of index service, the retrieval of historical video and downloading service all depend on the recorded information of idx index file, local this time period is interior without historical video, the corresponding idx file of file generated inquiring according to front end, if there is historical video, according to the file update idx file inquiring; In downloading process, according to frame, analysis obtains the timestamp of last I frame, the xml node of downloaded file in recording channel idx, and according to file idx and the corresponding list of file generated that downloaded, generating according to list need to be as the time period video of front end request. Adopt the recorded information of idx index file to retrieve and download, carry out segmentation preservation for the video after downloading, inquire about and watch conveniently.

Description

Based on historical video frequency searching and the method for down loading of index service
Technical field
The present invention relates to a kind of historical video frequency searching and method for down loading based on index service.
Background technology
Video monitoring has a long history, and is traditionally widely used in safety-security area, is to assist public safety department to fight crime, maintain the important means of social stability. Along with popularizing of broadband, the development of computer technology, the raising of image processing techniques, video monitoring is penetrated into other various fields such as education, government, amusement, medical treatment, hotel, motion just more and more widely.
Video Supervision Technique is divided into three phases according to equipment development process: analog video monitoring, digital video monitoring, intelligent video monitoring, in the past few decades, computer vision field the obtaining of video data, store, transmission and operating aspect all obtained very large breakthrough and progress.
Video monitoring system has the following advantages:
(1) safe, image mask technology, prevents from illegally distorting Video Document; Only have authorized user just can the system of entering to check, call video data, can provide to the administrative staff of different identity the management account of different rights; Effectively prevent malicious sabotage; Powerful log management function, has ensured the safe handling of dedicated system. The data of transmitting between server end and client, all through encrypting.
(2) rights management is to ensure online personnel's privacy and the safety of Video Document, and this video monitoring system has operating right management, and strict control of authority is carried out in system login, operation, ensures the security of system.
Video monitoring can also carry out video playback and video is downloaded, conveniently in real time monitor video is analyzed, but in downloading process, if fruit selects the video time section downloaded longer, easily occur that video downloads incomplete phenomenon, or for the time period that repeats to select, be prone to situation about repeatedly downloading, not only waste broadband, also easily take the memory headroom of computer or other memory devices, situation about also easily duplicating while watching, brings a lot of inconveniences to video analysis.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provide a kind of recorded information of the idx of employing index file to retrieve and download, carry out segmentation preservation for the video after downloading, be difficult for duplicating download, inquire about and watch historical video frequency searching and the method for down loading based on index service easily.
The object of the invention is to be achieved through the following technical solutions: based on historical video frequency searching and the method for down loading of index service, the retrieval of historical video and downloading service all depend on the recorded information of idx index file, and it comprises the following steps:
S101: the video file in the historical video file period of inquiry front end, if local this time period is interior without historical video, the corresponding idx file of file generated inquiring according to front end, otherwise according to the file update idx file inquiring;
S102: the video of asking hour is downloaded;
S103 a: time point in hour of request download starts to browse, after previous video downloads to the time that starts to browse time, user asks to download the video that starts to browse front certain time point;
S104: analysis obtains the timestamp of last I frame according to frame, the xml node of downloaded file in recording channel idx, according to file idx and the corresponding list of file generated that downloaded, generating according to list need to be as the time period video of front end request;
S105: the download of historical video adopts the logical process of backward priority, is when should preferentially downloading after the video of downloading the time that completing user request downloads after this request time and holds the video of download, and then continue to download video file above;
S106: downloaded after current historical video, download thread starts to download uncompleted video;
S107: when user clicks after the video frequency searching that enters hour, the principle that the file that the needs that draw according to passage idx are downloaded takes backward time priority to download equally;
S108: passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the front end file of this hour, download module is according to xml transaction file idx, if front end is not, adds; Otherwise illustrate that front end deleted, client should be deleted.
Described idx file comprises passage idx and file idx, and passage idx is the idx of camera, index the history file downloaded of corresponding camera this locality; File idx, index respective file I frame relativity shift and be under the jurisdiction of which concrete video file.
Described passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the file of the front end of this hour, download module is according to xml transaction file idx, if front end has file idx, client is not added; If front end does not have or front end has been deleted, client is also deleted.
Described file idx and front end video file are consistent, and by analysis channel idx, generate the threshold value that idx file is not downloaded.
If the video time length of user's request is less than 2 minutes, before request time, move back download in 2 minutes.
In downloading process, when user closes thread, judge whether the playout length of current file is greater than 20 seconds, if be not more than 20 seconds, directly delete idx record.
The invention has the beneficial effects as follows: adopt the recorded information of idx index file to retrieve and download, carry out segmentation preservation for the video after downloading, be difficult for duplicating download, inquire about and watch conveniently; Can judge in downloading process, when user closes thread, whether the playout length of current file is greater than 20 seconds, if be not more than 20 seconds, directly delete idx record, if the timestamp of record is greater than more than 20 seconds, delete the unnecessary data of corresponding video file by the deviation post of record.
Brief description of the drawings
Fig. 1 is download flow chart of the present invention.
Detailed description of the invention
Further illustrate technical scheme of the present invention below in conjunction with accompanying drawing, but the content that the present invention protects is not limited to the following stated.
As shown in Figure 1, based on historical video frequency searching and the method for down loading of index service, the retrieval of historical video and downloading service all depend on the recorded information of idx index file, and it comprises the following steps:
S101: the video file in the historical video file period of inquiry front end, if local this time period is interior without historical video, the corresponding idx file of file generated inquiring according to front end, otherwise according to the file update idx file inquiring;
S102: the video of asking hour is downloaded;
S103 a: time point in hour of request download starts to browse, after previous video downloads to the time that starts to browse time, user asks to download the video that starts to browse front certain time point;
S104: analysis obtains the timestamp of last I frame according to frame, the xml node of downloaded file in recording channel idx, according to file idx and the corresponding list of file generated that downloaded, generating according to list need to be as the time period video of front end request;
S105: the download of historical video adopts the logical process of backward priority, is when should preferentially downloading after the video of downloading the time that completing user request downloads after this request time and holds the video of download, and then continue to download video file above;
S106: downloaded after current historical video, download thread starts to download uncompleted video;
S107: when user clicks after the video frequency searching that enters hour, the principle that the file that the needs that draw according to passage idx are downloaded takes backward time priority to download equally;
S108: passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the front end file of this hour, download module is according to xml transaction file idx, if front end is not, adds; Otherwise illustrate that front end deleted, client should be deleted.
Described idx file comprises passage idx and file idx, and passage idx is the idx of camera, index the history file downloaded of corresponding camera this locality; File idx, index respective file I frame relativity shift and be under the jurisdiction of which concrete video file.
Described passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the file of the front end of this hour, download module is according to xml transaction file idx, if front end has file idx, client is not added; If front end does not have or front end has been deleted, client is also deleted.
Described file idx and front end video file are consistent, and by analysis channel idx, generate the threshold value that idx file is not downloaded.
If the video time length of user's request is less than 2 minutes, before request time, move back download in 2 minutes.
In downloading process, when user closes thread, whether the playout length that judges current file is greater than 20 seconds, if be not more than 20 seconds, directly delete idx record, for example download for the first time as 80710-80934, user clicks 80300 and starts to play for the second time, should download in theory this segment data of 80300-80709, if downloaded to this time, 80659 users have selected to close or the redirect of other times is moved, judging that current 80659 and 80709 these time points that download to differ this time is less than 20 seconds, so directly the I frame recording of deleted file idx record ensures 80300 this last 1 frames of I frame recording, if the timestamp of record was greater than for 80709 these times more than 20 seconds, delete the unnecessary data of corresponding video file by the deviation post of record.

Claims (6)

1. historical video frequency searching and the method for down loading based on index service, the retrieval of historical video and downloading service all depend on the recorded information of idx index file, it is characterized in that: it comprises the following steps:
S101: the video file in the historical video file period of inquiry front end, if local this time period is interior without historical video, the corresponding idx file of file generated inquiring according to front end, otherwise according to the file update idx file inquiring;
S102: the video of asking hour is downloaded;
S103 a: time point in hour of request download starts to browse, after previous video downloads to the time that starts to browse time, user asks to download the video that starts to browse front certain time point;
S104: analysis obtains the timestamp of last I frame according to frame, the xml node of downloaded file in recording channel idx, according to file idx and the corresponding list of file generated that downloaded, generating according to list need to be as the time period video of front end request;
S105: the download of historical video adopts the logical process of backward priority, is when should preferentially downloading after the video of downloading the time that completing user request downloads after this request time and holds the video of download, and then continue to download video file above;
S106: downloaded after current historical video, download thread starts to download uncompleted video;
S107: when user clicks after the video frequency searching that enters hour, the principle that the file that the needs that draw according to passage idx are downloaded takes backward time priority to download equally;
S108: passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the front end file of this hour, download module is according to xml transaction file idx, if front end is not, adds; Otherwise illustrate that front end deleted, client should be deleted.
2. historical video frequency searching and the method for down loading based on index service according to claim 1, it is characterized in that: described idx file comprises passage idx and file idx, passage idx is the idx of camera, index the history file downloaded of corresponding camera this locality; File idx, index respective file I frame relativity shift and be under the jurisdiction of which concrete video file.
3. historical video frequency searching and the method for down loading based on index service according to claim 2, it is characterized in that: described passage idx has recorded the file idx generating with the partitioning scheme of front end file, the query video business that upper strata client enters one hour, first issue the xml of the file of the front end of this hour, download module is according to xml transaction file idx, if front end has file idx, client is not added; If front end does not have or front end has been deleted, client is also deleted.
4. historical video frequency searching and the method for down loading based on index service according to claim 2, is characterized in that: described file idx and front end video file are consistent, and by analysis channel idx, generates the threshold value that idx file is not downloaded.
5. historical video frequency searching and the method for down loading based on index service according to claim 1, is characterized in that: if the video time length of user's request is less than 2 minutes, before request time, move back download in 2 minutes.
6. historical video frequency searching and the method for down loading based on index service according to claim 1, it is characterized in that: in downloading process, when user closes thread, judge whether the playout length of current file is greater than 20 seconds, if be not more than 20 seconds, directly delete idx record.
CN201310079769.2A 2013-03-13 2013-03-13 Based on historical video frequency searching and the method for down loading of index service Active CN103309930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310079769.2A CN103309930B (en) 2013-03-13 2013-03-13 Based on historical video frequency searching and the method for down loading of index service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310079769.2A CN103309930B (en) 2013-03-13 2013-03-13 Based on historical video frequency searching and the method for down loading of index service

Publications (2)

Publication Number Publication Date
CN103309930A CN103309930A (en) 2013-09-18
CN103309930B true CN103309930B (en) 2016-05-11

Family

ID=49135151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310079769.2A Active CN103309930B (en) 2013-03-13 2013-03-13 Based on historical video frequency searching and the method for down loading of index service

Country Status (1)

Country Link
CN (1) CN103309930B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547805A (en) * 2015-09-23 2017-03-29 北京奇虎科技有限公司 The method and apparatus of optimization database index
CN106131689A (en) * 2016-06-27 2016-11-16 乐视控股(北京)有限公司 Method for downloading video and device
CN114363670B (en) * 2019-08-01 2024-05-28 浙江大华技术股份有限公司 Video reading method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682016A (en) * 2011-03-15 2012-09-19 新奥特(北京)视频技术有限公司 Indexing system and method supporting MOV (Movie Digital Video Technology)/3GP (3G Player)/MP4 (Mobile Pentium 4) files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072037A1 (en) * 2009-09-18 2011-03-24 Carey Leigh Lotzer Intelligent media capture, organization, search and workflow

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682016A (en) * 2011-03-15 2012-09-19 新奥特(北京)视频技术有限公司 Indexing system and method supporting MOV (Movie Digital Video Technology)/3GP (3G Player)/MP4 (Mobile Pentium 4) files

Also Published As

Publication number Publication date
CN103309930A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
US20240152642A1 (en) Media streaming
US10367913B2 (en) Systems and methods for tracking user behavior using closed caption text
CN105450987A (en) Intelligent recognition platform video monitoring early warning system
JP2019537760A (en) Video-based data acquisition, image capture and analysis configuration
US11134283B2 (en) Systems and methods for storing a media asset rescheduled for transmission from a different source
CN110365629A (en) A kind of method and system monitoring video data secure storage in real time
US11076180B2 (en) Concurrent media stream aggregate fingerprinting
WO2021138499A1 (en) Methods and apparatus for facial recognition on a user device
CN113301431A (en) Video data encryption and decryption method and device, electronic equipment and system
US20200092520A1 (en) Computer implemented systems frameworks and methods configured for enabling review of incident data
US20150030313A1 (en) Displaying session audit logs
CN103309930B (en) Based on historical video frequency searching and the method for down loading of index service
US20200195979A1 (en) Method and system for storing video, and method for accessing video
CN112256893A (en) Multimedia data processing method and device, electronic equipment and storage medium
US10719552B2 (en) Focalized summarizations of a video stream
US20240163503A1 (en) Systems and methods for storing offsets of a recorded program in a network dvr
US20210377628A1 (en) Method and apparatus for outputting information
US12081844B2 (en) Systems and methods for discovery of, identification of, and ongoing monitoring of viral media assets
CN112492329B (en) Live broadcast method and device
CN113572757A (en) Server access risk monitoring method and device
CA3010007C (en) Systems and methods for bandwidth estimation in oscillating networks
US20140198027A1 (en) Media Distribution System
CN112488872A (en) Electric power operation data monitoring system
CN116634098A (en) Power production operation ticket operation risk identification system and method based on video monitoring
CN107424382A (en) A kind of underground palace monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Historical video retrieval and download method based on Index Service

Effective date of registration: 20220711

Granted publication date: 20160511

Pledgee: Zheshang Bank Co.,Ltd. Chengdu Branch

Pledgor: SICHUAN TIANYI NETWORK SERVICE Co.,Ltd.

Registration number: Y2022510000204

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230710

Granted publication date: 20160511

Pledgee: Zheshang Bank Co.,Ltd. Chengdu Branch

Pledgor: SICHUAN TIANYI NETWORK SERVICE Co.,Ltd.

Registration number: Y2022510000204

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Third floor, No.10, Jiuxing Avenue, high tech Zone, Chengdu, Sichuan 610041

Patentee after: Sichuan Tianyi Network Co.,Ltd.

Address before: Third floor, No.10, Jiuxing Avenue, high tech Zone, Chengdu, Sichuan 610041

Patentee before: SICHUAN TIANYI NETWORK SERVICE Co.,Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Historical Video Retrieval and Download Method Based on Index Service

Effective date of registration: 20230804

Granted publication date: 20160511

Pledgee: Zheshang Bank Co.,Ltd. Chengdu Branch

Pledgor: Sichuan Tianyi Network Co.,Ltd.

Registration number: Y2023510000192