Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDK (Matt's Development Kit)

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!

Primary Purposes

Some of mdk's many features:

  • Batch image/video resizing
  • Video compression
  • Video conversion
  • Audio normalizing
  • GIF creation

How to install

  1. Install Node
  2. Install Yarn
  3. Install FFmpeg
  4. Open a terminal
  5. In the mdk directory, run yarn
  6. To make mdk globally available on your computer, run yarn global add <path_to_mdk>
    • e.g. yarn global add ~/dev/personal/mdk
  7. To upgrade mdk, run yarn global upgrade <path_to_mdk>

Windows installation notes

You may need to add yarn's global bin to your PATH. To do that:

  1. Open a terminal
  2. Run yarn global bin
  3. Copy the output (something like C:\Users\richt\AppData\Local\Yarn\bin)
  4. Add this value to your PATH:
  5. In your control panel, open Edit the system environment variables
  6. Press the Environment Variables... button
  7. Select the Path variable
  8. Press the Edit... button
  9. Press the New button
  10. Paste the output of yarn global bin
  11. Press the OK button

You should now be able to run mdk in any terminal.

How to use

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

Audio commands

Run mdk audio to get a list of the audio commands.

Compress audio file(s)

mdk audio compress $path

For example, to compress all mp3 files in a folder:

mdk audio compress *.mp3

Convert audio file(s)

mdk audio convert $format $path

For example, to convert all wav files in a folder to mp3:

mdk audio convert mp3 *.wav

Normalize audio file(s)

mdk audio normalize $path

For example, to normalize all mp3 files in a folder:

mdk audio normalize *.mp3

Adjust the volume on audio file(s)

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.

About

Matt's Development Kit

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages