<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LinuxNut.org &#187; FFmpeg</title>
	<atom:link href="http://linuxnut.org/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxnut.org</link>
	<description>Nuts about Linux and Stuff...</description>
	<lastBuildDate>Fri, 09 Apr 2010 15:52:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FFmpeg</title>
		<link>http://linuxnut.org/2009/01/ffmpeg/</link>
		<comments>http://linuxnut.org/2009/01/ffmpeg/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 15:23:53 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[transcode]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=46</guid>
		<description><![CDATA[FFmpeg is an open-source command line utility for performing audio/video file conversions. It can be used to simply convert straight from one video format to another, or to crop, pad, rescale, change bit-rates, merge or split out audio and video, and so on&#8230;
The projects website is at http://ffmpeg.mplayerhq.hu/. Here&#8217;s a few links to some of [...]]]></description>
			<content:encoded><![CDATA[<p>FFmpeg is an open-source command line utility for performing audio/video file conversions. It can be used to simply convert straight from one video format to another, or to crop, pad, rescale, change bit-rates, merge or split out audio and video, and so on&#8230;</p>
<p><span id="more-46"></span>The projects website is at <a href="http://ffmpeg.mplayerhq.hu/">http://ffmpeg.mplayerhq.hu/</a>. Here&#8217;s a few links to some of the most useful parts of the project&#8217;s own documentation:</p>
<ul>
<li><a href="http://ffmpeg.mplayerhq.hu/general.html">Supported file, image, video and audio formats</a></li>
<li><a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#TOC9">Video options</a></li>
<li><a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#TOC11">Audio options</a></li>
</ul>
<p>The simplest command format is &#8216;ffmpeg -i inputFile outputFile&#8217;, but it can be made as complex as required, in order to specify every single parameter of the conversion process.</p>
<p>To obtain the encoding details from an existing audio or video file, just run the command with only an input file specified, e.g.: ffmpeg -i somefile.avi</p>
<p>I&#8217;ll now list some commonly used parameters. These may do exactly what you need first time, but don&#8217;t be surprised if you have to tweak the parameters slightly for them to work on your system, with your files:</p>
<p><strong>Convert AVI video to MPEG:</strong></p>
<pre>ffmpeg -i inputFile.avi outputFile.mpg</pre>
<p><strong>Convert MPEG video to AVI:</strong></p>
<pre>ffmpeg -i inputFile.mpg outputFile.avi</pre>
<p><strong>Convert FLV to MPEG:</strong></p>
<pre>ffmpeg -i inputFile.flv -ab 56k -ar 22050 -b 500k -s 320x240 outputFile.mpg</pre>
<dl>
<dd>Audio bit-rate: 56kbps</dd>
<dd>Audio sampling frequency: 22050Hz</dd>
<dd>Video bit-rate: 500kbps</dd>
<dd>Video size: 320 x 240</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert MPEG or AVI to FLV:</strong></p>
<pre>ffmpeg -i inputFile.avi -acodec mp3 -ar 22050 -f flv outputFile.flv</pre>
<dl>
<dd>Audio sampling frequency: 22050Hz</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert AVI to MPEG-2 for DVD</strong><br />
Note that you will probably need to change the &#8216;target&#8217; and &#8216;aspect&#8217; to match your needs:</p>
<pre>ffmpeg -i inputFile.avi -target pal-dvd -aspect 16:9 outputFile.mpg</pre>
<p><strong>Convert sequence of JPEGs to MPEG:</strong><br />
Note that the image files in this example would named &#8216;pic-001.jpg, pic-002.jpg, etc&#8230;</p>
<pre>ffmpeg -f image2 -i pic-%d.jpg outputFile.mpg</pre>
<p><strong>Convert MPEG or AVI to sequence of JPEGs:</strong></p>
<pre>ffmpeg -i inputFile.mpg pic-%d.jpg</pre>
<p><strong>Convert MPEG or AVI to time-lapsed sequence of JPEGs, one per second:</strong></p>
<pre>ffmpeg -i inputFile.mpg -r 1 pic-%d.jpg</pre>
<dl>
<dd>Video frame-rate: 1fps</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert MPEG or AVI to animated GIF:</strong></p>
<pre>ffmpeg -i inputFile.avi outputFile.gif</pre>
<p><strong>Convert MP3 to WAV:</strong></p>
<pre>ffmpeg -i inputFile.mp3 outputFile.wav</pre>
<p><strong>Convert WAV to MP3:</strong></p>
<pre>ffmpeg -i inputFile.wav -ab 256k outputFile.mp3</pre>
<dl>
<dd>Audio bit-rate: 256kbps</dd>
</dl>
<p>&nbsp;<br />
<strong>Remove the audio from MPEG or AVI:</strong></p>
<pre>ffmpeg -i inputFile.avi -an outputFile.avi</pre>
<p><strong>Remove video from MPEG or AVI, and convert to MP3:</strong></p>
<pre>ffmpeg -i inputFile.avi -an -ab 256k outputFile.mp3</pre>
<dl>
<dd>Audio bit-rate: 256kbps</dd>
</dl>
<p>&nbsp;<br />
<strong>Add audio and video together, and convert to MPEG:</strong></p>
<pre>ffmpeg -i audioFile.wav -i videoFile.avi outputFile.mpg</pre>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/01/ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
