Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-26 Thread Michael Schreckenbauer
Hi,

Am Dienstag, 25. September 2007 23:24:27 schrieb Mark Knecht:
 On 9/25/07, Michael Schreckenbauer [EMAIL PROTECTED] wrote:
  Hi Mark,
 
  Am Mittwoch, 19. September 2007 schrieb Mark Knecht:
   Hi,
  Message is to Randy and others that have been helping me with my
   audio problems with xine. This evening I discovered the root cause of
   the problem of no sound when playing DVDs in xine. Unfortunately I
   don't have a good solution yet. Maybe someone knows how to fix this at
   the command line?
  OK, xine does produce sound, but this machine has  multiple sound
   cards and it's choosing the one that goes to the home theater system,
   not the PC's sound card:
 
  maybe I missed that one in this thread, but did you look at xine's
  audio-configuration?
  Could you post the output of grep audio .xine/config here?
 
  Regards,
  Michael

 Hi Michael,
Thanks for taking a look. Let me know if you see anything or want more
 info.

 Cheers,
 Mark

afaik those are all default values, except audio.alsa_hw_mixer:0.
I don't think, that's a problem.
Does xine play every sound through the wrong device or only DVDs (5.1)?
Maybe there's a stale asoundrc in your home, somehow 
redirecting plug:surround51:0 to the second device?

I'm out of ideas now, it seems :(

Regards,
Michael


 dragonfly mark # cat .xine/config | grep audio
 #gui.post_audio_plugin:goom
 #gui.audio_mixer_method:Sound card
 audio.alsa_hw_mixer:0
 # audio driver to use
 #audio.driver:auto
 #audio.a52.dynamic_range:0
 # downmix audio to 2 channel surround stereo
 #audio.a52.surround_downmix:0
 #audio.a52.level:100
 #audio.device.alsa_default_device:default
 #audio.device.alsa_front_device:plug:front:default
 #audio.device.alsa_mixer_name:PCM
 #audio.device.alsa_mmap_enable:0
 #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AE
S3=0x2 #audio.device.alsa_surround40_device:plug:surround40:0
 #audio.device.alsa_surround51_device:plug:surround51:0
 #audio.output.speaker_arrangement:Stereo 2.0
 #audio.synchronization.passthrough_offset:0
 # play audio even on slow/fast speeds
 #audio.synchronization.slow_fast_audio:0
 # method to sync audio and video
 #audio.synchronization.av_sync_method:metronom feedback
 #audio.synchronization.force_rate:0
 #audio.synchronization.resample_mode:auto
 # startup audio volume
 #audio.volume.mixer_volume:50
 #audio.volume.remember_volume:0
 # device used for CD audio
 #media.audio_cd.device:/dev/cdrom
 #media.audio_cd.drive_slowdown:4
 #media.audio_cd.use_cddb:1
 #media.audio_cd.cddb_cachedir:/home/mark/.xine/cddbcache
 #media.audio_cd.cddb_port:8880
 #media.audio_cd.cddb_server:freedb.freedb.org
 # number of audio buffers
 #engine.buffers.audio_num_buffers:230
 # priority for dvaudio decoder
 #engine.decoder_priorities.dvaudio:0
 # priority for ffmpegaudio decoder
 #engine.decoder_priorities.ffmpegaudio:0
 dragonfly mark #


 dragonfly mark # uname -a
 Linux dragonfly 2.6.20-gentoo-r1 #4 SMP PREEMPT Tue May 15 06:22:55
 PDT 2007 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
 dragonfly mark #

 dragonfly mark # cat /proc/asound/cards
  0 [ICH5   ]: ICH4 - Intel ICH5
   Intel ICH5 with ALC655 at 0xfa081000, irq 21
  1 [default]: USB-Audio - USB Audio CODEC
   Burr-Brown from TI   USB Audio CODEC
  at usb-:00:1d.1-1, full s
 dragonfly mark #

 dragonfly mark # cat /proc/asound/version
 Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09
 09:56:17 2007 UTC).
 dragonfly mark #


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-26 Thread Mark Knecht
On 9/26/07, Michael Schreckenbauer [EMAIL PROTECTED] wrote:
SNIP

 afaik those are all default values, except audio.alsa_hw_mixer:0.
 I don't think, that's a problem.
 Does xine play every sound through the wrong device or only DVDs (5.1)?
 Maybe there's a stale asoundrc in your home, somehow
 redirecting plug:surround51:0 to the second device?

 I'm out of ideas now, it seems :(

 Regards,
 Michael


Hi Michael,
   Thanks for responding.

   As I stated in the original thread, long since cast the the email
