Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

AC3 and/or S/PDIF (again)

 

 

First page Previous page 1 2 3 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded


minutemaidpark at hotmail

Jan 18, 2006, 7:33 PM

Post #1 of 51 (1940 views)
Permalink
AC3 and/or S/PDIF (again)

This is a new one for me...

I am running subversion from yesterday, and I cannot for the life of me get
S/PDIF to send a 5.1 signal to my receiver. Xine works fine. Mplayer works
fine with Myth recordings. But Myth does strange things. When I start a
program, it may stutter then go out for ten seconds then start back up for a
couple of seconds. If I turn off AC3 pass through, then everything works
fine, but it's only two channel sound. Any help would be most appreciated,
because this is driving me insane.

Thanks in advance, and I'd be more than happy to provide more information if
it will help.
Will Lewis


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adam at propeck

Jan 18, 2006, 11:34 PM

Post #2 of 51 (1921 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

I'm having something similar that's driving me batty. I tried to switch to
/dev/adsp for my sound device, but it can't initialize audio when I do that.
If I keep /dev/dsp as the sound device and enable passthrough, I get
horrible noises eminating from my receiver. I've got a Sound Blaster Audigy
2 and I'm going from 1/8" phono plug to RCA to my receiver's Coax digital
input. I've successfully used this method from my Windows computer in the
past to send digital audio. What am I doing wrong?

On 1/18/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>
> This is a new one for me...
>
> I am running subversion from yesterday, and I cannot for the life of me
> get
> S/PDIF to send a 5.1 signal to my receiver. Xine works fine. Mplayer
> works
> fine with Myth recordings. But Myth does strange things. When I start a
> program, it may stutter then go out for ten seconds then start back up for
> a
> couple of seconds. If I turn off AC3 pass through, then everything works
> fine, but it's only two channel sound. Any help would be most
> appreciated,
> because this is driving me insane.
>
> Thanks in advance, and I'd be more than happy to provide more information
> if
> it will help.
> Will Lewis
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


masterclc at gmail

Jan 19, 2006, 12:17 AM

Post #3 of 51 (1917 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 1/19/06, Adam Propeck <adam [at] propeck> wrote:
> I'm having something similar that's driving me batty. I tried to switch to
> /dev/adsp for my sound device, but it can't initialize audio when I do that.
> If I keep /dev/dsp as the sound device and enable passthrough, I get
> horrible noises eminating from my receiver. I've got a Sound Blaster Audigy
> 2 and I'm going from 1/8" phono plug to RCA to my receiver's Coax digital
> input. I've successfully used this method from my Windows computer in the
> past to send digital audio. What am I doing wrong?
>
>
> On 1/18/06, William Lewis <minutemaidpark [at] hotmail> wrote:
> > This is a new one for me...
> >
> > I am running subversion from yesterday, and I cannot for the life of me
> get
> > S/PDIF to send a 5.1 signal to my receiver. Xine works fine. Mplayer
> works
> > fine with Myth recordings. But Myth does strange things. When I start a
> > program, it may stutter then go out for ten seconds then start back up for
> a
> > couple of seconds. If I turn off AC3 pass through, then everything works
> > fine, but it's only two channel sound. Any help would be most
> appreciated,
> > because this is driving me insane.
> >
> > Thanks in advance, and I'd be more than happy to provide more information
> if
> > it will help.
> > Will Lewis
> >
> >
> > _______________________________________________

To both of you, when I finally broke down and used Myth's internal
alsa controls, everything went smooth from there. My Audio Output
Device is:
ALSA:default

You can use something similar, maybe ALSA:spdif

Good Luck!

Chad
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


marius at schrecker

Jan 19, 2006, 2:31 AM

Post #4 of 51 (1927 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

