You are not logged in.

#1 2009-02-09 22:03:17

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

sox mp3 file format recognition issue.

I am trying to use 'play' command in 'sox' to play a mp3 file.

play XXX.mp3

will give me this error

play formats: no handler for detected file type `audio/mpeg; charset=binary'

but

play -t mp3 XXX.mp3

works fine.

Any clue for this problem?

Offline

#2 2009-02-09 22:14:50

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: sox mp3 file format recognition issue.

This problem seems to be caused by newer ' file-5.00-1-i686.pkg.tar.gz
' package.

Offline

#3 2009-02-09 22:22:48

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: sox mp3 file format recognition issue.

What file 5.0 gives me

ning:~/Audio$ file -i tigeraunt.mp3
tigeraunt.mp3: audio/mpeg; charset=binary

what file 4.26 gives me

ning:~/Audio$ file -i tigeraunt.mp3
tigeraunt.mp3: audio/mpeg

Anyway to fix this issue?

Offline

#4 2009-07-07 20:19:16

dctucker
Member
Registered: 2009-05-23
Posts: 7

Re: sox mp3 file format recognition issue.

This is in fact a big deal for me. I performed a full system upgrade on one of my installations yesterday, and now I can no longer use my carefully developed shell scripts to manage my radio station by converting MP3 to WAV using sox.

I would appreciate anyone with a solution other than "oh just downgrade" to reply to this thread. That or downgrading needs to become a built in pacman option because there have been far too many instances where installing an update breaks something that has worked flawlessly for years.

It would seem as though a modification to sox's source would be in order. I'm not trying to place blame on the Archlinux community for this issue, or on anyone for that matter...

In any event, downgrading to file-4.23 does in fact solve the issue.

Last edited by dctucker (2009-07-07 20:31:00)

Offline

#5 2009-07-08 10:30:39

shanghaied
Member
Registered: 2007-07-26
Posts: 3

Re: sox mp3 file format recognition issue.

The bug has been taken care of in the sox version 14.3.0 http://sox.cvs.sourceforge.net/sox/sox/ … iew=markup,
but looks like the package has no maintainer atm.

Offline

#6 2009-07-08 10:40:49

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: sox mp3 file format recognition issue.

File a bug report.


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#7 2009-08-18 16:47:15

dctucker
Member
Registered: 2009-05-23
Posts: 7

Re: sox mp3 file format recognition issue.

shanghaied wrote:

The bug has been taken care of in the sox version 14.3.0 http://sox.cvs.sourceforge.net/sox/sox/ … iew=markup,
but looks like the package has no maintainer atm.

Here's a PKGBUILD for the new version of SoX... it compiles but I haven't tried installing it on my production server.

pkgname=sox
pkgver=14.3.0
pkgrel=3
pkgdesc="The Swiss Army knife of sound processing tools"
arch=('i686' 'x86_64')
url="http://sox.sourceforge.net/"
license=('GPL')
depends=('ffmpeg>=0.5' 'libao' 'libvorbis' 'lame' 'libmad' 'bash' 'alsa-lib' 'libsndfile' 'libsamplerate' 'libtool' 'file')
options=(!libtool)
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('8e3509804e6227273ef84092e1a2fea7')

build() {
    cd $srcdir/$pkgname-$pkgver
    
     ./configure --prefix=/usr --sysconfdir=/etc
    
    make || return 1
    make DESTDIR=$pkgdir install || return 1
    cd $pkgdir/usr/bin
    rm -f rec
    ln -sf play rec
}

I could maintain this package if need be... Either way, I would like to see this package updated to the current version so as to be compatible with file-5.

Offline

Board footer

Powered by FluxBB