Hello all - I have a quick question regarding MPlayer command-line opts. I can't seem to find a way to "force" the input sample rate that mplayer uses. My simple test is to cat an mp3 file to mplayer reading stdin - no matter what I pass in, mplayer doesn't properly detect the 44100 Hz sample rate. Here's a couple of example output captures: Direct Play (plays correctly): jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ mplayer 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing 14 - Who Are You (Lost Verse Mix).mp3. Audio only file format detected. Clip info: Title: Who Are You Artist: The Who Album: Who Are You Year: 1996 Comment: Amazon.com Song ID: 20868783 Track: 14 Genre: Rock ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) stdin Play w/ no opts: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 32000 Hz, 2 ch, s16le, 320.0 kbit/31.25% (ratio: 40000->128000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 32000Hz 2ch s16le (2 bytes per sample) stdin play variant 1: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer -demuxer audio - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 12000 Hz, 2 ch, s16le, 32.0 kbit/8.33% (ratio: 4000->48000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 12000Hz 2ch s16le (2 bytes per sample) stdin play variant 2: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer -srate 44100 - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 32000 Hz, 2 ch, s16le, 320.0 kbit/31.25% (ratio: 40000->128000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) stdin play variant 3: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer -srate 44100 -demuxer audio - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 12000 Hz, 2 ch, s16le, 32.0 kbit/8.33% (ratio: 4000->48000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) stdin play variant 4: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer -rawaudio rate=44100 -demuxer audio - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 12000 Hz, 2 ch, s16le, 32.0 kbit/8.33% (ratio: 4000->48000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 12000Hz 2ch s16le (2 bytes per sample) stdin play variant 5: jausmus@jausmus-gentoo-dev ~/Music/Amazon MP3/The Who/Who Are You $ cat 14\ -\ Who\ Are\ You\ \(Lost\ Verse\ Mix\).mp3 | mplayer -rawaudio rate=44100 - MPlayer SVN-r28734-4.3.3 (C) 2000-2009 MPlayer Team Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick Playing -. Reading from stdin... Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Cannot seek backward in linear streams! Seek failed Audio only file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 32000 Hz, 2 ch, s16le, 320.0 kbit/31.25% (ratio: 40000->128000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory AO: [alsa] 32000Hz 2ch s16le (2 bytes per sample) Anyone have any thoughts on how to force the "AUDIO:" to use a specific sample rate for the input stream across stdin? Thanks! -James _______________________________________________ MPlayer-users mailing list MPlayer-users@xxxxxxxxxxxx https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users