Dynamic and static scene adaptive video compression method and system based on PTZ holder control

The dynamic and static scene adaptive video compression method controlled by PTZ pan-tilt unit, which adopts adaptive coding modulation and variable bit rate technology, solves the stability and image quality problems of video transmission in power grid system and achieves low latency and high resolution video transmission effect.

CN120321398BActive Publication Date: 2025-12-26ZHEJIANG SIJI TECH SERVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510500802.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-12-26
Estimated Expiration
2045-04-21

AI Technical Summary

Technical Problem

Real-time video transmission in power grid systems faces challenges such as poor transmission stability and the difficulty of balancing low latency with high image quality, especially in complex electromagnetic environments and remote areas with weak network coverage, leading to video transmission stuttering and delays.

Method used

An adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control is adopted. Through adaptive coding modulation and variable bit rate technology, the coding scheme is dynamically adjusted to distinguish between high-activity and low-activity areas, intelligently allocate bit rate, improve the anti-electromagnetic interference capability, and recover high-frequency components through statistical multiplexing algorithm.

Benefits of technology

Maintaining a low bit error rate under electromagnetic interference reduces image blurring and ghosting, enabling low-latency and high-resolution video transmission, and improving the stability and bandwidth utilization efficiency of video transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321398B_ABST
    Figure CN120321398B_ABST
Patent Text Reader

Abstract

The application provides a dynamic and static scene adaptive video compression method and system based on PTZ holder control, and relates to the technical field of video compression transmission.The application carries out parameter detection and determination on digital video, carries out frame analysis, obtains frame type and frame activity, distinguishes high activity area and low activity area, gives a bit allocation scheme according to the frame type and the frame activity and dynamically allocates bit resources, wherein the bit resources allocated to the high activity area are more than those allocated to the low activity area, then the encoding result is multiplexed, and high frequency components are recovered through a statistical multiplexing algorithm.The application can dynamically adjust the encoding scheme according to the channel quality, realize adaptive encoding modulation, improve the maintenance of bit error rate under electromagnetic interference, and reduce image blur and trailing.The application can intelligently allocate code rate according to the dynamic change of the PTZ holder control view angle and the static scene, increase the code rate in a dynamic scene to ensure detail capture, and reduce the redundant code rate in a static scene to save bandwidth resources.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of video compression transmission, in particular to a dynamic and static scene adaptive video compression method and system based on PTZ holder control. BACKGROUND

[0002] In the power grid system, video real-time transmission plays an irreplaceable role as a key technical means to ensure the safe operation of power facilities and realize intelligent management. With the help of real-time monitoring of power transmission lines, substation equipment and their surrounding environment, operation and maintenance personnel can quickly detect potential hazards such as equipment overheating, insulation damage, and external damage, providing intuitive visual basis for fault early warning and emergency command work. Especially in extreme weather or disaster and other special scenarios, real-time video transmission can greatly shorten the fault response time and effectively prevent the accident from further expanding. At the same time, the use of remote inspection technology can also reduce the safety risks brought by manual climbing of high-voltage equipment, and significantly improve the work efficiency of operation and maintenance. However, the current video real-time transmission of the power grid system faces the following problems:

[0003] 1. Poor transmission stability: The complex electromagnetic environment in which the power grid system is located is prone to interfere with signal transmission, and there are weak links in network coverage in remote areas, which often leads to video transmission lag or even interruption.

[0004] 2. Difficulty in balancing low delay and high quality: High-definition video transmission requires high bandwidth support, but existing communication networks (such as 4G networks or optical fiber networks) are difficult to meet the dual needs of low delay and high resolution, resulting in a decrease in transmission speed.

[0005] Based on this, the present application is proposed. SUMMARY

[0006] The purpose of the present application is to provide a dynamic and static scene adaptive video compression method and system based on PTZ holder control, which dynamically adjusts the encoding scheme and restores high-frequency components using adaptive coding modulation, improves the anti-electromagnetic interference capability, and through static and dynamic scene adaptive code rate regulation, intelligently allocates code rate using variable code rate technology, dynamically improves code rate to preserve details in dynamic scenes, and reduces code rate to save bandwidth in static scenes, while meeting the dual needs of low delay and high resolution.

[0007] To achieve the above purpose, the present application provides the following technical solutions:

[0008] The application provides a dynamic and static scene adaptive video compression method based on PTZ holder control in a first aspect, comprising: receiving and analyzing at least digital video and related parameters output by a camera controlled by a PTZ holder, and performing initialization parameter setting; performing parameter detection and determination on the digital video, and performing frame analysis to obtain frame type and frame activity, distinguishing high activity area and low activity area, and introducing error feedback mechanism to perform error estimation on the obtained related parameters; according to the error result, the frame type and the frame activity, a bit allocation scheme and a quantization parameter adjustment scheme are given, and bit resources are dynamically allocated according to the bit allocation scheme and the quantization parameter adjustment scheme, the code rate is controlled and quantization is performed; the quantized data is encoded to obtain an encoding result, wherein the bit resources allocated to the high activity area are more than those allocated to the low activity area; the encoding result is multiplexed, and high frequency components are recovered through a statistical multiplexing algorithm.

[0009] Further, the related parameters include data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor.

[0010] Further, the error feedback mechanism is introduced to perform error estimation on the obtained related parameters, wherein the error estimation includes calculating inter-frame prediction residual and generating difference buffer frame and difference length factor.

[0011] In a preferred scheme of the first aspect of the application, the dynamic allocation of bit resources according to the bit allocation scheme and the quantization parameter adjustment scheme specifically includes: bit budget allocation according to the scaling factor, the difference buffer frame, the difference length factor, the frame type, the frame activity and the quantization parameter adjustment scheme; determining the maximum and minimum bit length according to the data block, the maximum bit rate, the digital video after parameter detection and determination, the error estimation value and the difference buffer frame, obtaining the minimum encoding frame number and the maximum encoding frame number, and performing bit length allocation according to the minimum encoding frame number, the maximum encoding frame number and the bit budget result.

[0012] In a preferred scheme of the first aspect of the application, the dynamic and static scene adaptive video compression method based on PTZ holder control further comprises: statistical strategy management of the code rate control, dynamic adjustment of the code rate combined with different data processing requirements and system load conditions, and global code rate control.

[0013] In a preferred scheme of the first aspect of the application, the frame type is divided by time correlation, including I frame, P frame and B frame, wherein the I frame is a key frame, and the bit resources are allocated according to the priority of I frame>P frame>B frame, so as to ensure the quality of key frame and control the code rate fluctuation.

[0014] The application provides a preferred scheme in the first aspect, wherein the encoding adopts entropy encoding, and CABAC or CAVLC algorithm is used for further compression of the quantized coefficients, so that lossless encoding is realized.

[0015] The application provides a preferred scheme in the first aspect, wherein the frame adopts an SDH frame and adopts a rectangular block structure, and comprises the following three parts: a section overhead responsible for network monitoring and management, including a regenerative section overhead and a multiplex section overhead; a management unit pointer indicating the starting position of the payload, supporting flexible signal synchronization and adjustment; and an information payload carrying service data, encapsulating low-speed signals through a virtual container.

[0016] The application provides a preferred scheme in the first aspect, wherein the encoding result is multiplexed, and high-frequency components are recovered through a digital equalization algorithm, wherein the multiplexing comprises multipath video statistical multiplexing, and specifically comprises: virtual concatenation, which is used for logically binding a plurality of virtual containers into one high-bandwidth channel, supporting bandwidth aggregation of non-continuous physical channels; a link capacity adjustment scheme, which is used for dynamically increasing or decreasing the number of virtual containers, and adjusting the link capacity in real time according to the video traffic demand; and a general framing procedure, which is used for encapsulating IP video streams into an SDH compatible frame format, supporting variable length packet adaptation required by statistical multiplexing.

