Audio Frame Encoding Bandwidth for Stable Bit Allocation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current audio encoding methods face issues with quality fluctuation due to inaccurate perceptual entropy calculations based on input signal bandwidth, leading to inefficient bit allocation and resource waste.
Innovation Solution
Determine encoding bandwidth and perceptual entropy of audio frames to accurately calculate bit demand rates, using modified discrete cosine transform (MDCT) and scale factor band offset tables, and adjust bit pool usage to stabilize encoding quality.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If perceptual entropy is calculated based on input signal bandwidth, then calculation is simple, but encoding quality fluctuates due to inaccurate bit allocation
Solution Approach 1:
The patent changes the basis parameter for perceptual entropy calculation from input signal bandwidth to encoding bandwidth. This parameter change enables more accurate bit allocation because the encoding bandwidth reflects the actual frequency range being encoded, leading to stable encoding quality without significantly increasing calculation complexity
Solution Approach 2:
The patent replaces the traditional mechanical calculation approach (based on input signal bandwidth) with a substituted approach that uses encoding bandwidth derived from the encoded signal itself. This substitution allows the system to adapt to actual encoding conditions and achieve more precise bit allocation
2Device complexity
If each frame is encoded with the same number of bits, then bit allocation is simple, but quality fluctuation occurs between frames
Solution Approach 1:
The patent introduces dynamic bit allocation based on frame difficulty and perceptual entropy calculations. Instead of static equal bit distribution, the system dynamically adjusts bits per frame according to actual encoding needs, using the bit pool to compensate for difficult frames while maintaining overall quality stability
Solution Approach 2:
The patent implements feedback mechanisms where the encoder evaluates each frame's characteristics and perceptual entropy, then uses this information to adjust bit allocation for subsequent frames. The bit pool acts as a feedback buffer that balances bit distribution across frames to maintain consistent quality
3Manufacturing precision
If more bits are allocated to difficult frames, then encoding quality improves, but bit pool management becomes complex
Solution Approach 1:
The patent prepares the bit pool in advance with a predetermined capacity before encoding begins. This preliminary action allows the system to handle variable bit requirements during encoding without complex real-time management, as the pre-configured bit pool can accommodate difficult frames that exceed average bit allocation
Data Source
AI summary
The present application discloses an encoding method and apparatus, an electronic device, and a storage medium. The method includes: determining an encoding bandwidth of an audio signal of a target frame according to an encoding bit rate of the audio signal of the target frame; determining perceptual entropy of the audio signal of the target frame according to the encoding bandwidth, and determining a bit demand rate of the audio signal of the target frame according to the perceptual entropy; and determining a target number of bits according to the bit demand rate, and encoding the audio signal of the target frame according to the target number of bits.


