<?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>Opthumb &#187; ffmpeg</title>
	<atom:link href="http://www.opthumb.com/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opthumb.com</link>
	<description>Actionscript, Rails, Ruby, and CSS discovery</description>
	<lastBuildDate>Thu, 22 Oct 2009 17:55:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Chapters in video</title>
		<link>http://www.opthumb.com/2008/chapters-in-video/10/</link>
		<comments>http://www.opthumb.com/2008/chapters-in-video/10/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 14:11:07 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=78</guid>
		<description><![CDATA[When uploading a video to a site, there&#8217;s definitely use for keyframe images as previews.  I was thinking about using the nginx streaming-flv module to feed up individual frames of a video, but I concluded that exporting the required frames as pngs or jpegs is way more practical.  Once again, I&#8217;m using ffmpeg to grab [...]]]></description>
			<content:encoded><![CDATA[<p>When uploading a video to a site, there&#8217;s definitely use for keyframe images as previews.  I was thinking about using the nginx streaming-flv module to feed up individual frames of a video, but I concluded that exporting the required frames as pngs or jpegs is way more practical.  Once again, I&#8217;m using ffmpeg to grab individual frames from an flv and xport as pngs.  Heres the code:</p>
<p><em>ffmpeg -i awards.flv -vcodec png -vframes 1 -ss 120 -an -f rawvideo -s 320&#215;240 testoutput.png</em></p>
<ul>
<li>-i: the input video</li>
<li>-vcodec: the output codec.  In this case png</li>
<li>-vframes: the number of frames to output.  I only want 1 frame as the image</li>
<li>-ss: number of seconds into the video to grab the screen-shot</li>
<li>-an:</li>
<li>-f: for the format of the video</li>
<li>-s: size of the output</li>
<li>testoutput.png is the name of the resulting image.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2008/chapters-in-video/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch video conversion with ffmpeg and Ruby</title>
		<link>http://www.opthumb.com/2008/batch-video-conversion-with-ffmpeg-and-ruby/10/</link>
		<comments>http://www.opthumb.com/2008/batch-video-conversion-with-ffmpeg-and-ruby/10/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 19:29:13 +0000</pubDate>
		<dc:creator>jphillips</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[batch convert]]></category>
		<category><![CDATA[ffmpeg]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=66</guid>
		<description><![CDATA[Decided to write a simple script for exporting all my video content to streaming .flvs: in batchconvert.rb path = &#8220;.&#8221; #contains = Dir.new(basedir).entries videos = Dir["#{path}/*.mov"] videos.each do &#124;f&#124; puts &#8220;converting #{f}&#8221; newFile = f.gsub(&#8220;.mov&#8221;, &#8220;.flv&#8221;) system(&#8220;ffmpeg -i #{f} -ar 22050 -s 640&#215;480 -b 500000 #{newFile}&#8221;) system(&#8220;flvtool2 -U #{newFile}&#8221;) end To run this command, open [...]]]></description>
			<content:encoded><![CDATA[<p>Decided to write a simple script for exporting all my video content to streaming .flvs:</p>
<p><em>in batchconvert.rb</em></p>
<p>path = &#8220;.&#8221;<br />
#contains = Dir.new(basedir).entries<br />
videos = Dir["#{path}/*.mov"]<br />
videos.each do |f|<br />
puts &#8220;converting #{f}&#8221;<br />
newFile = f.gsub(&#8220;.mov&#8221;, &#8220;.flv&#8221;)<br />
system(&#8220;ffmpeg -i #{f} -ar 22050 -s 640&#215;480 -b 500000 #{newFile}&#8221;)<br />
system(&#8220;flvtool2 -U #{newFile}&#8221;)<br />
end</p>
<p>To run this command, open up the Terminal and navigate to your video directory.  Then run:</p>
<p>ruby batchconvert.rb</p>
<p>This script doesn&#8217;t include any switches or options for files other than .movs.</p>
<p><em>Files: <a href="http://www.opthumb.com/wp-content/uploads/2008/10/batchconvert.zip">batchconvert</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2008/batch-video-conversion-with-ffmpeg-and-ruby/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

