View previous topic :: View next topic |
Author |
Message |
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Sat May 18, 2002 3:38 am Post subject: mplayer and arts? |
|
|
I've been trying to get audio working in mplayer to no avail. I'm using the built in kernel sound drivers and the sdl driver in mplayer for sound. Sound works fine in xmms and other apps under KDE3 using the artsd plugin. I definitely have arts and sdl in my USE variable, and artsd is definitely running. Sound also works fine in any other SDL app, such as lbreakout2. The weird thing is that whether or not sound works seems to be pretty transient; sometimes it does, sometimes it doesn't. But below is what happens when it doesn't work.
Here's the relevant error in mplayer's output:
Code: |
AO: [sdl] 24000Hz Stereo Signed 16-bit (Little-Endian)
SDL: Samplerate: 24000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: using arts audio driver
SDL: Unable to open audio: No available audio device
couldn't open/init audio device -> NOSOUND
Audio: no sound!!!
|
And here's the output of mplayer -ao help:
Code: |
MPlayer 0.90pre3-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Type: 6, Stepping: 3)
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
SSE supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2
Available audio output drivers:
null Null audio output
sdl SDLlib audio output
mpegpes Mpeg-PES audio output
pcm RAW PCM/WAVE file writer audio output
plugin Plugin audio output
|
|
|
Back to top |
|
|
c_kuzmanic Guru
Joined: 18 Apr 2002 Posts: 488 Location: Los Angeles , California
|
Posted: Sat May 18, 2002 7:15 am Post subject: |
|
|
Hi;
Use "mplayer -ao sdl" to get it to work under arts. |
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Sat May 18, 2002 7:27 am Post subject: |
|
|
c_kuzmanic wrote: | Hi;
Use "mplayer -ao sdl" to get it to work under arts. |
Actually, that's what I was doing; it just seems to fail with the "device error" I posted above.
The command line I was using was
Code: |
mplayer -ao sdl -vo x11 -gui
|
That loads it up and I get video but no sound. |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Sat May 18, 2002 9:44 am Post subject: |
|
|
I've never used arts (I run GNOME) but to use mplayer with esd I use Code: | mplayer -ao sdl:esd | so for arts I guess you need Code: | mplayer -ao sdl:arts |
|
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Sat May 18, 2002 8:34 pm Post subject: |
|
|
huw wrote: | I've never used arts (I run GNOME) but to use mplayer with esd I use Code: | mplayer -ao sdl:esd | so for arts I guess you need Code: | mplayer -ao sdl:arts |
|
Tried that one too...same result. My mplayer seems to default to arts whether I use -ao sdl:arts or just -ao sdl.
Neither one produces any sound. |
|
Back to top |
|
|
TomorrowPlusX Apprentice
Joined: 07 May 2002 Posts: 168 Location: Washington DC, USA
|
Posted: Sun May 19, 2002 4:59 am Post subject: Broken record |
|
|
Sounds like you're having the *exact* same trouble as me -- though I'm running alsa, instead of kernel sound.
If you manage to figure this out, let me know, could you? I'm poking around, and if I figure it out, I'll let you know. |
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Sun May 19, 2002 9:20 am Post subject: |
|
|
Hmmm...after some more investigation I discovered that NO SDL apps on my system are actually using arts for sound output. SDL is apparently only using /dev/dsp directly. I know this because sound works in some sdl apps other than mplayer when arts is suspended but NOT when it is running. Does anyone have any clue how to make SDL use arts for output? |
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Sun May 19, 2002 9:34 am Post subject: |
|
|
Oh, and I checked my USE variables and recompiled libsdl just to make sure that arts was in there and it definitely is. The configure part definitely detected the arts libs and they were indeed compiled in. I checked the output. |
|
Back to top |
|
|
NewbieTim n00b
Joined: 18 Apr 2002 Posts: 57
|
Posted: Sun May 19, 2002 9:38 am Post subject: |
|
|
i have the same problem with my mplayer (also kernel compiled sound support). But my mplayer seems to use arts, but i get no output. Here's the text output:
AO: [sdl] 44100Hz Stereo Signed 16-bit (Little-Endian)
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: using arts audio driver
SDL: Unable to open audio: No available audio device
couldn't open/init audio device -> NOSOUND
Audio: no sound!!! |
|
Back to top |
|
|
CowboyNeal n00b
Joined: 16 May 2002 Posts: 44 Location: The Netherlands
|
Posted: Mon May 27, 2002 10:12 pm Post subject: |
|
|
NewbieTim wrote: | i have the same problem with my mplayer (also kernel compiled sound support). But my mplayer seems to use arts, but i get no output. Here's the text output:
AO: [sdl] 44100Hz Stereo Signed 16-bit (Little-Endian)
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: using arts audio driver
SDL: Unable to open audio: No available audio device
couldn't open/init audio device -> NOSOUND
Audio: no sound!!! |
My not-so-pretty solution to this is
Code: | artsdsp mplayer -ao sdl |
|
|
Back to top |
|
|
Mallrats Guru
Joined: 15 Jul 2002 Posts: 414 Location: Cleveland Ohio
|
Posted: Mon Aug 12, 2002 1:32 pm Post subject: |
|
|
I get artsdsp not found, where is it
I have kde-base/arts installed _________________ BitWise Chat |
|
Back to top |
|
|
andee n00b
Joined: 04 Jun 2002 Posts: 41
|
Posted: Mon Aug 12, 2002 5:49 pm Post subject: |
|
|
Hi
I had exactly the same problem.
To solve it I went to Control Center/Sound/Sound Server press Sound I/O tab and I checked Use custom sound device and wrote there /dev/sound/dsp1
I haven't had problems with sound in mplayer since then.
The second solution is to under Control Center/Sound/Sound Server/General uncheck start arts soundserver on kde startup.
I hope that helps.
gl |
|
Back to top |
|
|
Mallrats Guru
Joined: 15 Jul 2002 Posts: 414 Location: Cleveland Ohio
|
Posted: Mon Aug 12, 2002 10:54 pm Post subject: |
|
|
andee sounds like he has the solution to my problem, but I don't have kde emerged. Does anyone know how to manually set this without the KDE control panel? _________________ BitWise Chat |
|
Back to top |
|
|
andee n00b
Joined: 04 Jun 2002 Posts: 41
|
Posted: Tue Aug 13, 2002 6:10 pm Post subject: |
|
|
Hi
That's two command that help you:
one is artsshell and another one is artswrapper add --help to this command and you will know all options.
The command line i'm using now is like this:
//usr/kde/cvs/bin/artsd -F 5 -S 4096 -D /dev/dsp1 -s 3 -m artsmessage -l 3 -f
I hope that helps |
|
Back to top |
|
|
|