On Sun, Jan 10, 2010 at 12:23 AM, Floris <jkfloris@xxxxxx> wrote: >> Now the help required at this point: mplayer >> >> mplayer -ao alsa:spdif with this dts sample file gives no sound in F11 >> while it "almost" works in F12. > > > > try mplayer -ao alsa:device=spdif -afm hwac3 <file> > because otherwise mplayer will decode the dts file for you > and not your receiver. > Hey, it works! Thank you very much Floris I see that at least it works on two mkv files I have, where I get the lock led on and the mode remains to "digital" (and clearly the sounds come different from the different speakers, so it is all ok). Now with your suggestion In file 1 that works, mplayer says [mkv] Track ID 2: audio (A_DTS) "Audio - Italiano DTS", -aid 0, -alang ita Trying to force audio codec driver family hwac3... 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) In file 2 that works, mplayer says the same; only difference is [mkv] Track ID 2: audio (A_DTS) "Italiano 5.1", -aid 0, -alang ita The important part is A_DTS, so it is that which defines the kind of audio track, correct? I will try also with a DTS DVD I have somewhere ... So my problem seems solved (at least up to next update... ;-) Only strange thing is that if I play with the same switch the demo file I used to test at the beginning with aplay, I don't hear any sound and the lock led remains switched off. So it seems nothing goes through optical link now.... Any clues to this? Below is the output of mplayer with "-v" switch [gcecchi@tekkaman dts_tests]$ mplayer -v -vo null -ao alsa:device=spdif -afm hwac3 dts_the_other_side_44khz.wav MPlayer SVN-r29800-4.4.2 (C) 2000-2009 MPlayer Team CPU vendor name: AuthenticAMD max cpuid level: 5 CPU: AMD Athlon(tm) II X4 630 Processor (Family: 16, Model: 5, Stepping: 2) extended cpuid-level: 27 extended cache-info: 33587520 Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0 Compiled with runtime CPU detection. get_path('codecs.conf') -> '/home/gcecchi/.mplayer/codecs.conf' Reading /home/gcecchi/.mplayer/codecs.conf: Can't open '/home/gcecchi/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer --mandir=/usr/share/man --confdir=/etc/mplayer --libdir=/usr/lib64 --codecsdir=/usr/lib64/codecs --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic --language=all --enable-joystick --enable-largefiles --enable-lirc --enable-menu --enable-runtime-cpudetection --enable-unrarexec --disable-dvdread-internal --disable-libdvdcss-internal --disable-nemesi --disable-smb --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc --disable-liba52-internal --disable-faad-internal --disable-mad --disable-tremor-internal --disable-bitmap-font --disable-directfb --with-fribidi-config=pkg-config fribidi --disable-svga --disable-termcap --enable-xvmc --with-xvmclib=XvMCW --disable-arts --disable-esd --disable-jack --disable-openal CommandLine: '-v' '-vo' 'null' '-ao' 'alsa:device=spdif' '-afm' 'hwac3' 'dts_the_other_side_44khz.wav' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/home/gcecchi/.mplayer/fonts' Using nanosleep() timing get_path('input.conf') -> '/home/gcecchi/.mplayer/input.conf' Can't open input config file /home/gcecchi/.mplayer/input.conf: No such file or directory Parsing input config file /etc/mplayer/input.conf Input config file /etc/mplayer/input.conf parsed: 90 binds Setting up LIRC support... 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. get_path('dts_the_other_side_44khz.wav.conf') -> '/home/gcecchi/.mplayer/dts_the_other_side_44khz.wav.conf' Playing dts_the_other_side_44khz.wav. get_path('sub/') -> '/home/gcecchi/.mplayer/sub/' [file] File size is 27582508 bytes STREAM: [file] dts_the_other_side_44khz.wav STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) LAVF_check: WAV format Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for REAL Checking for SMJPEG Searching demuxer type for filename dts_the_other_side_44khz.wav ext: .wav Trying demuxer 17 based on filename extension ==> Found audio stream: 0 ======= WAVE Format ======= Format Tag: 1 (0x1) Channels: 2 Samplerate: 44100 avg byte/sec: 176400 Block align: 4 bits/sample: 16 cbSize: 0 ========================================================================== [demux_audio] DTS audio in wav, 14 bit, LE demux_audio: audio data 0x2C - 0x1A4E02C Audio only file format detected. get_path('sub/') -> '/home/gcecchi/.mplayer/sub/' ========================================================================== Trying to force audio codec driver family hwac3... Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF 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 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) ========================================================================== Building audio filter chain for 44100Hz/2ch/ac3 -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 44100Hz/2ch/ac3 [dummy] Was reinitialized: 44100Hz/2ch/ac3 Trying preferred audio driver 'alsa', options 'device=spdif' alsa-init: requested format: 44100 Hz, 2 channels, 100 alsa-init: using ALSA 1.0.22 alsa-spdif-init: playing AC3, 2 channels alsa-init: using device spdif alsa-init: pcm opened in blocking mode alsa-init: got buffersize=88192 alsa-init: got period size 1696 alsa: 44100 Hz/2 channels/4 bpf/88192 bytes buffer/Signed 16 bit Little Endian AO: [alsa] 44100Hz 2ch ac3 (1 bytes per sample) AO: Description: ALSA-0.9.x-1.x audio output AO: Author: Alex Beregszaszi, Zsolt Barat <joy@xxxxxxxxxxxxxxxxx> AO: Comment: under developement Building audio filter chain for 44100Hz/2ch/ac3 -> 44100Hz/2ch/ac3... [dummy] Was reinitialized: 44100Hz/2ch/ac3 [dummy] Was reinitialized: 44100Hz/2ch/ac3 Video: no video Freeing 0 unused video chunks. Starting playback... Increasing filtered audio buffer size from 0 to 65536 A: 0.4 (10.4) of 156.0 (02:36.0) 0.2% Gianluca ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user