bone pile, the only application that seems to have a problem on this
machine is xine. Aqualung (an audio file  CD player) sends audio to
the Intel chip. mplayer, playing DVDs, sends audio to the Intel chip.
Only xine by default is sending audio to the external USB converter.
The problem in xine is not specific to DVDs. It does the same thing
playing CDs.

   Note that with Aqualung I can reroute audio to the external USB
converter by purposely routing audio to the ':1' sound device, exactly
as Alsa should perform I believe.

   As far as I can tell the machine has neither an asound.state file
or any .asoundrc files:

dragonfly ~ # slocate .asoundrc
dragonfly ~ # slocate asound.state
/var/lib/alsa/asound.state
dragonfly ~ #

   Also, the problem is not specific to a user. It happens in my
account, my wife's account and my son's account. It seems to be a
global issue.

   As background, I have a second machine with dual sound cards. It
has the same generic Intel HDA audio device in it. It's second sound
card is an RME HDSP9652. xine works fine on that machine. Audio goes
to the Intel chip as it should.

   I'm at a complete loss on this one. It's starting to feel as if it
might be an Alsa issue and specific to USB audio. As I've gotten no
response from the xine-users list and this seems to be beyond the
typical Gentoo issue I suppose I might try those folks, assuming no
one else here has any experiments for me to try.

   Thanks again for your help.

Cheers,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-25 Thread Michael Schreckenbauer
Hi Mark,

Am Mittwoch, 19. September 2007 schrieb Mark Knecht:
 Hi,
Message is to Randy and others that have been helping me with my
 audio problems with xine. This evening I discovered the root cause of
 the problem of no sound when playing DVDs in xine. Unfortunately I
 don't have a good solution yet. Maybe someone knows how to fix this at
 the command line?
OK, xine does produce sound, but this machine has  multiple sound
 cards and it's choosing the one that goes to the home theater system,
 not the PC's sound card:

maybe I missed that one in this thread, but did you look at xine's 
audio-configuration?
Could you post the output of grep audio .xine/config here?

Regards,
Michael
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-25 Thread Mark Knecht
On 9/25/07, Michael Schreckenbauer [EMAIL PROTECTED] wrote:
 Hi Mark,

 Am Mittwoch, 19. September 2007 schrieb Mark Knecht:
  Hi,
 Message is to Randy and others that have been helping me with my
  audio problems with xine. This evening I discovered the root cause of
  the problem of no sound when playing DVDs in xine. Unfortunately I
  don't have a good solution yet. Maybe someone knows how to fix this at
  the command line?
 OK, xine does produce sound, but this machine has  multiple sound
  cards and it's choosing the one that goes to the home theater system,
  not the PC's sound card:

 maybe I missed that one in this thread, but did you look at xine's
 audio-configuration?
 Could you post the output of grep audio .xine/config here?

 Regards,
 Michael

Hi Michael,
   Thanks for taking a look. Let me know if you see anything or want more info.

Cheers,
Mark

dragonfly mark # cat .xine/config | grep audio
#gui.post_audio_plugin:goom
#gui.audio_mixer_method:Sound card
audio.alsa_hw_mixer:0
# audio driver to use
#audio.driver:auto
#audio.a52.dynamic_range:0
# downmix audio to 2 channel surround stereo
#audio.a52.surround_downmix:0
#audio.a52.level:100
#audio.device.alsa_default_device:default
#audio.device.alsa_front_device:plug:front:default
#audio.device.alsa_mixer_name:PCM
#audio.device.alsa_mmap_enable:0
#audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
#audio.device.alsa_surround40_device:plug:surround40:0
#audio.device.alsa_surround51_device:plug:surround51:0
#audio.output.speaker_arrangement:Stereo 2.0
#audio.synchronization.passthrough_offset:0
# play audio even on slow/fast speeds
#audio.synchronization.slow_fast_audio:0
# method to sync audio and video
#audio.synchronization.av_sync_method:metronom feedback
#audio.synchronization.force_rate:0
#audio.synchronization.resample_mode:auto
# startup audio volume
#audio.volume.mixer_volume:50
#audio.volume.remember_volume:0
# device used for CD audio
#media.audio_cd.device:/dev/cdrom
#media.audio_cd.drive_slowdown:4
#media.audio_cd.use_cddb:1
#media.audio_cd.cddb_cachedir:/home/mark/.xine/cddbcache
#media.audio_cd.cddb_port:8880
#media.audio_cd.cddb_server:freedb.freedb.org
# number of audio buffers
#engine.buffers.audio_num_buffers:230
# priority for dvaudio decoder
#engine.decoder_priorities.dvaudio:0
# priority for ffmpegaudio decoder
#engine.decoder_priorities.ffmpegaudio:0
dragonfly mark #


dragonfly mark # uname -a
Linux dragonfly 2.6.20-gentoo-r1 #4 SMP PREEMPT Tue May 15 06:22:55
PDT 2007 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
dragonfly mark #

dragonfly mark # cat /proc/asound/cards
 0 [ICH5   ]: ICH4 - Intel ICH5
  Intel ICH5 with ALC655 at 0xfa081000, irq 21
 1 [default]: USB-Audio - USB Audio CODEC
  Burr-Brown from TI   USB Audio CODEC
 at usb-:00:1d.1-1, full s
dragonfly mark #

dragonfly mark # cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09
09:56:17 2007 UTC).
dragonfly mark #
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Danilo Marcelo
Ok, here is my flags:

gentoo ~ # emerge -vp k3b

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-cdr/k3b-0.12.17  USE=alsa hal kde -arts -css -debug
-dvdr* -encode* -ffmpeg* -flac -mp3* -musepack -musicbrainz -sndfile -vcd*
-vorbis -xinerama LINGUAS=pt_BR -af -bg -bn -br -bs -ca -cs -cy -da -de
-el -en_GB -es -et -eu -fi -fr -ga -he -hi -hu -is -it -ja -km -lt -mk -ms
-nb -nds -nl -nn -pa -pl -pt -ro -ru -se -sl -sr [EMAIL PROTECTED] -sv -ta -tr 
-uk
-zh_CN -zh_TW 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
gentoo ~ #

I hope it helps you!

Danilo

2007/9/19, Mick [EMAIL PROTECTED]:

 On Wednesday 19 September 2007, Mark Knecht wrote:
  On 9/19/07, Mick [EMAIL PROTECTED] wrote:

   Have you played around with alsaconf and alsactl?  Also, you should
 make
   sure that there is no old asound.conf or ~/.asoundrc left in your
 system.
 
  I haven't. Not totally sure how I'd change anything by doing that.
  Both cards work with other apps. It's just xine that hard routing the
  audio to the second card, at least as far as I've seen so far.
  gmplayer routes DVD audio to the first card correctly.

 Just an idea.  I am not sure why your xine is behaving like this . . .

   If two
   cards are registered I would expect that xine will give you an option
 to
   choose between the two.
 
  I think it does in the preferences area. It uses the Alsa language
  that only Alsa developers totally get but seems to end in :0 for card
  0 and :1 for card 1. However I already have it set to card 0 but audio
  goes to card 1...

 I'm flummoxed.  It wouldn't be a udev rule that you have forgotten about .
 . .
 but then this would not just affect xine.

   BTW, you may also want to set your sound card in /etc/make.conf.
 
  I didn't know Gentoo changed the way that is done. Thanks. I've added
  it. It did not cause any changes in what gets built though.

 With regards to your flags, I'd add ffmpeg.  It installs the libavcodec
 for
 enc/decoding a multitude of video and audio data types.

 Good luck.
 --
 Regards,
 Mick




Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Mark Knecht
On 9/20/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
 Ok, here is my flags:

 gentoo ~ # emerge -vp k3b

 These are the packages that would be merged, in order:

 Calculating dependencies... done!
 [ebuild   R   ] app-cdr/k3b-0.12.17  USE=alsa hal kde -arts -css -debug
 -dvdr* -encode* -ffmpeg* -flac -mp3* -musepack -musicbrainz -sndfile -vcd*
 -vorbis -xinerama LINGUAS=pt_BR -af -bg -bn -br -bs -ca -cs -cy -da -de
 -el -en_GB -es -et -eu -fi -fr -ga -he -hi -hu -is -it -ja -km -lt -mk -ms
 -nb -nds -nl -nn -pa -pl -pt -ro -ru -se -sl -sr - [EMAIL PROTECTED] -sv -ta 
 -tr -uk
 -zh_CN -zh_TW 0 kB

 Total: 1 package (1 reinstall), Size of downloads: 0 kB
 gentoo ~ #

 I hope it helps you!

 Danilo

 2007/9/19, Mick  [EMAIL PROTECTED]:
  On Wednesday 19 September 2007, Mark Knecht wrote:
   On 9/19/07, Mick [EMAIL PROTECTED] wrote:
 
Have you played around with alsaconf and alsactl?  Also, you should
 make
sure that there is no old asound.conf or ~/.asoundrc left in your
 system.
  
   I haven't. Not totally sure how I'd change anything by doing that.
   Both cards work with other apps. It's just xine that hard routing the
   audio to the second card, at least as far as I've seen so far.
   gmplayer routes DVD audio to the first card correctly.
 
  Just an idea.  I am not sure why your xine is behaving like this . . .
 
