Skip to content

Re-encode and modify the audio channels of a video file using FFmpeg with a batch script.

License

Notifications You must be signed in to change notification settings

Arad119/FFMPEG-Audio-Encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Logo

FFMPEG Audio Encoder

A small batch script designed to modify the audio channels of a video file using FFmpeg.

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project

FFMPEG-Audio-Encoder Screenshot

The script is a prompt based command-line tool which utilizes FFmpeg to modify the audio channels and re-encode the audio track as AAC. Note that this script doesn't encode the video track at all and only re-encodes the audio track.

(back to top)

Built With

(back to top)

Example Output With Explanation

FFMPEG-Audio-Encoder Preview

  • The user is prompted to enter the input filename without the extension. In this example, the input file is named "input".
  • The user is then asked to choose the number of audio channels. Here, the user selects option 1 for stereo (2 channels).
  • Finally, the user is prompted to select the output filename. In this case, option 2 is chosen for a fixed name "output".

(back to top)

Getting Started

To get the script up and running follow these simple steps.

Prerequisites

To be able to use the script in the first place, you need to have FFmpeg installed on your system and is added as a system PATH environment variable. This allows the script to execute the FFmpeg command from anywhere. Read more about it here if you're not sure how to do it.

Running The Script

Option 1 (Downloading the Script):

  1. Download the latest version of the script via FFMPEG-Audio-Encoder/ffmpeg_script.cmd.
  2. Run the script in the same directory your desired input file is located.

Option 2 (Manually Adding):

  1. Go to the page where you can see the entire script code via FFMPEG-Audio-Encoder/ffmpeg_script.cmd.
  2. Copy everything.
  3. Create a new text file with file explorer.
  4. Paste the code into the text file.
  5. Save the text file with a ".cmd" extension, e.g., "ffmpeg_script.cmd".
  6. Run the script in the same directory your desired input file is located.

How To Use

  1. When prompted, enter the input filename without the extension.
  2. Select the number of audio channels based on the provided options.
  3. Choose an output filename option (same as input name, fixed name, or custom name)
  4. Optional if you selected custom name in the previous step: Write a custom filename to be used as the output name.
  5. Once the process is complete, the modified video file will be saved with the specified output filename.

Please note that this script assumes you have FFmpeg properly installed and configured on your system.

(back to top)

Contributing

Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Twitter @Arad119 - Email [email protected]

Project Link: https://github.com/Arad119/FFMPEG-Audio-Encoder

(back to top)