Today I needed to record something in a WAV file that shouldn’t exceed 100 KB, when I used the standard “Sound Recorder” in Ubuntu, it recorded using the default CD-quality recording (resulting in a 280 KB file, so I used the “ffmpeg” tool to compress it to a 8bit mono file which resulted in a 28 KB file!
Here are the steps:
- Install “ffmpeg”, “sudo apt-get install ffmpeg”
- “ffmpeg -i Ahmad_Amr.wav -ar 8000 -ac 1 -acodec pcm_u8 output.wav’
For more information about ffmpeg:
- Website: http://www.ffmpeg.org/
- Wikipedia: http://en.wikipedia.org/wiki/FFmpeg
- Documentation: http://www.ffmpeg.org/ffmpeg-doc.html
Thanks to http://superuser.com/questions/94794/convert-a-mp3-to-wav-file-with-mplayer for the quick how-to
It added background noise to output with reduce quality
How to fix it ?
LikeLiked by 1 person
Unfortunately, the quality is very low, that’s why it became so small in size.
LikeLiked by 1 person
I have a wav audio file and wants to convert it to 8khz 8 bit mono wav. Is it right command for that ?
LikeLike
yup
LikeLike