If two
cards are registered I would expect that xine will give you an option
 to
choose between the two.
  
   I think it does in the preferences area. It uses the Alsa language
   that only Alsa developers totally get but seems to end in :0 for card
   0 and :1 for card 1. However I already have it set to card 0 but audio
   goes to card 1...
 
  I'm flummoxed.  It wouldn't be a udev rule that you have forgotten about .
 . .
  but then this would not just affect xine.
 
BTW, you may also want to set your sound card in /etc/make.conf.
  
   I didn't know Gentoo changed the way that is done. Thanks. I've added
   it. It did not cause any changes in what gets built though.
 
  With regards to your flags, I'd add ffmpeg.  It installs the libavcodec
 for
  enc/decoding a multitude of video and audio data types.
 
  Good luck.
  --
  Regards,
  Mick

Hi,
   Tried it all. No luck. xine still sends audio to the USB sound card
and not to the on-board, default sound chip.

   I also tested CD audio. Same thing. xine sends everything it's
doing to the USB port and not the the default sound card, but only on
this system.

   I'm out of ideas. I'll file a bug in Bugzilla I guess.

   Thanks very much for your support. I appreciated it even if we
didn't manage to solve the problem.

Thanks,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Danilo Marcelo
OK. Did you try to remove USB support and check sound? Maybe it works . . .

2007/9/20, Mark Knecht [EMAIL PROTECTED]:

 On 9/20/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
  Ok, here is my flags:
 
  gentoo ~ # emerge -vp k3b
 
  These are the packages that would be merged, in order:
 
  Calculating dependencies... done!
  [ebuild   R   ] app-cdr/k3b-0.12.17  USE=alsa hal kde -arts -css -debug
  -dvdr* -encode* -ffmpeg* -flac -mp3* -musepack -musicbrainz -sndfile
 -vcd*
  -vorbis -xinerama LINGUAS=pt_BR -af -bg -bn -br -bs -ca -cs -cy -da
 -de
  -el -en_GB -es -et -eu -fi -fr -ga -he -hi -hu -is -it -ja -km -lt -mk
 -ms
  -nb -nds -nl -nn -pa -pl -pt -ro -ru -se -sl -sr - [EMAIL PROTECTED] -sv 
  -ta -tr
 -uk
  -zh_CN -zh_TW 0 kB
 
  Total: 1 package (1 reinstall), Size of downloads: 0 kB
  gentoo ~ #
 
  I hope it helps you!
 
  Danilo
 
  2007/9/19, Mick  [EMAIL PROTECTED]:
   On Wednesday 19 September 2007, Mark Knecht wrote:
On 9/19/07, Mick [EMAIL PROTECTED] wrote:
  
 Have you played around with alsaconf and alsactl?  Also, you
 should
  make
 sure that there is no old asound.conf or ~/.asoundrc left in your
  system.
   
I haven't. Not totally sure how I'd change anything by doing that.
Both cards work with other apps. It's just xine that hard routing
 the
audio to the second card, at least as far as I've seen so far.
gmplayer routes DVD audio to the first card correctly.
  
   Just an idea.  I am not sure why your xine is behaving like this . . .
  
 If two
 cards are registered I would expect that xine will give you an
 option
  to
 choose between the two.
   
I think it does in the preferences area. It uses the Alsa language
that only Alsa developers totally get but seems to end in :0 for
 card
0 and :1 for card 1. However I already have it set to card 0 but
 audio
goes to card 1...
  
   I'm flummoxed.  It wouldn't be a udev rule that you have forgotten
 about .
  . .
   but then this would not just affect xine.
  
 BTW, you may also want to set your sound card in /etc/make.conf.
   
I didn't know Gentoo changed the way that is done. Thanks. I've
 added
it. It did not cause any changes in what gets built though.
  
   With regards to your flags, I'd add ffmpeg.  It installs the
 libavcodec
  for
   enc/decoding a multitude of video and audio data types.
  
   Good luck.
   --
   Regards,
   Mick

 Hi,
Tried it all. No luck. xine still sends audio to the USB sound card
 and not to the on-board, default sound chip.

I also tested CD audio. Same thing. xine sends everything it's
 doing to the USB port and not the the default sound card, but only on
 this system.

I'm out of ideas. I'll file a bug in Bugzilla I guess.

Thanks very much for your support. I appreciated it even if we
 didn't manage to solve the problem.

 Thanks,
 Mark
 --
 [EMAIL PROTECTED] mailing list




Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Danilo Marcelo
I was reading your first message again and now i understood your real
problem.
Some tips:

1) Change your player to test;
2) Remove your internal sound card
3) Test alsaconf again

I'm doing my best to help you.
Good luck!

2007/9/20, Danilo Marcelo [EMAIL PROTECTED]:

 OK. Did you try to remove USB support and check sound? Maybe it works . .
 .

 2007/9/20, Mark Knecht [EMAIL PROTECTED]:
 
  On 9/20/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
   Ok, here is my flags:
  
   gentoo ~ # emerge -vp k3b
  
   These are the packages that would be merged, in order:
  
   Calculating dependencies... done!
   [ebuild   R   ] app-cdr/k3b-0.12.17  USE=alsa hal kde -arts -css
  -debug
   -dvdr* -encode* -ffmpeg* -flac -mp3* -musepack -musicbrainz -sndfile
  -vcd*
   -vorbis -xinerama LINGUAS=pt_BR -af -bg -bn -br -bs -ca -cs -cy -da
  -de
   -el -en_GB -es -et -eu -fi -fr -ga -he -hi -hu -is -it -ja -km -lt -mk
  -ms
   -nb -nds -nl -nn -pa -pl -pt -ro -ru -se -sl -sr - [EMAIL PROTECTED] -sv 
   -ta -tr
  -uk
   -zh_CN -zh_TW 0 kB
  
   Total: 1 package (1 reinstall), Size of downloads: 0 kB
   gentoo ~ #
  
   I hope it helps you!
  
   Danilo
  
   2007/9/19, Mick  [EMAIL PROTECTED]:
On Wednesday 19 September 2007, Mark Knecht wrote:
 On 9/19/07, Mick  [EMAIL PROTECTED] wrote:
   
  Have you played around with alsaconf and alsactl?  Also, you
  should
   make
  sure that there is no old asound.conf or ~/.asoundrc left in
  your
   system.

 I haven't. Not totally sure how I'd change anything by doing that.
 Both cards work with other apps. It's just xine that hard routing
  the
 audio to the second card, at least as far as I've seen so far.
 gmplayer routes DVD audio to the first card correctly.
   
Just an idea.  I am not sure why your xine is behaving like this . .
  .
   
  If two
  cards are registered I would expect that xine will give you an
  option
   to
  choose between the two.

 I think it does in the preferences area. It uses the Alsa language
 
 that only Alsa developers totally get but seems to end in :0 for
  card
 0 and :1 for card 1. However I already have it set to card 0 but
  audio
 goes to card 1...
   
I'm flummoxed.  It wouldn't be a udev rule that you have forgotten
  about .
   . .
but then this would not just affect xine.
   
  BTW, you may also want to set your sound card in /etc/make.conf.
 

 I didn't know Gentoo changed the way that is done. Thanks. I've
  added
 it. It did not cause any changes in what gets built though.
   
With regards to your flags, I'd add ffmpeg.  It installs the
  libavcodec
   for
enc/decoding a multitude of video and audio data types.
   
Good luck.
--
Regards,
Mick
 
  Hi,
 Tried it all. No luck. xine still sends audio to the USB sound card
  and not to the on-board, default sound chip.
 
 I also tested CD audio. Same thing. xine sends everything it's
  doing to the USB port and not the the default sound card, but only on
  this system.
 
 I'm out of ideas. I'll file a bug in Bugzilla I guess.
 
 Thanks very much for your support. I appreciated it even if we
  didn't manage to solve the problem.
 
  Thanks,
  Mark
  --
  [EMAIL PROTECTED] mailing list
 
 



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Mark Knecht
On 9/20/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
 I was reading your first message again and now i understood your real
 problem.
 Some tips:

 1) Change your player to test;

Again, I have tested audio with Aqualung  mplayer on the desktop and
Flash in Firefox. They work correctly and go to the internal sound
chip. I've tested DVD with gmplayer. DVD's play fine and the audio
goes to the internal sound chip. I've tested DVDs and CDs with xine.
In both cases xine sends it to the external USB sound card.

 2) Remove your internal sound card

I cannot. It's a chip on the motherboard. On the other hand it might
be interesting, at least for test purposes, to disconnect the external
USB device and restart Alsa. Possibly xine will go internal in that
case.

 3) Test alsaconf again

Yeah, been down that road. I've been working with Alsa for almost 8
years now. Unless there is something very subtle going on here my Alsa
config is very generic  does specify which sound device is associated
with which sound card number. And again, every other audio application
works fine, and xine worked fine until maybe two weeks ago.
Unfortunately my wife doesn't inform me at the first instant things
stop working so there's no good way at this point to know what update
broke it, or whether the update was xine itself, Alsa, or something
else.

All that said I'll run alsaconf and see what it would do although IIRC
it doesn't actually set up dual sound cards. You have (or had) to do
that by hand.


 I'm doing my best to help you.
 Good luck!

And I do appreciate it! I'll post back about the no-USB experiment
later this morning if I get a chance to run it.

Cheers,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-20 Thread Danilo Marcelo
Hi,

in tip # 2, i'd like to say to remove the drivers, like modprobe -r
driver, not phisically.
Did you ever try OSS or another sound server?

2007/9/20, Mark Knecht [EMAIL PROTECTED]:

 On 9/20/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
  I was reading your first message again and now i understood your real
  problem.
  Some tips:
 
  1) Change your player to test;

 Again, I have tested audio with Aqualung  mplayer on the desktop and
 Flash in Firefox. They work correctly and go to the internal sound
 chip. I've tested DVD with gmplayer. DVD's play fine and the audio
 goes to the internal sound chip. I've tested DVDs and CDs with xine.
 In both cases xine sends it to the external USB sound card.

  2) Remove your internal sound card

 I cannot. It's a chip on the motherboard. On the other hand it might
 be interesting, at least for test purposes, to disconnect the external
 USB device and restart Alsa. Possibly xine will go internal in that
 case.

  3) Test alsaconf again

 Yeah, been down that road. I've been working with Alsa for almost 8
 years now. Unless there is something very subtle going on here my Alsa
 config is very generic  does specify which sound device is associated
 with which sound card number. And again, every other audio application
 works fine, and xine worked fine until maybe two weeks ago.
 Unfortunately my wife doesn't inform me at the first instant things
 stop working so there's no good way at this point to know what update
 broke it, or whether the update was xine itself, Alsa, or something
 else.

 All that said I'll run alsaconf and see what it would do although IIRC
 it doesn't actually set up dual sound cards. You have (or had) to do
 that by hand.

 
  I'm doing my best to help you.
  Good luck!

 And I do appreciate it! I'll post back about the no-USB experiment
 later this morning if I get a chance to run it.

 Cheers,
 Mark
 --
 [EMAIL PROTECTED] mailing list




Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Danilo Marcelo
I had the same problem and resolved installing k3b. I think this error
occurs because missing plugins. Try to emerge k3b but check flags before.

2007/9/18, Mark Knecht [EMAIL PROTECTED]:

 Hi,
   Message is to Randy and others that have been helping me with my
 audio problems with xine. This evening I discovered the root cause of
 the problem of no sound when playing DVDs in xine. Unfortunately I
 don't have a good solution yet. Maybe someone knows how to fix this at
 the command line?

   OK, xine does produce sound, but this machine has  multiple sound
 cards and it's choosing the one that goes to the home theater system,
 not the PC's sound card:

 [EMAIL PROTECTED] ~ $ cat /proc/asound/cards
 0 [ICH5   ]: ICH4 - Intel ICH5
  Intel ICH5 with ALC655 at 0xfa081000, irq 21
 1 [default]: USB-Audio - USB Audio CODEC
  Burr-Brown from TI   USB Audio CODEC
 at usb-:00:1d.1-1, full s
 [EMAIL PROTECTED] ~ $

   When I thought of this possibility I turned on the HT receiver,
 switched to the correct input and low and behold DVD audio was
 playing. Didn't test to see if it's 5.1. The HT receiver is hooked to
 the USB device which seems to be marked as 'default'. However hardware
 setup hasn't changed and earlier versions of xine went to the internal
 card so something has changed.

   I don't see anything in /etc/modules.d/alsa that defines the second
 card as default. Does anyone know how Alsa does that?

   It's possible that Alsa getting too cleaver by half and somehow
 'deciding' that the USB interface is more suited to doing 5.1 than the
 internal card. If it is then shame on it I say. ;-)

   Two potential solutions come to mind:

 1) At the xine command line tell it which card to use. I'm looking
 through the xine --help listing but heck if I see how to do that.

 2) Somehow tell also to make card 0 default and see if that fixes the
 problem.

   Anyway, so the problem is partially solved. I can go the xine-users
 list and see if anyone there has a quick fix for this. At least it's
 starting to make some sense.

   Thanks in advance for any ideas.

 Cheers,
 Mark

 # Alsa 0.9.X kernel modules' configuration file.
 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-
 modules.conf-rc,v
 1.4 2004/11/16 01:31:22 eradicator 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-intel8x0
 options snd-intel8x0 index=0

 alias snd-card-1 snd-usb-audio
 options snd-usb-audio index=1

 ##  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=2
 --
 [EMAIL PROTECTED] mailing list




Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Mick
On Wednesday 19 September 2007, Danilo Marcelo wrote:
[snip]

 2007/9/18, Mark Knecht [EMAIL PROTECTED]:

OK, xine does produce sound, but this machine has  multiple sound
  cards and it's choosing the one that goes to the home theater system,
  not the PC's sound card:

Have you played around with alsaconf and alsactl?  Also, you should make sure 
that there is no old asound.conf or ~/.asoundrc left in your system.  If two 
cards are registered I would expect that xine will give you an option to 
choose between the two.

BTW, you may also want to set your sound card in /etc/make.conf.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Mark Knecht
On 9/19/07, Danilo Marcelo [EMAIL PROTECTED] wrote:
 I had the same problem and resolved installing k3b. I think this error
 occurs because missing plugins. Try to emerge k3b but check flags before.


 2007/9/18, Mark Knecht [EMAIL PROTECTED]:
 
  Hi,
Message is to Randy and others that have been helping me with my
  audio problems with xine. This evening I discovered the root cause of
  the problem of no sound when playing DVDs in xine. Unfortunately I
  don't have a good solution yet. Maybe someone knows how to fix this at
  the command line?
 
OK, xine does produce sound, but this machine has  multiple sound
  cards and it's choosing the one that goes to the home theater system,
  not the PC's sound card:
 
SNIP

Hi,
   OK, I could try that. Seems very hit and miss though and since I
don't know what flags you think might be involved I'll past here
before I do it.

   The current version installed is stable. The flags currently being
used are shown here:

dragonfly ~ # emerge -pv k3b

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-cdr/k3b-0.12.17  USE=alsa dvdr encode flac hal
kde mp3 sndfile vorbis -arts -css -debug -ffmpeg -musepack
-musicbrainz -vcd -xinerama LINGUAS=-af -bg -bn -br -bs -ca -cs -cy
-da -de -el -en_GB -es -et -eu -fi -fr -ga -he -hi -hu -is -it -ja -km
-lt -mk -ms -nb -nds -nl -nn -pa -pl -pt -pt_BR -ro -ru -se -sl -sr
[EMAIL PROTECTED] -sv -ta -tr -uk -zh_CN -zh_TW 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
dragonfly ~ #

   I could update to ~x86. If I did this is what would be done:

dragonfly ~ # emerge -pv k3b

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] app-cdr/k3b-1.0.3 [0.12.17] USE=alsa dvdr dvdread%*
encode flac hal kde mp3 sndfile vorbis -arts -css -debug -emovix%
-ffmpeg -musepack -musicbrainz -vcd -xinerama LINGUAS=-af -ar% -bg
-br -bs -ca -cs -cy -da -de -el -en_GB -es -et -eu -fa% -fi -fr -ga
-gl% -he -hi -hu -is -it -ja -ka% -lt -mk -ms -nb -nds -nl -nn -pa -pl
-pt -pt_BR -ru -rw% -se -sk% -sr [EMAIL PROTECTED] -sv -ta -tr -uk -uz% -zh_CN
-zh_TW (-bn%) (-km%) (-ro%) (-sl%) 4,974 kB

Total: 1 package (1 upgrade), Size of downloads: 4,974 kB
dragonfly ~ #

   How do your flags compare?

   I don't mind doing this. (Heck - I'll try anything.) However the
machine is clean with emerge -DuN world and revdep-rebuild says
there's nothing to rebuild so emerging k3b only rebuilds k3b and not
anything that I expect xine to be using.

   Drop me a note with your flags if you get a chance.

Thanks,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Mark Knecht
On 9/19/07, Mick [EMAIL PROTECTED] wrote:
 On Wednesday 19 September 2007, Danilo Marcelo wrote:
 [snip]

  2007/9/18, Mark Knecht [EMAIL PROTECTED]:

 OK, xine does produce sound, but this machine has  multiple sound
   cards and it's choosing the one that goes to the home theater system,
   not the PC's sound card:

 Have you played around with alsaconf and alsactl?  Also, you should make sure
 that there is no old asound.conf or ~/.asoundrc left in your system.

I haven't. Not totally sure how I'd change anything by doing that.
Both cards work with other apps. It's just xine that hard routing the
audio to the second card, at least as far as I've seen so far.
gmplayer routes DVD audio to the first card correctly.

 If two
 cards are registered I would expect that xine will give you an option to
 choose between the two.

I think it does in the preferences area. It uses the Alsa language
that only Alsa developers totally get but seems to end in :0 for card
0 and :1 for card 1. However I already have it set to card 0 but audio
goes to card 1...

 BTW, you may also want to set your sound card in /etc/make.conf.
 --

I didn't know Gentoo changed the way that is done. Thanks. I've added
it. It did not cause any changes in what gets built though.

Thanks,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Miroslav Puda
On 17:34 Tue 18 Sep , Mark Knecht wrote:
I don't see anything in /etc/modules.d/alsa that defines the second
card as default. Does anyone know how Alsa does that?

I think you need alsa support through modules for this but I am not
sure. First card is default one. To figure out index of your sound cards do
this:
$ cat /proc/asound/modules
0 cx88_alsa
1 snd_via82x
2 snd_mpu401

Now write this to /etc/modprobe.d/sound:
options snd_via82xx index=0
options snd_mpu401 index=1
options cx88_alsa index=2

Card with index zero will be default. Then run:
# update-modules
After next boot, order of your sound cards should be ok.

Note: I have this problem without any HW or SW changes. I don't know
what triger this. 
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Mark Knecht
On 9/19/07, Miroslav Puda [EMAIL PROTECTED] wrote:
 On 17:34 Tue 18 Sep , Mark Knecht wrote:
 I don't see anything in /etc/modules.d/alsa that defines the second
 card as default. Does anyone know how Alsa does that?

 I think you need alsa support through modules for this but I am not
 sure. First card is default one. To figure out index of your sound cards do
 this:
 $ cat /proc/asound/modules
 0 cx88_alsa
 1 snd_via82x
 2 snd_mpu401

 Now write this to /etc/modprobe.d/sound:
 options snd_via82xx index=0
 options snd_mpu401 index=1
 options cx88_alsa index=2

 Card with index zero will be default. Then run:
 # update-modules
 After next boot, order of your sound cards should be ok.

 Note: I have this problem without any HW or SW changes. I don't know
 what triger this.

Hi Miroslav,
   Yes, I think I already have all that set up correctly. See the
following info:

dragonfly ~ # cat /proc/asound/modules
 0 snd_intel8x0
 1 snd_usb_audio
dragonfly ~ # cat /etc/modules.d/alsa | grep options
options snd-intel8x0 index=0
options snd-usb-audio index=1
options snd cards_limit=2
dragonfly ~ # cat /etc/modprobe.conf | grep options
options snd-intel8x0 index=0
options snd-usb-audio index=1
options snd cards_limit=2
dragonfly ~ #

   The Intel HDA card is default. The USB device is an external USB to
Optical spdif converter that runs to the external home theater
receiver.

   All audio applications EXCEPT xine use the internal Intel card.
ONLY xine is using the external USB device. (Card 1 instead of Card 0)

   Keep in mind that one my Gentoo-based AMD64 machine I have two
audio cards as shown here and xine is working fine. Audio goes to card
0 exactly as it should. It gets mixed into the HDSP later but I can
tell that xine audio is going through the 8X0 driver as it responds to
the Gnome volume control and shows p on the correct input in
hdspmixer.

[EMAIL PROTECTED] ~ $ cat /proc/asound/modules
 0 snd_intel8x0
 1 snd_hdsp
[EMAIL PROTECTED] ~ $

   Note that you might want to add the options snd cards_limit=3 to
your config file.

Thanks,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] xine - no sound on DVDs - solved (sort of)

2007-09-19 Thread Mick
On Wednesday 19 September 2007, Mark Knecht wrote:
 On 9/19/07, Mick [EMAIL PROTECTED] wrote:

  Have you played around with alsaconf and alsactl?  Also, you should make
  sure that there is no old asound.conf or ~/.asoundrc left in your system.

 I haven't. Not totally sure how I'd change anything by doing that.
 Both cards work with other apps. It's just xine that hard routing the
 audio to the second card, at least as far as I've seen so far.
 gmplayer routes DVD audio to the first card correctly.

Just an idea.  I am not sure why your xine is behaving like this . . .

  If two
  cards are registered I would expect that xine will give you an option to
  choose between the two.

 I think it does in the preferences area. It uses the Alsa language
 that only Alsa developers totally get but seems to end in :0 for card
 0 and :1 for card 1. However I already have it set to card 0 but audio
 goes to card 1...

I'm flummoxed.  It wouldn't be a udev rule that you have forgotten about . . . 
but then this would not just affect xine.

  BTW, you may also want to set your sound card in /etc/make.conf.

 I didn't know Gentoo changed the way that is done. Thanks. I've added
 it. It did not cause any changes in what gets built though.

With regards to your flags, I'd add ffmpeg.  It installs the libavcodec for 
enc/decoding a multitude of video and audio data types.

Good luck.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.