> On 1/19/06, Adam Propeck <adam [at] propeck> wrote:
>> I'm having something similar that's driving me batty. I tried to switch
>> to
>> /dev/adsp for my sound device, but it can't initialize audio when I do
>> that.
>> If I keep /dev/dsp as the sound device and enable passthrough, I get
>> horrible noises eminating from my receiver. I've got a Sound Blaster
>> Audigy
>> 2 and I'm going from 1/8" phono plug to RCA to my receiver's Coax
>> digital
>> input. I've successfully used this method from my Windows computer in
>> the
>> past to send digital audio. What am I doing wrong?
>>
>>
>> On 1/18/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>> > This is a new one for me...
>> >
>> > I am running subversion from yesterday, and I cannot for the life of
>> me
>> get
>> > S/PDIF to send a 5.1 signal to my receiver. Xine works fine. Mplayer
>> works
>> > fine with Myth recordings. But Myth does strange things. When I
>> start a
>> > program, it may stutter then go out for ten seconds then start back up
>> for
>> a
>> > couple of seconds. If I turn off AC3 pass through, then everything
>> works
>> > fine, but it's only two channel sound. Any help would be most
>> appreciated,
>> > because this is driving me insane.
>> >
>> > Thanks in advance, and I'd be more than happy to provide more
>> information
>> if
>> > it will help.
>> > Will Lewis
>> >
>> >
>> > _______________________________________________
>
> To both of you, when I finally broke down and used Myth's internal
> alsa controls, everything went smooth from there. My Audio Output
> Device is:
> ALSA:default
>
> You can use something similar, maybe ALSA:spdif
>
Does this mean that we no longer need a ~/.asoundrc?

I never did get igital out working as it was intended, have posted both
here and on the alsa mailing list, but nobody had anything to say about
spdif out only working using the analog settings (as per digital sound
howto), and yes, I double checked my devices (nforce 4).

Marius
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


philledwards at gmail

Jan 19, 2006, 5:00 AM

Post #5 of 51 (1906 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

> I never did get igital out working as it was intended, have posted both
> here and on the alsa mailing list, but nobody had anything to say about
> spdif out only working using the analog settings (as per digital sound
> howto), and yes, I double checked my devices (nforce 4).

Here's my .asoundrc. Hope it helps. Note - ignore the Audigy comments.
I actually have on-board intel sound.

### This is taken from Jarod Wilson's MythTV HOWTO which in turn
### took it from the DigitalSoundHowTo at http://www.mythtv.info
# 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).
### Currently set w/digital-hw as the default output,
### comment out this entire section to use unmixed
### analog as your default
### -jarod
pcm.!default {
type plug
## 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"
}

# Alias for analog output on the Audigy (hw:0,0)
# - 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 Audigy
pcm.analog {
type plug
slave.pcm "analog-hw"
}

# Control device (mixer, etc.) for the Audigy card
ctl.analog {
type hw
card 0
}

# Alias for (rate-converted) mixed analog output on the
# Audigy (hw:0,0)
# - This will accept audio input--regardless of rate--and
# convert to the rate required for the dmix plugin
# (in this case 48000Hz)
pcm.mixed-analog {
type plug
slave.pcm "dmix-analog"
}

# Control device (mixer, etc.) for the Audigy card
ctl.mixed-analog {
type hw
card 0
}

# Alias for (rate-converted) digital (S/PDIF) output on the
# Audigy (hw:0,0)
# - 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 Audigy card
ctl.digital {
type hw
card 0
}

# Alias for mixed (rate-converted) digital (S/PDIF) output on the
# Audigy (hw:0,0)
# - 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 Audigy 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 Audigy (hw:0,0)
# 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
}

# Control device (mixer, etc.) for the Audigy card
ctl.analog-hw {
type hw
card 0
}

# Alias for digital (S/PDIF) output on the Audigy (hw:0,0)
# Do not use this directly--it requires specific rate,
# channels, and format
pcm.digital-hw {
type hw
card 0
device 4
}

# Control device (mixer, etc.) for the Audigy card
ctl.digital-hw {
type hw
card 0
}

# Direct software mixing plugin for analog output on
# the Audigy (hw:0,0)
# 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 Audigy card
ctl.dmix-analog {
type hw
card 0
}

# Direct software mixing plugin for digital (S/PDIF) output
# on the Audigy (hw:0,0)
# 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 Audigy card
ctl.dmix-digital {
type hw
card 0
}


Regards,
Phill
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


minutemaidpark at hotmail

