Hi, I'm Matt Hackett, game developer (and book author) at Valadria, a small game studio.
This project houses (some of) the CLI tools I use to help me make (and promote) my video games.
Note: This is a fairly messy personal project, but it's quite powerful!
Some of mdk's many features:
- Batch image/video resizing
- Video compression
- Video conversion
- Audio normalizing
- GIF creation
- Install Node
- Install Yarn
- Install FFmpeg
- Open a terminal
- In the
mdkdirectory, runyarn - To make
mdkglobally available on your computer, runyarn global add <path_to_mdk>- e.g.
yarn global add ~/dev/personal/mdk
- e.g.
- To upgrade
mdk, runyarn global upgrade <path_to_mdk>
You may need to add yarn's global bin to your PATH. To do that:
- Open a terminal
- Run
yarn global bin - Copy the output (something like
C:\Users\richt\AppData\Local\Yarn\bin) - Add this value to your PATH:
- In your control panel, open Edit the system environment variables
- Press the Environment Variables... button
- Select the Path variable
- Press the Edit... button
- Press the New button
- Paste the output of
yarn global bin - Press the OK button
You should now be able to run mdk in any terminal.
From a terminal, run mdk to show the help prompt. It should look something like this:
> Welcome to MDK v0.10.3
- Commands:
mdk audio
mdk image
mdk video
> MDK exiting
Run mdk audio to get a list of the audio commands.
mdk audio compress $path
For example, to compress all mp3 files in a folder:
mdk audio compress *.mp3
mdk audio convert $format $path
For example, to convert all wav files in a folder to mp3:
mdk audio convert mp3 *.wav
mdk audio normalize $path
For example, to normalize all mp3 files in a folder:
mdk audio normalize *.mp3
mdk audio volume $volume $path
For example, to halve the volume of all mp3 files in a folder:
mdk audio volume 0.5 *.mp3
Or to increase the volume of all wav files in a folder by 5dB:
mdk audio volume 5dB *.wav
See FFmpeg's Audio Volume Manipulation page for more information.