Difference between revisions of "Category:HOWTO"

From MythTV Official Wiki
Jump to: navigation, search
(reverting, time to go back and try that edit again)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:HOWTO]]
+
Documents in this category are HOWTO documents explaining a specific scenario or task.  You'll often find that they're more specific than you need, or that they pertain to a slightly different environment than you have, but you can often generalize about what they say to help you, anyway.
[[Category:Developer_Documentation]]
+
  
== To send sound to both DVI and HDMI via ALSA eg. to TV and Amplifier simultaneously you can use an .asoundrc file in your home directory. ==
 
Firstly a note or two -
 
# Sound CAN be sent over DVI, if you sound card supports it. Preferably use a DVI to HDMI connector / cobale (often cheaper than an HDMI to HDMI cable)
 
# Your sound device (presumably a graphics card with built in sound eg. NVidia GT430 as used here) needs to treat DVI and HDMI connectors similarly
 
# The sound device (graphics card) needs to support sound
 
  
Secondly, Pulse is probably easier if that is what you use, but this is useful for those of us using ALSA
+
[[Category:Knowledge Base]]
 
+
===The asoundrc file===
+
 
+
<pre>
+
# .asoundrc
+
# Add to your home directory
+
# works with NVidia GT430 ... once the video card itself is set to work correctly
+
#
+
# Default ALSA to send to both DVI and HDMI
+
pcm.!default {
+
    type plug
+
    slave {
+
        # The following line actually does the work
+
        pcm "hdmi_dvi_both"
+
    }
+
}
+
# DVI connection on GT430
+
pcm.!hdmi3 {
+
    type hw
+
    card 0
+
    device 3
+
    channels 2
+
}
+
# Doesn't seem to be necessary, just for completeness
+
ctl.!hdmi3 {
+
    type hw
+
    card 0
+
    device 3
+
    channels 2
+
}
+
pcm.!hdmi7 {
+
    type hw
+
    card 0
+
    device 7
+
    channels 2
+
}
+
pcm.!hdmi8 {
+
    type hw
+
    card 0
+
    device 8
+
    channels 2
+
}
+
# HDMI Connection on GT430
+
pcm.!hdmi9 {
+
    type hw
+
    card 0
+
    device 9
+
    channels 2
+
}
+
# Doesn't seem to be necessary, just for completeness
+
ctl.!hdmi9 {
+
    type hw
+
    card 0
+
    device 9
+
    channels 2
+
}
+
 
+
pcm.multi_dig {
+
    type multi
+
    # Define DVI slave
+
    slaves.a {
+
        pcm "hdmi3"
+
        # In this version, only pass 2 channels (like SPDIF)
+
        channels 2
+
    }
+
    # Define HDMI slave
+
    slaves.b {
+
        pcm "hdmi9"
+
        # In this version, only pass 2 channels (like SPDIF)
+
        channels 2
+
    }
+
    # Bind the 2 DVI channels to a name ie "a"
+
    bindings.0.slave a
+
    bindings.0.channel 0
+
    bindings.1.slave a
+
    bindings.1.channel 1
+
 
+
    # Bind the 2 HDMI channels to a name ie "b"
+
    bindings.2.slave b
+
    bindings.2.channel 0
+
    bindings.3.slave b
+
    bindings.3.channel 1
+
}
+
# Define the routing which actually send s the signal to both DVI and HDMI
+
pcm.hdmi_dvi_both {
+
    type route
+
    slave {
+
        pcm "multi_dig"
+
        # The channels definition is critical to define the total number of channels out (2 sets of 2)
+
        channels 4
+
    }
+
    # The first dot after "ttable" defines the channel out
+
    # The second dot defines the channel as bound above in the "multi-dig" definition
+
    # Define 4 channels out in total, 2 each for DVI and HDMI
+
    ttable.0.0 1
+
    ttable.1.1 1
+
    ttable.0.2 1
+
    ttable.1.3 1
+
}
+
# You may have to mess around with your TV and amp depending on what they support
+
# My curent setup is MythTv v 0.23
+
# my amp supports Dolby, DTS and AC3
+
# my TV support DTS and AC# ... but NOT Dolby (just get nasty "noise" if "dolby" selected in MythTv)
+
# I sent HDMI to TV because of default colour space etc
+
# and DVI to amp cause its not sensitive to colour etc. (just used for sound)
+
# BUT need to tell NVidia Config to send video to both (default is DVI only)
+
 
+
</pre>
+
 
+
Paste the above file into your home directory as ".asoundrc"
+
Go to MythTv Setup / General / Audio System and set the "Audio output device" to ALSA:default or ALSA:hdmi_dvi_both
+
 
+
Depending on your TV and Amp you may also need to change the settings for 5.1 sound. Your devices may or may not support
+
# AC3 (nothing else selected)
+
# Dolby
+
# DTS
+
In my case,
+
# TV supports AC3 and DTS but NOT Dolby
+
# Amp supports all the above (but not 7.1 bitstream)
+
Now I can use either TV sound or Amp sound or both
+
 
+
[[Category:HOWTO]]
+

Latest revision as of 12:41, 7 March 2011

Documents in this category are HOWTO documents explaining a specific scenario or task. You'll often find that they're more specific than you need, or that they pertain to a slightly different environment than you have, but you can often generalize about what they say to help you, anyway.

Subcategories

This category has the following 7 subcategories, out of 7 total.

Pages in category "HOWTO"

The following 197 pages are in this category, out of 197 total.

A

B

C

D

E

E cont.

F

G

H

I

J

K

L

M

N

O

P

R

R cont.

S

T

U

V

W

X