Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD64, movies have no sound.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Feb 17, 2004 4:58 pm    Post subject: AMD64, movies have no sound. Reply with quote

I have a weird problem with playing movies. I emerged mplayer and it does play movies (divx, etc)
The weird thing is that there is no sound. When I press ' * ' (to increae the volume) the 'volume bar' stays empty. Totem has the exact same problem, the volume-bar is disbled so I can't change the volume. Mp3's and other audio files do play (xmms), so the problem is not in my soundcard.
What is wrong??

Thanks
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Feb 17, 2004 5:20 pm    Post subject: Reply with quote

*UPDATE*
I also have this problem with DVD's
Back to top
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Wed Feb 18, 2004 11:45 pm    Post subject: Reply with quote

change sound driver , try alsa or oss.
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Fri Feb 20, 2004 7:35 am    Post subject: Reply with quote

I all ready use alsa. I don't think it is in the sound driver because mp3's work fine.
It must be something with the codecs... :?
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Fri Feb 20, 2004 11:34 am    Post subject: Reply with quote

So you have alsa9 selected as the sound driver in mplayer? or are you using oss emulation from alsa? (alsa-oss or oss selected in the kernel).

What messages do you get from mplayer, when you try and play a divx? if usually gives an error saying it couldn't find the correct output, or output codec ....
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Fri Feb 20, 2004 12:23 pm    Post subject: Reply with quote

Yes, I have alsa selected as the sound-driver in xmms
Mplayer doesn't give any errors. It just starts playing the
movie without sound. Totem does the same.
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Fri Feb 20, 2004 12:37 pm    Post subject: Reply with quote

mariourk wrote:
Yes, I have alsa selected as the sound-driver in xmms
Mplayer doesn't give any errors. It just starts playing the
movie without sound. Totem does the same.


Ok, and thats why xmms plays mp3's.

You have to do the same for mplayer. If you are using the gui you have to select 'audio', 'alsa9', or like this from the command line.

mplayer name.avi -ac -hwac3 -ao alsa9:spdif

or just

mplayer name.avi -ao alsa9

If you do this from the command line, mplayer will show you the status of what's playing, in the term.

>> Do you have alsa in your USE flags when compiling mplayer? I don't think alsa9 appears as a valid driver unless you do (that is unless you have alsa-oss loading).
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Mon Feb 23, 2004 6:57 pm    Post subject: Reply with quote

It seems that I have no /dev/mixer no /dev/dsp and no /dev/midi.
This is my /etc/modules.d/alsa:
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $
                                                                                                                                                                                                     
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
                                                                                                                                                                                                     
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
                                                                                                                                                                                                     
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
                                                                                                                                                                                                     
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
                                                                                                                                                                                                     
# Set this to the correct number of cards.
options snd cards_limit=1


And this is my /etc/devfsd.conf (alsa part)
Code:

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP          snd          MODLOAD ACTION snd
LOOKUP          dsp          MODLOAD
LOOKUP          mixer        MODLOAD
LOOKUP          midi         MODLOAD
REGISTER        sound/.*     PERMISSIONS root.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660


Iam in the audiogroup. What can be wrong??[/b]
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Mon Feb 23, 2004 9:42 pm    Post subject: Reply with quote

When you are using alsa, you need to tell each application to use alsa.

OR

Otherwise you use alsa-oss (kernel 2.4) or alsa oss emulation within the alsa section of the 2.6 kernel.

Do you have this enabled in your kernel??
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
J.M.I.T.
Guru
Guru


Joined: 15 Jan 2003
Posts: 481
Location: München, Germany

PostPosted: Tue Feb 24, 2004 7:23 am    Post subject: Reply with quote

mariourk wrote:
It seems that I have no /dev/mixer no /dev/dsp and no /dev/midi.

the devices are in /dev/sound/* not in /dev and as long as xmms plays mp3s you can be sure that you have a /dev/sound/dsp...
so... have you tried what scoobydu suggested? does mplayer finally work with sound?
_________________
Get a life...
Code:
:(){ :|:& };:
Use at own risk...
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Feb 24, 2004 12:39 pm    Post subject: Reply with quote

Yup, after enabeling those options in my kernel everything worked fine.

Thanks a lot guys! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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