A small batch script designed to modify the audio channels of a video file using FFmpeg.
Report Bug
·
Request Feature
Table of Contents
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.
- 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".
To get the script up and running follow these simple steps.
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.
Option 1 (Downloading the Script):
- Download the latest version of the script via FFMPEG-Audio-Encoder/ffmpeg_script.cmd.
- Run the script in the same directory your desired input file is located.
Option 2 (Manually Adding):
- Go to the page where you can see the entire script code via FFMPEG-Audio-Encoder/ffmpeg_script.cmd.
- Copy everything.
- Create a new text file with file explorer.
- Paste the code into the text file.
- Save the text file with a ".cmd" extension, e.g., "ffmpeg_script.cmd".
- Run the script in the same directory your desired input file is located.
- When prompted, enter the input filename without the extension.
- Select the number of audio channels based on the provided options.
- Choose an output filename option (same as input name, fixed name, or custom name)
- Optional if you selected custom name in the previous step: Write a custom filename to be used as the output name.
- 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.
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Twitter @Arad119 - Email [email protected]
Project Link: https://github.com/Arad119/FFMPEG-Audio-Encoder