CN109189992A - A kind of video time search method in cloud monitoring system - Google Patents

A kind of video time search method in cloud monitoring system Download PDF

Info

Publication number
CN109189992A
CN109189992A CN201811134815.3A CN201811134815A CN109189992A CN 109189992 A CN109189992 A CN 109189992A CN 201811134815 A CN201811134815 A CN 201811134815A CN 109189992 A CN109189992 A CN 109189992A
Authority
CN
China
Prior art keywords
video
file
time
frame
database
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
Application number
CN201811134815.3A
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201811134815.3A priority Critical patent/CN109189992A/en
Publication of CN109189992A publication Critical patent/CN109189992A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The method that this patent proposes the video time retrieval in the new cloud monitoring system environment of one kind.By storing video flowing by designated time period to file, and temporal information is stored by peculiar format into database, the first information from database retrieval to file in video frequency searching, then obtain file.The present invention improves the storage and retrieval performance of monitor video, reduces the management cost of video on cloud monitoring system platform, improves the service quality of system.

Description

A kind of video time search method in cloud monitoring system
(1) technical field
The present invention relates to a kind of video time search methods in cloud monitoring system.
(2) background technique
In recent years, more and more people pay close attention to Video Supervision Technique, so that Video Supervision Technique is constantly towards digitlization, intelligence The direction of energyization is developed, and at the same time, multiple video monitoring sources start to turn to centralized management, the clarity of video monitoring picture Also constantly promoted, and also increased considerably in the demand of memory capacity, cloud video monitoring system with more and more extensive. But therewith caused by influence be video monitoring system management cost raising.
The video stream technology that monitoring system is used at present is mainly RTSP (Real Time Streaming Protocol). RTSP is a kind of network application agreement, aims at amusement and the use of communication system, to control streaming media server.The agreement is used for Media session between creation and controlling terminal.The client of media server issues VCR order, such as plays, and records and temporary Stop, in order to the media of real-time control from server to client (video on demand) or from client to server (voice recording) Stream.
Since the duration video flowing of monitor video is often longer, it is mostly based on the video monitoring system of cloud storage at present System only simply stores video monitoring record.The cloud storage very good solution memory space problem of monitor video, But requirement also is proposed to video frequency searching and managerial ability simultaneously, considerably increase the management cost of video.It is traditional based on The video retrieval method of time is mostly to be indexed by catalogue and file to video file, when amount of video is excessive, accessibility It can be affected, and be not easy to more copy backup maintenances under cloud storage environment.Therefore, set forth herein a kind of videos based on duration Video flowing is stored by designated time period to file, and temporal information storage is improved monitoring into database by search method The storage and retrieval performance of video, reduce the management cost of video on cloud monitoring system platform, improve the Service Quality of system Amount.
(3) summary of the invention
The purpose of the present invention monitors the time search method of history video in the case where providing a kind of cloud monitoring system platform.The party Method improves the ease for use of platform for the optimization of video frequency searching in cloud monitoring system platform video management.
The present invention is implemented as follows:
In cloud monitoring system platform, video source and system is set to establish connection by RTSP agreement, system receives video flowing It parses and is simultaneously saved in file by frame time segment later, while recording the relevant information of file to database.When needing to retrieve When video, it is passed to video relevant parameter, according to be passed to parameter search to the associated documents stored, and by the view of storage Frequency file merge become a complete file, or with RTSP video stream protocol by video stream to requesting party.
There are following parameter information, multiple video source M={ S of system maintenance in system1,S2,S3…Sn, each video source Fragmented storage is to multiple file N={ F1,F2,F3... in, video segmentation time Ti=30 (30 minutes files of default), together When save the corresponding video source S of each file in the databasei, filename Fn, starting video frame time stab Ts, end video frame Time stamp Te, video file creating time Ds, video file end time De
Its specific method step for saving video file are as follows:
(1) system and video source SiEstablish connection;
(2) system new files Fn, and initialize DsFor current time;
(3) start to receive video flowing, and be converted into video frame and be written to file FnIn;
(4) if the video frame of write-in is the first frame of file, current time stamp is recorded to Ts
(5) one frame of every write-in updates the timestamp of this frame to Te
(6) newest time stamp T is calculated using formulaeThe time stamp T started with filesDifference d=Te-Ts
(7) if d >=Ti* 60000, then record current end time De, by Si、Fn、Ts、Te、Ds、DeIt is stored in database, and It executes step (2);
Otherwise, step (5) are executed;
(8) video flowing SiIt disconnects, by Si、Fn、Ts、Te、Ds、DeIt is stored in database.
The specific method step of its video frequency searching are as follows:
(1) monitor video for needing to retrieve for user, input monitoring source Si', searched targets time started D 's, retrieval mesh Mark end time D 'e
(2) RTSP video flowing is established with user to connect;
(3) pass through condition Si'=Si、D′s≥Ds、D′e≤DeRetrieval time section is found in the database by query time All video file { f in section1,f2…fn};
(4) video file { f is successively accessed1,f2…fn, remember that currently accessed file is f;
(5) if f=f1, the timestamp for calculating current accessed is T=(D 's-Dsf1)+Tsf1
(6) read access time stamp is the frame of T to RTSP video flowing from file f;
(7) next frame is read, and by its timestamp assignment to T;
(8) for ending time stamp T corresponding to current file fefIf meeting T=Tef, execute step (9);
Otherwise, step (6) are executed;
(9) from file set { f1,f2…fnIn search next file f ', if f ' exists, f=f ', t=Tsf, then hold Row step (6);
Otherwise, poll-final closes RTSP video flowing;
Video retrieval method in cloud monitoring system set forth in the present invention, core are: monitoring video flow segmentation is existed It is stored, and will be recorded in database with the relevant information of stored video file in cloud system.In user to video text When the retrieval of part, the video file of section can be from file by the calculating to timestamp the time required to can quickly finding The starting and ending position of retrieved video information is found, and splices file and returns to video in the form of video flowing.
Its main innovation point is as follows:
1. monitoring video flow segmentation under cloud monitoring system is saved.By to the monitor video under cloud monitoring system environment The segmentation of stream saves, and has better adapted to more copy storage strategies under cloud storage environment.Video segmentation can be used as parameter simultaneously It modifies at any time, improves the flexibility of file management.
2. the monitor video based on timestamp records search method.Pass through utilization to relevant database and time The calculating of stamp, user can be accessed the monitor video in any time period in the form of video flowing in the case where cloud monitors environment, met While user search demand, the design difficulty of interface is reduced.
(4) Detailed description of the invention
Fig. 1 video flowing saves flow chart
Fig. 2 video frequency searching flow chart
(5) specific embodiment
The method of the invention is characterized in that:
There are following parameter information, multiple video source M={ S of system maintenance in system1,S2,S3…Sn, each video source Fragmented storage is to multiple file N={ F1,F2,F3... in, video segmentation time Ti=30 (30 minutes files of default), together When save the corresponding video source S of each file in the databasei, filename Fn, starting video frame time stab Ts, end video frame Time stamp Te, video file creating time Ds, video file end time De
Its specific method step for saving video file are as follows:
(1) system and video source SiEstablish connection;
(2) system new files Fn, and initialize DsFor current time;
(3) start to receive video flowing, and be converted into video frame and be written to file FnIn;
(4) if the video frame of write-in is the first frame of file, current time stamp is recorded to Ts
(5) one frame of every write-in updates the timestamp of this frame to Te
(6) newest time stamp T is calculated using formulaeThe time stamp T started with filesDifference d=Te-Ts
(7) if d >=Ti* 60000, then record current end time De, by Si、Fn、Ts、Te、Ds、DeIt is stored in database, and It executes step (2);
Otherwise, step (5) are executed;
(8) video flowing SiIt disconnects, by Si、Fn、Ts、Te、Ds、DeIt is stored in database.
The specific method step of its video frequency searching are as follows:
(1) monitor video for needing to retrieve for user, input monitoring source Si', searched targets time started D 's, retrieval mesh Mark end time D 'e
(2) RTSP video flowing is established with user to connect;
(3) pass through condition Si'=Si、D′s≥Ds、D′e≤DeRetrieval time section is found in the database by query time All video file { f in section1,f2…fn};
(4) video file { f is successively accessed1,f2…fn, remember that currently accessed file is f;
(5) if f=f1, the timestamp for calculating current accessed is T=(D 's-Dsf1)+Tsf1
(6) read access time stamp is the frame of T to RTSP video flowing from file f;
(7) next frame is read, and by its timestamp assignment to T;
(8) for ending time stamp T corresponding to current file fefIf meeting T=Tef, execute step (9);
Otherwise, step (6) are executed;
(9) from file set { f1,f2…fnIn search next file f ', if f ' exists, f=f ', t=Tsf, then hold Row step (6);
Otherwise, poll-final closes RTSP video flowing;
Video retrieval method in cloud monitoring system set forth in the present invention, core are: monitoring video flow segmentation is existed It is stored, and will be recorded in database with the relevant information of stored video file in cloud system.In user to video text When the retrieval of part, the video file of section can be from file by the calculating to timestamp the time required to can quickly finding The starting and ending position of retrieved video information is found, and splices file and returns to video in the form of video flowing.

Claims (1)

1.一种用于云监控系统中的视频时间检索方法,本发明是这样实现的:1. a video time retrieval method for cloud monitoring system, the present invention is realized like this: 在云监控系统平台中,通过RTSP协议使视频源与系统建立连接,系统接收视频流之后解析并按帧分时间段保存到文件中,同时记录文件的相关信息到数据库。当需要检索视频的时候,传入视频相关参数,根据所传入参数检索到所存储的相关文件,并将存储的视频文件合并成为一个完整文件,或者以RTSP视频流协议将视频流传送给请求方。In the cloud monitoring system platform, the video source is connected to the system through the RTSP protocol. After the system receives the video stream, it parses it and saves it to the file by frame and time period, and records the relevant information of the file to the database at the same time. When the video needs to be retrieved, the video related parameters are passed in, the stored related files are retrieved according to the incoming parameters, and the stored video files are merged into a complete file, or the video stream is sent to the request by the RTSP video streaming protocol. square. 系统中有如下参数信息,系统维护的多个视频源M={S1,S2,S3...Sn},每个视频源分段存储到多个文件N={F1,F2,F3...}中,视频分段时间Ti=30(默认30分钟一个文件),同时在数据库中保存每个文件对应的视频源Si、文件名Fn、起始视频帧时间戳Ts、末尾视频帧时间戳Te、视频文件创建时间Ds、视频文件结束时间DeThere is the following parameter information in the system. Multiple video sources M = {S 1 , S 2 , S 3 . . . S n } maintained by the system. 2 , F 3 ... }, video segmentation time T i =30 (default 30 minutes for one file), and save the video source Si, file name F n , starting video frame corresponding to each file in the database at the same time Timestamp T s , end video frame timestamp Te , video file creation time D s , video file end time De . 其保存视频文件的具体方法步骤为:The specific method steps for saving the video file are as follows: (1)系统与视频源Si建立连接;(1) The system establishes a connection with the video source Si ; (2)系统新建文件Fn,并初始化Ds为当前时间;(2) The system creates a new file F n , and initializes D s as the current time; (3)开始接收视频流,并转换成视频帧写入到文件Fn中;(3) start to receive video stream, and convert into video frame and write in file F n ; (4)如果写入的视频帧为文件的第一帧,则记录当前时间戳到Ts(4) if the video frame of writing is the first frame of the file, then record the current time stamp to T s ; (5)每写入一帧均更新这一帧的时间戳到Te(5) every time a frame is written, the time stamp of this frame is updated to T e ; (6)利用公式计算最新的时间戳Te与文件开始的时间戳Ts之差d=Te-Ts (6) Calculate the difference between the latest timestamp T e and the timestamp T s at the beginning of the file using the formula d=T e -T s (7)若d≥Ti*60000,则记录当前结束时间De,将Si、Fn、Ts、Te、Ds、De存入数据库中,并执行步骤(2);(7) If d≥T i *60000, then record the current end time De, store Si , Fn , Ts , Te , Ds , De in the database, and execute step (2); 否则,执行步骤(5);Otherwise, perform step (5); (8)视频流Si断开,将Si、Fn、Ts、Te、Ds、De存入数据库中。(8) The video stream Si is disconnected , and Si, Fn , Ts , Te , Ds , De are stored in the database. 其视频检索的具体方法步骤为:The specific method steps of its video retrieval are as follows: (1)对于用户需要检索的监控视频,输入监控源S′i、检索目标开始时间D′s、检索目标结束时间D′e(1) For the surveillance video that the user needs to retrieve, input the surveillance source S′ i , the retrieval target start time D′ s , and the retrieval target end time D′ e ; (2)与用户建立RTSP视频流连接;(2) Establish an RTSP video stream connection with the user; (3)通过条件S′i=Si、D′s≥Ds、D′e≤De在数据库中找到检索时间段按到查询时间段内的所有视频文件{f1,f2...fn};(3) Through the conditions S′ i =S i , D′ s ≥ D s , D′ e ≤ D e , find all video files in the database from the retrieval time period to the query time period {f 1 , f 2 .. .f n }; (4)依次访问视频文件{f1,f2...fn},记当前所访问文件为f;(4) Access the video files {f 1 , f 2 . . . f n } in turn, and denote the currently accessed file as f; (5)若f=f1,则计算当前访问的时间戳为T=(D′s-Dsf1)+Tsf1(5) If f=f1, the timestamp of the current access is calculated as T=(D′ s -D sf1 )+T sf1 ; (6)从文件f中读取时间戳为T的帧到RTSP视频流;(6) read the frame with time stamp T from file f to RTSP video stream; (7)读取下一帧,并将其时间戳赋值到T;(7) Read the next frame and assign its timestamp to T; (8)对于当前文件f所对应的结束时间戳Tef,如果满足T=Tef,执行步骤(9);(8) For the end time stamp T ef corresponding to the current file f, if T=T ef is satisfied, execute step (9); 否则,执行步骤(6);Otherwise, perform step (6); (9)从文件集{f1,f2...fn}中查找下一个文件f′,若f′存在,则f=f′,t=Tsf,然后执行步骤(6);(9) Find the next file f' from the file set {f 1 , f 2 ... f n }, if f' exists, then f=f', t=T sf , and then execute step (6); 否则,查询结束,关闭RTSP视频流;Otherwise, the query ends, and the RTSP video stream is closed; 本发明所阐述的云监控系统中的视频检索方法,核心在于:将监控视频流分段在云系统中进行存储,并将与所存储视频文件的相关信息记录到数据库中。在用户对视频文件的检索时,可以快速的找到所需时间段的视频文件,通过对时间戳的计算,能够从文件中找到所检索视频信息的起始和结束位置,并拼接文件将视频以视频流的形式返回。The core of the video retrieval method in the cloud monitoring system described in the present invention is that the monitoring video stream is segmented and stored in the cloud system, and the related information of the stored video files is recorded in the database. When retrieving video files, the user can quickly find the video files in the required time period. By calculating the time stamp, the start and end positions of the retrieved video information can be found from the files, and the files can be spliced to combine the video with Returns in the form of a video stream.
CN201811134815.3A 2018-09-27 2018-09-27 A kind of video time search method in cloud monitoring system Pending CN109189992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811134815.3A CN109189992A (en) 2018-09-27 2018-09-27 A kind of video time search method in cloud monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811134815.3A CN109189992A (en) 2018-09-27 2018-09-27 A kind of video time search method in cloud monitoring system

Publications (1)

Publication Number Publication Date
CN109189992A true CN109189992A (en) 2019-01-11

Family

ID=64907571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811134815.3A Pending CN109189992A (en) 2018-09-27 2018-09-27 A kind of video time search method in cloud monitoring system

Country Status (1)

Country Link
CN (1) CN109189992A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055612A (en) * 2019-12-27 2021-06-29 浙江宇视科技有限公司 Video playing method, device, electronic equipment, system and medium
CN113641717A (en) * 2021-07-28 2021-11-12 通号城市轨道交通技术有限公司 Method and device for searching change of train operation diagram, electronic equipment and storage medium
CN113905253A (en) * 2021-10-11 2022-01-07 北京仁光科技有限公司 Method and system for interactive duplication of signal source, readable storage medium and electronic equipment
CN114363670A (en) * 2019-08-01 2022-04-15 浙江大华技术股份有限公司 Video reading method, device, equipment and storage medium
CN115618023A (en) * 2022-12-20 2023-01-17 苏州万店掌网络科技有限公司 Video retrieval method, system and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281651A (en) * 2014-09-16 2015-01-14 福建星网锐捷安防科技有限公司 Method and system for searching large volume of video data
CN107959892A (en) * 2017-12-11 2018-04-24 南京酷亨网络科技有限公司 A kind of radar and video data method for rapidly positioning enforced the law with Yu Haiyang
US10372758B2 (en) * 2011-12-22 2019-08-06 Tivo Solutions Inc. User interface for viewing targeted segments of multimedia content based on time-based metadata search criteria

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10372758B2 (en) * 2011-12-22 2019-08-06 Tivo Solutions Inc. User interface for viewing targeted segments of multimedia content based on time-based metadata search criteria
CN104281651A (en) * 2014-09-16 2015-01-14 福建星网锐捷安防科技有限公司 Method and system for searching large volume of video data
CN107959892A (en) * 2017-12-11 2018-04-24 南京酷亨网络科技有限公司 A kind of radar and video data method for rapidly positioning enforced the law with Yu Haiyang

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶雄杰: ""基于云存储的移动视频监控系统研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363670A (en) * 2019-08-01 2022-04-15 浙江大华技术股份有限公司 Video reading method, device, equipment and storage medium
CN114363670B (en) * 2019-08-01 2024-05-28 浙江大华技术股份有限公司 Video reading method, device, equipment and storage medium
CN113055612A (en) * 2019-12-27 2021-06-29 浙江宇视科技有限公司 Video playing method, device, electronic equipment, system and medium
CN113055612B (en) * 2019-12-27 2022-11-25 浙江宇视科技有限公司 Video playing method, device, electronic equipment, system and medium
CN113641717A (en) * 2021-07-28 2021-11-12 通号城市轨道交通技术有限公司 Method and device for searching change of train operation diagram, electronic equipment and storage medium
CN113905253A (en) * 2021-10-11 2022-01-07 北京仁光科技有限公司 Method and system for interactive duplication of signal source, readable storage medium and electronic equipment
CN113905253B (en) * 2021-10-11 2022-09-09 北京仁光科技有限公司 Method and system for interactive duplication of signal source, readable storage medium and electronic equipment
CN115618023A (en) * 2022-12-20 2023-01-17 苏州万店掌网络科技有限公司 Video retrieval method, system and device

Similar Documents

Publication Publication Date Title
CN109189992A (en) A kind of video time search method in cloud monitoring system
US11350139B2 (en) Video live broadcast method and apparatus
US8832757B2 (en) Late assignment of recorded digital media content at time of playback
US9049484B2 (en) Efficient assignment of program copies in a network digital video recorder
US20050055718A1 (en) Peer-to-peer architecture for sharing video on demand content
CN102244758A (en) Video-recording-file-based data acquisition method and equipment
CN104581406A (en) Network video recording and playback system and method
CN101242430A (en) Fixed-point data prefetching method in peer-to-peer network on-demand system
WO2018153237A1 (en) Caching method and system for replaying live broadcast, and playing method and system
CN111866603B (en) Video file production method based on SRS, background server and system
CN102497542A (en) Video positioning playback system and method thereof
US20140219638A1 (en) Multi-Tier Recorder to Enable Seek-Back Unique Copy Recording
US20220272421A1 (en) Content Aggregation
CN105812831B (en) Network program recording method, device and system and playing method and device
CN110602545A (en) Distributed recording execution method for network live broadcast
US20190090006A1 (en) System and method for delivery of near-term real-time recorded video
CN103179440A (en) Value-added service time-shifted television system facing 3G users
US10694227B2 (en) Video transmission system and video transmission method
US10498787B2 (en) Communication apparatus, communication method, and program
CN112601052A (en) Video resource integration system applied to internal sharing platform
US9179189B2 (en) Systems and methods of recording time offset for video recording devices and services
CN114979035B (en) Monitoring video storage method and device, electronic equipment and storage medium
CN111277801B (en) Monitoring video storage system based on content and application method
JP2006139682A (en) Video search system, video search method, and program
US12190915B2 (en) Common timeline processing for unique manifests

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190111