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
  • Tech support tutorials made easy on linux.... One of the real frustrations with phone tech support is translating step by step what is needed to the person on the other end. I know it sounds easy, but in reality - what if they've got xyz theme for their menuing and it's not there, what if... oh you......
  • Open Source NTFS driver for linux with Read and Write support Linux has full support for so many file systems. Fat32, which is the filesystem of the Win98 and ME systems has had full read-write support as long as I can remember, but NTFS has not. In fact, NTFS has had read-only support in the main open source driver, but NO......
  • 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......
Blog Traffic Exchange Related Websites
  • Ematic eGlide Tablet PC Review [/caption] The boom of Tablet PC market is on-going now. There are lots of brand pitching into the market and releasing their own Tablet PC models. It is expected to grow even faster in the up coming year. When it comes to buying decision, people do prefer iPad2 at most......
  • Wordpress Backup Wordpress Backup is an essential plugin for all Wordpress blog administrators by the Blog Traffic Exchange. It performs regular backups of your upload (images) current theme, and plugin directories. Backup files are available for download and optionally emailed to a specified email. Don't get caught without a recent backup of......
  • 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