[0017] The application provides a preferred scheme in the first aspect, wherein the encoding result is multiplexed, and high-frequency components are recovered through a digital equalization algorithm, wherein the multiplexing comprises multipath video statistical multiplexing, and specifically comprises: virtual concatenation, which is used for logically binding a plurality of virtual containers into one high-bandwidth channel, supporting bandwidth aggregation of non-continuous physical channels; a link capacity adjustment scheme, which is used for dynamically increasing or decreasing the number of virtual containers, and adjusting the link capacity in real time according to the video traffic demand; and a general framing procedure, which is used for encapsulating IP video streams into an SDH compatible frame format, supporting variable length packet adaptation required by statistical multiplexing.

[0018] Compared with the prior art, the application has the following beneficial technical effects:

[0019] The application is based on a dynamic and static scene adaptive video compression method and system controlled by a PTZ holder, receives and analyzes at least digital video and related parameters output by a camera controlled by a PTZ holder, and sets initial parameters; detects and determines parameters of the digital video, and analyzes frames to obtain frame types and frame activities, distinguishes high activity areas and low activity areas, gives a bit allocation scheme according to the frame types and frame activities, dynamically allocates bit resources according to the bit allocation scheme, and then multiplexes the encoding results, and restores high-frequency components through a statistical multiplexing algorithm. Therefore, dynamic adjustment of the encoding scheme according to the channel quality and restoration of the high-frequency components through the statistical multiplexing algorithm can be realized, adaptive encoding modulation is realized, and the bit error rate is maintained under electromagnetic interference, and image blur and trailing are reduced.

[0020] The application is based on a dynamic and static scene adaptive video compression method and system controlled by a PTZ holder, adopts a variable code rate technology, that is, gives a bit allocation scheme and a quantization parameter adjustment scheme according to error results, frame types and frame activities, and dynamically allocates bit resources, controls code rate and performs quantization according to the bit allocation scheme and the quantization parameter adjustment scheme, so that code rate can be intelligently allocated according to dynamic changes (such as rapid rotation during device inspection) and static scenes (such as fixed point monitoring) of a PTZ holder control angle, static and dynamic scene adaptive code rate regulation is realized, code rate is increased in a dynamic scene to ensure detail capture, and redundant code rate is reduced in a static scene to save bandwidth resources. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the provided drawings.

[0022] Figure 1 A flowchart of a dynamic and static scene adaptive video compression method based on a PTZ holder control provided by a specific embodiment of the present application;

[0023] Figure 2 A module diagram of a dynamic and static scene adaptive video compression system based on a PTZ holder control provided by a specific embodiment of the present application;

[0024] Figure 3 A video encoding and channel quality processing flowchart in a dynamic and static scene adaptive video compression system based on a PTZ holder control provided by a specific embodiment of the present application;

[0025] Figure 4A video transmission architecture diagram in a dynamic and static scene adaptive video compression system based on PTZ control of a pan-tilt-zoom head according to an embodiment of the present application is provided in the detailed description of the present application.

[0026] Figure 5 A frame structure and statistical multiplexing algorithm base diagram in a dynamic and static scene adaptive video compression system based on PTZ control of a pan-tilt-zoom head according to an embodiment of the present application is provided in the detailed description of the present application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present application will be clearly and completely described in the detailed description of the present application with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of the present application.

[0028] Reference is made to Figure 1 In a preferred embodiment, a dynamic and static scene adaptive video compression method based on PTZ control of a pan-tilt-zoom head is provided, which is mainly realized through the following steps:

[0029] S1. Receiving and analyzing at least digital video and related parameters output by a camera controlled by a PTZ head, in a preferred embodiment, the related parameters include data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor. And initializing parameter setting, setting initial data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, scaling factor and other related parameters, providing initial conditions for subsequent processing, and then dynamically adjusting. More specific steps are as follows:

