Mailing List Archive

DTS Passthrough
I just upgraded from 0.22 to 0.23. In 0.22, I had DTS passthrough working
on my Zotac ION board going to my DTS receiver over the coax output. Both
DTS and AC3 worked fine for mkv files in both myth and mplayer. DTS tracks
would show up as DTS on the receiver so I had that confirmation before.

Since upgrading to 0.23, I no longer get any DTS streams to the receiver.
The receiver shows the format of the stream and everything I'm getting now
is Dolby Digital. It seems to be re-encoding the DTS stream to AC3 because
I DO have surround sound, just no longer in DTS format. mplayer still
continues to work with DTS but I would rather play everything back with
Myth's internal player.

I've tried as many combinations of settings that I can think of and I've
searched the lists, since I thought I recalled seeing someone else with this
problem before, but I have not found a solution. Can anyone help with the
settings? Or is this even possible?

My current settings are:

Audio output device: ALSA:spdif
Speakers configuration: 5.1
Upconvert stereo to 5.1: unchecked
Upmix: Best
Digital output device: ALSA:iec958:{ AES0 0x02 }
Dolby Digital: checked
DTS: checked
Advanced Audio Config: unchecked

I also have Use internal volume controls unchecked

Thanks for any help.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
Hi

On Wednesday, June 30, 2010, mythtv <mythtv@moasat.dyndns.org> wrote:
> I just upgraded from 0.22 to 0.23.  In 0.22, I had DTS passthrough working
> on my Zotac ION board going to my DTS receiver over the coax output.  Both
> DTS and AC3 worked fine for mkv files in both myth and mplayer.  DTS tracks
> would show up as DTS on the receiver so I had that confirmation before.
>
> Since upgrading to 0.23, I no longer get any DTS streams to the receiver.
> The receiver shows the format of the stream and everything I'm getting now
> is Dolby Digital.  It seems to be re-encoding the DTS stream to AC3 because
> I DO have surround sound, just no longer in DTS format.  mplayer still
> continues to work with DTS but I would rather play everything back with
> Myth's internal player.
>
> I've tried as many combinations of settings that I can think of and I've
> searched the lists, since I thought I recalled seeing someone else with this
> problem before, but I have not found a solution.  Can anyone help with the
> settings?  Or is this even possible?
>
> My current settings are:
>
> Audio output device: ALSA:spdif
> Speakers configuration: 5.1
> Upconvert stereo to 5.1: unchecked
> Upmix: Best
> Digital output device: ALSA:iec958:{ AES0 0x02 }
> Dolby Digital: checked
> DTS: checked
> Advanced Audio Config: unchecked
>
> I also have Use internal volume controls unchecked
>
> Thanks for any help.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

If you play the file with mythfrontend or mythavtest with the log
comment -v audio,playback you would probably get some information
about what's going on.

If DTS was decoded or not, with AC3 re-encoded or not etc.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
On 06/29/2010 08:49 PM, mythtv wrote:
> I just upgraded from 0.22 to 0.23. In 0.22, I had DTS passthrough working
> on my Zotac ION board going to my DTS receiver over the coax output. Both
> DTS and AC3 worked fine for mkv files in both myth and mplayer. DTS tracks
> would show up as DTS on the receiver so I had that confirmation before.
>
> Since upgrading to 0.23, I no longer get any DTS streams to the receiver.
> The receiver shows the format of the stream and everything I'm getting now
> is Dolby Digital. It seems to be re-encoding the DTS stream to AC3 because
> I DO have surround sound, just no longer in DTS format. mplayer still
> continues to work with DTS but I would rather play everything back with
> Myth's internal player.
>
> I've tried as many combinations of settings that I can think of and I've
> searched the lists, since I thought I recalled seeing someone else with this
> problem before, but I have not found a solution. Can anyone help with the
> settings? Or is this even possible?
>
> My current settings are:
>
> Audio output device: ALSA:spdif
> Speakers configuration: 5.1
> Upconvert stereo to 5.1: unchecked
> Upmix: Best
> Digital output device: ALSA:iec958:{ AES0 0x02 }
> Dolby Digital: checked
> DTS: checked
> Advanced Audio Config: unchecked
>
> I also have Use internal volume controls unchecked
>
> Thanks for any help.
>

