Install FFMPEG to your local enviroment following this guide https://www.geeksforgeeks.org/how-to-install-ffmpeg-on-windows/
verify by typing
ffmpeg -version
Install the librarys using pip install
pip install -r requirements.txt
- The
log.txt
and/done
will be created automatically - Put your files or even files sctructure into the
input
-directory (1) - This script will keep the file structure provided in the
input
-directory! - The original files will end up in the
done
-directory (2)
Name all your files with the name you want to keep! This script will embed the file Name (without the file extension like
.mpg
) into the metadata of the file!
- Execute it using
python convert.py
when inside thescript
-directory - You have to keep this terminal open until the script is done!
- You can monitor the conversion of the currrent file in the terminal window
- If you want to see the whole progress, you can look into the generated
log.txt
- This will also display some extra logging, like times and storage savings
- If a file is complete, it will move the file with the extension of
targetFileType
into thedone
-directory
At the End you will have all your converted files in the the input
-directory with your original file structure. All the original files were be moved into the done
-directory.
If you want to compress and convert your files properly then set extendedMode
in line 27
to True
See code comments for further information