[0030] (1) Digital video input. Program input (program 1, program 2, program 3... program N): the system can process multiple program data, and each program data is preliminarily processed. The video signal is input into the system in digital form, which is in YUV format, because it can effectively separate luminance and chrominance information and reduce redundancy. The input source comes from a camera, a file or a network stream, and the encoding efficiency is optimized through preprocessing (such as denoising and scaling).

[0031] (2) Parameter initialization. Data block size: the video frame is divided into macroblocks (such as 16x16 macroblocks of H.264), and further subdivided into 4x4 subblocks to improve prediction accuracy.

[0032] (3) Scaling factor: dynamically adjusting resolution or quantization step length to balance compression rate and quality.

[0033] (4) Fixed / variable parameters: such as fixed QP (quantization parameter) or dynamically adjusting QP value according to buffer status.

[0034] S2. Parameter detection and determination are performed on the digital video, frame analysis is performed to obtain frame type and frame activity, high activity area (dynamic area) and low activity area (static area) are distinguished, and an error feedback mechanism is introduced to estimate the error of the obtained parameters. More specific steps are as follows:

[0035] (1) Frame type determination. The encoder divides the frame type according to time correlation. I frame: completely intra-coded, no time reference, low compression rate but key frame. P / B frame: eliminate time redundancy through inter-frame prediction (motion estimation and compensation), B frame bidirectional reference to subsequent frames to improve efficiency.

[0036] (2) Frame activity evaluation. Analyze the complexity of pixel changes in the macroblock, and allocate more bit resources to high activity area (such as moving objects) to maintain details, and compress more strongly in low activity area (such as static background).

[0037] (3) Error feedback mechanism. Error estimation is performed on the input data to obtain absolute error, ensuring that the error is minimized during parameter detection and determination. Difference buffer frame generation is used to consider the difference between frames when allocating bit budget. Error evaluation function: calculate the inter-frame prediction residual, and convert the spatial redundancy into frequency sparse coefficients through DCT transform. Difference buffer frame: store residual data for subsequent quantization and entropy coding, and consider the difference between frames when allocating bit budget.

[0038] S3. Bit allocation scheme and quantization parameter adjustment scheme are given according to the error result, frame type and frame activity, and bit resources, code rate control and quantization are dynamically allocated according to the bit allocation scheme and quantization parameter adjustment scheme. QL quantization parameter adjustment. Adjust the QL quantization parameter according to the characteristics of the input video to balance between compression rate and image quality. Other parameter preparation. Mainly scaling factor, time frame, to ensure the comprehensiveness of subsequent processing. The specific steps are as follows:

[0039] (1) Bit budget dynamic allocation. CF MAX. / MIN. (maximum / minimum encoding frame number): limit I frame interval according to GOP (image group) structure to avoid error accumulation.

[0040] (2) Bit budget: allocate bits based on frame type (I frame > P frame > B frame) and activity to ensure key frame quality and control code rate fluctuation. In this embodiment, the frame type is divided by time correlation, including I frame, P frame and B frame, among which I frame is key frame, and bit resources are allocated according to the priority of I frame > P frame > B frame, so as to make reasonable arrangement when allocating bit budget, to ensure key frame quality and control code rate fluctuation.

[0041] (3) Rate control and quantization optimization. RB (Rate Buffer): Monitor the buffer fullness, dynamically adjust the QP value to prevent overflow or underload. QL (Quantization Level): Control the compression rate by adjusting the quantization step, high QP reduces data volume but loses details, low QP is the opposite.

[0042] Further, the absolute difference values from the preprocessing module are received and controlled according to these difference values to determine the appropriate code rate. The control information is passed to the encoding module through rate control to adjust the code rate during the encoding process.

