InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

ffmpeg tutorials

  • Command line - scale a video using ffmpeg
  • Convert mp3 to ogg on Mac using ffmpeg
  • Install ffmpeg on Ubuntu Linux
  • Mac - how to convert mp4 to webm
 
  • Home
  • > Tutorials
  • > Linux/Unix Command Line
  • > ffmpeg

Mac – how to convert mp4 to webm

on Feb 7, 2016

Command line utility ffmpeg can be used to convert mp4 video to webm format on Mac or Linux. Here are quick steps for Mac.

  1. First we need to install ffmpeg with libvpx, libvorbis and fdk-aacc.

    $ brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc
    
  2. In case ffmpeg already installed without required libraries, you will have to unlink it and install it again

    $ brew unlink ffmpeg
    $ brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc
    
  3. Run ffmpeg on input-file.mp4 as shown below

    $ ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
    

    Note that this command may take a while. Once done, you should be able to see output-file.webm in current directory.

Suggested posts:

  1. How to enable usb debugging on android
  2. HTML5 – video tag
  3. How to resize image (including animated gif) using Image magick convert
  4. WordPress – query to dump all categories
  5. Comic strip – Startup and losses
  6. mac pkgutil – quick start guide
  7. How to remove password from pdf using Chrome
  8. AngularJS format date using date filter
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged ffmpeg, Mac, Mac Command Line, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress