Hi HDMI Audio users, I'm wondering if anyone has ac3 audio working over HDMI? My onboard card is an HD3200. This plays stereo OK for me: mplayer -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg This results in clicky static: mplayer -ac hwac3 -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg regards, jp ------------ jape@vcr3:/tmp$ mplayer -ac hwac3 -ao alsa:device=hw=1.3 -channels 6 -vo xv 2041_20090208074700.mpg MPlayer dev-SVN-r27741-4.2.4 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 107, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing 2041_20090208074700.mpg. TS file format detected. VIDEO MPEG2(pid=49) AUDIO A52(pid=53) NO SUBS (yet)! PROGRAM N. 1 VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 16800.0 kbps (2100.0 kbyte/s) ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== ========================================================================== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== [AO_ALSA] alsa-lib: conf.c:3843:(parse_args) Unknown parameter AES0 [AO_ALSA] alsa-lib: conf.c:3969:(snd_config_expand) Parse arguments error: No such file or directory [AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM hw:1,3,AES0=6 AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Starting playback... VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 1920x1080 => 1920x1080 Planar YV12 New_Face failed. Maybe the font path is wrong./ 3 ??% ??% ??,?% 0 0 Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. A:11308.4 V:11309.5 A-V: -1.135 ct: -0.113 35/ 35 33% 0% 0.1% 0 0 Exiting... (Quit) -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Hi, Am Sonntag, den 08.02.2009, 09:46 -0500 schrieb JP Fournier:
I'm wondering if anyone has ac3 audio working over HDMI? My onboard card is an HD3200.
This plays stereo OK for me:
mplayer -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg
This results in clicky static:
mplayer -ac hwac3 -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg in theory i have implemented AC3 pass through, but since i don't have an AV decoder i wasn't able to test it.
Could you provide some additional informations? Wich Distribution, Kernel and alsa Version are you using? In your xorg log file you should see something like this: (II) RADEONHD(0): RHDHdmiUpdateAudioSettings Followed by the IEC60958 status bits alsa send us, could you send me those? Bye and thanks for testing, Christian. -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
On Sunday 08 February 2009 10:06:45 Christian König wrote:
Hi,
Am Sonntag, den 08.02.2009, 09:46 -0500 schrieb JP Fournier:
I'm wondering if anyone has ac3 audio working over HDMI? My onboard card is an HD3200.
This plays stereo OK for me:
mplayer -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg
This results in clicky static:
mplayer -ac hwac3 -ao alsa:device=hw=1.3 -vo xv 2041_20090208074700.mpg
in theory i have implemented AC3 pass through, but since i don't have an AV decoder i wasn't able to test it.
Could you provide some additional informations? Wich Distribution, Kernel and alsa Version are you using?
I'm running mythbuntu 8.04 (+ some custom changes, (ie mplayer from svn etc)). kernel: 2.6.24-23-server jape@vcr3:/tmp/read-edid-1.4.1$ cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.16. Compiled on Jan 29 2009 for kernel 2.6.24-23-server (SMP).
In your xorg log file you should see something like this: (II) RADEONHD(0): RHDHdmiUpdateAudioSettings Followed by the IEC60958 status bits alsa send us, could you send me those
(II) RADEONHD(0): RHDHdmiUpdateAudioSettings: stoped with 1 channels, 48000 Hz sampling rate, 8 bits per sample, (II) RADEONHD(0): RHDHdmiUpdateAudioSettings: 0x01 IEC60958 status bits and 0x00 category code
Bye and thanks for testing, Christian.
-- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Am Sonntag, den 08.02.2009, 10:36 -0500 schrieb JP Fournier:
jape@vcr3:/tmp/read-edid-1.4.1$ cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.16. Compiled on Jan 29 2009 for kernel 2.6.24-23-server (SMP). There is the problem: alsa 1.0.16 don't have an iec958 device defined for hdmi per default.
Try putting the attached asound.conf unter /etc, and then run mplayer like this: mplayer -ac hwac3 -ao alsa:device=iec958=1 2041_20090208074700.mpg It's important that you use the "iec958" device instead of the "hw" device. Then you should see something like: (II) RADEONHD(0): RHDHdmiUpdateAudioSettings: playing with 2 channels, 48000 Hz sampling rate, 16 bits per sample, (II) RADEONHD(0): RHDHdmiUpdateAudioSettings: 0xa1 IEC60958 status bits and 0x02 category code in your xorg log file. Getting 0xa1 for the IEC60958 status bits instead of 0x01 is the important thing here. If it still doesn't works, then alsa is doing something wrong inside the kernel driver and we need to change this. Good luck, Christian.
On Sunday 08 February 2009 12:35:43 Christian König wrote:
Am Sonntag, den 08.02.2009, 10:36 -0500 schrieb JP Fournier:
jape@vcr3:/tmp/read-edid-1.4.1$ cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.16. Compiled on Jan 29 2009 for kernel 2.6.24-23-server (SMP).
There is the problem: alsa 1.0.16 don't have an iec958 device defined for hdmi per default.
Try putting the attached asound.conf unter /etc, and then run mplayer like this:
mplayer -ac hwac3 -ao alsa:device=iec958=1 2041_20090208074700.mpg
It's important that you use the "iec958" device instead of the "hw" device. Then you should see something like: (II) RADEONHD(0): RHDHdmiUpdateAudioSettings: playing with 2 channels, 48000 Hz sampling rate, 16 bits per sample, (II) RADEONHD(0): RHDHdmiUpdateAudioSettings: 0xa1 IEC60958 status bits and 0x02 category code in your xorg log file. Getting 0xa1 for the IEC60958 status bits instead of 0x01 is the important thing here.
Thanks. This seems to have done it. mplayer seems to be able to open the audio device and the receiver is playing the audio: ========================================================================== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 384000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Now I just need to figure out how to get this working in mythtv... Thanks again. jp
If it still doesn't works, then alsa is doing something wrong inside the kernel driver and we need to change this.
Good luck, Christian.
-- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Am Sonntag, den 08.02.2009, 17:25 -0500 schrieb JP Fournier:
Thanks. This seems to have done it. mplayer seems to be able to open the audio device and the receiver is playing the audio: Hey cool, didn't expect that to work out of the box, as i said before: implemented, but never tested. So one more point that i can remove from my todo list.
Can i ask you a favour? If your receiver does support DTS as well, could you test this also? Also different sampling frequency (88,2kHz or 96kHz) were not tested very well. Another point to get working would be multichannel PCM output, but i definitely know that alsa and my code doesn't support that atm. Thanks again for testing this, Christian. -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
On Monday 09 February 2009 18:49:38 Christian König wrote:
Am Sonntag, den 08.02.2009, 17:25 -0500 schrieb JP Fournier:
Thanks. This seems to have done it. mplayer seems to be able to open the audio device and the receiver is playing the audio:
Hey cool, didn't expect that to work out of the box, as i said before: implemented, but never tested. So one more point that i can remove from my todo list.
Can i ask you a favour? If your receiver does support DTS as well, could you test this also? Also different sampling frequency (88,2kHz or 96kHz) were not tested very well.
DTS seems to work too: jape@vcr3:/tmp$ mplayer -ac dts -ao alsa:device=iec958=1 dts_the_other_side_44khz.wav MPlayer dev-SVN-r27741-4.2.4 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 107, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing dts_the_other_side_44khz.wav. Audio only file format detected. ========================================================================== Forced audio codec: dts Opening audio decoder: [libdca] DTS decoding with libdca AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400) Selected audio codec: [dts] afm: libdca (DTS-libdca) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... A: 156.1 (02:36.0) of 156.0 (02:36.0) 3.9% -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
Am Montag, den 09.02.2009, 19:53 -0500 schrieb JP Fournier:
DTS seems to work too:
jape@vcr3:/tmp$ mplayer -ac dts -ao alsa:device=iec958=1 Just a note, you need to use the hwdts codec for the audiocodec (-ac) switch to actually use hardware DTS decoding. The mplayer outputs clearly shows that you are using software decoding with libdca.
-- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
On Tuesday 10 February 2009 15:05:07 Christian König wrote:
Am Montag, den 09.02.2009, 19:53 -0500 schrieb JP Fournier:
DTS seems to work too:
jape@vcr3:/tmp$ mplayer -ac dts -ao alsa:device=iec958=1
Just a note, you need to use the hwdts codec for the audiocodec (-ac) switch to actually use hardware DTS decoding. The mplayer outputs clearly shows that you are using software decoding with libdca.
OK. Haven't had much success trying play sample DTS files google can find. This file "plays" but I get no sound: jape@vcr3:/tmp$ mplayer -ac hwdts -ao alsa:device=iec958=1 *.dts MPlayer dev-SVN-r27741-4.2.4 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 107, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing pfcell2 DTS T02 DELAY -240ms.dts. libavformat file format detected. [lavf] Audio stream found, -aid 0 ========================================================================== Forced audio codec: hwdts Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to DTS, 768000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 768.0 kbit/50.00% (ratio: 96000->192000) Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF) ========================================================================== AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) Video: no video Starting playback... A: 13.8 (13.8) of 14.1 (14.1) 0.1% Exiting... (End of file) jape@vcr3:/tmp$ The wav files choke: jape@vcr3:/tmp$ mplayer -ac hwdts -ao alsa:device=iec958=1 dts_the_other_side_44khz.wav MPlayer dev-SVN-r27741-4.2.4 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 107, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing dts_the_other_side_44khz.wav. Audio only file format detected. ========================================================================== Forced audio codec: hwdts Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to DTS, 1411200 bps, 44100 Hz AUDIO: 44100 Hz, 2 ch, ac3, 1411.2 kbit/100.00% (ratio: 176400->176400) Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF) ========================================================================== AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample) [format] Sample format big-endian AC3 not yet supported Couldn't find matching filter/ao format! Video: no video Starting playback... MPlayer interrupted by signal 11 in module: decode_audio - MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash. - MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and won't help unless you provide this information when reporting a possible bug. jape@vcr3:/tmp$ -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org
participants (2)
-
Christian König
-
JP Fournier