Author |
Message |
Martian
|
Posted: Thu Jul 17, 2008 12:00 am |
|
Joined: Wed Feb 08, 2006 6:13 pm
Posts: 480
Location:
IN
|
I'm pretty much all up and running on R5.5 however I can't get get the digital output (spdif) working with Mythmusic no matter what I do.
Live TV works, recordings work, DVDs work, Mythstream works, but Mythmusic does NOT. I can hear my MP3s playing when I hook up a set of headphones to the analog output but nothing through the digital.
Does anyone have any thoughts / suggestions?
Thanks,
Martian
_________________ ABIT NF-M2 nView | Athlon 64 X2 3800+ | 2GB DDR2 800 | HDHomerun | GeForce 6150 (onboard) | WD 640 GB SATA HD | DVD-RW (sata) | StreamZap IR receiver with Logitech Harmony remote
Vizio 37" LCD HDTV (1080p)
Last edited by Martian on Thu Jul 17, 2008 5:59 pm, edited 1 time in total.
|
|
Top |
|
|
manicmike
|
Posted: Thu Jul 17, 2008 4:35 am |
|
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location:
Melbourne, Australia
|
Martian wrote: I'm pretty much all up and running on R5.5 however I can't get get the digital output (spdif) working with Mythmusic no matter what I do.
Live TV works, recordings work, DVDs work, Mythstream works, but Mythmusic does NOT. I can hear my MP3s playing when I hook up a set of headphones to the analog output but nothing through the digital.
Does anyone have any thoughts / suggestions?
Thanks,
Martian
twk_audio.pl i's needed to turn the emitter on. Is the emitter on?
Mike
EDIT: Sorry, didn't read it properly. Just ignore me!
_________________ ********************* LinHES 7.4 Australian Dragon *********************
Last edited by manicmike on Thu Jul 17, 2008 2:36 pm, edited 1 time in total.
|
|
Top |
|
|
datobin1
|
Posted: Thu Jul 17, 2008 7:13 am |
|
Joined: Wed Dec 21, 2005 1:14 pm
Posts: 145
Location:
Charlotte NC USA
|
If you start mythfrontend from a console and try to play music then go look at the consoles output you will most likely see somthing about unexpected rate.... expected 4100 recieved 4800 (somthing simular, don't have amyth box infrount of me)
This is what I did to resolve this
Run aplay -l first to see what devices you have
Code: root@mythtv-theater:/home/dan# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: nForce2 [NVidia nForce2], device 0: Intel ICH [NVidia nForce2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: nForce2 [NVidia nForce2], device 2: Intel ICH - IEC958 [NVidia nForce2 - IEC958] Subdevices: 1/1 Subdevice #0: subdevice #0
From my output you can see that card 0 device 2 is my spdif / optical out now we need to configure a an asound.cfg file and save it to /etc/asound.conf This is the file it is well documented, you only need to uncomment a few lines For my setup I made the following changes Uncomented slave.pcm "digital-hw" under pcm.!default { Uncomented Device2 under Alias for digital (S/PDIF) output on the card Make the changes needed for your setup and save the file as /etc/asound.conf Code: # ~/.asoundrc or /etc/asound.conf # ALSA configuration file
##### USAGE ##### # Save this file as "~/.asoundrc" (for user-specific sound configuration) or # "/etc/asound.conf" (for system-wide sound configuration) and specify ALSA # device names ad described in the next section.
##### DEVICE NAMES ##### # This configuration file defines four devices for use by the user. Those # devices are "analog", "mixed-analog", "digital", and "mixed-digital". The # user may also re-define "default" to be identical to one of the above-named # devices (i.e. to send all sound output to the digital output unless otherwise # specified). Use the device names as described below: # - "analog" outputs to the analog output directly and (at least on software # sound cards) blocks other audio output. After playback completes, "queued" # sounds are output in sequence. # - "mixed-analog" mixes audio output from multiple programs into the analog # output (so you can hear beeps, alerts, and other noises while playing back # an audio stream). # - "digital" outputs to the digital output directly. Since most (all?) # digital outputs expect 48kHz PCM audio, this may not work for some playback # (i.e. CD's--which are 44.1kHz PCM audio--or 32kHz audio streams from TV # recordings, etc.). # - "mixed-digital"
# All other devices created within this file are used only by the configuration # file itself and should /not/ be used directly. In other words, do not use # the devices "analog-hw", "dmix-analog", "digital-hw", or "dmix-digital".
##### IMPORTANT ##### # To make this ALSA configuration file work with your sound card, you will need # to define the appropriate card and device information for the "analog-hw" and # "digital-hw" devices below. You can find the card and device information # using "aplay -l".
##### Configuration File #####
# Override the default output used by ALSA. If you do not override the # default, your default device is identical to the (unmixed) "analog" device # shown below. If you prefer mixed and/or digital output, uncomment the # appropriate four lines below (only one slave.pcm line). # # Note, also, that as of ALSA 1.0.9, "software" sound cards have been modified # such that their default "default" device is identical to the "mixed-analog" # device. Whether using an ALSA version before or after 1.0.9, it does no harm # and has no affect on performance to redefine the device (even if the # redefinition does not change anything). Also, by using this ALSA # configuration file, you once again have access to unmixed analog output using # the "analog" device. pcm.!default { type plug ## Uncomment the following to use (unmixed) "analog" by default # slave.pcm "analog-hw" ## Uncomment the following to use "mixed-analog" by default slave.pcm "dmix-analog" ## Uncomment the following to use (unmixed) "digital" by default # slave.pcm "digital-hw" ## Uncomment the following to use "mixed-digital" by default # slave.pcm "dmix-digital" }
# Control device (mixer, etc.) for the card ctl.!default { type hw card 0 }
# Alias for (converted) analog output on the card # - This is identical to the device named "default"--which always exists and # refers to hw:0,0 (unless overridden) # - Therefore, we can specify "hw:0,0", "default", or "analog" to access analog # output on the card # - Note that as of ALSA 1.0.9, "software" sound card definitions redefine # "default" to do mixing, meaning this device is different from "default" and # allows playback while blocking other sound sources (until playback # completes). pcm.analog { type plug slave.pcm "analog-hw" }
# Control device (mixer, etc.) for the card ctl.analog { type hw card 0 }
# Alias for (converted) mixed analog output on the card # - This will accept audio input--regardless of rate--and convert to the rate # required for the dmix plugin (in this case 48000Hz) # - Note that as of ALSA 1.0.9, "software" sound card definitions redefine # "default" to do mixing, meaning this device is identical to "default" for # "software" sound cards. pcm.mixed-analog { type plug slave.pcm "dmix-analog" }
# Control device (mixer, etc.) for the card ctl.mixed-analog { type hw card 0 }
# Alias for (converted) digital (S/PDIF) output on the card # - This will accept audio input--regardless of rate--and convert to the rate # required for the S/PDIF hardware (in this case 48000Hz) pcm.digital { type plug slave.pcm "digital-hw" }
# Control device (mixer, etc.) for the card ctl.digital { type hw card 0 }
# Alias for mixed (converted) digital (S/PDIF) output on the card # - This will accept audio input--regardless of rate--and convert to the rate # required for the S/PDIF hardware (in this case 48000Hz) pcm.mixed-digital { type plug slave.pcm "dmix-digital" }
# Control device (mixer, etc.) for the card ctl.mixed-digital { type hw card 0 }
# The following devices are not useful by themselves. They require specific # rates, channels, and formats. Therefore, you probably do not want to use # them directly. Instead use of of the devices defined above.
# Alias for analog output on the card # Do not use this directly--it requires specific rate, channels, and format pcm.analog-hw { type hw card 0 # The default value for device is 0, so no need to specify # - Uncomment one of the below or create a new "device N" line as appropriate # for your sound card or # device 1 # device 4 }
# Control device (mixer, etc.) for the card ctl.analog-hw { type hw card 0 }
# Alias for digital (S/PDIF) output on the card # Do not use this directly--it requires specific rate, channels, and format pcm.digital-hw { type hw card 0 device 1 # - Comment out "device 1" above and uncomment one of the below or create a # new "device N" line as appropriate for your sound card or # device 2 # device 4 }
# Control device (mixer, etc.) for the card ctl.digital-hw { type hw card 0 }
# Direct software mixing plugin for analog output on the card # Do not use this directly--it requires specific rate, channels, and format pcm.dmix-analog { type dmix ipc_key 1234 slave { pcm "analog-hw" period_time 0 period_size 1024 buffer_size 4096 rate 48000 } }
# Control device (mixer, etc.) for the card ctl.dmix-analog { type hw card 0 }
# Direct software mixing plugin for digital (S/PDIF) output on the card # Do not use this directly--it requires specific rate, channels, and format pcm.dmix-digital { type dmix ipc_key 1235 slave { pcm "digital-hw" period_time 0 period_size 1024 buffer_size 4096 rate 48000 } }
# Control device (mixer, etc.) for the card ctl.dmix-digital { type hw card 0 }
Next you need change your output device for mythmusic
go into mythfrontend and then go to the first page of general music setup.
Change the output to
ALSA:digital
reboot the system and hopefully it works
For more info on this see the mythtv wiki
http://www.mythtv.org/wiki/index.php/Co ... ital_Sound
|
|
Top |
|
|
Martian
|
Posted: Thu Jul 17, 2008 5:58 pm |
|
Joined: Wed Feb 08, 2006 6:13 pm
Posts: 480
Location:
IN
|
Thanks datobin1!
Got it all working now. Your post made perfect sense.
Martian
_________________ ABIT NF-M2 nView | Athlon 64 X2 3800+ | 2GB DDR2 800 | HDHomerun | GeForce 6150 (onboard) | WD 640 GB SATA HD | DVD-RW (sata) | StreamZap IR receiver with Logitech Harmony remote
Vizio 37" LCD HDTV (1080p)
|
|
Top |
|
|
Human
|
Posted: Fri Jul 25, 2008 12:26 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
In R5.5, this command (run as root) is supposed to do all that configuation for you. If it doesn't, let me know, and I can address it:
Code: twk_audio.pl --implement digital
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
|
Martian
|
Posted: Fri Jul 25, 2008 12:45 pm |
|
Joined: Wed Feb 08, 2006 6:13 pm
Posts: 480
Location:
IN
|
Human wrote: In R5.5, this command (run as root) is supposed to do all that configuation for you. If it doesn't, let me know, and I can address it: Code: twk_audio.pl --implement digital
I'll give that a shot next time. For now I'm going with the "if it ain't broke, don't fix it plan"!
Martian
_________________ ABIT NF-M2 nView | Athlon 64 X2 3800+ | 2GB DDR2 800 | HDHomerun | GeForce 6150 (onboard) | WD 640 GB SATA HD | DVD-RW (sata) | StreamZap IR receiver with Logitech Harmony remote
Vizio 37" LCD HDTV (1080p)
|
|
Top |
|
|
Human
|
Posted: Fri Jul 25, 2008 12:56 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
Martian wrote: I'll give that a shot next time. For now I'm going with the "if it ain't broke, don't fix it plan"!
It'd be valuable to know whether or not the command worked for you, since it'd benefit others now and benefit you later when the next release rolls around. I wrote that script so people wouldn't need to do manual work to configure digital audio or switch back and forth between digital and audio, but I could only test it on two audio chipsets.
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
|
jheizer
|
Posted: Fri Jul 25, 2008 3:31 pm |
|
Joined: Tue Jun 20, 2006 7:08 pm
Posts: 4
|
Human wrote: In R5.5, this command (run as root) is supposed to do all that configuation for you. If it doesn't, let me know, and I can address it: Code: twk_audio.pl --implement digital Worked for me! I run everthing out optical and all pieces of myth were working except MythStream. After running this it worked but MythMusic stopped. I had to go in and changed its sound device to /dev/adsp instead of default and then it was also happily working. In case this is helpful: Code: root@mythtvlivingroom:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: AV710 [Chaintech AV-710], device 0: ICE1724 [ICE1724] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: AV710 [Chaintech AV-710], device 1: IEC1724 IEC958 [IEC1724 IEC958] Subdevices: 0/1 Subdevice #0: subdevice #0
|
|
Top |
|
|
Human
|
Posted: Mon Aug 25, 2008 12:59 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
jheizer wrote: Worked for me! I run everthing out optical and all pieces of myth were working except MythStream. After running this it worked but MythMusic stopped. I had to go in and changed its sound device to /dev/adsp instead of default and then it was also happily working.
Could you send me the output of the following commands, run as root? It'll let me build up a ruleset to make MythMusic use /dev/adsp for digital audio on your hardware, so you and others can benefit fully from the automation.
Code: lspci -vv lspci -mn
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
|
TheErk
|
Posted: Mon Sep 01, 2008 12:17 pm |
|
Joined: Mon Jun 18, 2007 8:20 pm
Posts: 19
|
AWESOME! Thank you datobin1!!!! Using your asound.conf file and instructions I finally got Zsnes to work on digital out. Your detailed instructions worked where no other link that I've found did. And on top of it all, I think that I actually understand it now too! Thank you, Thank you! You rock!
--TheErk
|
|
Top |
|
|
ybreton
|
Posted: Mon Nov 24, 2008 9:01 am |
|
Joined: Mon Apr 16, 2007 7:57 pm
Posts: 5
|
Hey everyone,
I'm a linux supern00b, too, but I have to say I'm really loving knoppmyth. I tried GBPVR for a while, but it was little slow and unresponsive (probably an XP-eating-system-resources problem). Just a couple questions, though, before this set-top box is fully operational:
As in the previous posting, MythMusic won't play. Well, that's not true, entirely. I can get it to play the CD's I've ripped at 320 kbps @ 48 kHz, but other music I have at 44.1 kHz simply won't even display properly. By that, I mean that all the files are in the music tree, but for the ones that aren't in the "correct" format, when I press Enter/Space/P, I don't even get a track time or information about the format. Needless to say, they also don't play.
I've tried following the suggestions here: /etc/asound.conf was copied and pasted from above, with the line specifying "dmix-digital" as default uncommented and the line specifying "dmix-analog" commented. I ran twk_audio.pl --implement digital. I've specified the device in settings>music settings>general music settings as default, and in settings>general I've set it as ALSA:spdif (since any other setting makes me lose the audio on Live TV). Enabling or disabling AC3 and DTS passthrough appears to do nothing. The alsamixer has the IEC958 output unmuted.
When I query alsa for my output devices using aplay -l, I get two devices on card 0: device 0, with the 5 analog outputs, and device 1, the iec958 output.
One kluge-y solution has been to transcode, in iTunes, all of the music I have that is at a 44.1kHz sample rate to the rate that appears to work with MythMusic, but I can't help but think this won't solve the underlying problem. I haven't tried with downloaded content in MythVideo yet, since I haven't had time to upload any from my macbook pro, but I fear the problem may re-occur if the sound stream isn't spot-on. Is there something I'm missing? How do I get Myth to play all sounds regardless of rate through my digital out?
My system specs are:
- VIA EPIA SP13000 mainboard
> Coax set to S/PDIF, plugs into the coax in my powered speaker setup
> S-video to LG 32LB9D (though it would be nice if I could find a way to get the VGA output to work--my laptop plugs in at 1024x768 fine, but I can't get xorg.conf to make it work javascript:emoticon(':x'))
> XvMC is enabled to take advantage of the hardware accelerator on the Northbridge
- Hauppauge WinTV 500 for recording cable
- Hauppauge WinTV-USB-PVR2 for easy composite- and S-Video-in, remote control
- Knoppmyth R5.5
I would appreciate any and all help. When--and if--I ever get this working properly, I'll post a how-to to set up, step by step, this kind of mini-ITX machine for knoppmyth... and maybe my roommate won't be asking me every day if the "TV is working yet."
Thanks,
Y.
|
|
Top |
|
|
brfransen
|
Posted: Mon Nov 24, 2008 4:56 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
ybreton, try this as your /etc/asound.conf: Code: pcm.!default { type plug slave { pcm "spdif" rate 48000 } }
I had the same problem and tracked it down to my sound card not liking 44.1kHz. This forces the ALSA to output everything to the sound card as 48kHz.
Britney
|
|
Top |
|
|
ybreton
|
Posted: Mon Nov 24, 2008 6:44 pm |
|
Joined: Mon Apr 16, 2007 7:57 pm
Posts: 5
|
Thanks Britney, but still nothing. Are there any additional settings I need to change after I've altered the asound.conf file?
|
|
Top |
|
|
datobin1
|
Posted: Tue Nov 25, 2008 11:00 am |
|
Joined: Wed Dec 21, 2005 1:14 pm
Posts: 145
Location:
Charlotte NC USA
|
Sounds like your missing audio codecs for some of your music.
Even if your asound.conf is wrong the music file should open and play...you just will not hear it.
what are the extension of the file? are they drm files?
Since this is off topic of the original thread, if you have more questions open a new one to get more eyes on the new discussion.
|
|
Top |
|
|