Jan 19, 2006, 6:52 AM

Post #6 of 51 (1892 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

>To both of you, when I finally broke down and used Myth's internal
>alsa controls, everything went smooth from there. My Audio Output
>Device is:
>ALSA:default

I am using ALSA:default also... What are you doing for volume control and
mixer device? And when I uncheck the AC3 passthrough box, everything is
sent to the receiver fine... Just no 5.1.


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adam at propeck

Jan 19, 2006, 7:56 AM

Post #7 of 51 (1896 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

So if I only show /dev/dsp and /dev/adsp in my device list, does that mean I
don't have Alsa support compiled in? I'm not seeing anything other than
those two devices. I assumed that /dev/adsp was the ALSA device.

On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>
>
> >To both of you, when I finally broke down and used Myth's internal
> >alsa controls, everything went smooth from there. My Audio Output
> >Device is:
> >ALSA:default
>
> I am using ALSA:default also... What are you doing for volume control and
> mixer device? And when I uncheck the AC3 passthrough box, everything is
> sent to the receiver fine... Just no 5.1.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


minutemaidpark at hotmail

Jan 19, 2006, 8:01 AM

Post #8 of 51 (1908 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

>From: Adam Propeck <adam [at] propeck>
>Reply-To: Discussion about mythtv <mythtv-users [at] mythtv>
>To: Discussion about mythtv <mythtv-users [at] mythtv>
>Subject: Re: [mythtv-users] AC3 and/or S/PDIF (again)
>Date: Thu, 19 Jan 2006 09:56:13 -0600
>
>So if I only show /dev/dsp and /dev/adsp in my device list, does that mean
>I
>don't have Alsa support compiled in? I'm not seeing anything other than
>those two devices. I assumed that /dev/adsp was the ALSA device.
>

I have to manually type in ALSA:default for audio device, and default for
mixer device. (Or whatever, same as mplayer's device argument, e.g. mplayer
-ao alsa:device=default == mythtv ALSA:default). Myth detected that I had
ALSA automatically, and IIRC, /dev/dsp does actually map to ALSA:hw0,0. But
don't quote me on that. Try aplay -L for a list of ALSA devices available
on your system.

Will


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


johan.kihlstrom at bredband

Jan 19, 2006, 8:01 AM

Post #9 of 51 (1912 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

No, it doesn't mean that it's not compiled in. You have to type in the
ALSA:default setting to make it work.

Hope that helps!

Johan

tor 2006-01-19 klockan 09:56 -0600 skrev Adam Propeck:
> So if I only show /dev/dsp and /dev/adsp in my device list, does that
> mean I don't have Alsa support compiled in? I'm not seeing anything
> other than those two devices. I assumed that /dev/adsp was the ALSA
> device.
>
> On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>
> >To both of you, when I finally broke down and used Myth's
> internal
> >alsa controls, everything went smooth from there. My Audio
> Output
> >Device is:
> >ALSA:default
>
> I am using ALSA:default also... What are you doing for volume
> control and
> mixer device? And when I uncheck the AC3 passthrough box,
> everything is
> sent to the receiver fine... Just no 5.1.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adam at propeck

Jan 19, 2006, 8:10 AM

Post #10 of 51 (1912 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

Thanks Johan and Will! I'll check this out tonight!

On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>
>
>
>
> >From: Adam Propeck <adam [at] propeck>
> >Reply-To: Discussion about mythtv <mythtv-users [at] mythtv>
> >To: Discussion about mythtv <mythtv-users [at] mythtv>
> >Subject: Re: [mythtv-users] AC3 and/or S/PDIF (again)
> >Date: Thu, 19 Jan 2006 09:56:13 -0600
> >
> >So if I only show /dev/dsp and /dev/adsp in my device list, does that
> mean
> >I
> >don't have Alsa support compiled in? I'm not seeing anything other than
> >those two devices. I assumed that /dev/adsp was the ALSA device.
> >
>
> I have to manually type in ALSA:default for audio device, and default for
> mixer device. (Or whatever, same as mplayer's device argument, e.g.
> mplayer
> -ao alsa:device=default == mythtv ALSA:default). Myth detected that I had
> ALSA automatically, and IIRC, /dev/dsp does actually map to
> ALSA:hw0,0. But
> don't quote me on that. Try aplay -L for a list of ALSA devices available
> on your system.
>
> Will
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


