Skip to content

This is a Node.js application that uses FFmpeg and the fluent-ffmpeg library to convert video files to audio.

Notifications You must be signed in to change notification settings

lucaoskaique/mp4-to-mp3-ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video to Audio Converter

This is a Node.js application that uses FFmpeg and the fluent-ffmpeg library to convert video files to audio.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Node.js.
  • You have installed FFmpeg.
  • FFmpeg is added to the system PATH.

Installing FFmpeg on Windows

  1. Download FFmpeg from the official site. Choose the link that matches your system architecture (32 or 64 bit).
  2. Extract the downloaded file. You will get a folder, which includes three sub-folders (bin, doc, presets).
  3. Add FFmpeg to Windows PATH:
    • Right-click on Computer and choose Properties.
    • Choose Advanced system settings.
    • In the System Properties window, choose Environment Variables.
    • In the Environment Variables window, you will see a list of User variables and System variables. Under System variables, find and select the variable named Path, then click on Edit.
    • In the Edit Environment Variable window, move the cursor to the end of the Variable value line, add a semicolon (;) and then add the path to the 'bin' directory in the FFmpeg folder you downloaded earlier. For example, if you extracted FFmpeg to C:\FFmpeg, you would add C:\FFmpeg\bin.
    • Click OK to close each window.

Installing FFmpeg on Linux (Ubuntu)

On Ubuntu, you can install FFmpeg from the official repositories by running the following command in your terminal:

sudo apt update
sudo apt install ffmpeg

Installing the Video to Audio Converter To install the Video to Audio Converter, follow these steps:

git clone <your-repository-url>
cd <your-repository-directory>
npm install

Replace and with the actual URL and directory name of your repository.

Using the Video to Audio Converter To use the Video to Audio Converter, follow these steps:

Place your video files in the 'videos' directory. Run the following command:

node src/server.js

Your converted audio files will be placed in the 'audios' directory.

Contact If you want to contact me, you can reach me at @example.com. Replace @example.com with your actual email address.

License This project uses the following license: . Replace with the actual license your project is using.

This version provides a much clearer instruction to the reader about replacing placeholders in the document.

About

This is a Node.js application that uses FFmpeg and the fluent-ffmpeg library to convert video files to audio.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published