Dynamic and static scene adaptive video compression method and system based on PTZ (Pan / Tilt / Zoom) control
The PTZ-controlled adaptive video compression system addresses video transmission instability and latency-resolution trade-offs by dynamically adjusting encoding and bit rates, enhancing electromagnetic resistance and bandwidth efficiency.
Patent Information
- Application Number
- CN202510500802.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2045-04-21
AI Technical Summary
Real-time video transmission in power grid systems faces the problems of poor transmission stability and difficult to balance low latency and high image quality, especially in complex electromagnetic environments and weak network coverage in remote areas.
Adaptive video compression method for dynamic and static scenes based on PTZ gimbal control is adopted, and the encoding scheme is dynamically adjusted through adaptive coding modulation and variable bit rate technology, high-activity areas are distinguished, bit resources are allocated, and high-frequency components are recovered through statistical multiplexing algorithms to achieve low-latency and high-resolution video transmission.
Maintaining the bit error rate under electromagnetic interference, reducing image blur and shadowing, improving the stability and image quality of video transmission, increasing the bit rate in dynamic scenarios by 30%-50%, and saving bandwidth resources in static scenarios.
Smart Images

Figure CN120321398A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video compression and transmission, and particularly to a dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control. Background Art
[0002] In the power grid system, real-time video transmission, as a key technical means to ensure the safe operation of power facilities and realize intelligent management, plays an irreplaceable role. By means of real-time monitoring of transmission lines, substation equipment and their surrounding environments, operation and maintenance personnel can quickly detect potential hazards such as equipment overheating, insulation damage, and external force damage, providing an intuitive visual basis for fault early warning and emergency command work. Especially in special scenarios such as extreme weather or disasters, real-time video transmission can greatly shorten the fault response time and effectively prevent the further expansion of accidents. At the same time, the application of remote inspection technology can also reduce the safety risks brought by manual climbing of high-voltage equipment and significantly improve the operation and maintenance work efficiency. However, the current real-time video transmission in the power grid system faces the following problems:
[0003] 1. Poor transmission stability: The complex electromagnetic environment where the power grid system is located is likely to interfere with signal transmission, and the network coverage in remote areas is weak. These factors often lead to video transmission jams or even interruptions.
[0004] 2. It is difficult to balance low latency and high image quality: High-definition video transmission requires high bandwidth as support. However, existing communication networks (such as 4G networks or fiber optic networks) are difficult to meet the dual requirements of low latency and high resolution at the same time, resulting in a decrease in transmission speed.
[0005] Based on this, the present invention is proposed. Summary of the Invention
[0006] The object of the present invention is to provide a dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control, which adopts adaptive coding modulation to dynamically adjust the coding scheme and restore high-frequency components, improves the anti-electromagnetic interference ability, and through static and dynamic scene adaptive bitrate control, uses variable bitrate technology to intelligently allocate bitrates. The bitrate is increased in dynamic scenes to preserve details, and the bitrate is reduced in static scenes to save bandwidth, while meeting the dual requirements of low latency and high resolution at the same time.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] The present invention provides, in a first aspect, a method for adaptive video compression of dynamic and static scenes based on PTZ pan-tilt control, including: receiving and parsing digital video and related parameters output from at least a camera controlled by a PTZ pan-tilt, and performing initialization parameter settings; detecting and determining parameters of the digital video, and performing frame analysis to obtain frame types and frame activity, distinguishing high-activity regions and low-activity regions, and introducing an error feedback mechanism to perform error estimation on the obtained related parameters; giving a bit allocation scheme and a quantization parameter adjustment scheme according to the error results, frame types and frame activity, and dynamically allocating bit resources, controlling the bit rate and performing quantization according to the bit allocation scheme and the quantization parameter adjustment scheme; encoding the quantized data to obtain an encoding result, wherein more bit resources are allocated to high-activity regions than to low-activity regions; multiplexing the encoding result, and restoring high-frequency components 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 introducing of the error feedback mechanism to perform error estimation on the obtained related parameters, wherein the error estimation includes: calculating the inter-frame prediction residual and generating a difference buffer frame and a difference step factor.
[0011] The present invention provides, in a first aspect, a preferred scheme. The dynamically allocating bit resources according to the bit allocation scheme and the quantization parameter adjustment scheme specifically includes: performing bit budget allocation according to the scaling factor, difference buffer frame, difference step factor, frame type, frame activity and quantization parameter adjustment scheme; determining the maximum and minimum bit lengths according to the data block, maximum bit rate, digital video after parameter detection and determination, error estimation value and difference buffer frame, obtaining the minimum number of encoded frames and the maximum number of encoded frames, and performing bit length allocation according to the minimum number of encoded frames, the maximum number of encoded frames and the bit budget result.
[0012] The present invention provides, in a first aspect, a preferred scheme. The method for adaptive video compression of dynamic and static scenes based on PTZ pan-tilt control further includes: performing statistical strategy management on bit rate control, dynamically adjusting the bit rate in combination with different data processing requirements and system load conditions, and performing global bit rate control.
[0013] The present invention provides, in a first aspect, a preferred scheme. The frame types are divided according to temporal correlation, including I frames, P frames and B frames, where I frames are key frames, and bit resources are allocated according to the priority of I frame > P frame > B frame to ensure the quality of key frames and control the bit rate fluctuation.
[0014] In a first aspect, the present invention provides a preferred solution. The encoding adopts entropy encoding, and the quantized coefficients are further compressed using the CABAC or CAVLC algorithm to achieve lossless encoding.
[0015] In a first aspect, the present invention provides a preferred solution. The frame adopts an SDH frame and a rectangular block structure, and includes the following three parts: section overhead: responsible for network monitoring and management, including regeneration section overhead and multiplex section overhead; management unit pointer: indicates the starting position of the payload, supporting flexible signal synchronization and adjustment; information payload: carries service data and encapsulates low-speed signals through virtual containers.
[0016] In a first aspect, the present invention provides a preferred solution. The encoding result is multiplexed, and the high-frequency components are restored through a digital equalization algorithm. Among them, the multiplexing includes multi-channel video statistical multiplexing, specifically including: virtual concatenation, which is used to logically bind multiple virtual containers into a high-bandwidth channel, supporting bandwidth aggregation of discontinuous 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 video traffic requirements; general framing procedure, which is used to encapsulate IP video streams into an SDH-compatible frame format, supporting the adaptation of variable-length data packets required for statistical multiplexing.
[0017] In a second aspect, the present invention provides a dynamic and static scene adaptive video compression system based on PTZ pan-tilt control, including: a data receiving and preliminary processing module, which is used to receive and parse at least digital video and related parameters output from a camera controlled by a PTZ pan-tilt, and perform initialization parameter settings; a parameter detection and frame analysis module, which is used to detect and determine parameters of the digital video, perform frame analysis, obtain the frame type and frame activity, distinguish high-activity regions and low-activity regions, and introduce an error feedback mechanism to estimate errors of the obtained relevant parameters; a bit allocation and encoding control module, which is used to give a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamically allocate bit resources, control the bit rate and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme; an encoding module, which is used to encode the quantized data to obtain an encoding result, where more bit resources are allocated to high-activity regions than to low-activity regions; a multiplexing module, which is used to multiplex the encoding result and restore the high-frequency components through a statistical multiplexing algorithm.
[0018] Compared with the prior art, the present invention has the following beneficial technical effects:
[0019] The present invention relates to a dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control, which receives and parses digital video and related parameters output by at least a camera controlled by a PTZ pan-tilt, and performs initialization parameter settings; detects and determines parameters of the digital video, performs frame analysis, obtains frame types and frame activities, differentiates high-activity regions and low-activity regions, gives a bit allocation scheme according to the frame types and frame activities, dynamically allocates bit resources according to the bit allocation scheme, where more bit resources are allocated to high-activity regions than low-activity regions, then multiplexes the encoding results, and restores high-frequency components through a statistical multiplexing algorithm. Therefore, it can achieve dynamic adjustment of the encoding scheme according to the channel quality and restore high-frequency components through the statistical multiplexing algorithm, realize adaptive coding modulation, improve the maintenance of the bit error rate under electromagnetic interference, and reduce image blurring and ghosting.
[0020] The dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control of the present invention adopts a variable bit rate technology, that is, gives a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamically allocates bit resources, controls the bit rate and performs quantization according to the bit allocation scheme and the quantization parameter adjustment scheme. Therefore, it can intelligently allocate the bit rate according to the dynamic changes of the PTZ pan-tilt control perspective (such as the rapid rotation during equipment inspection) and static scenes (such as fixed-point monitoring), adaptively regulate the bit rate for static and dynamic scenes, increase the bit rate in dynamic scenes to ensure detail capture, and reduce the redundant bit rate in static scenes to save bandwidth resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0022] Figure 1 It is a flowchart of a dynamic and static scene adaptive video compression method based on PTZ pan-tilt control provided by a specific embodiment of the present invention;
[0023] Figure 2 It is a module diagram of a dynamic and static scene adaptive video compression system based on PTZ pan-tilt control provided by a specific embodiment of the present invention;
[0024] Figure 3 It is a flowchart of video encoding and channel quality processing in a dynamic and static scene adaptive video compression system based on PTZ pan-tilt control provided by a specific embodiment of the present invention;
[0025] Figure 4Video transmission architecture diagram in the dynamic and static scene adaptive video compression system based on PTZ pan-tilt control provided by a specific embodiment of the present invention;
[0026] Figure 5 Frame structure and statistical multiplexing algorithm basic diagram in the dynamic and static scene adaptive video compression system based on PTZ pan-tilt control provided by a specific embodiment of the present invention. Specific embodiment
[0027] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0028] Please refer to Figure 1 , in a preferred embodiment, a dynamic and static scene adaptive video compression method based on PTZ pan-tilt control is mainly implemented through the following steps:
[0029] S1. Receive and parse at least digital video and related parameters output from a camera controlled by a PTZ pan-tilt. 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 perform initialization parameter settings, setting initial related parameters such as data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor, providing initial conditions for subsequent processing and then performing dynamic adjustment. The 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 separately. The video signal is input into the system in digital form, in YUV format, because it can effectively separate luminance and chrominance information and reduce redundancy. The input source comes from a camera, file, or network stream, and the encoding efficiency is optimized through preprocessing (such as denoising, scaling).
[0031] (2) Parameter initialization. Data block size: The video frame is divided into macroblocks (such as 16×16 macroblocks in H.264), and further subdivided into 4×4 sub-blocks to improve prediction accuracy.
[0032] (3) Scaling factor: Dynamically adjust the resolution or quantization step size to balance the compression ratio and quality.
[0033] (4) Fixed / variable parameters: Such as fixed QP (quantization parameter) or dynamically adjust the QP value according to the buffer status.
[0034] S2. Detect and determine the parameters of the digital video, perform frame analysis, obtain the frame type and frame activity, distinguish the high-activity regions (dynamic regions) and low-activity regions (static regions), and introduce an error feedback mechanism to estimate the errors of the relevant parameters obtained. The more specific steps are as follows:
[0035] (1) Frame type determination. The encoder divides the frame type according to the temporal correlation. I-frame: Fully intra-frame encoded, without temporal reference, with a low compression ratio but being a key frame. P / B-frame: Eliminate temporal redundancy through inter-frame prediction (motion estimation and compensation), and the B-frame refers to subsequent frames bidirectionally to improve efficiency.
[0036] (2) Frame activity assessment. Analyze the complexity of pixel changes within the macroblock. More bit resources need to be allocated to high-activity regions (such as moving objects) to maintain details, and low-activity regions (such as static backgrounds) can be compressed more strongly.
[0037] (3) Error feedback mechanism. Estimate the error of the input data to obtain the absolute error, ensuring that the error can be minimized as much as possible during the parameter detection and determination process. Generate a differential buffer frame, which is used to consider the differences between frames when allocating the bit budget. Error evaluation function: Calculate the inter-frame prediction residual, and convert the spatial redundancy into frequency-domain sparse coefficients through DCT transformation. Differential buffer frame: Store the residual data for subsequent quantization and entropy coding, and is used to consider the differences between frames when allocating the bit budget.
[0038] S3. Give a bit allocation scheme and a quantization parameter adjustment scheme according to the error results, frame type, and frame activity, and dynamically allocate bit resources, control the bit rate, and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme. QL quantization parameter adjustment. Adjust the QL quantization parameter according to the characteristics of the input video to balance the compression ratio and the image quality. Prepare other parameters. mainly the scaling factor and the time frame to ensure the comprehensiveness of subsequent processing. The specific steps are as follows:
[0039] (1) Dynamic allocation of bit budget. CF MAX. / MIN. (maximum / minimum number of coded frames): Limit the I-frame interval according to the GOP (Group of Pictures) structure to avoid error accumulation.
[0040] (2) Bit budget: Allocate bits based on the frame type (I-frame > P-frame > B-frame) and activity, ensuring the quality of key frames and controlling the bit rate fluctuation. In this embodiment, the frame type is divided according to the temporal correlation, including I-frame, P-frame, and B-frame, where the I-frame is the key frame, and the bit resources are allocated according to the priority of I-frame > P-frame > B-frame, so as to make a reasonable arrangement when allocating the bit budget to ensure the quality of key frames and control the bit rate fluctuation.
[0041] (3) Rate control and quantization optimization. RB (Rate Buffer): Monitor the buffer fullness and dynamically adjust the QP value to prevent overflow or underflow. QL (Quantization Level): Control the compression rate by adjusting the quantization step size. A high QP reduces the data volume but loses details, while a low QP does the opposite.
[0042] Furthermore, receive the absolute differences from the preprocessing module and perform control based on these differences to determine the appropriate bit rate. Pass the control information to the encoding module through rate control to adjust the bit rate during the encoding process.
[0043] Please refer to Figure 3 , in a preferred embodiment, wherein the bit resources are dynamically allocated according to the bit allocation scheme and quantization parameter adjustment scheme, which is specifically implemented through the following steps: perform bit budget allocation according to the scaling factor, difference buffer frame, difference step factor, frame type, frame activity, and quantization parameter adjustment scheme; determine the maximum and minimum bit lengths according to the data block, maximum bit rate, parameter detection, determined digital video, error estimate value, and difference buffer frame, obtain the minimum and maximum number of encoded frames, and perform bit length allocation according to the minimum number of encoded frames, maximum number of encoded frames, and bit budget result.
[0044] S4. Encode the quantized data to obtain the encoding result, where more bit resources are allocated to the high-activity region than the low-activity region.
[0045] (1) Entropy encoding: Further compress the quantized coefficients using algorithms such as CABAC or CAVLC to achieve lossless encoding.
[0046] (2) Loop filtering: Remove the blocking effect and ringing effect to improve the quality of the reconstructed frame.
[0047] S5. Multiplex the encoding result and restore the high-frequency components through the statistical multiplexing algorithm (also known as the digital equalization algorithm). The SDH frame adopts a rectangular block structure (such as STM-1 is 9 rows × 270 columns) and includes the following three parts:
[0048] 1. Section Overhead (SOH): Responsible for network monitoring and management, including the Regenerator Section Overhead (RSOH) and Multiplex Section Overhead (MSOH)
[0049] 2. Administration Unit Pointer (AU-PTR): Indicate the starting position of the payload, supporting flexible signal synchronization and adjustment.
[0050] 3. Information Payload: Carry service data (such as video stream) and encapsulate low-speed signals through Virtual Container (VC).
[0051] Among them, the multiplexing includes multi-channel video statistical multiplexing. The core of statistical multiplexing is to adapt to the burstiness and diversity of video traffic by dynamically allocating bandwidth resources. SDH / SONET realizes this through the following technologies:
[0052] 1. Virtual Concatenation
[0053] Bind multiple virtual containers (VCs) logically into a high-bandwidth channel, supporting bandwidth aggregation of discontinuous physical channels.
[0054] 2. LCAS (Link Capacity Adjustment Scheme)
[0055] Dynamically increase or decrease the number of virtual containers, and adjust the link capacity in real time according to the video traffic demand.
[0056] 3. GFP (Generic Framing Procedure)
[0057] Encapsulate the IP video stream into an SDH-compatible frame format (such as GFP-F), supporting the adaptation of variable-length data packets required for statistical multiplexing.
[0058] In this embodiment, the combination of statistical multiplexing and SDH multiplexing can achieve the following beneficial technical effects:
[0059] 1. Fixed time slots vs. dynamic allocation: Traditional SDH multiplexing is based on fixed time slots (TDM), while statistical multiplexing dynamically allocates payload area resources according to the real-time requirements of video streams.
[0060] 2. Optimization of bandwidth utilization: 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 the performance monitoring bytes in the section overhead (SOH), the video transmission quality is detected in real time, and key services (such as live video) are preferentially guaranteed.
[0062] S6. Statistical strategy control, dynamically adjust the bit rate to adapt to different data processing requirements and system load conditions. Conduct statistical strategy management on bit rate control, and dynamically adjust the bit rate to ensure the optimal utilization of the overall system performance and resources.
[0063] Correspondingly, this embodiment provides a dynamic and static scene adaptive video compression system based on PTZ pan-tilt control, that is, the video transmission architecture is mainly divided into the following modules:
[0064] Data reception and preliminary processing module 1, which is used to receive and parse at least the digital video and related parameters output by the camera controlled by the PTZ pan-tilt, and perform initialization parameter settings.
[0065] The parameter detection and frame analysis module 2 is used to detect and determine the parameters of the digital video, perform frame analysis, obtain the frame type and frame activity, distinguish the high-activity area and the low-activity area, and introduce an error feedback mechanism to estimate the error of the obtained relevant parameters.
[0066] The bit allocation and coding control module 3 is used to give a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamically allocate bit resources, control the code rate and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme.
[0067] The above data receiving 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 the preprocessing module.
[0068] The coding module 4 is used to encode the quantized data to obtain a coding result, where more bit resources are allocated to the high-activity area than the low-activity area.
[0069] The multiplexing module 5 is used to multiplex the coding result and restore the high-frequency components through a statistical multiplexing algorithm. This module manages the statistical strategy for code rate control and dynamically adjusts the code rate to ensure the optimal utilization of the overall system performance and resources.
[0070] The statistical strategy control module 6 is used to dynamically adjust the code rate to adapt to different data processing requirements and system load conditions. This module manages the statistical strategy for code rate control and dynamically adjusts the code rate to ensure the optimal utilization of the overall system performance and resources.
[0071] The above embodiments of the dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control dynamically adjust the coding scheme according to the channel quality and restore the high-frequency components through a statistical multiplexing algorithm, realizing adaptive coding modulation, improving the maintenance of the bit error rate under electromagnetic interference, and reducing image blurring and ghosting.
[0072] The above embodiments of the dynamic and static scene adaptive video compression method and system based on PTZ pan-tilt control adopt variable bit rate technology, that is, give a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamically allocate bit resources, control the code rate and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme. Therefore, it can intelligently allocate the code rate according to the dynamic changes of the PTZ pan-tilt control perspective (such as the rapid rotation during equipment inspection) and static scenes (such as fixed-point monitoring), adaptively adjust the code rate for static and dynamic scenes, increase the code rate by 30% - 50% in dynamic scenes to ensure detail capture, and reduce the redundant code rate in static scenes to save bandwidth resources.
[0073] Therefore, the dynamic and static scene adaptive video transcoding and compression method and system for PTZ pan-tilt control of the present invention adopt technologies such as channel dynamic adjustment and adaptive compression coding and modulation to improve the real-time video transmission ability in a weak network environment. Through the three core technologies of scene adaptive coding, anti-interference signal processing, and multi-channel statistical multiplexing, the problems of the stability, bandwidth efficiency, and picture quality contradiction in video transmission in complex environments are solved, providing a low-latency, high-picture-quality, and anti-interference video transmission solution for high-reliability scenarios such as power and security.
[0074] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc.
[0075] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification. Moreover, the above embodiments only represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. For those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention.
Claims
1. An adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control, characterized in that, It includes: Receiving and parsing at least digital video and related parameters output from a camera controlled by a PTZ pan-tilt-zoom device, and performing initialization parameter settings; Performing parameter detection and determination on the digital video, and performing frame analysis to obtain the frame type and frame activity, differentiating high-activity regions and low-activity regions, and introducing an error feedback mechanism to perform error estimation on the obtained related parameters; Giving a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type, and frame activity, and dynamically allocating bit resources, controlling the bit rate, and performing quantization according to the bit allocation scheme and the quantization parameter adjustment scheme; Encoding the quantized data to obtain an encoding result, where more bit resources are allocated to high-activity regions than to low-activity regions; Multiplexing the encoding result and recovering high-frequency components through a statistical multiplexing algorithm.
2. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 1, wherein The related parameters include the data block size, maximum bit rate, time frame, fixed / variable parameters including quantization parameters, and scaling factor.
3. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 2, wherein The error feedback mechanism is introduced to perform error estimation on the obtained related parameters, where the error estimation includes: calculating the inter-frame prediction residual and generating a difference buffer frame and a difference step factor.
4. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 3, wherein The dynamic allocation of bit resources according to the bit allocation scheme and the quantization parameter adjustment scheme specifically includes: Performing bit budget allocation according to the scaling factor, difference buffer frame, difference step factor, frame type, frame activity, and quantization parameter adjustment scheme; Determining the maximum and minimum bit lengths according to the data block, maximum bit rate, digital video after parameter detection and determination, error estimation value, and difference buffer frame, obtaining the minimum number of encoded frames and the maximum number of encoded frames, and performing bit length allocation according to the minimum number of encoded frames, the maximum number of encoded frames, and the bit budget result.
5. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 1, wherein It also includes: Performing statistical strategy management on the bit rate control, dynamically adjusting the bit rate in combination with different data processing requirements and system load conditions, and performing global bit rate control.
6. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 1, characterized in that The frame type is divided by temporal correlation and includes I frames, P frames, and B frames, where I frames are key frames, and bit resources are allocated according to the priority of I frame > P frame > B frame to ensure the quality of key frames and control bit rate fluctuations.
7. The method for adaptively compressing dynamic and static scene videos based on PTZ pan-tilt control according to claim 1, wherein The encoding uses entropy encoding, and the quantized coefficients are further compressed using the CABAC or CAVLC algorithm to achieve lossless encoding.
8. The adaptive video compression method for dynamic and static scenes based on PTZ pan-tilt control according to claim 1, wherein The frame adopts an SDH frame and a rectangular block structure, and includes the following three parts: Section overhead: Responsible for network monitoring and management, including regeneration section overhead and multiplex section overhead; Administrative unit pointer: Indicates the starting position of the payload, supporting flexible signal synchronization and adjustment; Information payload: Carries service data and encapsulates low-speed signals through virtual containers.
9. The method for dynamically and statically scene adaptive video compression based on PTZ pan-tilt control according to claim 7, wherein The encoded result is multiplexed, and the high-frequency components are restored by a digital equalization algorithm. Among them, the multiplexing includes multi-channel video statistical multiplexing, which specifically includes: virtual concatenation, which is used to logically bind multiple virtual containers into a high-bandwidth channel and support bandwidth aggregation of discontinuous 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 video traffic requirements; generic framing procedure, which is used to encapsulate IP video streams into an SDH-compatible frame format and support the adaptation of variable-length data packets required for statistical multiplexing.
10. A dynamic and static scene adaptive video compression system based on PTZ pan-tilt control, characterized in that, It includes: Data receiving and preliminary processing module, which is used to receive and parse at least digital video and related parameters output from a camera controlled by a PTZ pan-tilt-zoom device, and perform initialization parameter settings; Parameter detection and frame analysis module, which is used to detect and determine parameters of digital video, perform frame analysis, obtain frame types and frame activities, distinguish high-activity regions and low-activity regions, and introduce an error feedback mechanism to estimate errors of the obtained relevant parameters; Bit allocation and coding control module, which is used to give a bit allocation scheme and a quantization parameter adjustment scheme according to the error result, frame type and frame activity, and dynamically allocate bit resources, control the code rate and perform quantization according to the bit allocation scheme and the quantization parameter adjustment scheme; Coding module, which is used to encode the quantized data to obtain an encoded result, where more bit resources are allocated to high-activity regions than to low-activity regions; Multiplexing module, which is used to multiplex the encoded result and restore the high-frequency components through a statistical multiplexing algorithm.
Citation Information
Patent Citations
Code rate control method based on video image segmentation technology
CN101827267A
HEVC-based bit rate control method for motion region detection
CN106604029A
Self-adaptive video coding method based on unmanned aerial vehicle
CN118573867A
Encoding of Video Stream Based on Scene Type
US20170099485A1
Template-based coding methods, apparatuses, and storage mediums for reference picture resampling
WO2025075879A1