masterclc at gmail

Jan 19, 2006, 11:32 AM

Post #11 of 51 (1898 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
>
> >To both of you, when I finally broke down and used Myth's internal
> >alsa controls, everything went smooth from there. My Audio Output
> >Device is:
> >ALSA:default
>
> I am using ALSA:default also... What are you doing for volume control and
> mixer device? And when I uncheck the AC3 passthrough box, everything is
> sent to the receiver fine... Just no 5.1.
>
>
> _______________________________________________

Everything is running into my AV Receiver, that's where my volume is
controlled. I uncheck the box for internal volume controls. There
was a post to the list a while back on how to send everything out over
the spdif, and have your receiver decide if it's AC3 or PCM, the key
was in the .asoundrc. I can't find it off hand, but a bit of a search
will probably turn it up, it was probably in the last 2 weeks.

Chad
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


minutemaidpark at hotmail

Jan 19, 2006, 11:58 AM

Post #12 of 51 (1891 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

>Everything is running into my AV Receiver, that's where my volume is
>controlled. I uncheck the box for internal volume controls. There
>was a post to the list a while back on how to send everything out over
>the spdif, and have your receiver decide if it's AC3 or PCM, the key
>was in the .asoundrc. I can't find it off hand, but a bit of a search
>will probably turn it up, it was probably in the last 2 weeks.
>
>Chad

I came across something while browsing through the developer's mailing
list... Do you have "Enable video as timebase" checked or unchecked?


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


masterclc at gmail

Jan 19, 2006, 12:15 PM

Post #13 of 51 (1905 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
> >Everything is running into my AV Receiver, that's where my volume is
> >controlled. I uncheck the box for internal volume controls. There
> >was a post to the list a while back on how to send everything out over
> >the spdif, and have your receiver decide if it's AC3 or PCM, the key
> >was in the .asoundrc. I can't find it off hand, but a bit of a search
> >will probably turn it up, it was probably in the last 2 weeks.
> >
> >Chad
>
> I came across something while browsing through the developer's mailing
> list... Do you have "Enable video as timebase" checked or unchecked?
>
>
> _______________________________________________

Unchecked, although I hear it's probably a good idea to have it
checked; but since my system is running problem free, I leave it as
is.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


masterclc at gmail

Jan 19, 2006, 12:17 PM

Post #14 of 51 (1900 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 1/19/06, Chad <masterclc [at] gmail> wrote:
> On 1/19/06, William Lewis <minutemaidpark [at] hotmail> wrote:
> > >Everything is running into my AV Receiver, that's where my volume is
> > >controlled. I uncheck the box for internal volume controls. There
> > >was a post to the list a while back on how to send everything out over
> > >the spdif, and have your receiver decide if it's AC3 or PCM, the key
> > >was in the .asoundrc. I can't find it off hand, but a bit of a search
> > >will probably turn it up, it was probably in the last 2 weeks.
> > >
> > >Chad
> >
> > I came across something while browsing through the developer's mailing
> > list... Do you have "Enable video as timebase" checked or unchecked?
> >
> >
> > _______________________________________________
>
> Unchecked, although I hear it's probably a good idea to have it
> checked; but since my system is running problem free, I leave it as
> is.
>


Found the thread, here's the quote:
---------------------------------------------------------------------------------------------------------------------
To answer myself my own question: yes, it is possible. The
following .asoundrc (have spent whole evening on figuring it out :-)
does exactly what I always wanted:
=========
pcm.!default {
type plug
slave {
pcm "spdif"
rate 48000
format S16_LE
}
}
=========
BTW, the "format" line might not even be necessary. The key is the "rate
48000" (converts 32 and 44 kHz to SPDIF's 48 kHz) and pcm
"spdif" (routes sound via the digital out). With this and "ALSA:default"
set up everywhere (both TV and Music) everything plays correctly via the
digital out, including real digital AC3 5.1 passthrough sound from HD
channels. I am excited!
------------------------------------------------------------------------------------------------------------------

If I had found it on gossamer I'd link you to it, but I found it in my
email archives, so it won't do you much good ;)

Chad
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


knowledgejunkie at gmail

Jan 19, 2006, 1:45 PM

Post #15 of 51 (1891 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 19/01/06, Chad <masterclc [at] gmail> wrote:

> Found the thread, here's the quote:
> ---------------------------------------------------------------------------------------------------------------------
> To answer myself my own question: yes, it is possible. The
> following .asoundrc (have spent whole evening on figuring it out :-)
> does exactly what I always wanted:
> =========
> pcm.!default {
> type plug
> slave {
> pcm "spdif"
> rate 48000
> format S16_LE
> }
> }
> =========
> BTW, the "format" line might not even be necessary. The key is the "rate
> 48000" (converts 32 and 44 kHz to SPDIF's 48 kHz) and pcm
> "spdif" (routes sound via the digital out). With this and "ALSA:default"
> set up everywhere (both TV and Music) everything plays correctly via the
> digital out, including real digital AC3 5.1 passthrough sound from HD
> channels. I am excited!
> ------------------------------------------------------------------------------------------------------------------
>
> If I had found it on gossamer I'd link you to it, but I found it in my
> email archives, so it won't do you much good ;)

Here's the link:

http://www.gossamer-threads.com/lists/mythtv/users/172897

Nick
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


minutemaidpark at hotmail

Jan 19, 2006, 3:47 PM

Post #16 of 51 (1908 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

For anyone following the thread, once "Use video as timebase" was disabled,
everything worked perfectly. The trick was to have everything with AC3
passed through by Myth and to have everything else sampled to 48000 Hz for
output via PCM. ALSA made this second part possible. Thanks for everyone's
help.

Will


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Jan 19, 2006, 5:10 PM

Post #17 of 51 (1899 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On 01/19/2006 06:47 PM, William Lewis wrote:
> For anyone following the thread, once "Use video as timebase" was disabled,
> everything worked perfectly. The trick was to have everything with AC3
> passed through by Myth and to have everything else sampled to 48000 Hz for
> output via PCM. ALSA made this second part possible. Thanks for everyone's
> help.
>
Yeah. Shouldn't "video as timebase" be disabled if "AC-3 Passthrough"
is enabled and there's an AC-3 stream? (Kind of like AC-3 is disabled
when the user initiates timestretch--at least until Mark finishes his
AC-3 re-encode work.)

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


funaho at jurai

Jan 19, 2006, 7:10 PM

Post #18 of 51 (1902 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On Thu, 2006-01-19 at 21:45 +0000, Nick wrote:
> On 19/01/06, Chad <masterclc [at] gmail> wrote:
>
> > Found the thread, here's the quote:
> > ---------------------------------------------------------------------------------------------------------------------
> > To answer myself my own question: yes, it is possible. The
> > following .asoundrc (have spent whole evening on figuring it out :-)
> > does exactly what I always wanted:
> > =========
> > pcm.!default {
> > type plug
> > slave {
> > pcm "spdif"
> > rate 48000
> > format S16_LE
> > }
> > }
> > =========
> > BTW, the "format" line might not even be necessary. The key is the "rate
> > 48000" (converts 32 and 44 kHz to SPDIF's 48 kHz) and pcm
> > "spdif" (routes sound via the digital out). With this and "ALSA:default"
> > set up everywhere (both TV and Music) everything plays correctly via the
> > digital out, including real digital AC3 5.1 passthrough sound from HD
> > channels. I am excited!
> > ------------------------------------------------------------------------------------------------------------------
> >
> > If I had found it on gossamer I'd link you to it, but I found it in my
> > email archives, so it won't do you much good ;)
>
> Here's the link:
>
> http://www.gossamer-threads.com/lists/mythtv/users/172897

This thread inspired me to take another crack at making AC3 work in myth
(it never has before, been trying since 0.17). It works fine in mplayer
so I know the hardware is set up correctly. But after much messing
around I *finally* figured out what's going on. Here's what I
discovered:

play regular PVR350 recording (48 KHz audio): works fine
play HDTV recording with AC3 audio: brief burst of noise/audio and then
silence

Now, if I run "iecset audio off" and then play a file with AC3 I get AC3
audio, but of course then regular audio doesn't play until I "iecset
audio on" again. Seems myth isn't flipping this setting on the device
when doing AC3 pass-through (at least, as of SVN 8571). I peeked at the
Mplayer source and it looks like it's as simple as appending some data
to the device name, like so:

ALSA:iec958:{ AES0 0x02 }

And in fact if I set this as the device in Myth then I can play AC3
(though not regular audio, of course.)

Any ideas? I can't seem to make the receiver ignore this bit and buying
a new one isn't really an option at this point.

Now I'd be happy to make this patch to libmyth to alter the device name
as needed but I can't see any spot where the actual format of the audio
stream is being passed down to the library; it looks like at this level
the format is just S16_LE with no markers as to whether or not it's
actually AC3/DTS data.

--
Joshua M Thompson <funaho [at] jurai>

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


minutemaidpark at hotmail

Jan 19, 2006, 7:11 PM

Post #19 of 51 (1883 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

>Yeah. Shouldn't "video as timebase" be disabled if "AC-3 Passthrough"
>is enabled and there's an AC-3 stream? (Kind of like AC-3 is disabled
>when the user initiates timestretch--at least until Mark finishes his
>AC-3 re-encode work.)
>
>Mike

The only difficulty is an implementation detail. Since the settings are on
different screens, the setting for "Use video as timebase" would have to be
tri-state: Off, On, Was on but ac3 is disabled. Another 2 cents worth. If
the user goes from AC3 passthrough off to on, this would disable the video
as timebase. Well, if he changes his mind, it should go back to being on.
However, if it was off the whole time, then changing the AC3 setting
wouldn't matter.

Will


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarod at wilsonet

Jan 19, 2006, 7:25 PM

Post #20 of 51 (1886 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On Thursday 19 January 2006 19:11, William Lewis wrote:
> >Yeah. Shouldn't "video as timebase" be disabled if "AC-3 Passthrough"
> >is enabled and there's an AC-3 stream? (Kind of like AC-3 is disabled
> >when the user initiates timestretch--at least until Mark finishes his
> >AC-3 re-encode work.)
> >
> >Mike
>
> The only difficulty is an implementation detail. Since the settings are on
> different screens, the setting for "Use video as timebase" would have to be
> tri-state: Off, On, Was on but ac3 is disabled. Another 2 cents worth. If
> the user goes from AC3 passthrough off to on, this would disable the video
> as timebase. Well, if he changes his mind, it should go back to being on.
> However, if it was off the whole time, then changing the AC3 setting
> wouldn't matter.

How 'bout simply disabling 'use video as timebase' at run-time when passing
raw AC3, regardless of what 'use video as timebase' is set to.

--
Jarod Wilson
jarod [at] wilsonet


adam at propeck

Jan 19, 2006, 7:47 PM

Post #21 of 51 (1901 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

I changed my device to ALSA:spdif and the mixer to default and BAM! I've got
dolby digital coming out. I'm using Jarod's .asoundrc file and it seems to
be working great. Thanks everyone!

On 1/19/06, Jarod Wilson <jarod [at] wilsonet> wrote:
>
> On Thursday 19 January 2006 19:11, William Lewis wrote:
> > >Yeah. Shouldn't "video as timebase" be disabled if "AC-3 Passthrough"
> > >is enabled and there's an AC-3 stream? (Kind of like AC-3 is disabled
> > >when the user initiates timestretch--at least until Mark finishes his
> > >AC-3 re-encode work.)
> > >
> > >Mike
> >
> > The only difficulty is an implementation detail. Since the settings are
> on
> > different screens, the setting for "Use video as timebase" would have to
> be
> > tri-state: Off, On, Was on but ac3 is disabled. Another 2 cents
> worth. If
> > the user goes from AC3 passthrough off to on, this would disable the
> video
> > as timebase. Well, if he changes his mind, it should go back to being
> on.
> > However, if it was off the whole time, then changing the AC3 setting
> > wouldn't matter.
>
> How 'bout simply disabling 'use video as timebase' at run-time when
> passing
> raw AC3, regardless of what 'use video as timebase' is set to.
>
> --
> Jarod Wilson
> jarod [at] wilsonet
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>
>