Try ALSA:default (you may have to manually type that in).
I've never gotten digital pass through on ALSA:iec958 to work, all I ever get out of that is noise.
I have had digital pass through work on ALSA:default, but I always had to toggle the main mute button on the mixer before I got
anything but silence out of it.
I finally switched to the analog outputs on my motherboard because they support 7.1, and digital pass through usually is at best
5.1, and very rarely 6.1 with DTS-es discrete. Also it does not require messing with the mute button to make it work.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
>
> If you play the file with mythfrontend or mythavtest with the log
> comment -v audio,playback you would probably get some information
> about what's going on.
>
> If DTS was decoded or not, with AC3 re-encoded or not etc.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

So, the relevant log info is:

2010-06-30 01:32:19.446 AFD: Trying to select audio track (w/lang)
2010-06-30 01:32:19.446 AFD: Selected track 2: English DCA 5.1ch (A/V Stream
#2)
2010-06-30 01:32:19.446 AFD: Initializing audio parms from audio track #2
2010-06-30 01:32:19.446 AFD: Audio format changed
from id(NONE) -1Hz -1ch 0bps to id( DTS)
48000Hz 6ch 16bps
2010-06-30 01:32:19.452 AO: Reencoding decoded AC3/DTS to AC3
2010-06-30 01:32:19.452 AO: Killing AudioOutputDSP
2010-06-30 01:32:19.452 AO: Original audio codec was DTS
2010-06-30 01:32:19.452 AudioOutputALSA::GetSupportedRates opening iec958:{
AES0 0x02 }
2010-06-30 01:32:19.464 AO: Sample rate 44100 is supported
2010-06-30 01:32:19.464 AO: Sample rate 48000 is supported
2010-06-30 01:32:19.464 AO: Sample rate 96000 is supported
2010-06-30 01:32:19.464 AO: Creating AC-3 Encoder
2010-06-30 01:32:19.464 DEnc: Init codecid=AC3, br=448000, sr=48000, ch=6
2010-06-30 01:32:19.466 DigitalEncoder::Init fs=1536, bpf=12 ofb=18432
2010-06-30 01:32:19.466 Opening audio device 'spdif'. ch 2(6) sr 48000
(reenc 1)
2010-06-30 01:32:19.466 Setting IEC958 status: non-audio
2010-06-30 01:32:19.467 Opening ALSA audio device 'iec958:{ AES0 0x02 }'.
2010-06-30 01:32:19.469 in SetParameters(format=2, channels=2, rate=48000,
buffer_time=400000, period_time=25000)
2010-06-30 01:32:19.470 get_buffer_size returned 16384
2010-06-30 01:32:19.470 set_period_time_near returned 21333
2010-06-30 01:32:19.470 get_period_size returned 1024
2010-06-30 01:32:19.481 Setting volume to 100
2010-06-30 01:32:19.481 Setting volume to 100
2010-06-30 01:32:19.481 AO: Audio fragment size: 6144
2010-06-30 01:32:19.481 AO: Audio Stretch Factor: 1
2010-06-30 01:32:19.482 AO: Ending reconfigure

I see that what I assumed is correct, it is re-encoding the DTS to AC3.
Unfortunately, it doesn't really help me to know that. Can you tell from
this output why it would think it has to re-encode instead of just sending
the DTS to the receiver?

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
On 6/29/2010 20:49, mythtv wrote:

*snip*

> My current settings are:
>
> Audio output device: ALSA:spdif
> Speakers configuration: 5.1

*snip*

Unless I'm mistaken, that should be 2 speakers/stereo/whatever it calls it.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
> -----Original Message-----
> From: mythtv-users-bounces@mythtv.org
> [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of Justin
> The Cynical
> Sent: Wednesday, June 30, 2010 1:53 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] DTS Passthrough
>
> On 6/29/2010 20:49, mythtv wrote:
>
> *snip*
>
> > My current settings are:
> >
> > Audio output device: ALSA:spdif
> > Speakers configuration: 5.1
>
> *snip*
>
> Unless I'm mistaken, that should be 2
> speakers/stereo/whatever it calls it.

That doesn't help. Actually makes it worse. All of the passthru options go
away and I get no sound at all. Your idea jogged some memory and I thought
that might be it but still no go.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
After adding some more verbose statements, it seems that NuppleVideoPlayer
is returning false in the CanPassthrough call because the audioOutput var
is null. Is it trying to init the passthru too soon before the audio output
device is set up?
Re: DTS Passthrough [ In reply to ]
Hi

On 30 June 2010 16:52, Justin The Cynical <cynical@penguinness.org> wrote:
> Unless I'm mistaken, that should be 2 speakers/stereo/whatever it calls it.

You are mistaken :)

This is only true for mythtv <= 0.22
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
Hi

On 30 June 2010 17:30, mythtv <mythtv@moasat.dyndns.org> wrote:
> After adding some more verbose statements, it seems that NuppleVideoPlayer
> is returning false  in the CanPassthrough call because the audioOutput var
> is null.  Is it trying to init the passthru too soon before the audio output
> device is set up?

If you comment line #4642 is avformatdecoder:
passthru &= GetNVP()->CanPassthrough();

do you get DTS audio ?
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
On 6/30/10 1:03 AM, Jean-Yves Avenard wrote:
> Hi
>
> On 30 June 2010 16:52, Justin The Cynical <cynical@penguinness.org> wrote:
>> Unless I'm mistaken, that should be 2 speakers/stereo/whatever it calls it.
>
> You are mistaken :)
>
> This is only true for mythtv <= 0.22

I sit corrected. :-)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
> -----Original Message-----
> From: mythtv-users-bounces@mythtv.org
> [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of
> Jean-Yves Avenard
> Sent: Wednesday, June 30, 2010 3:20 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] DTS Passthrough
>
> Hi
>
> On 30 June 2010 17:30, mythtv <mythtv@moasat.dyndns.org> wrote:
> > After adding some more verbose statements, it seems that
> NuppleVideoPlayer
> > is returning false  in the CanPassthrough call because the
> audioOutput var
> > is null.  Is it trying to init the passthru too soon before
> the audio output
> > device is set up?
>
> If you comment line #4642 is avformatdecoder:
> passthru &= GetNVP()->CanPassthrough();
>
> do you get DTS audio ?
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

Yes, I do. I tried that figuring that it has already known that the codec
is either AC3 or DTS and that I've already told it to pass those through, it
might not matter whether the NVP thinks passthru is possible, although I'm
sure there are reasons why it should disable it at times.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
Hi

On 30 June 2010 21:43, mythtv <mythtv@moasat.dyndns.org> wrote:
> Yes, I do.  I tried that figuring that it has already known that the codec
> is either AC3 or DTS and that I've already told it to pass those through, it
> might not matter whether the NVP thinks passthru is possible, although I'm
> sure there are reasons why it should disable it at times.

