[mythtv] [mythtv-commits] Ticket #1104: multi channelaudiosupport

Mark Spieth mark at dclabs.com.au
Mon Oct 15 20:55:25 UTC 2007


never seen a mono stream.
in libmyth audiooutputalsa.cpp
see AudioOutputALSA::OpenDevice
a few lines down you will see
if (audio_channels != 2)
change to
if (audio_channels >= 2)

let me know how it goes.
on vac so wont get anything out for a week or so.
possibly even an extra device for mono srteams if the passive matrix first 
device doesnt work correctly.

also -v audio gives more detail. the axchannels 6 -1 line is still there for 
me.

mark

> DVB-S Mono [?]:
>
> 2007-10-14 19:30:19.480 AFD: Opened codec 0xaa486b0, id(MPEG2VIDEO)
> type(Video)
> 2007-10-14 19:30:19.488 AFD: Selected track 1: Unknown MP2 1ch (A/V Stream
> #0)
> 2007-10-14 19:30:19.489 AFD: Initializing audio parms from audio track #1
> 2007-10-14 19:30:19.489 AFD: Audio format changed
>                        from id(NONE)    -1Hz -1ch   0bps    ; id(NONE)
> -1Hz -1ch   0bps
>                        to   id( MP3) 44100Hz  1ch  16bps    ; id( MP3)
> 44100Hz  1ch  16bps
> 2007-10-14 19:30:19.498 AO: Killing AudioOutputDSP
> 2007-10-14 19:30:19.498 Opening audio device 'softvol|surround51m'. ch 1 
> sr
> 44100
> 2007-10-14 19:30:19.498 Inside ALSA:OpenDevice
> QString::arg(): Argument missing: Audio channels isn't two, so should open
> multichannel device next! Audio channels=, 1
> 2007-10-14 19:30:19.498 Audio channels isn't two, so should open
> multichannel device next! Audio channels=
> 2007-10-14 19:30:19.498 Opening ALSA audio device 'surround51m'.
> 2007-10-14 19:30:19.518 in SetParameters(format=2, channels=1, rate=44100,
> buffer_time=100000, period_time=25000)
>
>
>
> ---
> Paul Catchpole CCNA
> Cisco Enterprise Network Consultant
> www.paulcatchpole.co.uk
> 0121 285 5555
>
>
> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org]
> On Behalf Of Mark Spieth
> Sent: 12 October 2007 00:02
> To: mythtv-dev at mythtv.org
> Subject: Re: [mythtv] [mythtv-commits] Ticket #1104: multi channel
> audiosupport
>
>>
>> In the mean time I've tried setting the database field to the
>> "ALSA:softvol|surround51m" value and although my upmixed audio works as
>> usual, trying a DVD with the internal player appears to use 'softvol'
>> rather than the 5.1 PCM...
>>
>> That's what it 'sounds' like in any case, and I'm guessing that the
>> 'channels=2' in the setparameters line at the bottom of the following log
>> confirms that?
>>
>> 2007-10-07 23:25:01.247 AFD: Warning, video codec 0x877fdb0 
>> id(MPEG2VIDEO)
>> type (Video) already open.
>> 2007-10-07 23:25:01.708 AFD: Setting maxchannels to 2, -1
>
> this is probably your problem. you havent selected 6 ch mode in setup I
> suspect. If you dont select that, you wont get 6ch output.
> Then if the audio stream is 6 channel it will use the 2nd of the devices,
> otherwise it will use the first device.
> If maxchannels is 2 as in your case then it will downmix the 6ch to 2 ch 
> in
> the ac3 or dts decoder and present only 2ch audio to the audiooutput
> subsystem.
>
> mark
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> 



More information about the mythtv-dev mailing list