This is a script to handle bulk audio and video to mp3 conversion.
It uses the Pydub python package.
Place the script in a directory together with the files you wish to convert to mp3.
.
└── [directory]
├── convert2mp3.py
├── file1
├── file2
└── file3
Alternatively, if the files are in multiple directories, you can also covert them conserving their directory path.
.
├── convert2mp3.py
├── [subdirectory1]
│ ├── file1
│ ├── file2
│ └── file3
├── [subdirectory2]
│ ├── file1
│ ├── file2
│ └── file3
└── [subdirectory3]
├── file1
├── file2
└── file3
Execute the script on terminal:
> python3 convert2mp3.py