pygame on OSX Yosemite: unrecognized music format
I'm playing around with Pygame on my Mac, running OSX Yosemite. I can't get it to play an MP3 file using the following code:
pygame.mixer.music.load('bg_music.mp3') pygame.error: Unrecognized music format
I'm using Python 2.7.1 and have the following libraries installed:
- sdl (brew): 1.2.15
- sdl_mixer (brew): 1.2.12
- libvorbis (brew): 1.3.4
- pygame: 1.9.2a0
I've searched around and tried all the suggestions on this thread without success.
Does anyone have any ideas how I can get this thing to work?
Do you have SMPEG library installed? libvorbis is used for .ogg support, .mp3 requires either SMPEG or MAD libraries, as stated in SDL_mixer manual.
pygame.error: Unrecognized music format, Hello, i have an problem on my mac. i cannot play any mp3 file, ogg runs perfect. #!python import pygame import time pygame. pygame.error: Unrecognized music format. 2 days trying to get pygame to play mp3 and ogg files on OSX. come to this with the same issue I had on OS X Yosemite.
I had the same issue, thanks the Cynikal's post I was finally able to resolve this. You can ignore step2 if you have already installed pygame. Also change pip3 to pip and remove python3 from the brew install list if you plan to use python27 or something
Step 1: Install all Pygame deps for Mac with Brew (if you don't have brew, look up how to install first)
brew install python3 hg sdl sdl_image sdl_ttf portmidi smpeg
Step 2: Install PyGame
pip3 install hg+http://bitbucket.org/pygame/pygame
Step 3: Download sdl-mixer source code from: https://www.libsdl.org/projects/SDL_mixer/release-1.2.html
Untar the tar.gz file with tar zxvf:
tar zxvf SDL_mixer-1.2.12.tar.gz cd SDL_mixer-1.2.12 ./configure make sudo make install
Step 4: Run your pygame code and see if it fixes your dependency issue
I hope this helps others who come to this with the same issue I had on OS X Yosemite
Error with unrecognized music format � Issue #5 � justinmeister/Mario , I cloned the repo and I'm using Python 2.7.6 on Mac with pygame 1.9.2a0. Error with unrecognized music format #5 OS X Yosemite 10.10.3 Я играю с Pygame на своем Mac, запустив OSX Yosemite. Я не могу заставить его играть в MP3-файл, используя следующий код: pygame.mixer.music.load('bg_music.mp3') pygame.error: Unrecognized music format
My problem was that I was using python 2 instead of
Music won't work with python 3 (OS X) : pygame, File "pong.py", line 42, in <module>. pygame.mixer.music.load("endofline.ogg"). pygame.error: Unrecognized music format. Obviously pygame should recognize � I'm playing around with Pygame on my Mac, running OSX Yosemite. I can't get it to play an MP3 file using the following code: pygame.mixer.music.load('bg_music.mp3') pygame.error: Unrecognized music format I'm using Python 2.7.1 and have the following libraries installed: sdl (brew): 1
I also faced same problem its because of pygame version 1.9.5 my problem was sloved when I installed 1.9.6 version try this command it really worked:
python -m pip install pygame==1.9.6.rc1 --user --pre
python, Avez-vous une biblioth�que SMPEG install�e? libvorbis est utilis� pour le support .ogg, .mp3 n�cessite des biblioth�ques SMPEG ou MAD, comme indiqu� � I am using a new MacBook Pro with OS X Yosemite 10.10.4. I buy Microsoft Office 365 yesterday and I download the file (MicrosoftOffice2011.dmg). When I try to open it it gives error: Image not recognized. I am openning it with DiskMouth. Here are some of the things I try so far: I download again (for more than 10 times) same outcome.
пігаме на OSX Yosemite: нерозпізнаний формат музики, Я граю з Pygame на моєму Mac, під керуванням OSX Yosemite. pygame.mixer. music.load("bg_music.mp3") pygame.error: Unrecognized music format. iMusic is a great music recording tool, enabling you to create MP3 files from your online media, be it YouTube videos, Pandora playlists or over 500 other sites. With the ability to handle different formats and different quality settings it can produce music files to suit any needs, add in the ability to identify and tag tracks and you have a fantastic and complete software solution for
Summary. Welcome to isometric. To install this python isometric 2d engine, you will need python, and pygame installed. This project is cross platform compatible, for Windows 7 (tested), Linux, and Mac OS X (Yosemite tested).
(You can't repair your startup volume while your computer is started from it.) The repair can be done by fsck or Disk Utility, however, the later is recommended by Apple if you're using Mac OS X 10.4 or later. Very important: If you are repairing, then REPEAT the Repair process more than once, to make sure it fixed everything.
- I tried this with no help -still getting pygame.error: Unrecognized music format