Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, Just recently downloaded and installed MPlayer, I installed the win32 codecs as I want to play some WMA files that I've recently downloaded however when I attempt to play ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Location
    Dublin, Ireland
    Posts
    1

    Audio Output From MPlayer ?


    Hi,

    Just recently downloaded and installed MPlayer, I installed the win32 codecs as I want
    to play some WMA files that I've recently downloaded however when I attempt
    to play the WMA file, there does not appear to be any sound ?

    configure options when building MPlayer :

    ./configure --enable-gui --enable-divx3linux --enable-libavcodec --enable-vorbis --enable-mp3lib --enable-liba52 --enable-alsa --enable-ossaudio --enable-runtime-cpudetection --enable-win32 --with-win32libdir=/usr/lib/codecs/win32/ --prefix=/usr

    It built and installed fine however when I attempt to play a WMA file I get the following :

    $ mplayer Back_To_School.wma
    Player 1.0pre4-3.2.2 (C) 2000-2004 MPlayer Team

    CPU: Intel Pentium 4/Xeon/Celeron Foster 2658 MHz (Family: 8, Stepping: 7)
    Detected cache-line size is 64 bytes
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection - WARNING - this is not optimal!
    To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
    Reading config file /usr/etc/mplayer/mplayer.conf: No such file or directory
    Creating config file: /home/mattman/.mplayer/config
    Reading config file /home/mattman/.mplayer/config
    Reading /home/mattman/.mplayer/codecs.conf: Can't open '/home/mattman/.mplayer/codecs.conf': No such file or directory
    Reading /usr/etc/mplayer/codecs.conf: Can't open '/usr/etc/mplayer/codecs.conf': No such file or directory
    Using built-in default codecs.conf.
    font: can't open file: /home/mattman/.mplayer/font/font.desc
    font: can't open file: /usr/share/mplayer/font/font.desc
    Failed to open /dev/rtc: Permission denied (/dev/rtc should be readable by the user.)
    Using usleep() timing
    Can't open input config file /home/mattman/.mplayer/input.conf: No such file or directory
    Can't open input config file /usr/etc/mplayer/input.conf: No such file or directory
    Falling back on default (hardcoded) input config

    Playing Back_To_School.wma.
    ASF file format detected.
    Clip info:
    name: Back To School
    author: Todayfm
    copyright: Todayfm 2004
    comments:
    ================================================== ========================
    Opening audio decoder: [dmo] Win32/DMO decoders
    ======= WAVE Format =======
    Format Tag: 10 (0xA)
    Channels: 1
    Samplerate: 16000
    avg byte/sec: 2000
    Block align: 600
    bits/sample: 16
    cbSize: 46
    Unknown extra header dump: [10] [0] [4] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [10] [0] [0] [0] [8d] [99] [5a] [0] [5] [c9] [2d] [48] [90] [1a] [60] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
    ===========================
    ======= WAVE Format =======
    Format Tag: 1 (0x1)
    Channels: 1
    Samplerate: 16000
    avg byte/sec: 32000
    Block align: 2
    bits/sample: 16
    cbSize: 0
    ===========================
    GetOutput r=0x0 size:8192 align:1
    StreamCount r=0x0 1 1
    AUDIO: 16000 Hz, 1 ch, 16 bit (0x10), ratio: 2000->32000 (16.0 kbit)
    Selected audio codec: [wma9spdmo] afm:dmo (Windows Media Audio 9 Speech DMO)
    ================================================== ========================
    Checking audio filter chain for 16000Hz/1ch/16bit -> 16000Hz/2ch/16bit...
    AF_pre: af format: 2 bps, 1 ch, 16000 hz, little endian signed int
    AF_pre: 16000Hz 1ch Signed 16-bit (Little-Endian)
    AO: [oss] 16000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
    Building audio filter chain for 16000Hz/1ch/16bit -> 16000Hz/2ch/16bit...
    Video: no video
    Starting playback...
    A: 4:44.3 40.0% 0%

    Exiting... (End of file)


    From above output, it seems to locate the correct win32 codec, and process the file for 4.44 M/SS, however there is no audible sound.... any idea why ?


  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try the raw file writer audio output plugin to try and see if the fault is in the actual audio output or in the audio decoding. Something like "mplayer -ao raw -aofile audio-output file.wma" if I recall correctly.
    Then, do a hexdump of it ("od -t x2 audio-output") and see if the samples differ much or if they're pretty much the same. If they're very equal, it's "supposed" to be silent, or in other words, the fault is in the audio decoding. If they differ much, sound is supposed to come out of your speakers, or in other words, the audio output is somehow broken.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •