CN104837032A - Method for dynamically adjusting encoder resolution ratio in video monitoring system - Google Patents
Method for dynamically adjusting encoder resolution ratio in video monitoring system Download PDFInfo
- Publication number
- CN104837032A CN104837032A CN201410047185.1A CN201410047185A CN104837032A CN 104837032 A CN104837032 A CN 104837032A CN 201410047185 A CN201410047185 A CN 201410047185A CN 104837032 A CN104837032 A CN 104837032A
- Authority
- CN
- China
- Prior art keywords
- resolution
- video
- encoder
- stream
- main
- 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
Abstract
The invention provides a method for dynamically adjusting the encoder resolution ratio in a video monitoring system. The method comprises that: when a client terminal sends a video request, a video access gateway obtains a collection of required video resolution ratios from the client terminal; and if the collection of resolution ratios of current main and sub code streams of an encoder does not contain the collection of required video resolution ratios, the encoder is notified to make a change to enable the collection of resolution ratios of the code streams provided by the encoder to contain the collection of required video resolution ratios. According to the invention, real-time adjustment of the encoder can be performed according to the video requirement of the client terminal, so that the client terminal does not need to care about the video resolution ratios of the main and sub code streams of the encoder and selects the required video simply according to the local network condition.
Description
Technical field
The present invention relates to video playback field, particularly relate to the method for dynamic conditioning encoder resolution in a kind of video monitoring system.
Background technology
In order to take into account fluency and the definition of video, the concept of main and sub code stream is generally proposed: after namely a road video enters encoder in the video monitoring system of prior art, encoder encodes goes out the code stream of two kinds of different resolutions: main bit stream and subcode stream, and main bit stream resolution is greater than subcode stream.When in the better situation of wireless network bandwidth, user can select main bit stream to retrieve for examination, and can obtain higher definition like this, and when wireless channel conditions is not good, can retrieve for examination by chooser code stream, keeps the fluency of video as far as possible.
Main, subcode stream technology has taken into account fluency and definition, but synchronization can only provide the video code flow of Resolutions, when the video resolution that client is conventional has multiple, there will be master, the situation of the Resolutions that subcode stream provides not needed for client, although change master that can be artificial, the video resolution of subcode stream, but so also just adapt to the requirement of a client, but needed for can not taking the whole situation into account and plan accordingly, and waste time and energy, the video code flow being easy to when multi-client connects to cause some client to can not get being applicable to and occur the situation of blank screen.
Summary of the invention
Some client in order to avoid prior art can not get the video code flow that is applicable to and occurs the situation of blank screen, the invention provides a kind of method of monitor video resolution of real-time dynamic conditioning encoder, can meet the video requirement of client to greatest extent.The method comprises:
When client sends video request, video IAD obtains the set of the demand video resolution of client, if the set of the resolution of the main and sub code stream that encoder is current does not comprise the set of demand video resolution, then the set that the set of resolution changing the code stream that encoder is provided comprises demand video resolution made by informed code device.
Preferably, when demand video resolution only has one, described change is specially: if demand video resolution is greater than main bit stream resolution, then change main bit stream resolution into demand video resolution; Otherwise change subcode stream resolution into demand video resolution.
Preferably, when demand video resolution has two kinds, described change is specially: change main bit stream resolution into resolution higher in demand video resolution, changes subcode stream resolution into resolution lower in demand video resolution.
Preferably, when demand video resolution is greater than two kinds, described change is specially: encoder creates new coding pass to ensure that the kind number of the code stream that encoder can provide is more than or equal to the kind number of demand video resolution, and the set of the resolution of the code stream that the resolution then arranging the main and sub code stream of original encoding passage and new coding pass makes encoder provide comprises the set of demand video resolution.Further, if demand video resolution has three kinds, then encoder creates a new coding pass, and the resolution arranging the resolution of the main and sub code stream of original encoding passage and the main bit stream of new coding pass is respectively three kinds of demand video resolutions.
Preferably, the specific implementation step of said method can be:
A, whether video IAD real-time listening has client to initiate video request;
B, when client sends video request, video IAD obtains the demand video resolution of this client, and writes in video resolution list of requirements;
C, video IAD sends the message of inquiring about main and sub code stream resolution to encoder, encoder returns the resolution of current main and sub code stream;
D, video IAD will be led, the resolution write of subcode stream is main, the list of subcode stream resolution record, then by the demand video resolution of client and current master, the resolution of subcode stream is compared, if the master that encoder is current, the set of the resolution of subcode stream comprises the set of demand video resolution, then maintain encoder original state, otherwise the resolution of the code stream that calculation code device should provide, the set that the set of resolution changing the code stream that encoder is provided comprises demand video resolution made by informed code device, and by main for result of calculation write, the list of subcode stream resolution record,
E, encoder sends its code stream needed to client.
The present invention can make real-time adjustment according to the video requirement of client to encoder, client is without the need to being concerned about the video resolution of the main and sub code stream of encoder, only need according to the network condition of this locality, video needed for selection, there will not be the video code flow that can not get being applicable to and occur the situation of blank screen, thus meeting the requirement that client normally retrieves for examination video to greatest extent.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram that the client of the embodiment of the present invention one retrieves for examination video.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments; It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The present embodiment one is initiated video retrieve for examination request by video IAD B to encoder C for customer end A and is illustrated that client retrieves for examination the method flow of video, and as shown in Figure 1, the method processes at video IAD B place, and detailed process is:
(1) A initiatively initiates the video request of retrieving for examination encoder C to video IAD B with the identity of client;
(2) video IAD B receives the video request of A, obtains the video resolution of A, write video resolution list of requirements;
(3) video IAD B sends the request of inquiry video resolution to encoder C;
(4) encoder C receives request, sends main and sub streaming video resolution to video IAD B;
(5) video IAD B starts the resolution of the actual code stream that should provide of dynamic calculation encoder according to the feedback of client and encoder, if now client resolution requirements is less than or equal to two kinds, performs step (6), otherwise, perform step (7);
(6) remain stationary if result of calculation is encoder, perform step (8), otherwise, perform step (9);
(7) informed code device C newly creates new coding pass, and original encoding passage and new coding pass one are used from resolution video needed for coding client, and code stream qualified in encoder C is forwarded to customer end A by video IAD B;
(8) code stream meeting demand condition in encoder C is forwarded to customer end A by video IAD B;
(9) video IAD B sends change resolution message to encoder C, changes successfully, the code stream meeting demand condition in encoder C is forwarded to customer end A;
(10) the encoder main and sub code stream resolution after change is write the list of main and sub code stream resolution record by video IAD.
Embodiment two
In the step (5) of embodiment one, video IAD B needs the resolution of the actual code stream that should provide of calculation code device, and how the present embodiment specifically calculates illustrating.
The conventional video resolution of the present embodiment hypothesis client has D1(704*576), CIF(352*288), QCIF(176*144) 3 kinds, D1 resolution is maximum, definition is the highest, shared bandwidth is also the highest, CIF resolution, definition and to account for bandwidth all moderate, QCIF resolution is minimum, and definition is minimum, and shared bandwidth is also minimum.Computation rule is as follows:
1, when the demand form in video requirement list has two kinds:
(1) when being D1 in video requirement list, main and sub code stream is D1, CIF.Result of calculation: remain stationary.
(2) when being CIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: remain stationary.
(3) when being QCIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: change subcode stream into QCIF.
(4) when being D1 in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: change main bit stream into D1.
(5) when being CIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: remain stationary.
(6) when being QCIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: remain stationary
(7) when being D1 in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: remain stationary.
(8) when being CIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: change subcode stream into CIF.
(9) when being QCIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: remain stationary.
2, when the demand form in video requirement list has two kinds:
(1) when being D1, CIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: remain stationary.
(2) when being CIF, QCIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: change main bit stream into CIF, changes subcode stream into QCIF.
(3) when being D1, QCIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: change subcode stream into QCIF.
(4) when being D1, CIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: change main bit stream into D1, changes subcode stream into CIF.
(5) when being CIF, QCIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: remain stationary.
(6) when being D1, QCIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: change main bit stream into D1.
(7) when being D1, CIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: change subcode stream into CIF.
(8) when being CIF, QCIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: change subcode stream into CIF.
(9) when being D1, QCIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: remain stationary.
3, when the demand form in video requirement list has three kinds:
(1) when being D1, CIF, QCIF in video requirement list, main and sub code stream is D1, CIF.Result of calculation: main and sub code stream is remained stationary, informed code device newly creates a coding pass, and the main bit stream of new coding pass is set to QCIF.
(2) when being D1, CIF, QCIF in video requirement list, main and sub code stream is CIF, QCIF.Result of calculation: main and sub code stream is remained stationary, informed code device newly creates a coding pass, and the main bit stream of new coding pass is set to D1.
(3) when being D1, CIF, QCIF in video requirement list, main and sub code stream is D1, QCIF.Result of calculation: main and sub code stream is remained stationary, informed code device newly creates a coding pass, and the main bit stream of new coding pass is set to CIF.
The result calculated so just can meet the demand of all clients to video resolution.If result of calculation needs encoder to change resolution, then informed code device is made change by video IAD, then new resolution is write main and sub code stream resolution list.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (6)
1. the method for dynamic conditioning encoder resolution in video monitoring system, it is characterized in that, described method comprises:
When client sends video request, video IAD obtains the set of the demand video resolution of client, if the set of the resolution of the main and sub code stream that encoder is current does not comprise the set of demand video resolution, then the set that the set of resolution changing the code stream that encoder is provided comprises demand video resolution made by informed code device.
2. method according to claim 1, is characterized in that, when demand video resolution only has one, described change is specially: if demand video resolution is greater than main bit stream resolution, then change main bit stream resolution into demand video resolution; Otherwise change subcode stream resolution into demand video resolution.
3. method according to claim 1, it is characterized in that, when demand video resolution has two kinds, described change is specially: change main bit stream resolution into resolution higher in demand video resolution, changes subcode stream resolution into resolution lower in demand video resolution.
4. method according to claim 1, it is characterized in that, when demand video resolution is greater than two kinds, described change is specially: encoder creates new coding pass to ensure that the kind number of the code stream that encoder can provide is more than or equal to the kind number of demand video resolution, and the set of the resolution of the code stream that the resolution then arranging the main and sub code stream of original encoding passage and new coding pass makes encoder provide comprises the set of demand video resolution.
5. method according to claim 4, it is characterized in that, demand video resolution has three kinds, and encoder creates a new coding pass, and the resolution arranging the resolution of the main and sub code stream of original encoding passage and the main bit stream of new coding pass is respectively three kinds of demand video resolutions.
6. one of method according to claims 1 to 5, is characterized in that, described method specific implementation step is:
A, whether video IAD real-time listening has client to initiate video request;
B, when client sends video request, video IAD obtains the demand video resolution of this client, and writes in video resolution list of requirements;
C, video IAD sends the message of inquiring about main and sub code stream resolution to encoder, encoder returns the resolution of current main and sub code stream;
D, video IAD will be led, the resolution write of subcode stream is main, the list of subcode stream resolution record, then by the demand video resolution of client and current master, the resolution of subcode stream is compared, if the master that encoder is current, the set of the resolution of subcode stream comprises the set of demand video resolution, then maintain encoder original state, otherwise the resolution of the code stream that calculation code device should provide, the set that the set of resolution changing the code stream that encoder is provided comprises demand video resolution made by informed code device, and by main for result of calculation write, the list of subcode stream resolution record,
E, encoder sends its code stream needed to client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410047185.1A CN104837032B (en) | 2014-02-11 | 2014-02-11 | The method of encoder resolution is dynamically adjusted in a kind of video monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410047185.1A CN104837032B (en) | 2014-02-11 | 2014-02-11 | The method of encoder resolution is dynamically adjusted in a kind of video monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104837032A true CN104837032A (en) | 2015-08-12 |
CN104837032B CN104837032B (en) | 2019-06-21 |
Family
ID=53814629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410047185.1A Expired - Fee Related CN104837032B (en) | 2014-02-11 | 2014-02-11 | The method of encoder resolution is dynamically adjusted in a kind of video monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104837032B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713846A (en) * | 2016-11-14 | 2017-05-24 | 浙江宇视科技有限公司 | Live connection establishing method and device |
CN109495761A (en) * | 2017-09-13 | 2019-03-19 | 杭州海康威视系统技术有限公司 | Video switching method and device |
CN110505425A (en) * | 2018-05-18 | 2019-11-26 | 杭州海康威视数字技术股份有限公司 | A kind of coding/decoding method, decoding apparatus, electronic equipment and readable storage medium storing program for executing |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1717674A (en) * | 2001-12-12 | 2006-01-04 | 索尼电子有限公司 | Transforming multimedia data for delivery to multiple heterogeneous devices |
CN101370140A (en) * | 2008-09-25 | 2009-02-18 | 浙江大华技术股份有限公司 | Multi-code stream generation method |
CN101588595A (en) * | 2009-07-07 | 2009-11-25 | 董志 | Method for dynamically regulating data transfer rate in wireless application service system |
CN101710975A (en) * | 2009-11-27 | 2010-05-19 | 广东亿迅科技有限公司 | Video monitoring system and video monitoring method |
CN101841709A (en) * | 2010-03-29 | 2010-09-22 | 广东中大讯通信息有限公司 | Shunting coding method for digital video monitoring system and video monitoring system |
CN101848382A (en) * | 2010-05-31 | 2010-09-29 | 深圳市景阳科技股份有限公司 | Method and system for adjusting video streaming image resolution ratio and code stream |
US20100250747A1 (en) * | 2009-03-31 | 2010-09-30 | Jeyhan Karaoguz | ADAPTIVE MULTIPLE PATHWAY SESSION SETUP TO SUPPORT QoS SERVICES |
CN102045540A (en) * | 2009-10-20 | 2011-05-04 | 华为软件技术有限公司 | Video monitoring method, system and equipment |
CN102075769A (en) * | 2011-01-10 | 2011-05-25 | 苏州博联科技有限公司 | Method for optimizing video QoS of video wireless transmission monitoring system |
CN102970600A (en) * | 2012-11-20 | 2013-03-13 | 无锡成电科大科技发展有限公司 | Cloud-computing-based high-definition video playing system and method |
-
2014
- 2014-02-11 CN CN201410047185.1A patent/CN104837032B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1717674A (en) * | 2001-12-12 | 2006-01-04 | 索尼电子有限公司 | Transforming multimedia data for delivery to multiple heterogeneous devices |
CN101370140A (en) * | 2008-09-25 | 2009-02-18 | 浙江大华技术股份有限公司 | Multi-code stream generation method |
US20100250747A1 (en) * | 2009-03-31 | 2010-09-30 | Jeyhan Karaoguz | ADAPTIVE MULTIPLE PATHWAY SESSION SETUP TO SUPPORT QoS SERVICES |
CN101588595A (en) * | 2009-07-07 | 2009-11-25 | 董志 | Method for dynamically regulating data transfer rate in wireless application service system |
CN102045540A (en) * | 2009-10-20 | 2011-05-04 | 华为软件技术有限公司 | Video monitoring method, system and equipment |
CN101710975A (en) * | 2009-11-27 | 2010-05-19 | 广东亿迅科技有限公司 | Video monitoring system and video monitoring method |
CN101841709A (en) * | 2010-03-29 | 2010-09-22 | 广东中大讯通信息有限公司 | Shunting coding method for digital video monitoring system and video monitoring system |
CN101848382A (en) * | 2010-05-31 | 2010-09-29 | 深圳市景阳科技股份有限公司 | Method and system for adjusting video streaming image resolution ratio and code stream |
CN102075769A (en) * | 2011-01-10 | 2011-05-25 | 苏州博联科技有限公司 | Method for optimizing video QoS of video wireless transmission monitoring system |
CN102970600A (en) * | 2012-11-20 | 2013-03-13 | 无锡成电科大科技发展有限公司 | Cloud-computing-based high-definition video playing system and method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713846A (en) * | 2016-11-14 | 2017-05-24 | 浙江宇视科技有限公司 | Live connection establishing method and device |
CN106713846B (en) * | 2016-11-14 | 2020-04-10 | 浙江宇视科技有限公司 | Live connection establishing method and device |
CN109495761A (en) * | 2017-09-13 | 2019-03-19 | 杭州海康威视系统技术有限公司 | Video switching method and device |
CN110505425A (en) * | 2018-05-18 | 2019-11-26 | 杭州海康威视数字技术股份有限公司 | A kind of coding/decoding method, decoding apparatus, electronic equipment and readable storage medium storing program for executing |
CN110505425B (en) * | 2018-05-18 | 2021-12-24 | 杭州海康威视数字技术股份有限公司 | Decoding method, decoding device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104837032B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102039778B1 (en) | Method and apparatus for adaptively providing multiple bit rate stream media in server | |
JP6286019B2 (en) | Network coded storage with multi-resolution code | |
US8924476B1 (en) | Recovery and fault-tolerance of a real time in-memory index | |
US11665218B2 (en) | Fast encoding of live streaming media content | |
US20200021868A1 (en) | Playback synchronization among adaptive bitrate streaming clients | |
CN104159127B (en) | A kind of video transcoding method, apparatus and system | |
JP2016508348A (en) | Using quality information for adaptive streaming of media content | |
CN104135672A (en) | HLS-based method for realizing seamless disaster recovery of video on demand | |
CN103501429A (en) | Data coding method and device based on dynamic code rate | |
CN109618188B (en) | Video data encoding and forwarding method, device, equipment and storage medium | |
CN113115067A (en) | Live broadcast system, video processing method and related device | |
CN102170552A (en) | Video conference system and processing method used therein | |
CN104661088A (en) | Video source switching method and device | |
US20150373423A1 (en) | Video supply device, video acquisition device, and program | |
CN105657450A (en) | Distributed video transcoding method | |
CN104837032A (en) | Method for dynamically adjusting encoder resolution ratio in video monitoring system | |
US20170374140A1 (en) | Method and apparatus for transmitting and receiving information between servers in contents transmission network system | |
CN113891114A (en) | Transcoding task scheduling method and device | |
CN106899894A (en) | The adaptive stream media method of dynamic optimization, device and server | |
CN106385627B (en) | video encoding method and apparatus | |
CN112040332B (en) | Method and system for obtaining video content with smooth CDN bandwidth | |
JP2014192566A (en) | Video processing device, video processing method, and computer program | |
CN110225352B (en) | Cloud game video coding and decoding selection method based on capability negotiation | |
CN112383775A (en) | Video data transmission method based on cloud mobile phone | |
CN107682672A (en) | A kind of two-way video stream implementation method, storage medium and multimedia terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20191121 Granted publication date: 20190621 |
|
PD01 | Discharge of preservation of patent | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20200710 Granted publication date: 20190621 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190621 Termination date: 20200211 |