Converting Movie Files to wav and mp3 Files Using MPlayer and LAME

As a multimedia enthusiast, you may want to convert your movie files to audio files for various reasons such as creating soundtracks, audio books or listening to dialogues & music without the video. Converting movie files to WAV and MP3 files using MPlayer and LAME is a simple and straightforward process. By following the steps outlined in this post, you can easily convert your movie files to audio files for various purposes. In this post, we will explore how to convert movie files to WAV and MP3 files using MPlayer and LAME.

Install MPlayer and LAME

To use MPlayer and LAME for file conversion, you need to have both programs installed on your system. MPlayer is a versatile media player that can also be used for file conversion. You can install MPlayer using your distribution’s package manager. For example, on Ubuntu, you can install MPlayer by running the following command:

sudo apt-get install mplayer

LAME is a high-quality MP3 encoder that can be used to convert audio files to MP3 format. You can install LAME using the following command:

sudo apt-get install lame

Convert Movie Files to WAV Files with MPlayer

Now that you have installed MPlayer and LAME, you can proceed with converting the movie files to WAV and MP3 files. To convert a movie file to a WAV file, you can use the following MPlayer command:

mplayer -ao pcm:file=output.wav input_movie_file.avi

In this command, the -ao option specifies the audio output driver, and the pcm:file=output.wav option specifies that the output should be in WAV format and the output file name. Replace output.wav with the desired name of the output file. The final argument is the input movie file name with its format.

Convert WAV Files to MP3 Files with LAME

To convert the WAV file to an MP3 file, you can use the following LAME command:

lame -h -b 192 input.wav output.mp3

In this command, the -h option specifies high-quality mode, and the -b option specifies the bit rate of the output file. You can adjust the bit rate as per your requirement. Replace input.wav with the name of the WAV file you created earlier, and output.mp3 with the desired name of the output file.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *