<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to set target file sizes in ffmpeg</title>
	<atom:link href="http://www.helyar.net/2009/how-to-set-target-file-sizes-in-ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.helyar.net/2009/how-to-set-target-file-sizes-in-ffmpeg/</link>
	<description>From the desktop of George Helyar</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:35:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joe1</title>
		<link>http://www.helyar.net/2009/how-to-set-target-file-sizes-in-ffmpeg/comment-page-1/#comment-790</link>
		<dc:creator>Joe1</dc:creator>
		<pubDate>Mon, 26 Jul 2010 22:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.helyar.net/?p=240#comment-790</guid>
		<description>George, you are my hero! I&#039;m testing your script now in re-encoding a 1.4 GB big avi to a more manageable 700MB file size. Thanks for posting this!</description>
		<content:encoded><![CDATA[<p>George, you are my hero! I&#8217;m testing your script now in re-encoding a 1.4 GB big avi to a more manageable 700MB file size. Thanks for posting this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Helyar</title>
		<link>http://www.helyar.net/2009/how-to-set-target-file-sizes-in-ffmpeg/comment-page-1/#comment-18</link>
		<dc:creator>George Helyar</dc:creator>
		<pubDate>Sun, 28 Jun 2009 00:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.helyar.net/?p=240#comment-18</guid>
		<description>ffmpeg is the basis of pretty much every other video encoding software (including mencoder) on both Windows and Linux. Often, these allow you to set the target size in their GUIs but there is nothing actually built into ffmpeg to let you do it.

When batch encoding hundreds of files, it is good to be able to do it from the command line and with no effort :)

&lt;a href=&quot;http://lame.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;LAME&lt;/a&gt; is still available for free but probably subject to licensing like not using it commercially. ffmpeg can be simple enough to encode the audio from a DVD as such:
&lt;code&gt;ffmpeg -i mydvd.vob mydvd.mp3&lt;/code&gt; and will use the lame mp3 encoder to do it (assuming it is available). Bitrates etc should probably be set though, the default is 64k and will sound pretty bad.

The free audio encoder I am using here is &lt;a href=&quot;http://www.audiocoding.com/&quot; rel=&quot;nofollow&quot;&gt;faac&lt;/a&gt; (free aac). The paired decoder is faad (coder + decoder = codec in the same way that modem = modulator + demodulator). This will obviously work in an mp4 container for output but I don&#039;t know about anything else. &quot;.aac&quot; is raw aac but I think without the headers you will not be able to play it. I don&#039;t know if it works with virtualdub.

DVD and Blu-ray both seem to use ac3.

For video, H.264 blows divx and xvid completely out of the water. H.264 is an implementation of MPEG-4 video (as used on HDDVD and Blu-ray). x264 is a free implementation of H.264 made by the same people as VLC.</description>
		<content:encoded><![CDATA[<p>ffmpeg is the basis of pretty much every other video encoding software (including mencoder) on both Windows and Linux. Often, these allow you to set the target size in their GUIs but there is nothing actually built into ffmpeg to let you do it.</p>
<p>When batch encoding hundreds of files, it is good to be able to do it from the command line and with no effort <img src='http://www.helyar.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://lame.sourceforge.net/" rel="nofollow">LAME</a> is still available for free but probably subject to licensing like not using it commercially. ffmpeg can be simple enough to encode the audio from a DVD as such:<br />
<code>ffmpeg -i mydvd.vob mydvd.mp3</code> and will use the lame mp3 encoder to do it (assuming it is available). Bitrates etc should probably be set though, the default is 64k and will sound pretty bad.</p>
<p>The free audio encoder I am using here is <a href="http://www.audiocoding.com/" rel="nofollow">faac</a> (free aac). The paired decoder is faad (coder + decoder = codec in the same way that modem = modulator + demodulator). This will obviously work in an mp4 container for output but I don&#8217;t know about anything else. &#8220;.aac&#8221; is raw aac but I think without the headers you will not be able to play it. I don&#8217;t know if it works with virtualdub.</p>
<p>DVD and Blu-ray both seem to use ac3.</p>
<p>For video, H.264 blows divx and xvid completely out of the water. H.264 is an implementation of MPEG-4 video (as used on HDDVD and Blu-ray). x264 is a free implementation of H.264 made by the same people as VLC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.helyar.net/2009/how-to-set-target-file-sizes-in-ffmpeg/comment-page-1/#comment-16</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 27 Jun 2009 13:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.helyar.net/?p=240#comment-16</guid>
		<description>I don&#039;t know about linux, but in windows you can more or less set the file size in virtual dub, which is what i assume people do when they rip things to pirate them. 

Having installed DivX or Xvid codec, you can go 
Video &gt; compression (Ctrl+P). 

Select DivX and press configure and you can click on the little calculator (in DivX 6.5, I&#039;m updating to 7.0 as i type this so it might be different already) and you can set a size or chose a preset, which includes &quot;700MB (CD-R)&quot; and it will estimate the bitrate to use to get that file size. The process is similar for Xvid.

Depending on the input format and the codecs you have installed, you can either recompress the audio from 
audio &gt; full stream processing
audio &gt; compression

or just leave it as the source file with 
audio &gt; direct stream copy.

When Lame MP3 codec was freely available I always recompressed, now I can&#039;t find a single decent, free audio codec that works with virtualdub.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know about linux, but in windows you can more or less set the file size in virtual dub, which is what i assume people do when they rip things to pirate them. </p>
<p>Having installed DivX or Xvid codec, you can go<br />
Video &gt; compression (Ctrl+P). </p>
<p>Select DivX and press configure and you can click on the little calculator (in DivX 6.5, I&#8217;m updating to 7.0 as i type this so it might be different already) and you can set a size or chose a preset, which includes &#8220;700MB (CD-R)&#8221; and it will estimate the bitrate to use to get that file size. The process is similar for Xvid.</p>
<p>Depending on the input format and the codecs you have installed, you can either recompress the audio from<br />
audio &gt; full stream processing<br />
audio &gt; compression</p>
<p>or just leave it as the source file with<br />
audio &gt; direct stream copy.</p>
<p>When Lame MP3 codec was freely available I always recompressed, now I can&#8217;t find a single decent, free audio codec that works with virtualdub.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

