Converting Audio to PCM Wave format



To make sure you’ve go the idea that mplayer is really a swiss army knife for media files that can do most anything. I wanted to get a post JUST on this idea. Any media format that mplayer recognizes it can dump the audio to the most common and readable audio format out there, the PCM Wav file.

Here’s how it goes:

Usually this is just an intermediary step en route to another file format (mp3 for instance..)

Here’s a line I’ve used from a script of mine:

mplayer -ao pcm:file=$1_$date.wav $1.rm

so… this calls mplayer and gives the audio output driver as the pcm output driver and the filename you can see I’ve controlled with the command switch again. In this case I was converting from a .rm file to the wave format. Unfortunately the rm file was not named descriptively enough for my taste, so I’ve added a variable that tags the date to the filename as well.

So… let’s say you run converttowav myaudio

Then mplayer will take the source of myaudio.rm and give you myaudio_todaysdate.wav in the nice compatible (and easily convertable) wav format.

Related Posts

Blog Traffic Exchange Related Posts
  • The end for Windows 98 may be a boost to linux? There are articles out about the demise of official Windows 98 and ME support would be a boost to linux uptake. Realistically, I suppose it may, but I personally am not holding my breath. Here's why. 1) The people still running Windows 98/ME are likely doing so because that's what......
  • Converting MPG video to dv files I don't know much about the dv format, except that it is a standard format that many camcorders use. For this reason, many video editors (such as kino for linux) prefer to see files coming in dv format. The problem I ran into is that the new handycam dvd puts......
  • Recording online streams (real / wma) to mp3 format (or ogg) with mplayer So, I've been looking back over my list of "scripts" that are pulling in audio from various news sources online for the onlineradiotv.com site. It's also got me doing a bit more spanish language listening than I had been. In the car, I usually use an mp3 player (the nexia)......
Blog Traffic Exchange Related Websites
  • Configure Microsoft Word, Excel 2007 to save file in 97-2003 format This method is recommended to prevent compatibility issue. You have an option to choose a default file format in Word 2007. Follow instruction below : • Click on Microsoft Office Button • Click on “Word Options” button located on the lower-right of the menu. Remark: In Excel 2007, the option......
  • SEO Principles for WordPress Blogs WordPress is a relatively SEO friendly blogging tool to begin with. It offers a linking structure that makes it relatively easy for spiders to crawl your pages, and the code contains very little validation errors if any at all. However, there are a few additional steps that you can follow......
  • Encryption: Never Leave Home Without It As portable drives have gotten physically smaller and larger in storage capacity, they've become an indespensible gadget for many.  If you use yours to store vital and sensitive information, you need to secure that information with encryption.  I should not need to tell you about the long list of......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site