| 1 |
|
| 2 |
|
| 3 |
A C 3 p a s s - t h r o u g h H O W T O |
| 4 |
|
| 5 |
!!!NOTE!!!: |
| 6 |
This plugin is intended to be used only by those who own the |
| 7 |
audio device which is capable to recive AC3 audio data stream via |
| 8 |
digital line. If you want to listen AC3 though your sound card |
| 9 |
DO NOT USE this plugin - instead put ahead some AC3 decoding plugin |
| 10 |
(at this moment FFMPEG AC3 decoder) |
| 11 |
|
| 12 |
|
| 13 |
Some notes about usage of AC3 passthrough with aviplay: |
| 14 |
|
| 15 |
Files: ac3-iec958.c ac3-iec958.h play-ac3.c are copied from emu10k1 CVS |
| 16 |
|
| 17 |
AC3 pass-through has been developed and tested only with |
| 18 |
my quite old SBLive card together with Dolby Digital AV receiver |
| 19 |
Yamaha RX-V42ORDS within 1 day and I do not have regular access to this |
| 20 |
device - if there is bug - you will have to help me to fix it !! |
| 21 |
|
| 22 |
For AC3 signal transmition 5m long 75ohm standard coaxial cable has been used |
| 23 |
(just that you should know you don't really have to buy expensive |
| 24 |
metal cable or even optical cables for such thing - you want to transfer |
| 25 |
just few bits - they will not look better with optical cable - and bitrate |
| 26 |
is just 384kbps. |
| 27 |
|
| 28 |
Last test has been made with kernel: |
| 29 |
2.4.19-pre7 and emu10k1 driver from sourceforge (emu10k1.sf.net) |
| 30 |
CVS 2001/08/17 |
| 31 |
|
| 32 |
|
| 33 |
Previous check and original development 2001/08/17 |
| 34 |
For this day - 2001/08/19 - the Dolby Digital control led is signalizing |
| 35 |
that AC3 5.1 is correctly delivered to and played by AV device |
| 36 |
The code is based on 'play-ac3' line command tool which could |
| 37 |
be found in emu10k1 CVS tree (and copy is present here as well so |
| 38 |
you could check if your setup is working correctly with just pure |
| 39 |
ac3 stream.) |
| 40 |
|
| 41 |
|
| 42 |
You should always try to download and use the latest driver |
| 43 |
and tools from emu10k1 CVS tree!!! |
| 44 |
|
| 45 |
You can find them at http://emu10k1.sourceforge.net |
| 46 |
(originaly developed at http://opensource.creative.com) |
| 47 |
(There is big chance it will contain less bugs - |
| 48 |
as of 2001/08/19 its definitely causing some SMP deadlocks in 2.4.9 locks) |
| 49 |
also 2.4.19-pre6 doesn't seems to work properly and computer lock |
| 50 |
if pcm signal is used again after ac3 passthrough usage. |
| 51 |
|
| 52 |
|
| 53 |
So now how it work with aviplay: |
| 54 |
|
| 55 |
- select AC3 pass-through audio decoder |
| 56 |
(for this moment you will probably have to remove ffmpeg plugin |
| 57 |
as you could not pick decoder that easily for not - this will change soon) |
| 58 |
- select OSS audio renderer |
| 59 |
(the only one which supports AC3 passthough code in |
| 60 |
(SDL driver should be automaticaly skiped in this case) |
| 61 |
(manual change is not that easy - open ~/.avirc find line: |
| 62 |
AviPlayer AudioRenderer = 8 [ Binary ] SDL,OSS |
| 63 |
and switch order of OSS and SDL and save the file - later you should |
| 64 |
be able to use config dialog for this) |
| 65 |
|
| 66 |
cd plugins/libac3pass |
| 67 |
make load (this should initialize emu10k1 driver with ac3 pass-through |
| 68 |
code - you need to have emu-config & emu-dspmgr utils for |
| 69 |
emu driver properly installed - don't forget to place |
| 70 |
ac3pass.bin to /usr/local/share/emu10k1/ |
| 71 |
|
| 72 |
basically you should read some info about how to get |
| 73 |
ac3 passthrough working in the emu10k1 source tree) |
| 74 |
|
| 75 |
after all this has been done - just use your avi with AC3 stream |
| 76 |
and it should hopefully work. |
| 77 |
|
| 78 |
I know its not easy - but I've been unable to play AC3 stream with |
| 79 |
M$WinME at all - so it's better then nothing |
| 80 |
- also with xine you will have to mostly do the same thing. |
| 81 |
|
| 82 |
-- |
| 83 |
Zdenek Kabelac <[email protected]> 26. Apr 2002 |