CN106454271B - Processing system for video and method - Google Patents

Processing system for video and method Download PDF

Info

Publication number
CN106454271B
CN106454271B CN201611028441.8A CN201611028441A CN106454271B CN 106454271 B CN106454271 B CN 106454271B CN 201611028441 A CN201611028441 A CN 201611028441A CN 106454271 B CN106454271 B CN 106454271B
Authority
CN
China
Prior art keywords
camera
video
coded format
format
unit
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
CN201611028441.8A
Other languages
Chinese (zh)
Other versions
CN106454271A (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.)
Global Big Data Technology Co Ltd
Original Assignee
Global Big Data Technology 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 Global Big Data Technology Co Ltd filed Critical Global Big Data Technology Co Ltd
Priority to CN201611028441.8A priority Critical patent/CN106454271B/en
Publication of CN106454271A publication Critical patent/CN106454271A/en
Application granted granted Critical
Publication of CN106454271B publication Critical patent/CN106454271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a kind of processing system for video and methods, the system comprises more than one cameras, video flowing receiving unit, video file uploading unit, distributed file system, video file download unit and streaming media service unit, wherein video flowing receiving unit connects one above camera and video file uploading unit, for obtaining the selection coded format of camera, the coded format of camera is set to select coded format, and camera video flow data is encoded using the selection coded format, give the video file transfer after coding to video file uploading unit.Using processing system for video and method of the invention, the coded format of camera is can automatically detect and be arranged, facilitate the update of processing system for video, improve the flexibility of processing system for video.

Description

Processing system for video and method
Technical field
The present invention relates to digital medium information processing techniques, especially relate to a kind of Video coding processing technique.
Background technique
As security system is more and more perfect, camera can be more and more, and the clarity of video can be higher and higher, and video is compiled Code technology decides the quality and size of video, and video coding technique is various at present, and old coding techniques is not dead, and new technology is Stable development gradually knows future, and new used equipment operates in respective safety-security area, and each coding techniques has oneself one The ground of seat.
So-called Video coding mode just refers to through specific compress technique, and the file of some video format is converted into separately A kind of mode of video format file.In video flowing transmission mostly important encoding and decoding standard have International Telecommunication Association H.261, H.263, H.264, the MPEG system of the M-JPEG of motor rest motion picture expert group version and Motion Picture Experts Group, International Organization for standardization Column standard, be furthermore widely used on the internet there are also the WMV of the RealVideo of Real-Networks, Microsoft with And QuickTime of Apple company etc..
It include at present as follows than major coded format.
H.26X series (leading by ITU [international videotex alliance]) include H.261, H.262, H.263, H.264, H.265:
(1) H.261: mainly being used in old video conference and videophone products
(2) H.263: being used primarily in video conference, visual telephone and network video
(3) H.264:H.264/MPEG-4 Part X or AVC (Advanced Video Coding, advanced video Coding), it is a kind of video compression standard, a kind of recording for the high-precision video being widely used, compression and publication format.
(4) H.265: high efficiency Video coding (High Efficiency Video Coding, abbreviation HEVC) is a kind of Video compression standard, the H.264/MPEG-4 successor of AVC.HEVC is considered not only promoting picture quality, while can also reach H.264/MPEG-4 twice of AVC of compression ratio (being equal to bit rate under same image quality reduces 50%) can support 4K points Resolution even arrives super hd-tv, and highest resolution can reach 8192 × 4320 (8K resolution ratio), this is becoming of developing at present Gesture.Until 2013, Potplayer is added to the decoding for H.265 video, and there has been no the appearance of popular encoding software.
MPEG series (is developed) video by the MPEG [motion picture expert group] of ISO [mechanism, International Standards Organization] subordinate and compiled Code aspect mainly has:
(1) (MPEG-1 second part is mainly used on VCD MPEG-1 second part, some Online Videos also use this Kind format.The quality of the codec is generally suitable with original vhs video band.)
(2) (H.262 MPEG-2 second part is equal to MPEG-2 second part, using in DVD, SVCD and most of numbers In word video broadcast system and cable distribution systems (cable distribution systems).)
(3) (MPEG-4 second part standard can be used in network transmission, broadcast and media storage MPEG-4 second part On.H.263 compared with MPEG-2 and the first edition, its compression performance increases.)
(4) (MPEG-4 Part X is technically and H.264 ITU-T is identical standard, sometimes for MPEG-4 Part X Time is also designated as " AVC ") last the two coding Cooperations, be born H.264/AVC standard.ITU-T is ordered to this standard It is entitled H.264, and ISO/IEC it be referred to as MPEG-4 advanced video coding (Advanced Video Coding, AVC)
Other series: AMV, AVS, Bink, CineForm, Cinepak, Dirac, DV, Indeo, Video, Pixlet, RealVideo、RTVideo、SheerVideo、Smacker、Sorenson Video、Theora、VC-1、VP3、VP6、VP7、 VP8, VP9, WMV etc..Although these coded formats are of little use, but there are also equipment to use, and are no longer discussed in detail here.
Current encoder format is various, occupation rate of market it is relatively high be h264 coding, be in dominance, emerging volume Code format has h265 and vp9, both coded formats are not mature enough, and most of security device still supports h264 format.
H.264 it is to be set up on the basis of MPEG-4 technology, encoding and decoding process mainly includes 5 parts: Interframe and intra prediction (Estimation), transformation (Transform) and inverse transformation, quantization (Quantization) and inverse Change, loop filtering (Loop Filter), entropy coding (Entropy Coding).
H.264 the main target of standard is: compared with other existing video encoding standards, providing under identical bandwidth More outstanding image quality.By the standard, the compression efficiency under same image quality is mentioned than pervious standard (MPEG2) It is 2 times or so high.
H.264 the sub-protocol format (algorithm) of 11 grades, 7 classifications can be provided, wherein tier definition is to outside Environment is defined, such as bandwidth demand, memory requirements, network performance etc..Higher grade, and bandwidth requirement is higher, video Quality is also higher.Class declaration is then to define characteristic subset used in encoder, and specification different application for specific application Encoder complexity in environment.
H.264 maximum advantage is that have very high data compression ratio, under conditions of same picture quality, H.264 Compression ratio be MPEG-2 2 times or more, be 1.5~2 times of MPEG-4.For example, the size of original document if it is 88GB, using becoming 3.5GB after the compression of MPEG-2 compression standard, compression ratio 25: 1, and after using H.264 compression standard compression Become 879MB, from 88GB to 879MB, compression ratio H.264 reaches surprising 102: 1.Low bit- rate (Low Bit Rate) is right H.264 high compression ratio plays an important role to be compared with MPEG-2 with compress techniques such as MPEG-4ASP, is H.264 compressed Technology will greatly save download time and the data flow charging of user.Especially it is noted that H.264 with high compression Than while also possess the image of high quality smoothness, Just because of this, by the video data H.264 compressed, in network transmission Required bandwidth is less in the process, also more economically.
The plurality of advantages of H264 makes it outshine othersOne branch of the tree is particularly thriving, based on the security protection video server of mainstream is encoded with h264, if there is The equipment of other coded formats accesses, it is also necessary to add corresponding configuration file, carry out corresponding Development of Module, then portion again Administration.
Streaming media server framework is all to add camera all the way to add configuration at present, then in program Rigen according to matching File addition respective modules are set, each module will create a connection and equipment is communicated, and server is arranged according to configuration Information in table carries out corresponding encoding and decoding, and corresponding configuration and module will be added by often encountering novel equipment, not only right Very big pressure is caused in exploitation, also increases the difficulty of O&M deployment and maintenance.
Summary of the invention
It is an object of the invention to will add for when adding camera in streaming media server framework in the prior art Corresponding configuration and module, therefore very big pressure is caused for exploitation, also increase asking for the difficulty of O&M deployment and maintenance Topic proposes a kind of processing system for video and method, has automatic detection and automatic setting control function, does not need addition configuration file, Directly and equipment is attached exchange, reads device parameter.
In order to solve the above technical problems, present invention employs following technical solutions:
A kind of processing system for video, the system comprises on more than one camera, video flowing receiving unit, video file Leaflet member, distributed file system, video file download unit and streaming media service unit, wherein
Video flowing receiving unit connects one above camera and video file uploading unit, for obtaining camera Selection coded format, the coded format of camera is set to select coded format, and using the selection coded format to taking the photograph As head video stream data is encoded, the video file transfer after coding is given to video file uploading unit;
Video file uploading unit is by network connection to distributed file system, for video file transfer to be extremely distributed Formula file system;
Distributed file system is used for using video file and its backup described in distributed storage;
Video file download unit is by network connection to distributed file system, for above and below distributed file system Carry video file;
Streaming media service unit is connected to video file download unit, for providing stream using video file for client Media services.
Wherein the video flowing receiving unit includes automatic detection unit, resolver, encoder and conservator, automatic detection Unit is connected to resolver, and resolver is connected to encoder, and encoder is connected to conservator, wherein
Automatic detection unit is used to interact using hypertext transfer protocol with one above camera foundation, sends inspection Order is surveyed, the information returned from camera is parsed using real-time transport protocol or real time streaming transport protocol, therefrom obtains camera Parameter;
Resolver is for establishing a parsing container, camera shooting being isolated from camera parameter after obtaining camera parameter Network address, hardware address and the additional parameter including supporting coded format of head, if the camera supports a variety of codings Format, it is determined that the forced coding format of the camera simultaneously saves as selection coded format, if the camera only supports list As soon as the coded format is saved as selection coded format by coded format;
Automatic detection unit sends setting command to camera using hypertext transfer protocol, by the coded format of camera It is set as selecting coded format;
Encoder encodes video stream data using selection coded format determined by resolver;
Conservator saves as video file for the video flowing after coding.
In addition, the resolver is stored with coded format priority list, if the camera supports a variety of codings, The forced coding format of camera is determined according to the coded format priority list.
Particularly, the additional parameter includes code rate, coded format, resolution ratio of camera head, system version, whether supports sound Frequently, maximum focusing parameter, frame period.
The video flowing receiving unit further includes resource allocation unit, and the resource allocation unit is built according to camera quantity Vertical thread pool and connection pool, the video stream data of each camera correspond to respective thread and connecting interface, when increasing or decreasing When camera, the resource allocation unit increases or decreases corresponding thread and connecting interface.
A kind of method for processing video frequency, comprising steps of
A, the selection coded format for obtaining camera automatically using video flowing receiving unit, is arranged the coded format of camera It to select coded format, and saves, will encode after being encoded using the selection coded format to camera video flow data The video file transfer of preservation gives video file uploading unit;
B, by video file transfer to distributed file system;
C, the to download video files from distributed file system provides streaming media service using video file for client.
Wherein, the step of obtaining the selection coded format of camera automatically using video flowing receiving unit include:
A01, it is interacted using hypertext transfer protocol with one above camera foundation, sends sense command, utilize Real-time transport protocol or real time streaming transport protocol parse the information returned from camera, therefrom obtain camera parameter;
A02, after obtaining camera parameter, a parsing container is established, the net of camera is isolated from camera parameter Network address, hardware address and the additional parameter including supporting coded format, if the camera supports a variety of coded formats, It determines the forced coding format of the camera and saves as selection coded format, if the camera only supports single coding lattice The coded format is just saved as selection coded format by formula;
A03, setting command is sent to camera using hypertext transfer protocol, the coded format of camera is set as selecting Use coded format;
It is coded format that A04, camera setting, which select coded format, is arranged successfully according to setting result return or setting is lost Lose information.
In addition, can further include after the step A04:
A05, the information returned from camera is parsed using real-time transport protocol or real time streaming transport protocol, if information is Setup failed information then reuses hypertext transfer protocol and sends setting command to camera, by the coded format of camera It is set as selecting coded format;
A06, the information obtained when 3 times are setting information, then set the original encoding format of camera to selecting coding Format.
If the camera supports a variety of codings, it is determined that the forced coding format of the camera simultaneously saves as choosing Include: that a variety of codings are compared with the priority list prestored with the operation of coded format, determines various coding lattice The coded format of highest priority is determined as forced coding format by the priority of formula.
In addition it before step A, can further include:
A00, thread pool and connection pool are established according to camera quantity, the video stream data of each camera corresponds to respective Thread and connecting interface, when increasing or decreasing camera, the resource allocation unit increases or decreases corresponding thread and company Connection interface.
Firstly, processing system for video and method of the invention, can handle h264, MPEG series, h261, h262, wmv are compiled Code data, can also handle h265 coded data, carry out intelligently encoding for distinct device.
Secondly, processing system for video and method of the invention, the reception of energy fast and stable save data, the resource of occupancy It is fewer, 220 road videos can be received simultaneously, largely stable intelligence and can handle video data with taking up less resources at a high speed.
In addition, processing system for video and method of the invention do not need to add there are also automatic detection and automatic setting control function Configuration file, directly and equipment is attached exchange, reads device parameter, and the coded format supported equipment detects, and sends out It send setting newest coded command (http agreement and rtp agreement), video code rate, resolution ratio etc. is configured, all used It automatically completes.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the processing system for video of specific embodiment according to the present invention.
Fig. 2 is the structural representation of video flowing receiving unit in the processing system for video of specific embodiment according to the present invention Figure.
Fig. 3 is that video flowing receiving unit carries out camera letter in the processing system for video of specific embodiment according to the present invention The flow diagram of breath detection and setting.
Fig. 4 is that video flowing receiving unit carries out video flowing in the processing system for video of specific embodiment according to the present invention Receive and encode the schematic diagram of process.
Specific embodiment
With reference to the accompanying drawing, it elaborates to the present invention.
The detailed example embodiment of following discloses.However, specific structure and function details disclosed herein merely for the sake of The purpose of example embodiment is described.
It should be appreciated, however, that the present invention is not limited to disclosed particular exemplary embodiment, but covering falls into disclosure model Enclose interior all modifications, equivalent and alternative.In the description to whole attached drawings, identical appended drawing reference indicates identical member Part.
Refering to attached drawing, this specification structure depicted in this specification institute accompanying drawings, ratio, size etc., only to cooperate specification Revealed content is not intended to limit the invention enforceable restriction item so that those skilled in the art understands and reads Part, therefore do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing Under the effect of present invention can be generated and the purpose that can reach, it should all still fall in disclosed technology contents and obtain and can contain In the range of lid.Meanwhile cited position restriction term in this specification, it is merely convenient to being illustrated for narration, rather than to It limits the scope of the invention, relativeness is altered or modified, under the content of no substantial changes in technology, when being also considered as The enforceable scope of the present invention.
It will also be appreciated that term "and/or" as used in this, which includes that one or more is relevant, lists any of item With all combinations.It will further be appreciated that when component or unit referred to as " connect " or when " coupled " to another component or unit, it It can be directly connected or coupled to other component or unit, or there may also be intermediate member or units.In addition, being used to describe Between component or unit other words of relationship should understand in the same fashion (for example, " between " to " directly between ", " adjacent " is to " direct neighbor " etc.).
As shown in Figure 1, including a kind of processing system for video in a specific embodiment of the invention, the system comprises one The above camera, video flowing receiving unit, video file uploading unit, distributed file system, video file download unit and Streaming media service unit, wherein
Video flowing receiving unit connects one above camera and video file uploading unit, for obtaining camera Selection coded format, the coded format of camera is set to select coded format, and using the selection coded format to taking the photograph As head video stream data is encoded, the video file transfer after coding is given to video file uploading unit;
Video file uploading unit is by network connection to distributed file system, for video file transfer to be extremely distributed Formula file system;
Distributed file system is used for using video file and its backup described in distributed storage;
Video file download unit is by network connection to distributed file system, for above and below distributed file system Carry video file;
Streaming media service unit is connected to video file download unit, for providing stream using video file for client Media services.
Distributed file system (Distributed File System) refers to the physical memory resources of file system management It is not necessarily directly connected on the local node, but is connected by computer network with node.The design of distributed file system Based on Client/Server pattern.One typical network may include multiple servers for multi-user access.In addition, right Etc. characteristics allow some systems to play the part of the dual role of client-server.For example, user, which " can deliver " one, allows it The catalogue of his client computer access, once accessed, this catalogue is for client computer just as using local drive.
The safety of storage is improved since distributed file system is capable of providing the storage of magnanimity, in the present invention Property, the video file machine backup is stored on a distributed.
One above camera can be the identical camera of specification, be also possible to the different camera of specification, The flexibility of this patent is just being to determine the forced coding lattice of each camera according to the coded format that camera is supported Formula can provide different service in this way for each camera.
Just because of video flowing receiving unit of the invention can obtain the selection coded format of camera, so of the invention Specific embodiment have can automatically detect and automatically be arranged camera coded format, facilitate monitoring system configuration and The advantages of update.
In a specific embodiment of the invention, as shown in Fig. 2, wherein the video flowing receiving unit includes automatic inspection It surveys unit, resolver, encoder and conservator, automatic detection unit and is connected to resolver, resolver is connected to encoder, coding Device is connected to conservator, wherein
Automatic detection unit is used to interact using hypertext transfer protocol with one above camera foundation, sends inspection Order is surveyed, the information returned from camera is parsed using real-time transport protocol or real time streaming transport protocol, therefrom obtains camera Parameter;
Resolver is for establishing a parsing container, camera shooting being isolated from camera parameter after obtaining camera parameter Network address, hardware address and the additional parameter including supporting coded format of head, if the camera supports a variety of codings Format, it is determined that the forced coding format of the camera simultaneously saves as selection coded format, if the camera only supports list As soon as the coded format is saved as selection coded format by coded format;
Automatic detection unit sends setting command to camera using hypertext transfer protocol, by the coded format of camera It is set as selecting coded format;
Encoder encodes video stream data using selection coded format determined by resolver;
Conservator saves as video file for the video flowing after coding.
The camera of each manufacturer is different, and there is oneself a set of api in each manufacturer, is handed over camera Mutually but it can support the order for being detected or being arranged by hypertext transfer protocol (HTTP).Therefore according to the exploitation of producer Document is transmitted the order of detection or setting using http protocol, camera can be detected and be arranged accordingly.
The data that camera returns are using real-time transport protocol (RTP) or real time streaming transport protocol (RTSP), therefore, Automatic detection unit in of the invention parses camera parameter using same protocol from the data that camera returns.
Wherein, obtaining camera video data is completed under linux system, and program is by network connection, by video Stream encryption is saved at file, one of them important parameter is exactly file size, because video file is according to every Saved every a period of time it is primary, file size will not gap it is too big, access for convenience, the blocks of data elements inside cloud system is wanted It is more somewhat larger than video file, guarantee that single block stores single video file, even if there is individual video file to be greater than data cell Block goes to save with two blocks, but such case is more rare, and the influence to performance can be ignored.
It is to go to watch with browser under windows platform mostly when playing, browser uses Flash technology, can be Video flowing directly plays back.
The network address of camera, hardware address can be isolated in the camera parameter and including supporting coded format Additional parameter, particularly, whether the additional parameter includes code rate, coded format, resolution ratio of camera head, system version, props up Hold audio, maximum focusing parameter, frame period etc..
In order to determine optimal coding mode, in a specific embodiment of the invention, the resolver is stored with coding Format preference grade list determines if the camera supports a variety of codings according to the coded format priority list The forced coding format of camera.
The priority list can be according to the new and old to arrange of code efficiency or coded format, such as H.265 encodes H.264, format preference is in encoding.
In the specific embodiment of the present invention, the video flowing receiving unit further includes resource allocation unit, institute It states resource allocation unit and thread pool and connection pool is established according to camera quantity, the video stream data of each camera is corresponding respective Thread and connecting interface, when increasing or decreasing camera, the resource allocation unit increase or decrease corresponding thread and Connecting interface.
Because the respective coded format of camera, resolution ratio are different, it is therefore desirable to for the video for receiving each camera Flow data sets up different thread and connecting interface, can be realized parallel processing in this way, but also can economize on resources.
It is corresponding with processing system for video of the invention, it further include a kind of video processing side in the specific embodiment of the invention Method, comprising steps of
A, the selection coded format for obtaining camera automatically using video flowing receiving unit, is arranged the coded format of camera It to select coded format, and saves, will encode after being encoded using the selection coded format to camera video flow data The video file transfer of preservation gives video file uploading unit;
B, by video file transfer to distributed file system;
C, the to download video files from distributed file system provides streaming media service using video file for client.
As shown in figure 3, the step of obtaining the selection coded format of camera automatically using video flowing receiving unit includes:
A01, it is interacted using hypertext transfer protocol with one above camera foundation, sends sense command, utilize Real-time transport protocol or real time streaming transport protocol parse the information returned from camera, therefrom obtain camera parameter;
A02, after obtaining camera parameter, a parsing container is established, the net of camera is isolated from camera parameter Network address, hardware address and the additional parameter including supporting coded format, if the camera supports a variety of coded formats, It determines the forced coding format of the camera and saves as selection coded format, if the camera only supports single coding lattice The coded format is just saved as selection coded format by formula;
A03, setting command is sent to camera using hypertext transfer protocol, the coded format of camera is set as selecting Use coded format;
It is coded format that A04, camera setting, which select coded format, is arranged successfully according to setting result return or setting is lost Lose information.
In Fig. 3, because there is multiple cameras to need to handle, it is between video flowing receiving unit and each camera Execute step A01~step A04.
In addition, can further include after the step A04:
A05, the information returned from camera is parsed using real-time transport protocol or real time streaming transport protocol, if information is Setup failed information then reuses hypertext transfer protocol and sends setting command to camera, by the coded format of camera It is set as selecting coded format;
A06, the information obtained when 3 times are setting information, then set the original encoding format of camera to selecting coding Format.
As shown in figure 4, when having selected respective coding by different encoders (such as encoder 1, encoder 2 ...) After format, different coding staffs is used for the video stream data of different cameras (such as camera 1, camera 2 ...) Method, such as coding 1, coding 2 ..., generate different video files, such as video file 1, video file 2 ... respectively, this Sample can determine respective coded format according to the characteristics of each camera oneself, improve the flexibility of system.
If the camera supports a variety of codings, it is determined that the forced coding format of the camera simultaneously saves as choosing Include: that a variety of codings are compared with the priority list prestored with the operation of coded format, determines various coding lattice The coded format of highest priority is determined as forced coding format by the priority of formula.The priority list can be according to volume The new and old of code efficiency or coded format arranges, for example, H.265 coded format prior to H.264 encoding.
In addition it before step A, can further include:
A00, thread pool and connection pool are established according to camera quantity, the video stream data of each camera corresponds to respective Thread and connecting interface, when increasing or decreasing camera, the resource allocation unit increases or decreases corresponding thread and company Connection interface.
Processing system for video of the invention and method as a result, the reception of energy fast and stable save data, the resource of occupancy It is fewer, in some embodiments, or even 220 road videos can be received simultaneously, can largely stable intelligence and account at a high speed Video data is handled less with resource.
In addition, processing system for video and method of the invention do not need to add there are also automatic detection and automatic setting control function Configuration file, directly and equipment is attached exchange, reads device parameter, and the coded format supported equipment detects, and sends out It send setting newest coded command (http agreement and rtp agreement), video code rate, resolution ratio etc. is configured, all used It automatically completes.
It should be noted that above embodiment is only the preferable embodiment of the present invention, cannot be understood as to this The limitation of invention protection scope, under the premise of without departing from present inventive concept, to any minor variations and modifications of the invention done It all belongs to the scope of protection of the present invention.

