Abstract
When a user uploads audio files to a music streaming service, these files are subsequently re-encoded to lower bitrates to target different devices, e.g. low bitrate for mobile. To save time and bandwidth uploading files, some users encode their original files using a lossy codec. The metadata for these files cannot always be trusted as users might have encoded their files more than once. Determining the lowest bitrate of the files allows the streaming service to skip the process of encoding the files to bitrates higher than that of the uploaded files, saving on processing and storage space. This paper presents a model that uses quality predictions from ViSQOLAudio, a full reference objective audio quality metric, as features in combination with a multi-class support vector machine classifier. An experiment on twice-encoded files found that low bitrate codecs could be classified using audio quality features. The experiment also provides insights into the implications of multiple transcodes from a quality perspective.
Introduction
Streaming platforms like SoundCloud or Google Play Music typically re-encode uploaded audio into multiple formats and bitrates to optimize delivery for various network conditions and devices. A significant inefficiency arises when users upload files that have already undergone lossy compression. Without accurate metadata, a service might attempt to "upgrade" a 64 kbps source to a 256 kbps target. This process is computationally wasteful and consumes unnecessary storage, as the perceptual quality is capped by the initial low-bitrate "bottleneck" encoding. This research proposes a method to identify this true quality ceiling using perceptual quality metrics.
Methodology
The proposed system shifts away from traditional bitstream analysis, focusing instead on perceptual degradation. The core of the approach involves:
- ViSQOLAudio: A full-reference objective quality metric that compares a degraded audio sample to its uncompressed original, outputting a score between 0 and 1 based on predicted human perception.
- Feature Extraction: The model uses quality scores from 12 distinct audio samples (e.g., rock, piano, vocals) as features. This captures how different acoustic content reacts to compression.
- MC-SVM Classification: Multi-Class Support Vector Machines are trained for specific codecs to recognize the "fingerprint" of various bitrates based on these quality fluctuations.
Experimental Setup and Insights
The study utilized 12 uncompressed reference samples (PCM WAV at 48 kHz) representing diverse acoustic challenges, such as "castanets" and "moonlight" (piano). These were tested across six codecs (AAC-LC, HE-AAC v2, MP2, MP3, Ogg Vorbis, and Opus) at bitrates ranging from 24 kbps to 700 kbps.
A key insight from the data is content-dependent degradation. Different audio types break down uniquely under compression; for instance, percussive sounds like castanets may show sharper quality drops than vocal tracks at the same bitrate. The model leverages this variation to identify the original codec and bitrate.
Key Results
The system demonstrated high precision, particularly at the lower end of the bitrate spectrum where perceptual damage is most distinct. In a classification task involving five bitrate categories (24–256 kbps), the system correctly predicted the lowest bitrate—or was within one class—for 23 out of 25 tested scenarios. Notably, the model remained effective even in cross-codec scenarios, such as identifying an initial 24k AAC-LC pass after the file had been transcoded to 128k Opus.
However, the researchers noted a "pessimistic" bias in misclassifications: the model often underestimated the bitrate. This suggests that cumulative loss from multiple transcodes makes audio appear lower quality than a single-pass encode at the same bitrate. Furthermore, as shown in the Opus quality trends, audio becomes "transparent" (indistinguishable from the original) above 256 kbps, creating a natural ceiling for this classification method.
Conclusion and Future Work
While the current model successfully identifies bitrate bottlenecks using perceptual features, it currently requires the original uncompressed audio to calculate ViSQOLAudio scores. Future research will focus on developing "No-Reference" models that can estimate these features without the source file, making the system viable for real-world streaming ingest pipelines. Additionally, work is underway to ensure the model's robustness across arbitrary, variable-length audio samples.
Summary updated