LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2005, 04:02 PM   #1
ciopi
LQ Newbie
 
Registered: May 2004
Location: Columbus, OH
Distribution: Mandriva 2006
Posts: 22

Rep: Reputation: 15
Unhappy playing 2 files simultaneously


Hi

I would like to be able to be able to play two files simultaneously on my Mandriva 2006 x86_64. If I do something like:
Code:
cat file1.avi > /dev/dsp
and then
Code:
file2.avi > /dev/dsp
I get:
Quote:
bash: /dev/dsp: Device or resource busy
Playing a single file works fine. However if I try to play let's say two mplayer files, the second one has no sound.
The command:
Code:
lsmod | grep snd
gives:
Quote:
snd_seq_dummy 3332 0
snd_seq_oss 31460 0
snd_seq_midi_event 6912 1 snd_seq_oss
snd_seq 50520 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 7952 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 51360 0
snd_mixer_oss 16384 1 snd_pcm_oss
snd_intel8x0 31744 1
snd_ac97_codec 88516 1 snd_intel8x0
snd_pcm 84748 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer 21000 2 snd_seq,snd_pcm
snd_page_alloc 9360 2 snd_intel8x0,snd_pcm
snd 48896 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer
soundcore 8352 1 snd
and
Code:
ps aux | grep arts
gives :
Quote:
0:00 /usr/bin/artsd -F 10 -S 4096 -s 10 -m artsmessage -c drkonqi -l 3 -f
Also, kmix is running all the time. My goal is to be able to play flash movies in firefox and capture them with xvidcap(with sound).

I have a 64 bit system, mplayer and firefox are compiled as 32 bit. Mplayer seems to work with -ao oss.

What do you think could be wrong ? Thank you.
 
Old 12-03-2005, 04:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
use alsa with the dmix plugin.
 
Old 12-03-2005, 05:50 PM   #3
ciopi
LQ Newbie
 
Registered: May 2004
Location: Columbus, OH
Distribution: Mandriva 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Unhappy

During the boot process I see something like:
Quote:
Starting Alsa 1.0.9b
so I guess it's installed. Anyway, I typed :
Code:
urpmi alsa
which installed the multimedia kernel. I tried to follow the instructions for the dmix installation, but there is no alsa-base for Mandriva. Also, alsaplayer doesn't play any files. It only says :"No stream". It seems that dmix is only for Debian(I do have something called alsamix though). So, I'm still unable to play 2 files.

Suggestions ?

Last edited by ciopi; 12-03-2005 at 05:55 PM.
 
Old 12-03-2005, 06:01 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
alsamix is a tool, not a plugin, and dmix is NOT part of debian, is a stanadrd alsa plugin.
 
Old 12-04-2005, 01:43 AM   #5
ciopi
LQ Newbie
 
Registered: May 2004
Location: Columbus, OH
Distribution: Mandriva 2006
Posts: 22

Original Poster
Rep: Reputation: 15
It turns out that alsa and dmix were present. I recompiled mplayer with alsa support and now I am able to play multiple mplayer files. Unfortunately, it seems that the macromedia flash sound cannot work simultaneously with the mplayer sound for instance. Also, a command like
Code:
artsdsp mozilla-firefox
doesn't work since firefox is 32 bit and my system is 64 bit and I don't see how I could install the 32 bit arts libraries(there are pages of dependencies when trying to uninstall the 64 bit libarts).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
playing . rm files Genesis05 General 5 09-16-2005 07:30 AM
Playing wma files ... Anmol SUSE / openSUSE 1 09-11-2005 06:56 PM
why video files are not playing ilnli Slackware 6 03-24-2005 02:04 PM
playing DAT files LinuxLala Linux - Software 8 09-01-2003 07:38 PM
playing realplayer(.rm) files dark_light Linux - Newbie 1 03-28-2003 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration