<?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"
	>
<channel>
	<title>Comments on: Converting Videos with Rails: Converting the Video</title>
	<atom:link href="http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/</link>
	<description>Ruby on Rails, Javascript, CSS and Standards</description>
	<pubDate>Fri, 21 Nov 2008 16:26:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Sergei</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-789</link>
		<dc:creator>Sergei</dc:creator>
		<pubDate>Fri, 21 Nov 2008 10:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-789</guid>
		<description>Hello, Jim.

I have a problem - after loading a file on a server, it remains in a folder /tmp with name CGI ***** and nothing occurs... There Are ideas why that occurs? The same most with any loading files in RoR... 

Best regards, Sergey...</description>
		<content:encoded><![CDATA[<p>Hello, Jim.</p>
<p>I have a problem - after loading a file on a server, it remains in a folder /tmp with name CGI ***** and nothing occurs&#8230; There Are ideas why that occurs? The same most with any loading files in RoR&#8230; </p>
<p>Best regards, Sergey&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Yerhot</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-765</link>
		<dc:creator>John Yerhot</dc:creator>
		<pubDate>Sun, 16 Nov 2008 02:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-765</guid>
		<description>This is a great article.

What where you going to use for background processing?  I used backgroundrb a while back and it worked well for my purposes. 

Looking forward to part 3!</description>
		<content:encoded><![CDATA[<p>This is a great article.</p>
<p>What where you going to use for background processing?  I used backgroundrb a while back and it worked well for my purposes. </p>
<p>Looking forward to part 3!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Motte</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-738</link>
		<dc:creator>Scott Motte</dc:creator>
		<pubDate>Wed, 12 Nov 2008 21:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-738</guid>
		<description>You know what, I think ffmpeg can be installed now (at least on ubuntu hardy) simply via:

sudo apt-get install ffmpeg</description>
		<content:encoded><![CDATA[<p>You know what, I think ffmpeg can be installed now (at least on ubuntu hardy) simply via:</p>
<p>sudo apt-get install ffmpeg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirvana</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-693</link>
		<dc:creator>Nirvana</dc:creator>
		<pubDate>Sat, 25 Oct 2008 05:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-693</guid>
		<description>Nice job but I have one issue. I am unable to convert wmv file into flv with ffmpeg. Any suggestion......</description>
		<content:encoded><![CDATA[<p>Nice job but I have one issue. I am unable to convert wmv file into flv with ffmpeg. Any suggestion&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-676</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Mon, 06 Oct 2008 03:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-676</guid>
		<description>Very nice writeup, I look forward to the next installment.

I had some trouble testing uploads.  Turns out I'd found &lt;a href="http://bryan-ash.blogspot.com/2008/09/my-first-rails-bug.html" rel="nofollow"&gt;my first Rails bug&lt;/a&gt;.  I'm not holding my breath for the patch to make it into Rails anytime soon since it only applies to Windows, but if anyone's interested, it's available from &lt;a href="http://github.com/bryanash/rails/tree" rel="nofollow"&gt;http://github.com/bryanash/rails/tree&lt;/a&gt;

Thanks again!
Bryan</description>
		<content:encoded><![CDATA[<p>Very nice writeup, I look forward to the next installment.</p>
<p>I had some trouble testing uploads.  Turns out I&#8217;d found <a href="http://bryan-ash.blogspot.com/2008/09/my-first-rails-bug.html" rel="nofollow">my first Rails bug</a>.  I&#8217;m not holding my breath for the patch to make it into Rails anytime soon since it only applies to Windows, but if anyone&#8217;s interested, it&#8217;s available from <a href="http://github.com/bryanash/rails/tree" rel="nofollow">http://github.com/bryanash/rails/tree</a></p>
<p>Thanks again!<br />
Bryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Miller</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-536</link>
		<dc:creator>Curtis Miller</dc:creator>
		<pubDate>Sat, 23 Aug 2008 21:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-536</guid>
		<description>Jim, great articles.

I think the old acts_as_state_machine plugin has been replaced by the AASM gem. You can find it over on GitHub: 

http://github.com/rubyist/aasm

Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Jim, great articles.</p>
<p>I think the old acts_as_state_machine plugin has been replaced by the AASM gem. You can find it over on GitHub: </p>
<p><a href="http://github.com/rubyist/aasm" rel="nofollow">http://github.com/rubyist/aasm</a></p>
<p>Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how to open an flv file</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-525</link>
		<dc:creator>how to open an flv file</dc:creator>
		<pubDate>Fri, 01 Aug 2008 13:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-525</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Erb</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-515</link>
		<dc:creator>Michael Erb</dc:creator>
		<pubDate>Wed, 23 Jul 2008 04:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-515</guid>
		<description>Nice writeup! Looking forward to the next one.

I made one modification to my implementation of this:

Not adding "@video.convert" to the controller. Instead adding "after_create :convert" to the model. This will only convert new videos.

I have a form in which the user can add an arbitrary number of videos to a related model so I added "after_save :convert" and then modified 'convert' to not bother with videos that were already converted:

def convert
  # don't convert the converted!!!
  unless self.state.eql?("converted")
    self.convert!
    success = system(convert_command)
    if success &#38;&#38; $?.exitstatus == 0
      self.converted!
    else
      self.failure!
    end
  end
end

Thanks again!</description>
		<content:encoded><![CDATA[<p>Nice writeup! Looking forward to the next one.</p>
<p>I made one modification to my implementation of this:</p>
<p>Not adding &#8220;@video.convert&#8221; to the controller. Instead adding &#8220;after_create :convert&#8221; to the model. This will only convert new videos.</p>
<p>I have a form in which the user can add an arbitrary number of videos to a related model so I added &#8220;after_save :convert&#8221; and then modified &#8216;convert&#8217; to not bother with videos that were already converted:</p>
<p>def convert<br />
  # don&#8217;t convert the converted!!!<br />
  unless self.state.eql?(&#8221;converted&#8221;)<br />
    self.convert!<br />
    success = system(convert_command)<br />
    if success &amp;&amp; $?.exitstatus == 0<br />
      self.converted!<br />
    else<br />
      self.failure!<br />
    end<br />
  end<br />
end</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skiptree</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-514</link>
		<dc:creator>skiptree</dc:creator>
		<pubDate>Tue, 22 Jul 2008 15:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-514</guid>
		<description>I actually did a screencast on this subject complete with active messaging background process.  My more recent incarnation is without ActiveMessaging, and uses backgroundrb along with paperclip for the file upload, but i have to update the screencast for that stuff.  You can see the old screencast, along with all the project files on blog.skiptree.com under the presentations link.  A nice wrapper for ffmpeg is RVIDEO.  It makes the ffmpeg interaction much prettier.</description>
		<content:encoded><![CDATA[<p>I actually did a screencast on this subject complete with active messaging background process.  My more recent incarnation is without ActiveMessaging, and uses backgroundrb along with paperclip for the file upload, but i have to update the screencast for that stuff.  You can see the old screencast, along with all the project files on blog.skiptree.com under the presentations link.  A nice wrapper for ffmpeg is RVIDEO.  It makes the ffmpeg interaction much prettier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://jimneath.org/2008/06/03/converting-videos-with-rails-converting-the-video/#comment-506</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 17 Jul 2008 13:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=40#comment-506</guid>
		<description>Any idea when part 3 will be released (background processing)?</description>
		<content:encoded><![CDATA[<p>Any idea when part 3 will be released (background processing)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
