<?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: Process of Confusion</title>
	<atom:link href="http://multimedia.cx/eggs/process-of-confusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://multimedia.cx/eggs/process-of-confusion/</link>
	<description>Topics On Multimedia Technology and Reverse Engineering</description>
	<lastBuildDate>Sun, 06 May 2012 18:52:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mans</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150296</link>
		<dc:creator>Mans</dc:creator>
		<pubDate>Sat, 14 Nov 2009 17:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150296</guid>
		<description>I sent a patch for a -timelimit option.  Let&#039;s see how that goes down.</description>
		<content:encoded><![CDATA[<p>I sent a patch for a -timelimit option.  Let&#8217;s see how that goes down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Tau</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150290</link>
		<dc:creator>Raymond Tau</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150290</guid>
		<description>@Multimedia: Actually, I am not certain if it works in Windows or not. However, I guess it should works for most of *nix machines.</description>
		<content:encoded><![CDATA[<p>@Multimedia: Actually, I am not certain if it works in Windows or not. However, I guess it should works for most of *nix machines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reimar</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150284</link>
		<dc:creator>Reimar</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150284</guid>
		<description>Well, for remote execution you&#039;d have to do even more it seems, you&#039;d have to kill the remote ffmpeg and the local ssh.
Of course the thing is that &quot;normally&quot; killing the shell should also kill ssh and/or ffmpeg, so it might make more sense to investigate how you can ensure that this happens and just kill the shell.</description>
		<content:encoded><![CDATA[<p>Well, for remote execution you&#8217;d have to do even more it seems, you&#8217;d have to kill the remote ffmpeg and the local ssh.<br />
Of course the thing is that &#8220;normally&#8221; killing the shell should also kill ssh and/or ffmpeg, so it might make more sense to investigate how you can ensure that this happens and just kill the shell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Multimedia Mike</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150283</link>
		<dc:creator>Multimedia Mike</dc:creator>
		<pubDate>Fri, 13 Nov 2009 00:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150283</guid>
		<description>It turns out that &lt;a href=&quot;http://docs.python.org/library/resource.html&quot; rel=&quot;nofollow&quot;&gt;Python has a module for interfacing to getrlimit() and setrlimit()&lt;/a&gt;. Wouldn&#039;t you know, the module is only advertised to be available on Unix. Also, per my reading of the documentation, setrlimit() allows restriction on the amount of CPU time a process gets. I&#039;m pretty sure that refers to total CPU running time, not wall clock time. If FFmpeg got into some I/O blocked state, it would likely never hit the timeout. Further, this would be useless (if my theory is correct) in the remote execution case where SSH is just sitting around waiting for the remote process to finish, maybe processing a few NO-OP packets here and there.</description>
		<content:encoded><![CDATA[<p>It turns out that <a href="http://docs.python.org/library/resource.html" rel="nofollow">Python has a module for interfacing to getrlimit() and setrlimit()</a>. Wouldn&#8217;t you know, the module is only advertised to be available on Unix. Also, per my reading of the documentation, setrlimit() allows restriction on the amount of CPU time a process gets. I&#8217;m pretty sure that refers to total CPU running time, not wall clock time. If FFmpeg got into some I/O blocked state, it would likely never hit the timeout. Further, this would be useless (if my theory is correct) in the remote execution case where SSH is just sitting around waiting for the remote process to finish, maybe processing a few NO-OP packets here and there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mans</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150282</link>
		<dc:creator>Mans</dc:creator>
		<pubDate>Fri, 13 Nov 2009 00:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150282</guid>
		<description>No idea.  I can tell you that it must be done on the system running ffmpeg, not the one running the FATE script.</description>
		<content:encoded><![CDATA[<p>No idea.  I can tell you that it must be done on the system running ffmpeg, not the one running the FATE script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Multimedia Mike</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150281</link>
		<dc:creator>Multimedia Mike</dc:creator>
		<pubDate>Fri, 13 Nov 2009 00:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150281</guid>
		<description>@Mans: I&#039;ll check out setrlimit(), especially since I feel I&#039;m running short on other workable ideas. Do you suppose it will work for Windows?</description>
		<content:encoded><![CDATA[<p>@Mans: I&#8217;ll check out setrlimit(), especially since I feel I&#8217;m running short on other workable ideas. Do you suppose it will work for Windows?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mans</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150280</link>
		<dc:creator>Mans</dc:creator>
		<pubDate>Thu, 12 Nov 2009 23:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150280</guid>
		<description>@Mike: Read about setrlimit().  You can ask the OS to kill a process after it has used a set amount of CPU time.  Maybe I should just send a patch...</description>
		<content:encoded><![CDATA[<p>@Mike: Read about setrlimit().  You can ask the OS to kill a process after it has used a set amount of CPU time.  Maybe I should just send a patch&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Multimedia Mike</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150279</link>
		<dc:creator>Multimedia Mike</dc:creator>
		<pubDate>Thu, 12 Nov 2009 22:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150279</guid>
		<description>I really don&#039;t like wrapping these test specs in too much shell magic. Every layer introduces possible problems when, e.g., running  remotely, running on Windows, or running on some other systems that we haven&#039;t considered yet (BeOS/Haiku?).</description>
		<content:encoded><![CDATA[<p>I really don&#8217;t like wrapping these test specs in too much shell magic. Every layer introduces possible problems when, e.g., running  remotely, running on Windows, or running on some other systems that we haven&#8217;t considered yet (BeOS/Haiku?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SvdB</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150278</link>
		<dc:creator>SvdB</dc:creator>
		<pubDate>Thu, 12 Nov 2009 22:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150278</guid>
		<description>&lt;blockquote cite=&quot;Multimedia Mike&quot;&gt;Here’s another brainstorm: Ask FFmpeg to print out its own PID (perhaps only when a new option is specified).&lt;/blockquote&gt;

You wouldn&#039;t need to modify FFmpeg for that. You could invoke a shell script which starts ffmpeg in the background, and then returns its PID:
    ./hangaround 30 &amp;
    echo $!</description>
		<content:encoded><![CDATA[<blockquote cite="Multimedia Mike"><p>Here’s another brainstorm: Ask FFmpeg to print out its own PID (perhaps only when a new option is specified).</p></blockquote>
<p>You wouldn&#8217;t need to modify FFmpeg for that. You could invoke a shell script which starts ffmpeg in the background, and then returns its PID:<br />
    ./hangaround 30 &amp;<br />
    echo $!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Multimedia Mike</title>
		<link>http://multimedia.cx/eggs/process-of-confusion/comment-page-1/#comment-150277</link>
		<dc:creator>Multimedia Mike</dc:creator>
		<pubDate>Thu, 12 Nov 2009 18:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://multimedia.cx/eggs/?p=1947#comment-150277</guid>
		<description>Here&#039;s another brainstorm: Ask FFmpeg to print out its own PID (perhaps only when a new option is specified). FATE can parse this and use it in the timeout killer. As a bonus, this would reveal the PID of a process running on a remote platform via SSH and facilitate a timeout kill via a separate SSH process.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another brainstorm: Ask FFmpeg to print out its own PID (perhaps only when a new option is specified). FATE can parse this and use it in the timeout killer. As a bonus, this would reveal the PID of a process running on a remote platform via SSH and facilitate a timeout kill via a separate SSH process.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

