<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Avi on René Moser</title><link>https://www.renemoser.net/tags/avi/</link><description>Recent content in Avi on René Moser</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 22 Nov 2009 00:00:00 +0000</lastBuildDate><atom:link href="https://www.renemoser.net/tags/avi/index.xml" rel="self" type="application/rss+xml"/><item><title>Extracting MP3 audio from an AVI file with ffmpeg</title><link>https://www.renemoser.net/blog/2009/11/22/convert-avi-into-mp3-on-linux/</link><pubDate>Sun, 22 Nov 2009 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2009/11/22/convert-avi-into-mp3-on-linux/</guid><description>I look this up every few months, so here it is in one place. ffmpeg takes the video apart and writes just the audio track to an MP3 file.
The whole file:
ffmpeg -i sample.avi -vn -c:a libmp3lame -b:a 256k sample.mp3 -vn drops the video stream, -c:a libmp3lame selects the MP3 encoder and -b:a 256k sets the audio bitrate. For a variable bitrate instead, replace -b:a 256k with -q:a 2, which gives roughly 190 kbit/s at a noticeably better size-to-quality ratio.</description></item></channel></rss>