summaryrefslogtreecommitdiffstats
path: root/content/en/articles/convertire-file-video-in-mp3/index.md
blob: 660adfe5e1478baf32c7a91947b2b31fe9487a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
+++
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 :wink: And naturally, if you use this command or manage to improve it somehow, let me know.