Claims (8)

1. a kind of processing system for video, the system comprises more than one camera, video flowing receiving unit, video files to upload Unit, distributed file system, video file download unit and streaming media service unit, wherein
Video flowing receiving unit connects one above camera and video file uploading unit, for obtaining the choosing of camera With coded format, the coded format of camera is set to select coded format, and using the selection coded format to camera Video stream data is encoded, and gives the video file transfer after coding to video file uploading unit;
Video file uploading unit is by network connection to distributed file system, for video file transfer is literary to distribution Part system;
Distributed file system is used for using video file and its backup described in distributed storage;
Video file download unit is by network connection to distributed file system, for downloading view from distributed file system Frequency file;
Streaming media service unit is connected to video file download unit, for providing Streaming Media using video file for client Service;
Wherein, the video flowing receiving unit includes automatic detection unit, resolver, encoder and conservator, and automatic detection is single Member is connected to resolver, and resolver is connected to encoder, and encoder is connected to conservator, wherein
Automatic detection unit is used to interact using hypertext transfer protocol with one above camera foundation, sends detection life It enables, parses the information returned from camera using real-time transport protocol or real time streaming transport protocol, therefrom obtain camera parameter;
Resolver is for establishing a parsing container, isolating camera from camera parameter after obtaining camera parameter Network address, hardware address and the additional parameter including supporting coded format, if the camera supports a variety of coded formats, It then determines the forced coding format of the camera and saves as selection coded format, if the camera only supports single coding The coded format is just saved as selection coded format by format;
Automatic detection unit sends setting command to camera using hypertext transfer protocol, and the coded format of camera is arranged To select coded format;
Encoder encodes video stream data using selection coded format determined by resolver;After conservator is for coding Video flowing save as video file.
2. processing system for video according to claim 1, which is characterized in that it is excellent that the resolver is stored with coded format First grade list determines camera according to the coded format priority list if the camera supports a variety of codings Forced coding format.
3. processing system for video according to claim 1, which is characterized in that the additional parameter includes code rate, coding Whether format resolution ratio of camera head, system version, supports audio, maximum focusing parameter, frame period.
4. processing system for video according to claim 1, which is characterized in that the video flowing receiving unit further includes money Source allocation unit, the resource allocation unit establish thread pool and connection pool, the video of each camera according to camera quantity Flow data corresponds to respective thread and connecting interface, and when increasing or decreasing camera, the resource allocation unit increasing adds deduct Few corresponding thread and connecting interface.
5. a kind of method for processing video frequency, comprising steps of
A, the coded format of camera is arranged as choosing in the selection coded format for obtaining camera automatically using video flowing receiving unit With coded format, and camera video flow data is encoded and saved using the selection coded format, coding is saved Video file transfer give video file uploading unit;
B, by video file transfer to distributed file system;
C, the to download video files from distributed file system provides streaming media service using video file for client;
Wherein, the step of obtaining the selection coded format of camera automatically using video flowing receiving unit include:
A01, it is interacted using hypertext transfer protocol with the foundation of more than one camera, sends sense command, utilize real-time Transmission Agreement or real time streaming transport protocol parse the information returned from camera, therefrom obtain camera parameter;
A02, after obtaining camera parameter, a parsing container is established, the network of camera is isolated from camera parameter Location, hardware address and the additional parameter including supporting coded format, if the camera supports a variety of coded formats, it is determined that The forced coding format of the camera simultaneously saves as selection coded format, if the camera only supports single coded format, The coded format is just saved as selection coded format;
A03, setting command is sent to camera using hypertext transfer protocol, the coded format of camera is set as selecting and is compiled Code format;
It is coded format that A04, camera setting, which select coded format, is arranged successfully according to setting result return or setup failed is believed Breath.
6. method for processing video frequency according to claim 5, which is characterized in that also further wrapped after the step A04 It includes:
A05, the information returned from camera is parsed using real-time transport protocol or real time streaming transport protocol, if information is setting Failure information then reuses hypertext transfer protocol and sends setting command to camera, the coded format of camera is arranged To select coded format;
A06, the information obtained when 3 times are setting information, then set the original encoding format of camera to selecting coded format.
7. method for processing video frequency according to claim 5, which is characterized in that if camera support is a variety of Coding, it is determined that the forced coding format of the camera and save as select coded format operation include: by a variety of volumes Code is compared with the priority list prestored, the priority of various coded formats is determined, by the coded format of highest priority It is determined as forced coding format.
8. method for processing video frequency according to claim 5, which is characterized in that before step A, further comprise:
A00, thread pool and connection pool are established according to camera quantity, the video stream data of each camera corresponds to respective thread And connecting interface increases or decreases corresponding thread and connecting interface when increasing or decreasing camera.
CN201611028441.8A 2016-11-21 2016-11-21 Processing system for video and method Active CN106454271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611028441.8A CN106454271B (en) 2016-11-21 2016-11-21 Processing system for video and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611028441.8A CN106454271B (en) 2016-11-21 2016-11-21 Processing system for video and method

