Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

MP4 to MP3 Converter

Description

This Python script converts all mp4 files in subdirectories of the current working directory to mp3 files using FFmpeg. It also deletes the original mp4 files and their parent directories once the conversion is complete. Made for full albums downloaded from YouTube with JDownloader 2.

Requirements

Before using the script, you need to install FFmpeg. You can download FFmpeg from their official website: https://ffmpeg.org/

Usage

  1. Place the script in the directory containing the subdirectories with the mp4 files you want to convert.
  2. Install FFmpeg if you haven't already.
  3. Run the script using a Python interpreter.

Notes

  • The script uses multiprocessing to convert the mp4 files in parallel, with the number of processes set to the number of available CPU cores.
  • The script converts the mp4 files to mp3 with the best quality and overwrites the output file if it already exists.
  • The script deletes the original mp4 files and their parent directories after the conversion is complete.
  • The script prints the total run time, number of converted files, and number of deleted files once the conversion is complete.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages