ffa1 Trouble playing sound file - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Multimedia

Multimedia Having problems running your new shiny and blinking gadget or watching DVDs, listening to CDs etc.?

Reply
 
Thread Tools Display Modes
  #1  
Old November 24th, 2009, 00:43
NewGuy NewGuy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 99
Thanks: 3
Thanked 6 Times in 5 Posts
Default Trouble playing sound file

Hello, I'm a bit of a newbie when it comes to FreeBSD, so please bear with me.

I have downloaded the mpg123 media player and I'm trying to play an mp3 file. When I do, I get the following output:

Code:
[oss.c:182] error: Can't open default sound device!
[audio.c:625] error: failed to open audio device
[audio.c:180] error: Unable to find a working output module in this list: oss
[audio.c:527] error: Failed to open audio output module
[mpg123.c:779] error: Failed to initialize output, goodbye.
This is a fresh install and I've confirmed the file plays on another machine. I'm not running X, just a command line interface. Any assistance would be greatly appreciated. Thank you.
Reply With Quote
  #2  
Old November 24th, 2009, 00:46
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,819
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Do you have any sound devices loaded in $ kldstat? See also: http://www.freebsd.org/doc/en_US.ISO...ultimedia.html
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old November 24th, 2009, 01:15
NewGuy NewGuy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 99
Thanks: 3
Thanked 6 Times in 5 Posts
Default Sound devices

That command gives me four entries:

kernel
ipl.ko
snd_emu10k1.ko
sound.ko

So I think the answer is yes. I read the document you linked to, but my eyes start to cross around the point of compiling kernel modules. As I said, I'm really fresh off the turnip wagon where FreeBSD is concerned.

I ventured to install OSS using "pkg_add -r -v oss" and that chugged away for a while, but the process locked up while installing python.
Reply With Quote
  #4  
Old December 8th, 2009, 18:24
darehanl darehanl is offline
Junior Member
 
Join Date: Jul 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Don't know if you're still around, but I get the same error message from mpg123. mplayer, ogg123 and others work fine. 8.0-RELEASE-p1 with updated ports, mpg123 1.9.1.
Reply With Quote
  #5  
Old December 8th, 2009, 18:39
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 701 Times in 579 Posts
Default

What's the output of cat /dev/sndstat? That will tell you if the correct sound driver is loaded.

You can load all the sound drivers via kldload snd_driver, then run the cat command above to see which driver it uses.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.

Last edited by DutchDaemon; December 8th, 2009 at 22:27. Reason: use one of [cmd=] [cmd=$] [cmd=#]
Reply With Quote
  #6  
Old December 11th, 2009, 06:49
darehanl darehanl is offline
Junior Member
 
Join Date: Jul 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by phoenix View Post
What's the output of cat /dev/sndstat? That will tell you if the correct sound driver is loaded.

You can load all the sound drivers via kldload snd_driver, then run the cat command above to see which driver it uses.
@phoenix, was the question directed to me? I have sound; it's just mpg123 that's acting up:

Code:
$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA Analog Devices AD1986A PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex default)
pcm1: <HDA Analog Devices AD1986A PCM #1 Digital> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
Code:
$ mpg123 Tender\ Wind.mp3
[module.c:138] error: Failed to open module oss: file not found
[audio.c:180] error: Unable to find a working output module in this list: oss
[audio.c:527] error: Failed to open audio output module
[mpg123.c:779] error: Failed to initialize output, goodbye.
Reply With Quote
  #7  
Old December 11th, 2009, 14:05
NewGuy NewGuy is offline
Junior Member
 
Join Date: Nov 2009
Posts: 99
Thanks: 3
Thanked 6 Times in 5 Posts
Default mpg123

I had the same issue, and it seems to just be mpg123 that isn't working. I get the same error stating it failed to open the oss module. When I tried installing oss, the package manager stalls when installing Python.
Reply With Quote
  #8  
Old December 11th, 2009, 14:28
crsd crsd is offline
Member
 
Join Date: Nov 2008
Location: Russia, Krasnodar
Posts: 420
Thanks: 8
Thanked 92 Times in 82 Posts
Default

Try using audio/mpg321, should be drop-in replacement and it handles broken mp3s better.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heads up anyone playing WoW under FreeBSD caesius Multimedia 4 January 23rd, 2010 03:03
[Solved] Sound card detected, but no sound on freebsd 7.2 sasha-fbsd System Hardware 6 September 12th, 2009 04:04
System hangs when playing video (freeBSD7.2) Detective Multimedia 8 July 31st, 2009 08:47
Playing CDs maxrussell Multimedia 1 July 19th, 2009 22:06
[Solved] Playing Audio CDs with no sound output. shuxuef Multimedia 21 July 10th, 2009 04:17


All times are GMT +1. The time now is 12:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0