Giter Club home page Giter Club logo

mp4_to_mp3's Introduction

mp4tomp3.py

A small Python script to convert mp4 video files to mp3 audio. Useful for turning video from sites such as www.ted.com into audio files useable on any old mp3 player.
It uses mplayer and lame to do the actual conversion.

Usage: python mp4tomp3.py [input directory [output directory]]
  input directory (optional) - set directory containing mp4 files to convert (defaults to current folder)
  output directory (optional) - set directory to export mp3 files to (defaults to input)
example: python mp4tomp3.py ./video ./audio

Note: you will need python (2 or 3), mplayer and lame for this script to work

sudo apt-get install python2.7   -- for python 2
sudo apt-get install python3.6   -- for python 3
sudo apt-get install mplayer
sudo apt-get install lame

Mac Support: Thanks to jdingus for this tip.
First install Homebrew (https://brew.sh/). Once installed you will be able to install dependencies with the following commands.

brew install mplayer
brew install lame

mp4_to_mp3's People

Contributors

andyp123 avatar

Watchers

James Cloos avatar mskzy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.