<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:12pt"><div><span><div>Hi -</div><div><br></div><div>Along Christian's lines, I have tried numerous solutions to try to stream via analog (not HDMI) and SPDIF simultaneously. &nbsp;The problem with the solutions I've tried (when I get them to work) is &nbsp;that either the simultaneous stream is in stereo (not surround) or, if MythTV detects a surround stream, it only passes through to SPDIF and doesn't play through analog (it'll play through both only if there's a stereo source).</div><div><br></div><div>I found Patrick's solution really helpful (there were two syntax errors in his script, but that likely came from cutting and pasting). &nbsp;My modification is pasted below. &nbsp;I don't use Myth with a remote control, so I added a menu option to the mainmenu.xml file that runs the script. &nbsp;It works
 perfectly.</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>Zack</div><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt; "><br></div><div><div>#!/usr/bin/python</div><div><br></div><div>from MythTV import MythBE</div><div><br></div><div>be = MythBE()</div><div>db = be.db</div><div>hostname = db.gethostname()</div><div><br></div><div>print 'Host: %s'%hostname</div><div>print '\tAudio device: %s'%db.settings[hostname]['AudioOutputDevice']</div><div>print '\tMax Channels: %s'%db.settings[hostname]['MaxChannels']</div><div>print '\tDTS: %s &nbsp; &nbsp;AC3: %s'%(db.settings[hostname]['DTSPassThru'],db.settings[hostname]['AC3PassThru'])</div><div><br></div><div>if db.settings[hostname]['AudioOutputDevice']=='ALSA:pulse':</div><div>&nbsp; db.settings[hostname]['AudioOutputDevice']='ALSA:iec958:CARD=Intel,DEV=0'</div><div>&nbsp; db.settings[hostname]['MaxChannels']=u'6'</div><div>&nbsp;
 db.settings[hostname]['DTSPassThru']=u'1'</div><div>&nbsp; db.settings[hostname]['AC3PassThru']=u'1'</div><div>else:</div><div>&nbsp; db.settings[hostname]['AudioOutputDevice']='ALSA:pulse'</div><div>&nbsp; db.settings[hostname]['MaxChannels']=u'2'</div><div>&nbsp; db.settings[hostname]['DTSPassThru']=u'0'</div><div>&nbsp; db.settings[hostname]['AC3PassThru']=u'0'</div><div><br></div><div>print 'Host: %s'%hostname</div><div>print '\tAudio device: %s'%db.settings[hostname]['AudioOutputDevice']</div><div>print '\tMax Channels: %s'%db.settings[hostname]['MaxChannels']</div><div>print '\tDTS: %s &nbsp; &nbsp;AC3: %s'%(db.settings[hostname]['DTSPassThru'],db.settings[hostname]['AC3PassThru'])</div><div><br></div><div>be.backendCommand('MESSAGE[]:[]CLEAR_SETTINGS_CACHE')</div></div></span></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-size: 12pt; font-family: tahoma, 'new york', times, serif;
 "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2" face="Arial"> </font><br> </div> </div>  </div></body></html>