
Detection of genuine lossless audio files. Application to the MPEG-AAC codec. Olivier Derrien To cite this version: Olivier Derrien. Detection of genuine lossless audio files. Application to the MPEG-AAC codec.. Journal of the Audio Engineering Society, 2019, 67 (3), pp.116–123. 10.17743/jaes.2019.0002. hal- 02055742 HAL Id: hal-02055742 https://hal.archives-ouvertes.fr/hal-02055742 Submitted on 29 Mar 2019 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. PAPERS Detection of genuine lossless audio files. Application to the MPEG-AAC codec. OLIVIER DERRIEN [email protected] Universite´ de Toulon / Aix-Marseille Universite´ / CNRS PRISM, Marseille, France In this study, we describe an algorithm that discriminates transcoded from true lossless audio files, i.e. file that are obtained by directly ripping a genuine audio CD, from file that are decoded from a lossy audio format (e.g. MP3, AAC) and re-encoded with a lossless format. This method should allow both consumers and online music dealers to check the authenticity of lossless music files. This implementation focuses on the MPEG AAC codec, but this method can also be applied to MP3 codec. It is based on the detection of the quantization error in the time-frequency domain, without machine learning. The final results on a large database of 1576 audio files, original and transcoded with AAC from iTunes, show null false positive ratios and very low false negative ratios, possibly null for high-precision settings. We finally propose a setting which appears to be a good tradeoff between precision and execution time. 0 INTRODUCTION only to experts at higher bitrate. However, it requires to hear the lossy file and the unprocessed file one just after In the early 2000s, the audio coding community antici- another. In our use case, only one version of the audio file pated on the massive increase of storage and bandwidth ca- can be tested. Thus, there is another requirement for such pacities by developing lossless compression algorithms as a detection tool: it must operate in full blind mode, which a high-quality alternative to lossy codecs like MP3 [1] or is hardly accessible to human beings. To our knowledge, AAC [2]. In 2003, the Free Lossless audio codec (FLAC) the first and only serious attempt to realize such an ana- was introduced by the Xiph organization [3]. In 2004, the lyzer is the CD Authenticity Detector included in the Tau Apple Lossless Codec (aka ALAC) was proposed in the Analyzer software, released in 2005 [6]. This is a free soft- iTunes software [4]. And in 2006, the MPEG-4 Audio ware that can be downloaded from the internet, and it is Lossless Coder (ALS) was published in ISO/IEC 14496-3 not specific to a given lossy codec. The authors claim that [5]. These codecs are now widely used, especially by on- this method has a a 7.5% false positive rate and a 0.6% line music dealers who sell CD quality or Studio Master false negative rate. This corresponds to the following stan- audio tracks. dard measures: Precision = 92.5%, Recall = 99.4% and F- However, the use of a lossless format does not guarantee measure = 95.6%. However, CD Authenticity Detector can that the audio is genuine lossless, i.e. that the audio content not be applied directly to an audio file. It treats only phys- was not previously encoded using a lossy format. Practi- ical CDs. Thus, a proper evaluation of this method would cally, as exemplified on figure 1, there is a major difference require to burn transcoded versions of each CD on a phys- between a audio file that was ripped from a CD (or copied ical discs. from a studio master) and directly encoded using a lossless In 2015, a new detection method for detecting MPEG- format (case A), and another file that was first encoded us- AAC transcoded files was included in a beta version of ing a lossy format (e.g. MP3 or AAC) and transcoded to the Lossless Audio Checker (LAC) software [7], and the a lossless format (case B). If sold by a music dealer as a first tests showed both zero false-positive and zero false- genuine lossless track, the transcoded case would clearly negative rate on a selection of genuine lossless and AAC- be a fraud. Thus, it would be of great interest for both the encoded files at 128, 256 and 320 kbits/s. This software consumer and the music dealer to have an automatic and was presented in [8], but the genuine lossless detection al- reliable detection tool for that purpose. gorithm was not described. In this paper, we describe pre- Discriminating the transcoded case from the genuine cisely an updated version of the AAC detection algorithm lossless case is equivalent to discriminating a decoded and test it on a wider selection of audio files from vari- lossy audio file from the unprocessed file. This task can be ous musical genres. This method can be easily adapted for performed by many listeners at medium/low bitrate, and J. Audio Eng. Sco., Vol. , No. , 1 DERRIEN PAPERS Case A : Genuine lossless audio scheme FLAC lossless encoder .flac Case B : Transcoded audio scheme AAC lossy AAC / FLAC encoder transcoder .m4a .flac Fig. 1. Genuine lossless audio paradigm. the MP3 case, since both codecs share the same quantiza- Original Lossless Time / freq. Scaling Rounding tion stage. In the forthcoming version of LAC, the detec- audio binary transform tion will be implemented for both MP3 and AAC codecs. signal Quantization coding This paper is organized as follows: In section 1, we de- CODER scribe the detection algorithm. In section 2, we explain Decoded Inverse Inverse scaling Lossless how main parameters have been tuned, and in section 3, audio time / freq. binary signal we evaluate the performance on a large database of audio transform Reverse quantization decoding files. DECODER 1 The detection algorithm Fig. 2. Block diagram of a typical lossy audio codec (e.g. MP3 or AAC. The distortions usually associated to lossy coding and decoding are: loss of bandwidth, pre-echo, double-speak tized on a uniform scale using 16, 24 ou 32 bits, depending effect, degradation of stereo image, reduction of dynamics, on the audio format. Thus, the goal is to distinguish be- birdies artifacts [9]. However, there are two main objec- tween two different quantization schemes. At high bitrate, tions to using such features in a detection process: These this can be very challenging because the global amount of are relative features, which are not helpful in blind mode. quantization noise can be similar in both cases. Only the And these modifications become almost imperceptible at structure of the distortion is different. high bitrates. This explains why a detection algorithm We propose a quantization noise detector which is ba- based on these features will probably never be reliable. sically structured as depicted on figure 3. The audio signal under test (which can be genuine lossless or transcoded au- 1.1 Quantization detector basics dio), comes trough a time-frequency transform, scaling and Another way to tackle the problem is to analyze how rounding steps that are similar to the one used in the codec lossy codecs transform the audio signal. The block dia- that we want to detect. Finally, we keep the difference be- gram of a typical lossy codec is presented on figure 2. In tween the input and the output of the rounding process, i.e. the coder, the audio signal is first transformed in a time- the rounding error. frequency domain, e.g. using a Modified Discrete Cosine Audio Scaled signal Transform (MDCT) [10] like in AAC. Then, the transform transform Rounding under coefficients error coefficients are quantized, and finally the quantization in- test + Time / freq. Scaling Rounding dex are lossless binary coded. In the decoder, the reverse transform - scheme is applied. The time-frequency transform and the binary coding steps are invertible, which means that they do not alter the information. In most audio codec, the quan- Fig. 3. Block diagram of the proposed quantization noise tization step consists in first scaling the transform coeffi- detector. cients, and then applying a rounding function. Scaling is invertible, but rounding is not. The reverse quantization re- In the transcoded case, the transcoder is fundamentally a duces to the inverse scaling process. Thus, the quantiza- lossy decoder followed by a lossless coder. Assuming that tion process is globally not invertible. The final distortion the time-frequency transform and the scaling steps used is caused by the rounding noise. A good way to detect a in the detector exactly match those of the lossy codec, the lossy coding process is to search for traces of quantization global signal processing chain (coder-transcoder-detector) noise in the transform domain. is equivalent to the one presented on figure 4. This scheme This problem is a difficult case, because the unprocessed can be obtained by first ignoring the lossless encoder inside audio signal is already quantized: Each sample is quan- the transcoder (because it is transparent), and then remov- 2 J. Audio Eng. Sco., Vol. , No. , PAPERS DETECTION OF GENUINE LOSSLESS AUDIO FILES ing the successive direct/inverse block pairs that do not al- window (128 bands).
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages9 Page
-
File Size-