MyloBishop / discompress

Automatically compress video and audio files to under 25MB using FFmpeg to allow for free upload to discord.
MIT License
9 stars 2 forks source link
batch compression discompress discord ffmpeg ffmpeg-wrapper

discompress

A batch script to automatically compress video and audio files to under 25MB to allow for free upload to discord.

Requirements

The script requires FFmpeg to be installed on your system. Make sure FFmpeg is in your system's path.

Usage

To compress a video or audio file, simply drag and drop the file onto the batch script or use the terminal with the command discompress.bat <input_file>. The output file is saved as a .mp4 (if video) or a .mp3 (if audio) in the inputs file directory with the name 25MB_.

Path to batchfile can also be added to the registry to be able to compress in the windows right-click menu.

Limitations

Troubleshooting

If you encounter any issues while running the script, try the following:

  1. Make sure FFmpeg is installed and in your system's path.
  2. Make sure the input file has a valid extension (see "Limitations" section).
  3. Make sure the input file is not already compressed to a size smaller than the target size or bitrate.
  4. Make sure the output file does not already exist in the output directory.
  5. If you still encounter issues, please make a new issue.

License

This script is released under the MIT License.