I'm trying to play AC3 streams via S/PDIF on my Revolution/ice1724 but I'm not getting anywhere. The S/PDIF works fine with normal PCM but with AC3 Mplayer fails to initialize ALSA. I've also experimented some with AC3 files via aplay but then I only get white noise. :-(

Mplayer gives me this:
alsa-init: format AC3 are not supported by hardware, trying default
alsa-init: unable to set format: Invalid argument
Could not open/initialize audio device -> no sound.

What does that mean? Is AC3 not supported in the driver, or is there something else that needs fixing? I could really use some hints...
Thanks!



$ cat /etc/asound.conf pcm.!default { type plug slave { pcm "hw:0,1" } }

$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.4rc2 (Tue Mar 30 08:19:30 2004 UTC).
Compiled on Apr 7 2004 for kernel 2.6.5-1-k7.


$ cat /proc/asound/cards
0 [Revolution71   ]: ICE1724 - M Audio Revolution-7.1
                    M Audio Revolution-7.1 at 0xc000, irq 5



$ mplayer -v -ac hwac3 -vo null dmd-mac.cd1.avi
MPlayer dev-CVS--3.3.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 1838 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow 3DNowEx


Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/yeppe/.mplayer/config
Reading /home/yeppe/.mplayer/codecs.conf: Can't open '/home/yeppe/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 64 audio & 174 video codecs
CommandLine: '-v' '-ac' 'hwac3' '-vo' 'null' 'dmd-mac.cd1.avi'
init_freetype
get_path('font/font.desc') -> '/home/yeppe/.mplayer/font/font.desc'
font: can't open file: /home/yeppe/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (/dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/yeppe/.mplayer/input.conf'
Can't open input config file /home/yeppe/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 53 binds
get_path('dmd-mac.cd1.avi.conf') -> '/home/yeppe/.mplayer/dmd-mac.cd1.avi.conf'


Playing dmd-mac.cd1.avi.
[file] File size is 735039488 bytes
STREAM: [file] dmd-mac.cd1.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:1040384 AVI file format detected.
list_end=0x2286
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 101017 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 256
==========================
list_end=0x10F4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: xvid (64697678)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0 Len: 101017
Suggested BufferSize: 119044
Quality 10000
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 256
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 983040
===========================
list_end=0x217A
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 56000/1 = 56000.000
Start: 0 Len: 226278080
Suggested BufferSize: 28000
Quality -1
Sample size: 1
==========================
found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 5
Samplerate: 48000
avg byte/sec: 56000
Block align: 1
bits/sample: 0
cbSize: 18
Unknown extra header dump: [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [28] [0] [0] [0]
===========================
list_end=0x2286
AVI: dmlh found (size=248) (total_frames=101017)
list_end=0x22AA
hdr=Software size=15
Software : Nandub v1.0rc2
list_end=0x2B9E7D36
Found movie at 0x280C - 0x2B9E7D36
Reading INDEX block, 202023 chunks for 101017 frames (fpos=0x2b9e7d3e)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x6D6C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=503870597 (101017) audio size=226278080 (226278080)
VIDEO: [XVID] 640x256 24bpp 25.000 fps 997.6 kbps (121.8 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:640x256 fps:25.00 ftime:=0.0400
Clip info:
Software: Nandub v1.0rc2
get_path('sub/') -> '/home/yeppe/.mplayer/sub/'
get_path('default.sub') -> '/home/yeppe/.mplayer/default.sub'
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through SP/DIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
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: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/8bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000020 and bps = 2
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: compiled for ALSA-1.0.3b
alsa-spdif-init: playing AC3, 2 channels
alsa-init: soundcard set to iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
alsa-init: pcm opened in block-mode
alsa-init: format AC3 are not supported by hardware, trying default
alsa-init: unable to set format: Invalid argument
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: hwac3
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
[ffmpeg] aspect_ratio: 2.500000
VDec: vo config request - 640 x 256 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.50:1 - prescaling to correct movie aspect.
VO Config (640x256->640x256,flags=1,'MPlayer',0x32315659)
VO: [null] 640x256 => 640x256 Planar YV12 [fs]
VO: Description: Null video output
VO: Author: Aaron Holtzman <[EMAIL PROTECTED]>
*** [vo] Allocating (slices) mp_image_t, 640x256x12bpp YUV planar, 245760 bytes
*** [vo] Allocating (slices) mp_image_t, 640x256x12bpp YUV planar, 245760 bytes
*** [vo] Allocating (slices) mp_image_t, 640x256x12bpp YUV planar, 245760 bytes
[mpeg4 @ 0x853df28]vop not coded 95%
[mpeg4 @ 0x853df28]vop not coded 95%
[mpeg4 @ 0x853df28]vop not coded 94%
[mpeg4 @ 0x853df28]vop not coded 93%
[mpeg4 @ 0x853df28]vop not coded 93%
[mpeg4 @ 0x853df28]vop not coded 92%
[mpeg4 @ 0x853df28]vop not coded 91%
V: 0.8 22 1% 0% 0.0% 0 0 91%


MPlayer interrupted by signal 2 in module: sleep_usleep
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x86b8c58 vo: x11 uninit called but X11 not inited..




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to