Specific embodiment
Please refer to Fig. 1.Fig. 1 is the function for the system that the method for transmitting audio-video stream according to a first embodiment of the present invention is builtIt can module map.It include that multiple network camera 10A to 10N and network are recorded a video in the system of transmitting audio-video stream shown in Fig. 1Machine (Network Video Recorder;NVR)20.Network camera 10A to 10N generates audio-visual stream VS1 to VSN respectively, andAudio-visual stream VS1 to VSN is transmitted to Network Personal Video Recorder 20 by corresponding channel C H1 to CHN.Network Personal Video Recorder 20 receives shadowAfter sound stream VS1 to VSN, the received audio-visual stream VS1 to VSN that receives can be stored to the storage dress of Network Personal Video Recorder 20It sets, and the storage device can be solid state hard disk or the general hard disk using magnetic recording mode.
Audio-visual stream VS1 to VSN can be selectively transferred to Cloud Server 30 according to demand by Network Personal Video Recorder 20.Firstly,Camera list is transmitted to Network Personal Video Recorder 20 by Cloud Server 30, so that Network Personal Video Recorder 20 is respectively according to Cloud Server 30Camera list transmission uploads audio-visual stream S1 to Cloud Server 30.The camera list of Cloud Server 30 is to record cloud serviceDevice 30 will receive the audio-visual stream of network camera 10A which network camera into 10N.
The media access control address (Media Access Control Address) of network camera 10A to 10N canIt is registered in Cloud Server 30, the camera list that above-mentioned Cloud Server 30 is transmitted to Network Personal Video Recorder 20 may include corresponding networkThe media access control address of camera, and Network Personal Video Recorder 20 can compare the media interviews control of each network camera 10A to 10NWhether address processed is included in camera list.If the media interviews of network camera 10A any network camera into 10NControl address is not contained in the media access control address that camera list is recorded, then Network Personal Video Recorder 20 can forbid thisNetwork images the audio-visual stream of overhead pass.In this way, which only its media access control address is registered in the net on Cloud Server 30Road camera, which is just allowed to upload, audio-visual flows to Network Personal Video Recorder 20.
The above-mentioned camera list for being transmitted to Network Personal Video Recorder 20 can be immediately updated, and when camera list is updatedWhen, it increase accordingly in camera list or the network camera of reduction can adaptively start or stop generation and uploaded videosStream.For example, if increasing some network camera newly in the process into camera list, then Network Personal Video Recorder 20 can be adaptiveGround controls the network camera and starts to generate simultaneously uploaded videos stream;If some network camera is arranged from camera in the process againIt is removed in table, then Network Personal Video Recorder 20 can adaptively control the network camera and stop generating video flowing and stop uploaded videosStream.
In addition, uploading the channel number that audio-visual stream S1 may include channel used in corresponding network camera.For example,If uploading audio-visual stream S1 is formed by the audio-visual stream VS1 and VS2 of merging, then audio-visual stream S1 may include IP Camera 10A andThe channel number of channel C H1 and CH2 used in 10B, to facilitate the subsequent identification of Cloud Server 30 to upload the data of audio-visual stream S1,And the decoding of viewing apparatus 40 is facilitated to upload audio-visual stream S1.
Audio-visual stream VS1 to VSN produced by above-mentioned network camera 10A to 10N can have a different video formats, and itsVideo format may include but be not limited to be Flash Video (FLV), AVI (Audio Video Interleave), WMV(Windows Media Video)、MPEG(Moving Picture Experts Group)、Matroska、Real Media(RM), QuickTime File Format, Ogg, MOD ... etc..
It is imaged in addition, control instruction can be transmitted to network by Cloud Server 30 and Network Personal Video Recorder 20 by viewing apparatus 40At least one IP Camera of head 10A into 10N, to control the operation of one or more IP Cameras.Wherein, it is controlledThe operation of IP Camera may include the code rate of the IP Camera, resolution ratio and/or picture rotation.
In addition, Network Personal Video Recorder 20 can control network camera 10A to 10N to generate and upload within the corresponding time respectivelyCorresponding audio-visual stream VS1 to VSN.Such as, it is only necessary to network camera 10A is in 8 points of the morning pictures into 5 PM, thenNetwork Personal Video Recorder 20 can set network camera 10A and only generate at 8 points of the morning to 5 PM and upload audio-visual stream VS1.
By Network Personal Video Recorder 20, the audio-visual stream of respective autonomous channel can be collaborated, reduce each network camera shootingThe number that head 10A to 10N is individually interacted with Cloud Server 30, reduces numerous network camera 10A to 10N and Cloud Server 30 is handed overMutual network waste.Furthermore the present invention can be according to customer demand, when needing the live video in certain channel, the road Cai JianggaiIt is audio-visual to be streamed to Cloud Server 30;When such as needing the audio-visual stream of multichannel, Network Personal Video Recorder 20 is first penetrated by the audio-visual stream of multichannelCloud Server 30 is uploaded to after merging again.If viewing apparatus 40 does not watch the audio-visual stream demand of network camera 10A to 10NWhen, Network Personal Video Recorder 20 will not upload audio-visual stream S1 then and upload to Cloud Server 30, to save Internet resources.Further, since netThe environment that road camera 10A to 10N is monitored can be the more camera lenses in more places, while also have the removable spy easily browsedPoint, therefore work independently compared to current multiple web cameras, the present invention can be realized autonomous timing, mobile browsing, justThe new demand of victory operation, unified management.
Please refer to Fig. 2.Fig. 2 is the flow chart of the method for transmitting audio-video stream according to a second embodiment of the present invention, the biographyThe method of defeated audio-visual stream includes the following steps:
Step S210:Network Personal Video Recorder 20 receives multiple audio-visual stream VS1 from multiple IP Camera 10A to 10N extremelyVSN;
Step S220:The Network Personal Video Recorder 20 is according to camera list, from the multiple IP Camera 10A to 10NIn select any number of IP Cameras, and the audio-visual stream of any number of IP Cameras is merged into single and uploads audio-visual streamS1;And
Step S230:The audio-visual stream S1 of upload is uploaded to a cloud by single channel CHA by the Network Personal Video Recorder 20Server 30.
In addition, Network Personal Video Recorder 20 can also be according to camera list, 10A to 10N from above-mentioned multiple IP CamerasSelect an IP Camera (such as:IP Camera 10B), and pass through single channel CHA for selected IP CameraAudio-visual stream (such as:Audio-visual stream VS2) it is uploaded to Cloud Server 30.
In conclusion the method for the transmitting audio-video stream disclosed in through the invention, can be realized and browse in mobile clientThe monitoring system of more more camera lenses in place, while monitoring condition can be set according to individual demand.In addition, side through the inventionMethod can reduce the number that each IP Camera is individually interacted with Cloud Server, reduce numerous web cameras and cloud serviceThe network waste of device interaction.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this fieldFor art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repairChange, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.