On Tue, Jun 01, 2004 at 21:18:58 +0100, James Courtier-Dutton wrote:
> Download this test file:
> 
> ftp://ftp1.mplayerhq.hu/MPlayer/samples/A-codecs/AC3-samples/a52dec-streams/ac3test/stream
done...

> Then play it in xine.  http://xinehq.de.
> 
> Before starting xine, edit the .xine/config and check for the following 
> lines:
> 
> #audio.alsa_a52_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
> 
> audio.alsa_front_device:iec958:AES0=0x4,AES1=0x82,AES2=0x0,AES3=0x2
> 
> Try playing it in "2 channel mode" first, for PCM output.
.version:1
gui.experience_level:Advanced
gui.panel_visible:0
gui.panel_x:122
gui.panel_y:569
audio.alsa_front_device:iec958:AES0=0x4,AES1=0x82,AES2=0x0,AES3=0x2
audio.alsa_mmap_enable:1

Status: Works!

> Then enable passthru mode in xine, and play it again.
.version:1
gui.experience_level:Advanced
gui.panel_visible:0
gui.panel_x:122
gui.panel_y:569
audio.speaker_arrangement:Pass Through
audio.alsa_front_device:iec958:AES0=0x4,AES1=0x82,AES2=0x0,AES3=0x2
audio.alsa_mmap_enable:1

Status: bad..
--($:/tmp)-- xine stream
This is xine (X11 gui) - a free video player v0.9.23.
(c) 2000-2003 The xine Team.
Floating point exception

I'm not really god in debuging this kind of errors, so I use mplayer
insted... unfortunately there are some encryption issues, but I do have
some dts/ac3 samples...

Playing dts-the_digital_experience.vob.
Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through SP/DIF
No accelerated IMDCT transform found
hwac3: switched to DTS, 1536000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, 16 bit (0x400), ratio: 192000->192000 (1536.0 kbit)
Selected audio codec: [hwac3] afm:hwac3 (AC3 through SPDIF)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 720x576 => 1024x576 Mpeg PES
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, big endian AC3
AF_pre: 48000Hz 2ch AC3
alsa-init: requested format: 48000 Hz, 2 channels, AC3
alsa-init: soundcard set to iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
alsa1x: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa1x] 48000Hz 2ch AC3 (1 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
[format] Sample format big endian AC3  not yet supported
Couldn't find matching filter / ao format!
Starting playback...
A:  32.8 V:  32.8 A-V: -0.005 ct:  0.049  814/814   0%  0%  0.2% 0 0 0%%
alsa-uninit: pcm closed

Works....

Playing dolby-rain.vob.
Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  9800.0 kbps (1225.0 kbyte/s)
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through SP/DIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 448000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, 16 bit (0x400), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [hwac3] afm:hwac3 (AC3 through SPDIF)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [null] 720x480 => 720x540 Mpeg PES
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, big endian AC3
AF_pre: 48000Hz 2ch AC3
alsa-init: requested format: 48000 Hz, 2 channels, AC3
alsa-init: soundcard set to iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
alsa1x: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa1x] 48000Hz 2ch AC3 (1 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
[format] Sample format big endian AC3  not yet supported
Couldn't find matching filter / ao format!
Starting playback...
A:   0.6 V:   0.6 A-V:  0.016 ct:  0.032   14/ 11   0%  0%  0.0% 0 0 99%
demux_mpg: 24fps progressive NTSC content detected, switching framerate.
A:  34.1 V:  34.2 A-V: -0.038 ct:  0.136  820/817   0%  0%  0.2% 0 0 0%%
alsa-uninit: pcm closed

No sound....

If is use xine to play a dvd in dts it works, witch ac3 2.0 or 5.1 it doesn't 
- I used "The Last Castle (RC1)" to do the testing.... 

> With audio.alsa_front_device set to that, it will force PCM sound to 
> follow the correct route through the sound card to the SPDIF output.
> 
> If the normal PCM stereo mode works, but the AC3 mode does not, there is 
> a problem with your alsa driver.
I'm almost there to buy a card with an emu10k1-chip... if I were sure it would 
"solve" my problem :)

> If PCM stereo mode does not work, then your sound card does not support 
> SPDIF output in a way we can deal with, and AC3 and DTS will never work 
> with your card.
dts works - so I guess this is not the case?

Regards
Philipp


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to