I have identified the issue...
Fixing an earlier bug, caused all DTS or AC3 audio to be decoded then
re-encoded :(
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
Hi

On 30 June 2010 21:59, Jean-Yves Avenard <jyavenard@gmail.com> wrote:
> Hi
>
> On 30 June 2010 21:43, mythtv <mythtv@moasat.dyndns.org> wrote:
>> Yes, I do.  I tried that figuring that it has already known that the codec
>> is either AC3 or DTS and that I've already told it to pass those through, it
>> might not matter whether the NVP thinks passthru is possible, although I'm
>> sure there are reasons why it should disable it at times.
>
> I have identified the issue...
> Fixing an earlier bug, caused all DTS or AC3 audio to be decoded then
> re-encoded :(
>

Here is the fix:

Index: libs/libmythtv/avformatdecoder.cpp
===================================================================
--- libs/libmythtv/avformatdecoder.cpp (revision 25221)
+++ libs/libmythtv/avformatdecoder.cpp (working copy)
@@ -4713,6 +4713,13 @@
audioOut.do_passthru);

GetNVP()->ReinitAudio();
+ if (using_passthru != DoPassThrough(codec_ctx))
+ {
+ // detected audio capabilities changed half-way
+ // recheck audio stream
+ VERBOSE(VB_AUDIO, LOC + "Audio config changed. Rescanning");
+ return SetupAudioStream();
+ }

if (LCD *lcd = LCD::Get())
{
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
> -----Original Message-----
> From: mythtv-users-bounces@mythtv.org
> [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of
> Jean-Yves Avenard
> Sent: Wednesday, June 30, 2010 7:01 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] DTS Passthrough
>
> Hi
>
> Here is the fix:
>
> Index: libs/libmythtv/avformatdecoder.cpp
> ===================================================================
> --- libs/libmythtv/avformatdecoder.cpp (revision 25221)
> +++ libs/libmythtv/avformatdecoder.cpp (working copy)
> @@ -4713,6 +4713,13 @@
> audioOut.do_passthru);
>
> GetNVP()->ReinitAudio();
> + if (using_passthru != DoPassThrough(codec_ctx))
> + {
> + // detected audio capabilities changed half-way
> + // recheck audio stream
> + VERBOSE(VB_AUDIO, LOC + "Audio config changed. Rescanning");
> + return SetupAudioStream();
> + }
>
> if (LCD *lcd = LCD::Get())
> {

Thanks! I'll give it a try tonight after work and report back.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
> -----Original Message-----
> From: mythtv-users-bounces@mythtv.org
> [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of mythtv
> Sent: Wednesday, June 30, 2010 8:37 AM
> To: 'Discussion about mythtv'
> Subject: Re: [mythtv-users] DTS Passthrough
>
> Thanks! I'll give it a try tonight after work and report back.
>

I've confirmed that I'm getting DTS now but I'll have to check other stereo
and AC3 recordings to make sure they are also working as expected.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
On Wed, Jun 30, 2010 at 10:16 AM, mythtv <mythtv@moasat.dyndns.org> wrote:

> > -----Original Message-----
> > From: mythtv-users-bounces@mythtv.org
> > [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of mythtv
> > Sent: Wednesday, June 30, 2010 8:37 AM
> > To: 'Discussion about mythtv'
> > Subject: Re: [mythtv-users] DTS Passthrough
> >
> > Thanks! I'll give it a try tonight after work and report back.
> >
>
> I've confirmed that I'm getting DTS now but I'll have to check other stereo
> and AC3 recordings to make sure they are also working as expected.
>
>
So JYA, is this patch going to be included in your repo? Thanks!

Jim
Re: DTS Passthrough [ In reply to ]
> -----Original Message-----
> From: mythtv-users-bounces@mythtv.org
> [mailto:mythtv-users-bounces@mythtv.org] On Behalf Of mythtv
> Sent: Wednesday, June 30, 2010 10:17 AM
> To: 'Discussion about mythtv'
> Subject: Re: [mythtv-users] DTS Passthrough
>
> I've confirmed that I'm getting DTS now but I'll have to
> check other stereo
> and AC3 recordings to make sure they are also working as expected.

All recordings appear to be working correctly.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: DTS Passthrough [ In reply to ]
Hi

On 1 July 2010 01:20, James Oltman <cnlibmyth@gmail.com> wrote:
> So JYA, is this patch going to be included in your repo?  Thanks!

I'm not keen on this fix really...
The proper *fix* is with the new code currently in trunk.

For any playback, the audio card is opened/closed up to 4 times now !
(was 3 before)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users