+++
title = "Convert Video Files to MP3"
author = "Danilo M."
type = "tech"
date = "2012-05-25T15:42:02+00:00"
excerpt = "A simple way to convert from a video file to an MP3."
categories = [ "DIY", "Code"]
tags = [ "linux", "video", "audio", "mp3", "convert"]
+++

A quick word on how to convert a video to MP3. Here's how I did it.

```bash
ffmpeg -i file_to_convert.flv -f mp3 -ab 192000 -vn new_file.mp3
```

Obviously, you need to have ffmpeg installed on your system. The options I passed on that line are:

 - `-i`: input file
 - `-f`: output format
 - `-ab`: MP3 bitrate (192 kbps in this case)
 - `-vn`: do not capture video

Simple and fast. Try it out and see for yourself ;) And naturally, if you use this command or manage to improve it somehow, let me know.