[0043] Please refer to Figure 3 In a preferred embodiment, the bit resource is dynamically allocated according to the bit allocation scheme and the quantization parameter adjustment scheme, which is implemented by the following steps: bit budget allocation is performed according to the scaling factor, the difference buffer frame, the difference step factor, the frame type, the frame activity, and the quantization parameter adjustment scheme; the maximum and minimum bit lengths are determined according to the data block, the maximum bit rate, the parameter detection and determination of the digital video, the error estimate value, and the difference buffer frame, to obtain the minimum and maximum encoding frame numbers, and the bit length allocation is performed according to the minimum and maximum encoding frame numbers and the bit budget result.

[0044] S4. The quantized data is encoded to obtain an encoding result, wherein the bit resource allocated to the high activity area is more than that allocated to the low activity area.

[0045] (1) Entropy encoding: further compression using CABAC or CAVLC algorithm on the quantized coefficients to achieve lossless encoding.

[0046] (2) Loop filtering: removes blocking effect and ringing effect, improves the quality of reconstructed frames.

[0047] S5. The encoding result is multiplexed, and the high frequency components are recovered through statistical multiplexing algorithm (also known as digital equalization algorithm). SDH frame adopts rectangular block structure (such as STM-1 for 9 rows x 270 columns), which contains the following three parts:

[0048] 1. Section overhead (SOH): responsible for network monitoring and management, including regeneration section overhead (RSOH) and multiplexing section overhead (MSOH)

[0049] 2. Management unit pointer (AU-PTR): indicates the starting position of the payload, supports flexible signal synchronization and adjustment.

[0050] 3. Information payload (Payload): carries service data (such as video stream), encapsulates low-speed signals through virtual container (VC).

[0051] The multiplexing includes a multi-video statistical multiplexing, and a core of the statistical multiplexing is to adapt to burstiness and difference of video traffic by dynamically allocating bandwidth resources. The SDH / SONET realizes the following technologies:

[0052] 1. Virtual Concatenation

[0053] A plurality of virtual containers (VCs) are logically bound as one high-bandwidth channel, and bandwidth aggregation of non-continuous physical channels is supported.

[0054] 2. LCAS (Link Capacity Adjustment Scheme)

[0055] The number of virtual containers is dynamically increased or decreased, and the link capacity is adjusted in real time according to the video traffic demand.

[0056] 3. GFP (Generic Framing Procedure)

[0057] IP video streams are encapsulated into an SDH-compatible frame format (such as GFP-F), and variable-length packet adaptation required by statistical multiplexing is supported.

[0058] In the embodiment, the combination of statistical multiplexing and SDH multiplexing can realize the following beneficial technical effects:

[0059] 1. Fixed time slot vs. dynamic allocation: The traditional SDH multiplexing is based on fixed time slots (TDM), while the statistical multiplexing dynamically allocates resources in the net load area according to the real-time demand of video streams.

[0060] 2. Bandwidth utilization optimization: Through LCAS and virtual concatenation, multiple video streams share the bandwidth pool of the same physical channel, reducing the waste of idle time slots.

[0061] 3. QoS guarantee: Through performance monitoring bytes in the section overhead (SOH), the video transmission quality is detected in real time, and critical services (such as live video) are preferentially guaranteed.

[0062] S6. Statistical policy control, dynamically adjusting the code rate to adapt to different data processing requirements and system load conditions. The statistical policy management of the code rate control dynamically adjusts the code rate to ensure the optimal utilization of system overall performance and resources.

[0063] Correspondingly, the embodiment provides a dynamic and static scene adaptive video compression system based on PTZ holder control, that is, the video transmission architecture mainly includes the following modules:

[0064] A data receiving and preliminary processing module 1 is configured to receive and analyze at least digital video and related parameters output by a camera controlled by a PTZ holder, and perform initialization parameter setting.

[0065] The parameter detection and frame analysis module 2 is used for parameter detection and determination of the digital video, frame analysis, acquisition of frame type and frame activity, distinction of high activity area and low activity area, and introduction of error feedback mechanism for error estimation of the acquired parameters.

[0066] The bit allocation and coding control module 3 is used for bit allocation scheme and quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamic allocation of bit resources, rate control and quantization according to the bit allocation scheme and quantization parameter adjustment scheme.

