Skip to content

Instantly share code, notes, and snippets.

@lacek
Last active May 2, 2018 12:33
Show Gist options
  • Save lacek/17f12cb8285a20bc90583b348b173d1b to your computer and use it in GitHub Desktop.
Save lacek/17f12cb8285a20bc90583b348b173d1b to your computer and use it in GitHub Desktop.

Convert MP4 to WMV on MacOS

Install ffmpeg

  1. Open Spotlight:

    Open Spotlight

  2. Search Terminal and press enter:

    Search and Start Terminal

  3. In Terminal, paste the command below and press enter to install brew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. Install ffmpeg by brew:

    brew install ffmpeg

Converting MP4 to WMV

Assuming you have MP4 file of name Video.mp4 on Desktop, and you want to convert it to a WMV of name Output.wmv:

  1. Change working directory to Desktop in Terminal:

    cd ~/Desktop
  2. Convert by typing/pasting the command below:

    ffmpeg -i Video.mp4 Output.wmv

    If you want to change to output quality, say bitrate of video as 3000 kbps and bitrate of audio as 192 kbps, you may supply more options:

    ffmpeg -i Video.mp4 -b:v 3000k -b:a 192k Output.wmv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment