<?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: FFmpeg x264 encoding guide</title>
	<atom:link href="http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/feed/" rel="self" type="application/rss+xml" />
	<link>http://rob.opendot.cl</link>
	<description>stuff about me, what i do and some other hopefully useful stuff</description>
	<lastBuildDate>Sun, 05 Sep 2010 15:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Media formats... Encoding... Decoding... etc...</title>
		<link>http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/comment-page-2/#comment-15052</link>
		<dc:creator>Media formats... Encoding... Decoding... etc...</dc:creator>
		<pubDate>Sun, 05 Sep 2010 15:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://rob.opendot.cl/index.php/ffmpeg-x264-encoding-guide/#comment-15052</guid>
		<description>[...] for i in *; do ffmpeg -i &quot;$i&quot; -acodec libfaac -ab 96k -vcodec libx264 -vpre normal -crf 22 -threads 2 &quot;${i%.*}.mp4&quot;;done    More info on h264 encoding with ffmpeg http://rob.opendot.cl/index.php/usef...ncoding-guide/ [...]</description>
		<content:encoded><![CDATA[<p>[...] for i in *; do ffmpeg -i &quot;$i&quot; -acodec libfaac -ab 96k -vcodec libx264 -vpre normal -crf 22 -threads 2 &quot;${i%.*}.mp4&quot;;done    More info on h264 encoding with ffmpeg <a href="http://rob.opendot.cl/index.php/usef...ncoding-guide/" rel="nofollow">http://rob.opendot.cl/index.php/usef&#8230;ncoding-guide/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/comment-page-2/#comment-15051</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Wed, 01 Sep 2010 16:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://rob.opendot.cl/index.php/ffmpeg-x264-encoding-guide/#comment-15051</guid>
		<description>The presets don&#039;t constrain the H.264 Profile, except for the main and baseline presets. Unless you&#039;re specifying the main or baseline presets, you&#039;re using High Profile. The level is dependent on the resolution, frame rate and bit rate. See &lt;a href=&quot;http://rob.opendot.cl/index.php/useful-stuff/h264-profiles-and-levels/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; for more details.

It&#039;s not so easy to find out what the level is after you&#039;ve encoded a file, but you can apply restrictions and set the level at encode-time using the -bufsize -maxrate and -level options.</description>
		<content:encoded><![CDATA[<p>The presets don&#8217;t constrain the H.264 Profile, except for the main and baseline presets. Unless you&#8217;re specifying the main or baseline presets, you&#8217;re using High Profile. The level is dependent on the resolution, frame rate and bit rate. See <a href="http://rob.opendot.cl/index.php/useful-stuff/h264-profiles-and-levels/" rel="nofollow">here</a> for more details.</p>
<p>It&#8217;s not so easy to find out what the level is after you&#8217;ve encoded a file, but you can apply restrictions and set the level at encode-time using the -bufsize -maxrate and -level options.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keith</title>
		<link>http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/comment-page-2/#comment-15050</link>
		<dc:creator>keith</dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://rob.opendot.cl/index.php/ffmpeg-x264-encoding-guide/#comment-15050</guid>
		<description>Thanks for the great guide Rob!

I was wondering if you could explain how the different presets correspond with the MIME types which should be used for the generated videos. It looks like there are two parts to the video component of the complete MIME type: profile and AVC level (http://wiki.whatwg.org/wiki/Video_type_parameters).

If I am using the &quot;hq&quot; preset to encode a video, does that correspond to the H.64 &quot;High&quot; profile? How do I determine what the AVC level is?

Any insight would be greatly appreciated.

Thanks :)</description>
		<content:encoded><![CDATA[<p>Thanks for the great guide Rob!</p>
<p>I was wondering if you could explain how the different presets correspond with the MIME types which should be used for the generated videos. It looks like there are two parts to the video component of the complete MIME type: profile and AVC level (<a href="http://wiki.whatwg.org/wiki/Video_type_parameters" rel="nofollow">http://wiki.whatwg.org/wiki/Video_type_parameters</a>).</p>
<p>If I am using the &#8220;hq&#8221; preset to encode a video, does that correspond to the H.64 &#8220;High&#8221; profile? How do I determine what the AVC level is?</p>
<p>Any insight would be greatly appreciated.</p>
<p>Thanks <img src='http://rob.opendot.cl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/comment-page-2/#comment-15047</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Mon, 23 Aug 2010 06:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://rob.opendot.cl/index.php/ffmpeg-x264-encoding-guide/#comment-15047</guid>
		<description>Well the command line looks OK, but add &#039;-threads 0&#039; to use libx264 in multi-threaded mode so it can capitalise on the cores you have. Depending on your system and what else the system is doing, it may well be that the encoding can&#039;t keep up.

Ideally you would want to &#039;dump&#039; the rtp streams to a file without transcoding while you&#039;re capturing and then transcode later. But if you have to transcode on-the-fly and -threads 0 doesn&#039;t solve it, try a faster preset. And you probably want to use a higher bitrate for the video, perhaps try something around ~250kbps and see if that&#039;s good enough quality.</description>
		<content:encoded><![CDATA[<p>Well the command line looks OK, but add &#8216;-threads 0&#8242; to use libx264 in multi-threaded mode so it can capitalise on the cores you have. Depending on your system and what else the system is doing, it may well be that the encoding can&#8217;t keep up.</p>
<p>Ideally you would want to &#8216;dump&#8217; the rtp streams to a file without transcoding while you&#8217;re capturing and then transcode later. But if you have to transcode on-the-fly and -threads 0 doesn&#8217;t solve it, try a faster preset. And you probably want to use a higher bitrate for the video, perhaps try something around ~250kbps and see if that&#8217;s good enough quality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suman Ramineni</title>
		<link>http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/comment-page-2/#comment-15045</link>
		<dc:creator>Suman Ramineni</dc:creator>
		<pubDate>Fri, 20 Aug 2010 20:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://rob.opendot.cl/index.php/ffmpeg-x264-encoding-guide/#comment-15045</guid>
		<description>Hi Rob,
I have found out a solution for my streaming problem. Now I&#039;m actually able to catch the webcam stream using ffmpeg on the server and save the output .ts fil. Here is the modified command that worked for me
ffmpeg -i rtp://174.121.223.170?localport=1234 -acodec libfaac -ar 48000 -ab 64k -vcodec libx264 -vpre slow -b 128k -s 320×240 -f mpegts output.ts
However,the quality of the output .ts file is pretty bad. I can hardly see my webcam stream playing. Can you please suggest me the bitrates and other values that are to be used for better quality of the picture? 
Thanks,
Suman.R</description>
		<content:encoded><![CDATA[<p>Hi Rob,<br />
I have found out a solution for my streaming problem. Now I&#8217;m actually able to catch the webcam stream using ffmpeg on the server and save the output .ts fil. Here is the modified command that worked for me<br />
ffmpeg -i rtp://174.121.223.170?localport=1234 -acodec libfaac -ar 48000 -ab 64k -vcodec libx264 -vpre slow -b 128k -s 320×240 -f mpegts output.ts<br />
However,the quality of the output .ts file is pretty bad. I can hardly see my webcam stream playing. Can you please suggest me the bitrates and other values that are to be used for better quality of the picture?<br />
Thanks,<br />
Suman.R</p>
]]></content:encoded>
	</item>
</channel>
</rss>