[0067] The above data collection and preliminary processing module 1, parameter detection and frame analysis module 2 and bit allocation and coding control module 3 can also be collectively referred to as a preprocessing module.

[0068] The encoding module 4 is used for encoding the quantized data to obtain an encoding result, wherein the bit resources allocated to the high activity area are more than those allocated to the low activity area.

[0069] The multiplexing module 5 is used for multiplexing the encoding result to recover high frequency components through statistical multiplexing algorithm. The module manages statistical strategy of rate control and dynamically adjusts the rate to ensure optimal utilization of system overall performance and resources.

[0070] The statistical strategy control module 6 is used for dynamic adjustment of the rate to adapt to different data processing requirements and system load conditions. The module manages statistical strategy of rate control and dynamically adjusts the rate to ensure optimal utilization of system overall performance and resources.

[0071] The above embodiment is based on the dynamic and static scene adaptive video compression method and system of PTZ holder control. The encoding scheme is dynamically adjusted according to the channel quality, and the statistical multiplexing algorithm is used to recover high frequency components, realizing adaptive encoding modulation, maintaining the bit error rate under electromagnetic interference, reducing image blur and trailing.

[0072] The above embodiment is based on the dynamic and static scene adaptive video compression method and system of PTZ holder control. The variable rate technology is used, that is, the bit allocation scheme and quantization parameter adjustment scheme are given according to the error result, frame type and frame activity, and the bit resources are dynamically allocated, the rate is controlled and quantization is performed according to the bit allocation scheme and quantization parameter adjustment scheme. Therefore, the rate can be intelligently allocated according to the dynamic change of the PTZ holder control view angle (such as rapid rotation during equipment inspection) and the static scene (such as fixed point monitoring), the static and dynamic scene adaptive rate regulation is realized, the rate is increased by 30% to 50% in dynamic scene to ensure detail capture, and the redundant rate is reduced in static scene to save bandwidth resources.

[0073] Therefore, the dynamic and static scene adaptive video transcoding compression method and system of the PTZ cloud head control of the application adopt channel dynamic adjustment, adaptive compression encoding modulation and other technologies to improve the real-time video transmission capability in a weak network environment. Through scene adaptive encoding, anti-interference signal processing and multi-path statistical multiplexing three core technologies, the stability, bandwidth efficiency and picture quality contradiction problem of video transmission in a complex environment is solved, and a low delay, high quality, anti-interference video transmission solution is provided for power, security and other high reliability scenes.

