HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - General => Topic started by: Differenciam on 2003-09-02 02:33:07

Title: Needed; an MP3 analyser for LINUX.
Post by: Differenciam on 2003-09-02 02:33:07
Windows - Encspot.

Linux - ?

I think I have a nice amount of XING MP3s on here at the moment  , so I'd like to know if there's a Linux MP3 analyser like Encspot for windows so I can check. Thanks
Title: Needed; an MP3 analyser for LINUX.
Post by: harashin on 2003-09-02 02:55:05
How about using MP3x (http://lame.sourceforge.net/screenshots/screenshots.html)?
Title: Needed; an MP3 analyser for LINUX.
Post by: Differenciam on 2003-09-02 03:29:01
Hmmm.. I looked at the screenshots, does it tell you what encoder was used? All it seems to say is the bitrate, KHz, and stereo mode.
Title: Needed; an MP3 analyser for LINUX.
Post by: harashin on 2003-09-02 03:46:06
I think you can tell Xing-encoded mp3s from other mp3s with MP3x.
IIRC Xing encoders never use short blocks, so just check out their block types.
Title: Needed; an MP3 analyser for LINUX.
Post by: harashin on 2003-09-02 04:26:36
Or you may be able to compile  mp3guessenc sources (http://shibatch.sourceforge.net/) for Linux.
Title: Needed; an MP3 analyser for LINUX.
Post by: Differenciam on 2003-09-02 05:17:48
I'm going to try to get WINE set up with encspot. Nothin' beats the best. 
Title: Needed; an MP3 analyser for LINUX.
Post by: BadHorsie on 2003-09-03 03:00:56
mp3guessenc works fine under linux. you should give it try. i did read in the past that encspot uses the code for the encoder detection from mp3guessenc but not shure at the moment. i tried mp3guessenc on a xing file:

Code: [Select]
First frame found at 0

File size : 6830706 bytes
Length : 426.919 seconds
128kbit, 16343frames
44100Hz Joint stereo
Error protection : no
Copyrighted : no
Original : yes
emphasis : none

0 simple stereo frames
410 intensity stereo frames
15933 intensity and mid-side stereo frames

long block granules : 65372
short block granules : 0
mixed block granules : 0

padding is used
scalefac_scale is used
max reservoir : 511

128 kbps frames : 16343(100%)

0 header errors

Maybe this file is encoded by Xing (very old)


BadHorsie
Title: Needed; an MP3 analyser for LINUX.
Post by: rjamorim on 2003-09-03 03:37:51
Quote
i did read in the past that encspot uses the code for the encoder detection from mp3guessenc but not shure at the moment.

It was originally based on mp3guessenc, but the detection routines have been completely rewritten since and it now holds very few resemblances to the mp3guessenc routines.
Title: Needed; an MP3 analyser for LINUX.
Post by: sakamoto on 2013-04-12 12:48:02
mp3guessenc is great little app. i am just struggling to analyze all mp3 files in same directory at once...

i thought following command would work under Debian linux:

mp3guessenc *

but it only analyzes the first mp3 file in the current directory? any ideas?
Title: Needed; an MP3 analyser for LINUX.
Post by: julf on 2013-04-12 13:07:31
mp3guessenc is great little app. i am just struggling to analyze all mp3 files in same directory at once...


You can of course just do:

for i in *; do mp3guessenc "$i"; done
Title: Needed; an MP3 analyser for LINUX.
Post by: phofman on 2013-04-12 13:09:31
mp3guessenc is great little app. i am just struggling to analyze all mp3 files in same directory at once...

i thought following command would work under Debian linux:

mp3guessenc *

but it only analyzes the first mp3 file in the current directory? any ideas?


Apparently the program accepts only one input file per run. You need to loop through all mp3 files. Since very likely their names contain spaces, the command you are looking for is e.g. :

Code: [Select]
find . -type f -name "*.mp3" -print0 | xargs -0 mp3guessenc
Title: Needed; an MP3 analyser for LINUX.
Post by: phofman on 2013-04-12 13:12:11
for i in *; do mp3guessenc "$i"; done


Unless the mp3 files contain spaces. A simple fix would be redefining IFS e.g. http://www.cyberciti.biz/tips/handling-fil...es-in-bash.html (http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html)
Title: Needed; an MP3 analyser for LINUX.
Post by: skamp on 2013-04-12 14:37:27
for i in *; do mp3guessenc "$i"; done


Unless the mp3 files contain spaces. A simple fix would be redefining IFS e.g. http://www.cyberciti.biz/tips/handling-fil...es-in-bash.html (http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html)


No, that command will work fine with filenames containing spaces, as is (no need to redefine $IFS).

This will also work (no need for piping to xargs):

Code: [Select]
find . -type f -iname '*.mp3' -exec mp3guessenc '{}' ';'
Title: Needed; an MP3 analyser for LINUX.
Post by: phofman on 2013-04-12 15:07:28
No, that command will work fine with filenames containing spaces, as is (no need to redefine $IFS).


I apologize, my fault, the globbing * works fine. Often I use find (even pipe chained) instead of plain * and that requires dealing with spaces. http://stackoverflow.com/questions/301039/...-bash-loop-list (http://stackoverflow.com/questions/301039/how-can-i-escape-white-space-in-a-bash-loop-list)
Title: Needed; an MP3 analyser for LINUX.
Post by: sakamoto on 2013-04-12 16:01:59
No, that command will work fine with filenames containing spaces, as is (no need to redefine $IFS).

This will also work (no need for piping to xargs):

Code: [Select]
find . -type f -iname '*.mp3' -exec mp3guessenc '{}' ';'


thank you skamp - this one indeed works
Title: Needed; an MP3 analyser for LINUX.
Post by: julf on 2013-04-12 20:38:29
No, that command will work fine with filenames containing spaces, as is (no need to redefine $IFS).


Indeed. Been around the shell long enough not to get bitten by that one.
Title: Needed; an MP3 analyser for LINUX.
Post by: eahm on 2013-04-12 21:49:08
Another one for Windows, not really what you want but maybe works better with Wine, is Mr QuestionMan (from the burrrn developer).

http://www.burrrn.net/?page_id=5 (http://www.burrrn.net/?page_id=5)