Publications (2)

Publication Number Publication Date
CN106454271A CN106454271A (en) 2017-02-22
CN106454271B true CN106454271B (en) 2019-06-11

Family

ID=58221375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611028441.8A Active CN106454271B (en) 2016-11-21 2016-11-21 Processing system for video and method

Country Status (1)

Country Link
CN (1) CN106454271B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040585A (en) * 2018-07-27 2018-12-18 华南师范大学 Camera control method and system
CN109040686B (en) * 2018-08-22 2020-12-01 苏宁云计算有限公司 Software deployment method in Internet of things camera system and Internet of things camera system
CN109246158A (en) * 2018-11-20 2019-01-18 北京数码视讯软件技术发展有限公司 Video encoding/decoding method and device
CN109743627B (en) * 2019-01-16 2021-11-09 上海文广科技(集团)有限公司 Playing method of digital movie package based on AVS + video coding
CN110620910A (en) * 2019-09-24 2019-12-27 中国船舶重工集团公司第七0七研究所 Image information transmission method of dual-camera network transmission system based on OpenCV

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090486A (en) * 2007-06-25 2007-12-19 中国联合通信有限公司 Monitoring device for multimedium monitoring information and its monitoring method
CN101198046A (en) * 2007-12-21 2008-06-11 北京天天宽广网络科技有限公司 Contents distribution and memory system and method in video network based on P2P technology
CN102045540A (en) * 2009-10-20 2011-05-04 华为软件技术有限公司 Video monitoring method, system and equipment
CN105450997A (en) * 2015-12-15 2016-03-30 李哲 Cloud storage based video monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2815106A1 (en) * 2011-07-22 2013-01-31 Panasonic Corporation Content playback device, content playback method, content playback program and content distribution system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090486A (en) * 2007-06-25 2007-12-19 中国联合通信有限公司 Monitoring device for multimedium monitoring information and its monitoring method
CN101198046A (en) * 2007-12-21 2008-06-11 北京天天宽广网络科技有限公司 Contents distribution and memory system and method in video network based on P2P technology
CN102045540A (en) * 2009-10-20 2011-05-04 华为软件技术有限公司 Video monitoring method, system and equipment
CN105450997A (en) * 2015-12-15 2016-03-30 李哲 Cloud storage based video monitoring system

