All-to is a script in a set of media utilities centered around automating jobs that involve invocations of ffmpeg. The purpose of all-to is to transcode all of the files in a given folder to a codec of the user's choosing.
usage: all-to.py [-h] [-f] to
Convert all audio files in folder to a specified type.
positional arguments:
to Codec to transcode into (file extension)
optional arguments:
-h, --help show this help message and exit
-f Folderize output
Example: all-to ogg
This will convert all audio files in the current working directory to Ogg-Vorbis and output them in the same folder. It does not delete the input files.
Example: all-to -f mp3, all-to mp3 -f
This does the same, converting to mp3, but instead places them in a subdirectory by the same name as the current working directory, but with .mp3 appended to it.
- Any files that are already of the type specified will not be processed.
- There is not yet any way to pass any additional arguments to ffmpeg. Defaults will be used.
- Only the current working directory is used as input. There is not yet any way to specify a directory for input.
- Make a directory to contain binaries and scripts if you do not already have one (e.g.
c:\bin). Let this be called the bin directory. - Make sure the bin directory is in the search path.
- Build or download ffmpeg and ffprobe, and place the binaries in the bin directory.
- Configure your system to regard
.pyfiles as executables. - Modify the script to search in a directory that you prefer, or
os.getcwd()to use the current working directory.