Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer and arts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Sat May 18, 2002 3:38 am    Post subject: mplayer and arts? Reply with quote

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
View user's profile Send private message
c_kuzmanic
Guru
Guru


Joined: 18 Apr 2002
Posts: 488
Location: Los Angeles , California

PostPosted: Sat May 18, 2002 7:15 am    Post subject: Reply with quote

Hi;

Use "mplayer -ao sdl" to get it to work under arts.
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Sat May 18, 2002 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Sat May 18, 2002 9:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Sat May 18, 2002 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
TomorrowPlusX
Apprentice
Apprentice


Joined: 07 May 2002
Posts: 168
Location: Washington DC, USA

PostPosted: Sun May 19, 2002 4:59 am    Post subject: Broken record Reply with quote

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
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Sun May 19, 2002 9:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Sun May 19, 2002 9:34 am    Post subject: Reply with quote

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
View user's profile Send private message
NewbieTim
n00b
n00b


Joined: 18 Apr 2002
Posts: 57

PostPosted: Sun May 19, 2002 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
CowboyNeal
n00b
n00b


Joined: 16 May 2002
Posts: 44
Location: The Netherlands

PostPosted: Mon May 27, 2002 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mallrats
Guru
Guru


Joined: 15 Jul 2002
Posts: 414
Location: Cleveland Ohio

PostPosted: Mon Aug 12, 2002 1:32 pm    Post subject: Reply with quote

I get artsdsp not found, where is it
I have kde-base/arts installed
_________________
BitWise Chat
Back to top
View user's profile Send private message
andee
n00b
n00b


Joined: 04 Jun 2002
Posts: 41

PostPosted: Mon Aug 12, 2002 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mallrats
Guru
Guru


Joined: 15 Jul 2002
Posts: 414
Location: Cleveland Ohio

PostPosted: Mon Aug 12, 2002 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
andee
n00b
n00b


Joined: 04 Jun 2002
Posts: 41

PostPosted: Tue Aug 13, 2002 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum