[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] MP3 and pygame



I've had the same problem. I account it to Redhat and not smpeg.

I moved over to slackware and everything worked just fine. The problem is
RH stripped out mp3 support in their distro. Once the rpms didn't work I
tried to compile SDL and all the libraries from source and could not get
SDL_ttf to compile at all. I think thats a gcc3 issue somehow.

Like i said every other platform I've tested it on works.. its just RH.
Now I'm using mplayer for all my media playing so it'll work on RH
regaurdless.

Mike

> Pete Shinners wrote:
>
>> Kristofer Wouk wrote:
>>
>>> pygame.mixer.music.load('somefile.mp3')  I get:
>>> pygame.error: Module format not recognized
>>
>>
>> i have a feeling your problem is an ID3V2 tag on the file. SMPEG
>> doesn't seem to recognize MP3 files with this extra data. the "file"
>> command can tell you what tags are on the mp3.
>>
>> since you compiled from source you likely have the "playmusic" command
>>  from SDL_mixer. try that out on the mp3 file too. It should have the
>> exact same results as pygame, but we won't rule out a bug just yet.
>> (maybe it was "playmus", i can't quite remember)
>>
>>
>>
>>
> I don't seem to have either a 'playmusic' or 'playmus' command on my
> system. If this is any help
> I tried loading a few files with no ID3 tags at all and it wouldn't
> work.
>
> Kris