[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiment methods. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.

[0075] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above-mentioned embodiments are not described, but as long as the combinations of the technical features do not contradict, they should be considered as the scope of the present application. The above-mentioned embodiments only express several embodiments of the present application, and the description is more specific and detailed, but it should not be considered as a limitation of the scope of the present application. Those skilled in the art can make some modifications and improvements without departing from the concept of the present application, and these are within the scope of the present application.

Claims

1. A dynamic and static scene adaptive video compression method based on PTZ head control, characterized in that, Comprising: Receiving and analyzing at least digital video and related parameters from the camera output controlled by PTZ cloud head, and initializing parameter settings; the related parameters include data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor; Parameter detection and determination of digital video, frame analysis, frame type and frame activity, high activity area and low activity area, and error feedback mechanism for error estimation of related parameters; the error estimation includes: calculating the inter-frame prediction residual and generating the difference buffer frame and the difference length factor; According to the error result, frame type and frame activity, bit allocation scheme and quantization parameter adjustment scheme are given, and bit resource is dynamically allocated according to the bit allocation scheme and quantization parameter adjustment scheme, code rate control and quantization are carried out; Encoding the quantized data to obtain the encoding result, wherein the bit resource allocated to the high activity area is more than that of the low activity area; Multiplexing the encoding result and restoring the high frequency component through statistical multiplexing algorithm; The dynamic allocation of bit resource according to the bit allocation scheme and the quantization parameter adjustment scheme specifically includes: Bit budget allocation according to the scaling factor, difference buffer frame, difference length factor, frame type, frame activity and quantization parameter adjustment scheme; According to the data block, maximum bit rate, parameter detection and determination of digital video, error estimation value and difference buffer frame, the maximum and minimum bit length is determined, the minimum and maximum encoding frame number is obtained, and the bit length allocation is carried out according to the minimum and maximum encoding frame number and the bit budget result.

2. The method of claim 1, wherein the method is based on PTZ head control of a dynamic and static scene adaptive video compression. Further comprising: Statistical strategy management of code rate control, dynamic adjustment of code rate combined with different data processing requirements and system load, and global code rate control.

3. The PTZ cloud control based dynamic and static scene adaptive video compression method according to claim 1, characterized in that, The frame type is divided by time correlation, including I frame, P frame and B frame, wherein I frame is key frame, bit resource is allocated according to the priority of I frame>P frame>B frame, to ensure the quality of key frame and control the fluctuation of code rate.

4. The method of claim 1, wherein the method further comprises: The encoding uses entropy encoding, and CABAC or CAVLC algorithm is used for further compression of the quantized coefficients to realize lossless encoding.

5. The PTZ cloud control based dynamic and static scene adaptive video compression method according to claim 1, characterized in that, The frame uses SDH frame and rectangular block structure, which includes the following three parts: Section overhead: responsible for network monitoring and management, including regeneration section overhead and multiplexing section overhead; Management unit pointer: indicating the starting position of the payload, supporting flexible signal synchronization and adjustment; Information payload: carrying service data, encapsulating low-speed signal through virtual container.

6. The method of claim 4, wherein the method further comprises: The multiplexing of the encoding result and the restoration of the high frequency component through digital equalization algorithm, wherein the multiplexing includes multi-video statistical multiplexing, specifically including: virtual concatenation, which is used to logically bind multiple virtual containers into one high bandwidth channel, supporting bandwidth aggregation of non-continuous physical channels; link capacity adjustment scheme, which is used to dynamically increase or decrease the number of virtual containers, and adjust the link capacity in real time according to the video traffic demand; general framing procedure, which is used to encapsulate IP video stream into SDH compatible frame format, supporting variable length data packet adaptation required by statistical multiplexing.

7. A dynamic and static scene adaptive video compression system based on PTZ head control, characterized in that, Comprising: The data receiving and preliminary processing module is configured to receive and analyze digital video and related parameters output by the PTZ holder-controlled camera, and to set initial parameters; the related parameters include data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor; The parameter detection and frame analysis module is configured to detect and determine parameters of the digital video, and to analyze frames to obtain frame type and frame activity, distinguish high activity area and low activity area, and introduce error feedback mechanism to estimate errors of the obtained related parameters; the error estimation includes calculating inter-frame prediction residual and generating difference buffer frame and difference length factor; The bit allocation and encoding control module is configured to give bit allocation scheme and quantization parameter adjustment scheme according to error result, frame type and frame activity, and to dynamically allocate bit resources, control code rate and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme; The encoding module is configured to encode the quantized data to obtain encoding result, wherein the bit resources allocated to the high activity area are more than those allocated to the low activity area; The multiplexing module is configured to multiplex the encoding result to restore high frequency components through statistical multiplexing algorithm; The dynamic allocation of bit resources according to the bit allocation scheme and the quantization parameter adjustment scheme specifically includes: bit budget allocation according to the scaling factor, the difference buffer frame, the difference length factor, the frame type, the frame activity and the quantization parameter adjustment scheme; determination of maximum and minimum bit length according to the data block, the maximum bit rate, the digital video after parameter detection and determination, the error estimation value and the difference buffer frame, obtaining of minimum and maximum encoding frame numbers, and bit length allocation according to the minimum and maximum encoding frame numbers and the bit budget result.

Citation Information

Patent Citations

  • Code rate control method based on video image segmentation technology

    CN101827267A