Also Published As

Publication number Publication date
CN106454271A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454271B (en) Processing system for video and method
US9826254B2 (en) Method for entropy-encoding slice segment and apparatus therefor, and method for entropy-decoding slice segment and apparatus therefor
CN101743753B (en) A buffer-based rate control exploiting frame complexity, buffer level and position of intra frames in video coding
CN104429041B (en) Allow to carry out self adaptation stream sensing node, encoder and the client of smooth quality conversion
CN103957389A (en) 3G video transmission method and system based on compression sensing
US20140282766A1 (en) On the Fly Transcoding of Video on Demand Content for Adaptive Streaming
CN102318202B (en) System and method for transcoding between scalable and non-scalable video codecs
JP4983917B2 (en) Moving image distribution system, conversion device, and moving image distribution method
WO2008060732A2 (en) Techniques for variable resolution encoding and decoding of digital video
CN105052149A (en) Improved rtp payload format designs
CN1998240B (en) Method and device for transferring predictive and non-predictive data frames
CN105230016A (en) For the single network Abstraction Layer units bag with decoding order numbering of video coding
CN104247407A (en) Data, multimedia & video transmission updating system
CN105554513A (en) Panoramic video transmission method and system based on H.264
US11888913B2 (en) External stream representation properties
US20160037169A1 (en) High speed scalable video coding device and method using multi-track video
CN112055970B (en) Construction method of candidate motion information list, inter-frame prediction method and device
KR20120012089A (en) System and method for proving video using scalable video coding
Buysschaert et al. Creating bandwidth-efficient workflows with JPEG XS and SMPTE ST 2110
CN101188768A (en) Method and apparatus for transmitting and receiving moving pictures based on RGB codec
Ibrahim et al. A new video transcoding for future wireless communication system
US10271075B2 (en) Cloud encoding system
Psannis et al. QoS for wireless interactive multimedia streaming
Coelho Low Cost Transcoder
KR100597313B1 (en) Multi video compressing method and video stream server 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
GR01 Patent grant
GR01 Patent grant