ben at vanilla

Jan 20, 2006, 3:26 AM

Post #22 of 51 (1878 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

> I changed my device to ALSA:spdif and the mixer to default and BAM!
> I've got
> dolby digital coming out. I'm using Jarod's .asoundrc file and it
> seems to
> be working great. Thanks everyone!
>


Do you have volume control via myth with this method?

I can get all my audio output through the spdif connector, but can
not find anyway of controlling the volume via myth (this would be my
preferred option as I like the on screen volume display).

My amp is in a different room (as is the myth box for that matter).
So I would not have any visual indication of mute or volume level if
I don't do it via the on screen display.

Ben


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adam at propeck

Jan 20, 2006, 4:47 AM

Post #23 of 51 (1882 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

If/when I get my VGforMyth volume to recreate/mount I can check this.

On 1/20/06, Ben Suffolk <ben [at] vanilla> wrote:
>
> > I changed my device to ALSA:spdif and the mixer to default and BAM!
> > I've got
> > dolby digital coming out. I'm using Jarod's .asoundrc file and it
> > seems to
> > be working great. Thanks everyone!
> >
>
>
> Do you have volume control via myth with this method?
>
> I can get all my audio output through the spdif connector, but can
> not find anyway of controlling the volume via myth (this would be my
> preferred option as I like the on screen volume display).
>
> My amp is in a different room (as is the myth box for that matter).
> So I would not have any visual indication of mute or volume level if
> I don't do it via the on screen display.
>
> Ben
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


minutemaidpark at hotmail

Jan 20, 2006, 5:11 AM

Post #24 of 51 (1881 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

>Do you have volume control via myth with this method?
>
>I can get all my audio output through the spdif connector, but can
>not find anyway of controlling the volume via myth (this would be my
>preferred option as I like the on screen volume display).
>
>My amp is in a different room (as is the myth box for that matter).
>So I would not have any visual indication of mute or volume level if
>I don't do it via the on screen display.
>
>Ben

No, Ben, I don't. And, as I understand it, this is impossible. Since we're
just passing through a digital signal to the receiver, it's all up to the
receiver to deal with it. In order to change the volume, we would need to
decode the audio, sample down the volume, reencode it, then pass it on to
the receiver. Maybe it's possible, but it certainly is not very efficient.
And, by the way, this is all just speculation. I don't really know how it
works, but my explanation made sense to me.

Sorry,
Will


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarod at wilsonet

Jan 20, 2006, 8:33 AM

Post #25 of 51 (1884 views)
Permalink
Re: AC3 and/or S/PDIF (again) [In reply to]

On Friday 20 January 2006 05:11, William Lewis wrote:
> >Do you have volume control via myth with this method?
> >
> >I can get all my audio output through the spdif connector, but can
> >not find anyway of controlling the volume via myth (this would be my
> >preferred option as I like the on screen volume display).
> >
> >My amp is in a different room (as is the myth box for that matter).
> >So I would not have any visual indication of mute or volume level if
> >I don't do it via the on screen display.
>
> No, Ben, I don't. And, as I understand it, this is impossible. Since
> we're just passing through a digital signal to the receiver, it's all up to
> the receiver to deal with it. In order to change the volume, we would need
> to decode the audio, sample down the volume, reencode it, then pass it on
> to the receiver. Maybe it's possible, but it certainly is not very
> efficient. And, by the way, this is all just speculation. I don't really
> know how it works, but my explanation made sense to me.

And your explanation is more or less correct. If you're passing raw digital
audio, its completely raw, you can't controll its volume level. Might be best
to let Myth do the audio decoding and pass PCM audio instead of raw digital
audio. Could also try to rig up something with an irblaster if you're dead
set on having the amp in a different room and passing raw audio.

--
Jarod Wilson
jarod [at] wilsonet

First page Previous page 1 2 3 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.