HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: Unrealmaster287 on 2012-04-27 11:44:38

Title: Distinguishing between lossless and lossy
Post by: Unrealmaster287 on 2012-04-27 11:44:38
Hey,

I would like to ask a question about lossless audio. How can you distinguish between a lossless song and one which has just been converted into a lossless format but isn’t actually lossless.

From what I understand you have to use a spectrum analyzer, but that is the extent of what I understand.

Thank you so much in advance
Title: Distinguishing between lossless and lossy
Post by: Arnold B. Krueger on 2012-04-27 12:24:07
Hey,

I would like to ask a question about lossless audio. How can you distinguish between a lossless song and one which has just been converted into a lossless format but isn’t actually lossless.

From what I understand you have to use a spectrum analyzer, but that is the extent of what I understand.

Thank you so much in advance


Doing what you want to do ranges from easy to mission impossible, depending.

The first thing I look for in detecting .wav or .flac files that have in the past taken a tour through the land of lossy encoding is a brick wall filter someplace around 16 KHz.

Here's a picture of what a spectrum analyzer shows with some lossy encoded files:

(http://img443.imageshack.us/img443/3151/mp3.jpg).

YOu can see a clear step or break in what would otherwise be a relatively gentle roll-off.

BTW this is from an earlier HA thread on a related topic. The specific post was provided by Cavelle.
Title: Distinguishing between lossless and lossy
Post by: Unrealmaster287 on 2012-04-27 12:38:54
Arnold B. Krueger, Thanks for the info, but the track i have has smooth drops and slightly sharp ones, IF I upload it here, is there any way you could provide some advice on whether  it is lossless or not.

PS: How do I upload Images here

Thanks in advance
Title: Distinguishing between lossless and lossy
Post by: Brand on 2012-04-27 13:01:19
If you have the original lossless and a "suspect" file you can compare them. Based on the eventual differences you can pretty much certainly determine if the suspect is of lossless origin or not. (Not with 100% certainty, unless you know that there weren't any other lossless versions, like different pressings etc. or without taking into account ripping errors.)

If you only have the "suspect" file, you can never be sure of its origin. You can only make a guess with certain tools, like the spectrum analyzer, which will show you if there was a high frequency cut, which is typical for some lossy encodings.



PS: How do I upload Images here

Upload the picture to some image host (like Tinypic (http://tinypic.com/)). Get the direct link to the picture and post it with the "Insert Image" button.
Title: Distinguishing between lossless and lossy
Post by: Porcus on 2012-04-27 13:27:33
How can you distinguish between a lossless song and one which has just been converted into a lossless format but isn’t actually lossless.


(1) You cannot be completely sure. You can in quite a few cases verify that this hasn't been converted directly from a certain format to, say WAV without intermediate processing though.

(2) There are a few steps you can take in order to be more confident that the file is one way or the other.

(3) If you search this forum, you will find many old threads giving answers to (2) above. The most common answer is 'buy the CD and rip it yourself instead of pirating the track off the internet'.
Title: Distinguishing between lossless and lossy
Post by: Unrealmaster287 on 2012-04-27 16:44:40
Thanks for your help guys
Title: Distinguishing between lossless and lossy
Post by: db1989 on 2012-04-28 01:13:56
(2) There are a few steps you can take in order to be more confident that the file is one way or the other.

(3) If you search this forum, you will find many old threads giving answers to (2) above.
Besides visual analysis, additional pointers: AuCDtect, TAU Analyzer, etc.

Quote
The most common answer is 'buy the CD and rip it yourself instead of pirating the track off the internet'.
But more so, this. Or even, perhaps, if you ask me(!), just forget about lossless and buy a lossy file from a digital distributor without pointlessly buying a CD, ripping it, and then leaving it on a shelf for however many decades before it gets landfilled.
Title: Distinguishing between lossless and lossy
Post by: j7n on 2012-04-28 02:10:55
Besides a sharp cutoff, lossy encodes also have the upper spectrum in large, unmistakable chunks, that are encoded only when the signal is above a certain threshold, and rapidly appear and disappear during playback. Otherwise the cutoff is even lower. This screenshot shows a 320 kBit/s high quality MP3. Notice the missing chunk near 16k.

http://www.fileden.com/files/2012/4/26/3297107/juliasays.png (http://www.fileden.com/files/2012/4/26/3297107/juliasays.png)

Even after moderate processing, such as a radio transmission, MP3 files can be recognized by this anomaly from streams that have merely been band-limited with a sharp digital filter.
Title: Distinguishing between lossless and lossy
Post by: Rotareneg on 2012-04-28 12:17:02
(http://farm6.staticflickr.com/5160/5885034567_dd919f4fd5_z.jpg) (http://www.flickr.com/photos/inghramjp/5885034567/)
lossless (http://www.flickr.com/photos/inghramjp/5885034567/)

(http://farm7.staticflickr.com/6023/5885034361_e4e51ec1c8_z.jpg) (http://www.flickr.com/photos/inghramjp/5885034361/)
mp3_V5 (http://www.flickr.com/photos/inghramjp/5885034361/)

(http://farm7.staticflickr.com/6011/5885034441_b49a8664a0_z.jpg) (http://www.flickr.com/photos/inghramjp/5885034441/)
vorbis_Q4 (http://www.flickr.com/photos/inghramjp/5885034441/)
Title: Distinguishing between lossless and lossy
Post by: Porcus on 2012-04-28 14:03:04
Or even, perhaps, if you ask me(!), just forget about lossless and buy a lossy file from a digital distributor without pointlessly buying a CD, ripping it, and then leaving it on a shelf for however many decades before it gets landfilled.


Of course!  The way to be sure whether your .wav has been decoded from an .mp3, is to buy the .mp3 and convert it to .wav!