<?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>srsly &#187; ffmpeg</title>
	<atom:link href="http://srsly.me/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://srsly.me</link>
	<description></description>
	<lastBuildDate>Thu, 27 May 2010 02:37:36 +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>Batch Converting Files With FFmpeg and Ruby</title>
		<link>http://srsly.me/2009/11/29/batch-converting-files-with-ffmpeg-and-ruby/</link>
		<comments>http://srsly.me/2009/11/29/batch-converting-files-with-ffmpeg-and-ruby/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 00:33:04 +0000</pubDate>
		<dc:creator>Joseph Jaramillo</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://srsly.me/?p=395</guid>
		<description><![CDATA[I recently needed to burn some video files (h.264 MKV) to DVD such that the disc would work in a standalone player.  After an hour googling for a set of commands to pass to ffmpeg to convert my files, I then started looking for batch scripts.  It occurred to me shortly thereafter that [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to burn some video files (h.264 MKV) to DVD such that the disc would work in a standalone player.  After an hour googling for a set of commands to pass to ffmpeg to convert my files, I then started looking for batch scripts.  It occurred to me shortly thereafter that Ruby could help.  I had found <a href="http://atomized.org/2005/03/converting-divxxvid-avi-to-dvd-with-ffmpeg/" target="_blank">a command</a> that worked beautifully with a single file, so all that was necessary was to automate it.</p>
<p>It only took one line to accomplish the task:</p>
<p><script src="http://gist.github.com/245152.js?file=ffmpeg-batch-mkv2dvd.rb"></script><noscript><code>Dir.glob("*.mkv").each{ |f| `ffmpeg -i "#{f}" -target ntsc-dvd -aspect 16:9 -sameq "#{f.gsub('mkv','mpg')}"` }</code></noscript></p>
<p>It&#8217;d be a cinch to generalize for input video format.</p>
]]></content:encoded>
			<wfw:commentRss>http://srsly.me/2009/11/29/batch-converting-files-with-ffmpeg-and-ruby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
