Skip to content

thayashi-01/video_to_audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video to MP3 Converter

A Python script to convert video files to MP3 audio files.

Requirements

  • Python 3.6 or higher
  • ffmpeg

Installing ffmpeg

macOS

brew install ffmpeg

Ubuntu/Debian

sudo apt-get install ffmpeg

Windows

Download and install from ffmpeg official website.

Usage

  1. Make the script executable (optional):
chmod +x video_to_mp3.py
  1. Run the script:
python3 video_to_mp3.py

Or:

./video_to_mp3.py

Supported Formats

  • Input: .mov, .mp4, .avi, .mkv, .flv, .wmv, .m4v, .webm
  • Output: .mp3 (192kbps, 44.1kHz)

How It Works

  • Automatically detects video files in the video folder
  • Converts each video file to MP3 format
  • Saves MP3 files to the audio folder
  • Skips files that already exist

Folder Structure

.
├── video/          # Place your video files here
├── audio/          # Converted MP3 files will be saved here
└── video_to_mp3.py # The conversion script

License

MIT

About

Script to convert video to audio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages