MPlayer refuses to generate mono wav file

Posted by JCCyC on Super User See other posts from Super User or by JCCyC
Published on 2012-03-26T16:51:53Z Indexed on 2012/03/26 17:33 UTC
Read the original article Hit count: 253

Filed under:
|
|

I want to downsample an existing audio file to 8KHz mono. This command line downsamples it to stereo:

mplayer -quiet -vo null -vc dummy -af volume=0,resample=8000:0:1 -ao pcm:waveheader:file="/tmp/blah1.wav" ~/from_my_cellphone.3ga

It generates a file that the file utility identifies as stereo:

$ file /tmp/blah1.wav 
/tmp/blah1.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 8000 Hz

Now, if I read the documentation correctly, I should add pan=1:0.5:0.5 so I get a file that's half the size:

mplayer -quiet -vo null -vc dummy -af volume=0,resample=8000:0:1:pan=1:0.5:0.5 -ao pcm:waveheader:file="/tmp/blah2.wav" ~/from_my_cellphone.3ga

But it doesn't! blah2.wav is identical to blah1.wav! What am I doing wrong?

© Super User or respective owner

Related posts about audio

Related posts about mplayer

  • Physics like asteroides

    as seen on Game Development - Search for 'Game Development'
    I try to make a ship that has the physic properties like asteroides. I have this for now(All in Java): Ship.class public class Ship { public static final float sMaxHealth = 0.1F; public static final float sMaxMoveVelocity = 5.0F; public static final float sMaxAngleVelocity… >>> More

  • mplayer audio desync

    as seen on Super User - Search for 'Super User'
    I have and avi file and an ac3 file that contains an alternate audio stream. I run mplayer like: mplayer -audiofile foo.ac3 bar.avi mplayer takes the audio stream from the ac3 file as expected, but when I try to scroll the video using arrows or pgup/pgdown keys, the audio gets desynced: mplayer… >>> More

  • Mplayer no sound when playing some movies

    as seen on Super User - Search for 'Super User'
    Ok, that's a bit of a strange problem, that somehow crept into my system. It used to work fine. Here is the problem as far as I can identify it. When I try to play certain video files with mplayer, there is no sound. As far as I can tell, it is only an issue with ac3 and dts sound tracks (using the… >>> More

  • Problems with freetype on OSX 10.7.4

    as seen on Super User - Search for 'Super User'
    I'm trying to install mplayer with OSD using homebrew. I've added both --enable-menu and --with-freetype-config=/usr/local/Cellar/freetype/2.4.10/freetype-config to the brew recipe. ==> Downloading http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz Already downloaded: /Library/Caches/Homebrew/mplayer-1… >>> More

  • Conquer Video on Linux with MPlayer

    as seen on Internet.com - Search for 'Internet.com'
    <b>Linux.com:</b> "MPlayer is not your run-of-the mill video player. It's a multi-platform codec-chewing monster truck of a video player for the connoisseur of video players. It has options galore and has the flexibility to play almost anything under the sun." >>> More