MP3 File Conversion using FFmpeg
This article explains how to convert an MP3 file using the FFmpeg command-line tool. We will demonstrate the process by converting a 60-second to 120-second portion of an MP3 file named "TestAudio_123.mp3".
Prerequisites
Before you begin, ensure that you have FFmpeg installed on your system.
Step-by-step guide
1. Open your terminal or command prompt
Navigate to the directory containing the MP3 file you want to convert.
2. Run the FFmpeg command
Use the following command:
ffmpeg -i TestAudio_123.mp3 -ss 60 -to 120 -c:libmp3lame -q:2 output.mp3
This command will convert the specified portion of the MP3 file and save it as "output.mp3".
3. Check the console output
The console will display information about the conversion process, such as progress and any errors that may occur.
- Types of references: Books, articles, online resources