Skip to content

BotPC0/audioextractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Audio Extractor

This Python script extracts audio from all video files in a specified folder using ffmpeg. The extracted audio is saved as WAV files in a subfolder.

Features

  • Batch extraction of audio from .mp4, .mkv, .mov, .avi (customizable)
  • Output is lossless WAV format
  • Skips files if audio already extracted
  • Simple command-line interface

Requirements

  • Python 3.6+
  • ffmpeg (must be installed and in your system PATH)
  • Windows, macOS, or Linux

Installation

  1. Clone or download this repository.
  2. Install ffmpeg:

Usage

python extract_audio.py "path\to\your\video\folder"

Optional: Specify video extensions

python extract_audio.py "path\to\your\video\folder" --extensions .mp4,.mov
  • The script will create an extracted_audio folder inside your video folder.
  • All extracted .wav files will be placed there.

Example

python extract_audio.py "C:\Users\andre\Videos"

Troubleshooting

  • ffmpeg not found:
    Make sure ffmpeg is installed and added to your system PATH.
  • Unicode errors:
    The script uses UTF-8 encoding and ignores problematic characters in ffmpeg output.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages