dolby digital output
What would be involved in enabling 5.1-channel spdif output?
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
I'm willing to tackle some moderate coding, but I haven't attacked alsa internals at all yet... where's the best docs for that?
Quoted 4 lines · Hod McWuff
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
None of the available open source software AC3 encoders are fast enough to do realtime 5.1 encoding I think. The main task would be to try and optimize this. Outputting compressed AC3 frames through alsa is probably the easiest part (see http://www.alsaplayer.org for ac3play)
Andy
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Hi there!
Quoted 11 lines · On Sun, 17 Feb 2002 18:15:55 +0100 Andy Lo-A-Foe wrote:
Quoted 4 lines · Hod McWuff
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
None of the available open source software AC3 encoders are fast enough to do realtime 5.1 encoding I think. The main task would be to try and optimize this. Outputting compressed AC3 frames through alsa is probably the easiest part (see http://www.alsaplayer.org for ac3play)
Are there really any AC3 ENcoders? I thought only quite expensive (windows) software would be able to do that, because of Dolby's licensing. If there are any what would those be?
Regards
Markus Plail
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 1 line
From what I understand, we can do ac3 "like" encoders in linux for free, and
they might actually make sounds come out on Commercial AC3 decoders, but unless we pay a license fee, we cannot actually call it AC3. This is why we now have the "liba52" decoder which just happens to work quite nicely on ac3 input.
I don't see why we could not also do a liba52 encoder.
I think that if anyone started making a lot of money from liba52, then Dolby would probably start asking for some royalties.
But there is no point in them making a fuss yet because there is no money involved.
Cheers
James
Quoted 28 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Markus Plail
Sent: 17 February 2002 17:48
To: [email protected]
Subject: Re: [Alsa-devel] dolby digital outputHi there!
Quoted 11 lines · On Sun, 17 Feb 2002 18:15:55 +0100 Andy Lo-A-Foe wrote:
Quoted 4 lines · Hod McWuff
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
None of the available open source software AC3 encoders are fast enough to do realtime 5.1 encoding I think. The main task would be to try and optimize this. Outputting compressed AC3 frames through alsa is probably the easiest part (see http://www.alsaplayer.org for ac3play)
Are there really any AC3 ENcoders? I thought only quite expensive (windows) software would be able to do that, because of Dolby's licensing. If there are any what would those be?
Quoted 7 lines
Regards
Markus Plail_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 5 lines · James Courtier-Dutton
Quoted 1 line
From what I understand, we can do ac3 "like" encoders in linux for free, and
they might actually make sounds come out on Commercial AC3 decoders, but unless we pay a license fee, we cannot actually call it AC3. This is why we now have the "liba52" decoder which just happens to work quite nicely on ac3 input.
I'm a little dubious about that. It's possible to write a Free pro-logic compatible encoder (I have), as most of the technology predates dobly, but it can't, legally be 100% compatible for licencing reasons. AC3 is much more complicated, and you couldn't feasibly reproduce the encoded output without having followed the spec (unless I'm missing something).
Not that Free software with dubious legality is anything new ;)
- Steve
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 5 lines · Steve Harris
I'm a little dubious about that. It's possible to write a Free pro-logic compatible encoder (I have), as most of the technology predates dobly, but it can't, legally be 100% compatible for licencing reasons. AC3 is much more complicated, and you couldn't feasibly reproduce the encoded output without having followed the spec (unless I'm missing something).
Sorry, I was wrong. The situation is very simmilar. It could be entirly legal to produce a stream that is ATSC52 compliant, and therefore AC3 compatible, you just can't call it Dolby Digital, etc.
The standards document is not very clear on the patent situation.
PC's should just about be able to do AC3 encoding in realtime too, last time I tried it was way off, but that was on a 400MHz PII or similar.
- Steve
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 3 lines · Steve Harris
AC3 is much
more complicated, and you couldn't feasibly reproduce the encoded output without having followed the spec (unless I'm missing something).
Assuming you haven't signed (or clicked "yes" on) any agreement in order to get the spec, I can't see what they can legally do. Unless there's software patents, but those are US-specific anyhow (for the moment) so they don't really matter.
Bob
Signature · 15 lines
Bob Ham: [email protected] My music: http://mp3.com/obelisk_uk GNU Hurd: http://hurd.gnu.org/ Do your bit for UK drugs law reform: http://www.angeldeclaration.com/ A pessimist expects the weather to get worse. An optimist hopes it will improve. A realist adjusts the sails. _______________________________________________ Alsa-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 8 lines · Bob Ham
Quoted 3 lines
AC3 is much
more complicated, and you couldn't feasibly reproduce the encoded output without having followed the spec (unless I'm missing something).Assuming you haven't signed (or clicked "yes" on) any agreement in order to get the spec, I can't see what they can legally do. Unless there's software patents, but those are US-specific anyhow (for the moment) so they don't really matter.
Well, it might be illegal to distribure in the US, and the US has been keen to arrest people for breaking US laws in other parts of the world before... especially when large corporation are involved.
- Steve
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Sun, 17 Feb 2002 18:47:35 +0100,
Quoted 12 lines · Markus Plail
Hi there!
Quoted 7 lines · On Sun, 17 Feb 2002 18:15:55 +0100 Andy Lo-A-Foe wrote:
Quoted 4 lines · Hod McWuff
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
Quoted 8 lines
Quoted 4 lines
None of the available open source software AC3 encoders are fast enough to do realtime 5.1 encoding I think. The main task would be to try and optimize this. Outputting compressed AC3 frames through alsa is probably the easiest part (see http://www.alsaplayer.org for ac3play)
Are there really any AC3 ENcoders? I thought only quite expensive (windows) software would be able to do that, because of Dolby's licensing. If there are any what would those be?
ffmpeg can encode ac3, too.
i once made a patch to allow 5.1 encoding. it seemed working, at least for tests.
not sure how they handle this license problem, though..
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Any AC3 or DTS takes some time to decode even with an external decoder. The nice thing about them is that the standard tell us that they are fixed latency decoders.
So, AC3 decoder will take a fixed amount of time to take a digital SPDIF in and convert it to 6 analogue out's for your speakers.
The delay is long enough to make it not suitable for low latency applications like games and telephony.
Some applications which don't care about the latency, but only care that it is predictable work ok with AC3 audio.
E.G. DVD playing. The latency of decode does not matter, what matters is if we can predict the latency so we can keep audio and video in sync.
If you then add an encoder, so you can mix streams, you add to the latency again.
PCM is the audio amplitude sampled at fixed time periods.
These samples can translated into samples in the frequency domain using the Fast Fourier Transform, thus giving the amplitude of certain frequencies at certain times.
These samples in the frequency domain is what is contained in AC3. If you could mix the channels in the frequency domain instead of the PCM domain, you could save a lot of CPU time.
Before: -
1) AC3 stream from DVD
2) decode to 6 PCM channel
3) Mix with other PCM source
4) 6 PCM to AC3 encoding
5) SPDIF out.
6) External decoder.
7) speakers.
After: -
1) encode other PCM source into AC3.
2) mix DVD's AC3 with other sources AC3 using a frequency domain mixer.
3) SPDIF out.
4) External decoder
5) speakers.
Notice that alsa just provides the SPDIF out bit, nothing else. ALSA knows nothing of AC3 or DTS. It just outputs the digital stream without modifying it.
I think it would be best for your application to do the mixing.
Cheers
James
Quoted 12 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Hod McWuff
Sent: 17 February 2002 06:34
To: [email protected]
Subject: [Alsa-devel] dolby digital outputWhat would be involved in enabling 5.1-channel spdif output?
Quoted 9 lines
I'd imagine the first step would be to add an ac3 encoder, and then (possibly) the 2->5.1 channel demuxing for stereo streams. This would result in the ability to mix dolby digital streams (DVD's) with more mundane PCM streams, such as IM or telephony apps.
I'm willing to tackle some moderate coding, but I haven't attacked alsa internals at all yet... where's the best docs for that?
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel