You are not logged in.

#1 2010-03-06 14:58:06

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

[REQUEST] Find Low Quality MP3s

Is there any script that can recursively check a folder for MP3 files that have lower quality than V0 or 320?

I understand this could be done with `mpg123 -t` but I have a lot of albums so... could take a long time.

Offline

#2 2010-03-06 15:45:05

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: [REQUEST] Find Low Quality MP3s

How about:

find . -name "*mp3" -type f -exec file '{}' \; | grep -v 320 | cut -d ':' -f 1

This should print the path name of all mp3 in or under the current directory not in 320kbps.

Offline

#3 2010-03-06 15:46:30

Ultraman
Member
Registered: 2009-12-24
Posts: 242

Re: [REQUEST] Find Low Quality MP3s

I don't have a solution for that one at the moment, but there is an additional problem. Simply checking the bitrate says nothing. A 320 CBR or V0 VBR MP3 could be a reencode of a 192 CBR MP3, which would result is a much lower quality but you would not spot it by just checking the bitrates...

Offline

#4 2010-03-06 15:48:41

tlvb
Member
From: Sweden
Registered: 2008-10-06
Posts: 297
Website

Re: [REQUEST] Find Low Quality MP3s

Finds mp3 files with <320kbps.

find . *.mp3 -print0|xargs -0 -n1 file|perl -e 'for(<stdin>){/(.*mp3).*?(\d+) kbps/;print "$1 $2\n" if ($2<320);}'

I don't know what V0 is, but if it does not list as \d+ kbps in the file output I would guess that both these solutions would give an error.
If you could tell us what the output for file x.mp3 is for a V0 mp3 the scripts could be altered to take that into account.


I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.

Offline

#5 2010-03-06 16:09:14

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [REQUEST] Find Low Quality MP3s

V0 is the heaviest VBR encode you can do with LAME wink.

Ultraman wrote:

I don't have a solution for that one at the moment, but there is an additional problem. Simply checking the bitrate says nothing. A 320 CBR or V0 VBR MP3 could be a reencode of a 192 CBR MP3, which would result is a much lower quality but you would not spot it by just checking the bitrates...

That is right. You need visual inspection for that - spectrals. If you have an excellent ear though, you might pick them like that, but I haven't met someone like that in person yet tongue

You can switch to spectral view in e.g. Audacity.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2010-03-06 16:23:05

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: [REQUEST] Find Low Quality MP3s

Ultraman wrote:

I don't have a solution for that one at the moment, but there is an additional problem. Simply checking the bitrate says nothing. A 320 CBR or V0 VBR MP3 could be a reencode of a 192 CBR MP3, which would result is a much lower quality but you would not spot it by just checking the bitrates...

Do people really transcode a lesser bit rate to a higher bit rate?

Offline

#7 2010-03-07 07:35:02

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [REQUEST] Find Low Quality MP3s

That's the same question as: do people really transcode from lossy to lossy?

If people don't see any harm in it (and if they don't know anything about music formats, they mostly don't), then they'll do it. Simple as that.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2010-03-07 09:29:24

Urfaust
Member
From: Germany
Registered: 2009-01-30
Posts: 164

Re: [REQUEST] Find Low Quality MP3s

rusty99 wrote:
Ultraman wrote:

I don't have a solution for that one at the moment, but there is an additional problem. Simply checking the bitrate says nothing. A 320 CBR or V0 VBR MP3 could be a reencode of a 192 CBR MP3, which would result is a much lower quality but you would not spot it by just checking the bitrates...

Do people really transcode a lesser bit rate to a higher bit rate?

Plus sometimes you have a bad source, e.g. someone burned an audio cd from 192kbps MP3s and then you grab it again in a higher bitrate...
Such a script would be nice, i recently noticed that Rhythmbox can display the "Quality" of a file but it doesnt work very well (lots of "unknown" and 32kbps entries which are definitely wrong).

Offline

Board footer

Powered by FluxBB