CN102547444A - Method for optimizing play of real-time video monitoring record - Google Patents
Method for optimizing play of real-time video monitoring record Download PDFInfo
- Publication number
- CN102547444A CN102547444A CN2012100124804A CN201210012480A CN102547444A CN 102547444 A CN102547444 A CN 102547444A CN 2012100124804 A CN2012100124804 A CN 2012100124804A CN 201210012480 A CN201210012480 A CN 201210012480A CN 102547444 A CN102547444 A CN 102547444A
- Authority
- CN
- China
- Prior art keywords
- video
- real
- stream data
- server
- video stream
- 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
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
The invention discloses a method for optimizing play of a real-time video monitoring record. The method is applied in the real-time video monitoring field and mainly comprises the steps of: 1) server establishment; 2) video obtaining; 3) format conversion; and 4) video play. The method for optimizing play of a real-time video monitoring record disclosed by the invention has the characteristics that the format of the real-time video monitoring record can be converted through the server, a user can watch the video record in a mode of FLASH and has no requirements on a camera and a hard disc video cassette recorder. Owing to the lowered data quantity after optimization, the phenomenon such as stuck frames and frame loss caused by the network is avoided to a large extent, the requirement on the network is reduced, and the user experience quality is improved.
Description
Technical field
The invention discloses a kind of method of playing the real-time video monitoring video recording of optimizing, it belongs to the real-time video monitoring field.
Background technology
The form of video record has a variety of; Wherein best form is the FLV coded format in the FLASH video format; Because the FLASH compress technique lets nearly all PC and common smart mobile phone download or install under special plug-in unit, the software conditions need not, watch real-time video with regard to available FLASH PLAYER, not only general but also safety; And the FLASH video format has adopted low code check transmission technology; Bandwidth occupancy is few, and server stress is little, even if under the lower domestic network environment of network speed, can guarantee that still the user experiences glibly, watches.
The form of present camera output on the market all is an extended formatting, is not the FLASH form, converts the FLASH form if desired into; Way is the video output access network video server with camera, and network video server is not a computer, is the machine of a special use; Owing to be the physical layer that is connected in the network configuration; And video server is not that the computer computing capability is strong inadequately, so the camera quantity that can insert is fewer, is at most 32 the tunnel.The cost of a network video server is relatively more expensive on the market, and a machine cannot insert camera simultaneously in a plurality of different places.
Summary of the invention
The objective of the invention is in order to have overcome the deficiency of prior art; Traditional video surveillance is done appropriate reconstruction; Make the camera of a plurality of different locations not need the special network video server of buying many, furtherly, the present invention is as change server with a computer; Develop a converting system above that; And be connected through network layer with DVR, not be used on the physical layer and be connected, just can realize supplying the user to play the FLASH video format that is converted into of other video formats with camera.
For realizing the object of the invention, the technical scheme of employing is: a kind of method of playing the real-time video monitoring video recording of optimizing, and its step is following:
1) builds server;
2) video obtains;
3) format conversion;
4) video playback.
Step 1) is described, and to build server be as the build process of server with the computer configuration public network IP and after disposing switching software; Specifically be that computer is connected into the internet; Application is public network IP address A fixedly; The ffmpeg kit is installed, the DVR IP address that needs format transformation is recorded among the tabulation B, then with computer as server.Computer requires minimalist configuration to be: processor double-core dominant frequency 1.8G Hz, internal memory 2GB DDR2 667MHz, hard disk 120G/5200 changes, the 1000M network interface card.Ffmpeg is a free cross-platform video and the audio stream scheme of increasing income, and belongs to free software, adopts LGPL or GPL licence.It provides and has recorded, the total solution of conversion and fluidisation audio frequency and video, can be used for record, converted digital audio, video, and can be translated into the computer program of increasing income of stream.Ffmpeg can be the FLV form with the various video format conversion, also can realize the mutual conversion (wma, rm, avi, mod etc.) between the various video form easily, for example can video avi under shooting with video-corder etc. be changed into the FLV form that present video website adopts.
Step 2) to obtain be the tabulation B of server according to step 1) for described video; According to DVR IP accessed target hard disk video tape recorder one by one; Obtain the video stream data that is stored in the target hard disk video tape recorder, carry out the video stream data transmission, video stream data is stored in the server memory through the RTMP stream media protocol; As index, and generate the process of video stream data inventory C with DVR IP address.
The described format conversion of step 3) is with step 2) video stream data that is stored in the server memory classifies according to index, generates the thread of equivalent amount, each thread operating procedure 1 according to the video stream data sum) in the ffmpeg kit of server disposition; And each thread generates a plurality of Buffer Pools, is used to preserve important data packet frame, carries out the real-time conversion of data format; The quantity of Buffer Pool can be set; Each thread Buffer Pool can not surpass 20, change successfully after, the original video stream data are emptied in internal memory; Preserve newly-generated FLV video stream data N second; N+1 generated N after second before second FLV video stream data also empties in internal memory, and the data that empty are kept in the hard disk, remains 20% o'clock video stream data of deletion forward part automatically until hard drive space; Exist the video stream data in the internal memory to be used for checking real-time video recording, exist video stream data in the hard disk to be used to offer the user and check historical video recording to the user.
The described video playback of step 4) is the IP address A of user through applying in the internet access step 1); Get access to step 2) the middle video stream data inventory C that generates; From video stream data inventory C, select the video that to watch; As check real-time video recording; Exist FLV video stream data in the internal memory to be transferred to the user after server transforms step 3) in real time and use FLASH PLAYER to play, as check historical video recording, service read step 3 from hard disk with the RTMP stream media protocol) exist after transforming FLV video stream data in the hard disk to be transferred to the user to use FLASH PLAYER to play with the RTMP stream media protocol.
It is of the present invention that video recording brings and big facility to the broadcast real-time video monitoring; Used lower can the conventional video system being optimized cost; Other video formats are converted into the FLASH video format, because the popularity that FALSH has been used, the FLASH video stream data can need not to install any other plug-in unit or program just can be at the PC terminal; Common intelligent mobile phone terminal is watched real-time video; Can solve because of card frame that the network reason occurs significantly, fall the frame phenomenon, reduce network requirement, improve user experience quality.
Description of drawings
Fig. 1 optimizes the overview flow chart of playing the real-time video monitoring kinescope method for the present invention.
Fig. 2 optimizes the process chart of playing real-time video monitoring kinescope method embodiment for the present invention.
Fig. 3 optimizes the sketch map of playing real-time video monitoring kinescope method embodiment for the present invention.
Embodiment
Further introduce below in conjunction with accompanying drawing:
Invention thought of the present invention is for being as change server with a computer; Develop a converting system above that, and be connected through network layer, the automatic acquisition camera data of meeting behind the startup of server with DVR; Be transcribed into the FLV form in real time, use the RTMP stream media protocol to propagate.
Embodiment:
Need carry out real-time video monitoring to the DVR that the IP address is respectively three different locations of a, b, c at present, adopt optimization of the present invention to play the method for real-time video monitoring video recording, that is:
1), a computer is connected into the internet, application is public network IP address A fixedly, and the ffmpeg kit is installed, the DVR IP address a, b, the c that need format transformation are recorded among the B that tabulates, and with this computer as server;
2), server is according to tabulation B; According to DVR IP address a, b, c visit three target hard disk video tape recorders respectively one by one; Obtain and be stored in three video stream datas in the target hard disk video tape recorder, carry out video stream data transmission, the video stream data of three target hard disk video tape recorders is stored as Xa, Xb, Xc respectively in server memory through the RTMP stream media protocol; Respectively with DVR IP address a, b, c as index, and generate video stream data inventory C;
The video stream data that 3), will be stored in the server memory is classified according to index a, b, c; Statistics has 3 video stream datas; Generate 3 threads, each thread operating procedure 1 according to video stream data sum) in the ffmpeg kit of server disposition, and each thread generates 10 Buffer Pool; Be used to preserve important data packet frame; Carry out the real-time conversion of video stream data Xa, Xb, Xc form, change successfully after, video stream data Xa, Xb, Xc are emptied in internal memory; Preserve newly-generated FLV video stream data Fa, Fb, Fc10 second; After 11 seconds the FLV video stream data Fa, Fb, the Fc that generated before 10 seconds are designated as Fa ', Fb ', Fc ' respectively and also in internal memory, empty, the data Fa ' that empties, Fb ', Fc ' are kept in the hard disk, remain 20% o'clock video stream data of deletion forward part automatically until hard drive space; Exist video stream data Fa, Fb, Fc in the internal memory to be used for checking real-time video recording, exist video stream data Fa ', Fb ', Fc ' in the hard disk to be used to offer the user and check historical video recording to the user;
4), the IP address A of user through applying in the internet access step 1), get access to step 2) in the video stream data inventory C that generates, from video stream data inventory C, select the video that need watch.Check real-time video recording; Existing FLV video stream data Fa, Fb, Fc in the internal memory to be transferred to the user with the RTMP stream media protocol after server transforms step 3) in real time uses FLASH PLAYER to play; For example to check the real-time monitor video of a ground DVR, exist FLV video stream data Fa in the internal memory to be transferred to the user after then server transforms step 3) in real time and use FLASH PLAYER to play with the RTMP stream media protocol; Check historical video recording; Service is read step 3 from hard disk) exist after transforming FLV video stream data Fa ', Fb ', Fc ' in the hard disk to be transferred to the user to use FLASH PLAYER to play with the RTMP stream media protocol; For example to check the history video recording of c ground DVR, then serve read step 3 from hard disk) exist after transforming FLV video stream data Fc ' in the hard disk to be transferred to the user to use FLASH PLAYER to play with the RTMP stream media protocol.
Owing to optimize back data volume step-down, solve because of card frame that the network reason occurs significantly, fall the frame phenomenon, reduce network requirement, improve user experience quality.
Claims (7)
1. optimize the method for playing the real-time video monitoring video recording for one kind, it is characterized in that this method step is:
1) builds server;
2) video obtains;
3) format conversion;
4) video playback;
Described build server be with computer configuration public network IP address A, generate record need format transformation DVR IP address tabulation B and dispose switching software after as the build process of server;
It is the tabulation B of server according to step 1 that described video obtains; Obtain the video stream data that is stored in the target hard disk video tape recorder; Video stream data is stored in the server memory as index with DVR IP address, and generates the process of video stream data inventory C;
Described format conversion is that the video stream data that step 2 is stored in the server memory is classified according to index, according to the thread of video stream data sum generation equivalent amount, is carried out the process of data processing by each thread;
Described video playback be the user through the IP address A in the internet access step 1, get access in the step 2 the video stream data inventory C that generates, from video stream data inventory C, select to watch real-time video or watch historical video.
2. the method for real-time video monitoring video recording is play in optimization according to claim 1, it is characterized in that described deployment switching software is for installing the ffmpeg kit.
3. the method for real-time video monitoring video recording is play in optimization according to claim 1, it is characterized in that described data processing is the switching software of server disposition in the operating procedure 1, generates Buffer Pool; Be used to preserve important data packet frame; Carry out the real-time conversion of data format, change successfully after, the original video stream data are emptied in internal memory; Preserve newly-generated FLV video stream data N second; N+1 generated N after second before second FLV video stream data also empties in internal memory, and the video stream data that empties is kept in the hard disk, remains 20% o'clock video stream data of deletion forward part automatically until hard drive space.
4. the method for real-time video monitoring video recording is play in optimization according to claim 3, it is characterized in that described N is the tunable integers value, and minimum is 5, and peak is 60.
5. the method for real-time video monitoring video recording is play in optimization according to claim 3, it is characterized in that the quantity of described Buffer Pool can be set, and each thread Buffer Pool can not be above 20.
6. the method for real-time video monitoring video recording is play in optimization according to claim 1, it is characterized in that the described real-time video of watching is to exist FLV video stream data in the internal memory to be transferred to the user with the RTMP stream media protocol after server transforms step 3 in real time to use FLASH PLAYER to play.
7. the method for real-time video monitoring video recording is play in optimization according to claim 1, it is characterized in that described to watch historical video be that server exists after read step 3 transforms from hard disk FLV video stream data in the hard disk to be transferred to the user with the RTMP stream media protocol to use FLASH PLAYER to play.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210012480.4A CN102547444B (en) | 2012-01-16 | 2012-01-16 | Method for optimizing play of real-time video monitoring record |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210012480.4A CN102547444B (en) | 2012-01-16 | 2012-01-16 | Method for optimizing play of real-time video monitoring record |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102547444A true CN102547444A (en) | 2012-07-04 |
CN102547444B CN102547444B (en) | 2014-02-12 |
Family
ID=46353191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210012480.4A Expired - Fee Related CN102547444B (en) | 2012-01-16 | 2012-01-16 | Method for optimizing play of real-time video monitoring record |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102547444B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501443A (en) * | 2013-09-13 | 2014-01-08 | 天脉聚源(北京)传媒科技有限公司 | Processing method and device of streaming media data |
WO2014040530A1 (en) * | 2012-09-12 | 2014-03-20 | Huawei Technologies Co., Ltd. | Tiered storage for video surveillance |
CN104168441A (en) * | 2013-05-16 | 2014-11-26 | 北大方正集团有限公司 | Video monitoring system and video monitoring method |
CN104639906A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | Monitoring video pushing method |
CN104639902A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | M3U8 video publishing system |
CN104639900A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | RTMP-to-M3U8 video slicing system and method |
WO2017080427A1 (en) * | 2015-11-10 | 2017-05-18 | 中兴通讯股份有限公司 | Media playing method, terminal, system and computer storage medium |
CN106792111A (en) * | 2016-12-07 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of use FFMPEG interfaces record the method and device of webcast website's video |
CN108200466A (en) * | 2018-02-13 | 2018-06-22 | 山东顺国电子科技有限公司 | A kind of IP-based distributed video management method and device |
CN108989723A (en) * | 2018-01-10 | 2018-12-11 | 黄得锋 | A kind of plateform system and its method for running based on home services supervision |
CN109309817A (en) * | 2018-11-14 | 2019-02-05 | 北京东方国信科技股份有限公司 | The display methods and device of monitor video recognition of face OSD |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646076A (en) * | 2008-08-08 | 2010-02-10 | 厦门时迅信息科技有限公司 | Video transmission method in wireless network |
CN201663666U (en) * | 2009-06-05 | 2010-12-01 | 方牡丹 | Network video device |
CN102244787A (en) * | 2011-07-05 | 2011-11-16 | 上海市安全生产科学研究所 | Method for playing mobile communication video on webpage |
-
2012
- 2012-01-16 CN CN201210012480.4A patent/CN102547444B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646076A (en) * | 2008-08-08 | 2010-02-10 | 厦门时迅信息科技有限公司 | Video transmission method in wireless network |
CN201663666U (en) * | 2009-06-05 | 2010-12-01 | 方牡丹 | Network video device |
CN102244787A (en) * | 2011-07-05 | 2011-11-16 | 上海市安全生产科学研究所 | Method for playing mobile communication video on webpage |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014040530A1 (en) * | 2012-09-12 | 2014-03-20 | Huawei Technologies Co., Ltd. | Tiered storage for video surveillance |
CN104168441A (en) * | 2013-05-16 | 2014-11-26 | 北大方正集团有限公司 | Video monitoring system and video monitoring method |
CN103501443A (en) * | 2013-09-13 | 2014-01-08 | 天脉聚源(北京)传媒科技有限公司 | Processing method and device of streaming media data |
CN104639902B (en) * | 2015-02-03 | 2016-03-02 | 广西智询信息科技有限公司 | A kind of M3U8 video distribution system |
CN104639902A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | M3U8 video publishing system |
CN104639900A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | RTMP-to-M3U8 video slicing system and method |
CN104639906A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | Monitoring video pushing method |
CN104639906B (en) * | 2015-02-03 | 2016-03-02 | 广西智询信息科技有限公司 | A kind of monitor video method for pushing |
WO2017080427A1 (en) * | 2015-11-10 | 2017-05-18 | 中兴通讯股份有限公司 | Media playing method, terminal, system and computer storage medium |
CN106792111A (en) * | 2016-12-07 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of use FFMPEG interfaces record the method and device of webcast website's video |
CN108989723A (en) * | 2018-01-10 | 2018-12-11 | 黄得锋 | A kind of plateform system and its method for running based on home services supervision |
CN108200466A (en) * | 2018-02-13 | 2018-06-22 | 山东顺国电子科技有限公司 | A kind of IP-based distributed video management method and device |
CN109309817A (en) * | 2018-11-14 | 2019-02-05 | 北京东方国信科技股份有限公司 | The display methods and device of monitor video recognition of face OSD |
Also Published As
Publication number | Publication date |
---|---|
CN102547444B (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102547444B (en) | Method for optimizing play of real-time video monitoring record | |
CN100556112C (en) | Data managing method | |
CN102724492B (en) | Method and system for transmitting and playing video images | |
US20030147631A1 (en) | System and method for efficiently performing a storage management procedure | |
CN110381326B (en) | Video system, processing method, device and computer readable medium | |
WO2020215453A1 (en) | Video recording method and system | |
CN104639900B (en) | RTMP turns M3U8 video segment system and method | |
TW200822736A (en) | Method and apparatus for receiving, storing, and presenting multimedia programming without indexing prior to storage | |
CN106231225A (en) | A kind of network hard disk video recorder data processing method and system | |
CN103369301B (en) | Data management apparatus and data managing method | |
WO2010041576A1 (en) | Content distribution system | |
US20050216952A1 (en) | Audio/video component networking system and method | |
CN102687149B (en) | Media storage system and method | |
US20080106640A1 (en) | Method of multiple stream formatting in a multimedia system | |
CN201663666U (en) | Network video device | |
CN103430558A (en) | A method for optimizing a video stream | |
CN106454188A (en) | Novel high resolution audio/video recording and playing console | |
CN109842801A (en) | A kind of digital video compression processing method and system | |
CN101742199B (en) | Recorded broadcast workstation system | |
CN202143177U (en) | System for obtaining multi-media data sharing of web television terminal | |
US20050213439A1 (en) | Audio/Video component networking system and method | |
US20130058626A1 (en) | System and method for server-based personal video recording and retrieval | |
CN110214352B (en) | Recording method adapted to wear level of storage medium | |
US10631019B2 (en) | Remote storage digital video recording optimization method and system | |
CN104219538B (en) | A kind of audio frequency and video gather upload and data processing method and system in real time |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140212 Termination date: 20200116 |
|
CF01 | Termination of patent right due to non-payment of annual fee |