<?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>Jakub Kwaczyński &#187; In English</title>
	<atom:link href="http://kwaczynski.com/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwaczynski.com</link>
	<description>They said: &#34;The Revolution Will Not Be Televised&#34;. They were wrong. - Wild Palms</description>
	<lastBuildDate>Sat, 05 Sep 2009 13:38:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Fix aspect ratio during video conversion through ffmpeg and php</title>
		<link>http://kwaczynski.com/2009/04/03/fix-aspect-ratio-during-video-conversion-through-ffmpeg-and-php/</link>
		<comments>http://kwaczynski.com/2009/04/03/fix-aspect-ratio-during-video-conversion-through-ffmpeg-and-php/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 02:44:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[In English]]></category>

		<guid isPermaLink="false">http://kwaczynski.com/?p=78</guid>
		<description><![CDATA[During video file conversions in ffmpeg, preservation of aspect ratio may fail. This circumstance created demand to solve this issue in an &#8220;automagic&#8221; manner. Aspect ratio is divided into Display Aspect Ratio as well as Pixel Aspect Ratio. The php class &#8220;php-getid3&#8243; analyzes virtually any media file and returns the latter (PAR) as a numeric [...]]]></description>
			<content:encoded><![CDATA[<p>During video file conversions in ffmpeg, preservation of aspect ratio may fail. This circumstance created demand to solve this issue in an &#8220;automagic&#8221; manner.<br />
Aspect ratio is divided into Display Aspect Ratio as well as Pixel Aspect Ratio. The php class &#8220;php-getid3&#8243; analyzes virtually any media file and returns the latter (PAR) as a numeric value, from which one can derive the DAR by means of following equation:</p>
<p><code><strong>width / (height * PAR)</strong></code></p>
<p>Example:<br />
You want to process an mpg file made from a DVD sequence. It will most probably (given PAL system) have the dimensions of 720&#215;576 and the PAR=0.7031, which is <code><strong>(Width/Height)*(9/16)=0.7031</strong></code> for a panorama (DAR=16:9) video.<br />
ffmpeg _might_ squeeze or squish such a video, giving Your result a DAR of 4:3 located in the header of the file.<br />
In order to avoid this, include this code in Your php after installing php-getid3, which will return the proper DAR:</p>
<p><code><strong>require_once('/usr/share/php-getid3/getid3.php');</strong></code><br />
&#8230;<br />
<code><strong>$this->getID3 = new getID3;</strong></code><br />
&#8230;<br />
<code>	<strong>function get_aspect($resolution,$file) {<br />
		$widthheight=explode("x",$resolution);<br />
		$fileinfo = $this->getID3->analyze($file);<br />
		getid3_lib::CopyTagsToComments($fileinfo);<br />
		$par=@$fileinfo['video']['pixel_aspect_ratio'];<br />
		if ($widthheight[0]/($par*$widthheight[1])<=4/3) return "4:3";<br />
		else return "16:9";<br />
	}</strong><br />
</code></p>
<p>Neat.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwaczynski.com/2009/04/03/fix-aspect-ratio-during-video-conversion-through-ffmpeg-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newsflash: India economic podcasts</title>
		<link>http://kwaczynski.com/2007/12/05/newsflash-india-economic-podcasts/</link>
		<comments>http://kwaczynski.com/2007/12/05/newsflash-india-economic-podcasts/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 23:04:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[In English]]></category>
		<category><![CDATA[Media]]></category>

		<guid isPermaLink="false">http://jakubk.net/?p=45</guid>
		<description><![CDATA[I&#8217;d like to serve You some podcasts, You might not know about. Go to this link on the McKinsey website to see a list of their articles in MP3-format. There are some valuable pieces about India&#8217;s and China&#8217;s economies. And this is an illustration of the race between India and China, which grabbed my positive [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to serve You some podcasts, You might not know about.<br />
Go to <a href="http://www.mckinseyquarterly.com/special_topics.aspx?stid=2&amp;srid=385">this link on the McKinsey website</a> to see a list of their articles in MP3-format. There are some valuable pieces about India&#8217;s and China&#8217;s economies.<br />
And this is an illustration of the race between India and China, which grabbed my positive attention:<br />
<a href="http://www.mckinseyquarterly.com/image/article/feature/feature_chin04.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="http://www.mckinseyquarterly.com/image/article/feature/feature_chin04.jpg" style="margin: 0px auto 10px; display: block; width: 400px; cursor: pointer; text-align: center" border="0" /></a><br />
The drawing visualizes sunset in east Asia apparently :)</p>
<p>Best wishes,<br />
Kuba</p>
]]></content:encoded>
			<wfw:commentRss>http://kwaczynski.com/2007/12/05/newsflash-india-economic-podcasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Prayer for the Condemned, or: Survival of the Fittest</title>
		<link>http://kwaczynski.com/2007/07/05/a-prayer-for-the-condemned-or-survival-of-the-fittest/</link>
		<comments>http://kwaczynski.com/2007/07/05/a-prayer-for-the-condemned-or-survival-of-the-fittest/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 04:42:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[In English]]></category>

		<guid isPermaLink="false">http://jakubk.net/?p=42</guid>
		<description><![CDATA[I&#8217;m in India for 3 months. The monsoon is raging like a few times before and one source of entertainment is American cable television in my guest-house. Tonight&#8217;s Jay Leno Show is worth a watch, since it&#8217;s packed with non-trivial humor about the nonsense of current media, politics and society. There he is, Jay Leno, [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-IN">I&#8217;m in India for 3 months. The monsoon is raging like a few times before and one source of entertainment is American cable television in my guest-house. Tonight&#8217;s Jay Leno Show is worth a watch, since it&#8217;s packed with non-trivial humor about the nonsense of current media, politics and society. There he is, Jay Leno, laughing about western civilization and it&#8217;s trivia. But it&#8217;s not only him whose having a laugh.</span></p>
<p class="MsoNormal"><span lang="EN-IN">About 20% of the world&#8217;s population has a big laugh, about trivia and non-trivia. There is intellectual comedy and there are Bronx cheers. What do they have in common? They laugh while the other 80% of the world&#8217;s population is facing drama each day. That&#8217;s no news, but I&#8217;m facing another horror than empathy for the poor. These 80% are getting more every day. People, who don&#8217;t think in terms of sending a kid to college, they don&#8217;t think about anti-conception either. While the rich are facing a horror of having another child, this is, to cut one&#8217;s comfort in order to provide your offspring a descent future, the poor haven&#8217;t ever even heard of financial planning. So to say, free market mechanisms and the morality of individual enrichment stand opposite to reproduction of one&#8217;s genes. The terrifying conclusion of this thesis is, that finally capitalism (not to mention communism) proved to be artificial social systems, which surrender under the brutal economy of natural Darwinism, which the 80% of poor parents and their children are facing each and every day.</span></p>
<p class="MsoNormal"><span lang="EN-IN">The selection of genes and individuals in 3<sup>rd</sup> world countries still progresses in the same manner like during the Paleolithic age, but today they have to face massive chemical and biological degradation of their environment. And still scientists are curious, how millions of Indians can <em>survive </em><span></span>a single bath in the Ganges river, despite its unbelievable pollution. One might say, that the Ganges river divides the less fit from the fittest.</span></p>
<p class="MsoNormal"><span lang="EN-IN">So, on the one hand we have the civilized world of finding a partner and passing their genes on by the selection of phenotypes (their attractiveness) or by means of intellectual superiority over others. On the other hand, we have the fast-growing world of underprivileged infants in developing countries, who will provide tomorrow&#8217;s gene material for the fittest men resistant to almost any chemical and biological pollution You can think of.</span></p>
<p class="MsoNormal"><span lang="EN-IN">The question is, will these worlds ever melt in a genetic test tube, producing the </span><a href="http://en.wikipedia.org/wiki/%C3%9Cbermensch">Übermensch</a><span class="unicode audiolink"><a href="http://upload.wikimedia.org/wikipedia/commons/0/0b/De-uebermensch.ogg" title="De-uebermensch.ogg" class="internal"></a></span><span lang="EN-IN">, that even Nietzsche wouldn&#8217;t have dreamt of? Or will we blow each other&#8217;s heads off in the urge of more and more hostile settlement movements and wars for natural resources?</span></p>
<p class="MsoNormal"><span lang="EN-IN">Recently, I saw an Indian street bookseller, who had dozens of copies of Hitler&#8217;s &#8220;My Struggle&#8221; on his exhibition stand. The thought that came to my mind, is that today&#8217;s world&#8217;s 6-billion-citizen family planning will remind us happy people ungently of this Antichrist&#8217;s maniacal teachings someday. Many parts of Earth and a whole lot of leaders already do, we&#8217;re just too focused on <a href="http://www.imdb.com/title/tt0103569/">Tonight&#8217;s Jay Leno&#8217;s Show</a> to really take notice of it. But the fire is spreading and we&#8217;ll notice when it will knock on our doors and ask for a little gasoline on it&#8217;s way to Rome. If that will happen, we&#8217;ll most probably all become angels, roaming above earth&#8217;s former battleground, chasing for the peace of our souls. And this Blog will become one of Google atoms of Mother Earth&#8217;s karma, waiting to be reincarnated while the wheel of history makes its <a href="http://en.wikipedia.org/wiki/Kali_Yuga">Kali Yuga</a> turn &#8212; the final one for mankind. Amen.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://kwaczynski.com/2007/07/05/a-prayer-for-the-condemned-or-survival-of-the-fittest/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

