<?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>HCoder.org &#187; subway</title>
	<atom:link href="http://hcoder.org/tag/subway/feed/" rel="self" type="application/rss+xml" />
	<link>http://hcoder.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 15 Apr 2012 21:43:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Linux video editing and YouTube annotations</title>
		<link>http://hcoder.org/2008/07/23/linux-video-editing-and-youtube-annotations/</link>
		<comments>http://hcoder.org/2008/07/23/linux-video-editing-and-youtube-annotations/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 09:45:00 +0000</pubDate>
		<dc:creator>emanchado</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[copenhagen]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[subway]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In my recent trip to Copenhagen, I recorded a small video of the subway (it&#8217;s really cool, because it&#8217;s completely automatic, it doesn&#8217;t have drivers or anything). I wanted to edit the video to remove people that were reflected on the window, so I wondered if I could do that on Linux. I imagined it [...]]]></description>
			<content:encoded><![CDATA[<p>In my recent trip to Copenhagen, I recorded a small video of the subway (it&#8217;s really cool, because it&#8217;s completely automatic, it doesn&#8217;t have drivers or anything). I wanted to edit the video to remove people that were reflected on the window, so I wondered if I could do that on Linux. I imagined it wouldn&#8217;t be trivial, but it was more frustrating than I thought. Maybe I&#8217;m too old for this.</p>
<p>The first thing I tried was looking in APT&#8217;s cache for &#8220;video editing&#8221;. The most promising was <a href="http://www.kinodv.org/">kino</a>. I had tried that some time ago a couple of times, and I never made it to work, but I figured I would try again. Unfortunately, same result: I just can&#8217;t figure out how to import my videos. Maybe I&#8217;m just hitting the wrong button or whatever, but it&#8217;s really frustrating.</p>
<p>Second thing was having a look in the internet. I found the (dead and being rewritten?) Cinelerra, as always, and I didn&#8217;t feel like installing the old one from source, only to lose my time and not get it to work, so I just ignored it. Maybe they had it in debian-multimedia and wouldn&#8217;t have been a tough install after all. Anyway.</p>
<p>Next thing, I found some program called <a href="http://www.openmovieeditor.org/">openmovieeditor</a>. This one apparently worked, but I couldn&#8217;t figure out how to crop the image (or almost any other thing for that matter).</p>
<p>Next, some neat program written in Python, called <a href="http://www.pitivi.org/wiki/Main_Page">pitivi</a>. When I tried to run it though, it just said <code>Error:  Icon 'misc' not present in theme</code> on the console and died. I later figured out that I had to install <code>gnome-icon-theme</code> for it to work (yeah, Debian maintainer&#8217;s fault). It&#8217;s funny, because on the webpage it says that it has some &#8220;advanced view&#8221; that you can access via the &#8220;View&#8221; menu&#8230; but I couldn&#8217;t find it. My menu only had one entry: &#8220;Fullscreen&#8221;. Great.</p>
<p>Oh, wait, there&#8217;s a <code>gimp-gap</code>. I could just import my animation in Gimp, crop the frames, and convert again to video. Easier said than done. I needed some programs that I didn&#8217;t have, and I wasn&#8217;t sure if they were so easy/quick/clean to install (sure, I could have exported to <span class="caps">GIF</span> animation and probably convert to video, I just didn&#8217;t want to lose so much color quality in the <span class="caps">GIF</span> step). Forget for now. At least I had the images, so if I could just turn them into a movie&#8230;</p>
<p>So, I started wondering if, given that I had decided to just crop, and especially now that I had a lot of images that were the frames, maybe I could just use some command line tool or something. So I found this tiny little program, <code>images2mpg</code>. Long story short, after installing some dependencies from source (that gave compilation errors, but luckily I could compile only the binaries I really needed) that program was <strong>completely</strong> retarded and didn&#8217;t even do what I wanted (it wanted at least one second between images, but I didn&#8217;t want a slideshow, just a normal movie from the frames). It looks some simple and it&#8217;s so buggy. Gah.</p>
<p>So I started wondering if I could just crop with <a href="http://www.mplayerhq.hu/">mplayer</a>&#8230; Hmmm&#8230; after a couple of problems (like documented switches that were not there and other crap), I ended up with this command line:</p>
<pre>
<code>
mencoder -vf crop=320:200:0:40 MVI_2160.AVI
         -ovc lavc -nosound -o metro-crop.avi
</code>
</pre>
<p>That was reasonably quick and easy but it was so frustrating after all that lost time.</p>
<p>In any case, I ended up with the video I wanted, so I went to YouTube to upload it. When uploading, I realised that there was some option I had never seen: <em>annotations</em>.</p>
<p>YouTube annotations are really cool. They are like the notes on Flickr, but on a video <code>:-D</code> Actually I kind of wanted to make a note like that on this video, to show the automatic doors on the Metro station, so I was really happy to see that I could actually do it. And the interface is really easy to use and very clear. I really like it! You can see the result here:</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/urWNdPKydzM&#038;hl=es&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/urWNdPKydzM&#038;hl=es&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong><span class="caps">EDIT</span>:</strong> <span class="caps">WTF</span>? The annotations don&#8217;t appear on the embedded videos? You&#8217;ll have to go to the <a href="http://es.youtube.com/watch?v=urWNdPKydzM">video page</a> to see them, then&#8230;</p>
 <p><a href="http://hcoder.org/?flattrss_redirect&amp;id=33&amp;md5=243c6f3693044a168f265c005a173719" title="Flattr" target="_blank"><img src="http://hcoder.org/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://hcoder.org/2008/07/23/linux-video-editing-and-youtube-annotations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=30124&amp;popout=1&amp;url=http%3A%2F%2Fhcoder.org%2F2008%2F07%2F23%2Flinux-video-editing-and-youtube-annotations%2F&amp;language=en_GB&amp;category=text&amp;title=Linux+video+editing+and+YouTube+annotations&amp;description=In+my+recent+trip+to+Copenhagen%2C+I+recorded+a+small+video+of+the+subway+%28it%26%238217%3Bs+really+cool%2C+because+it%26%238217%3Bs+completely+automatic%2C+it+doesn%26%238217%3Bt+have+drivers+or+anything%29.+I+wanted+to...&amp;tags=copenhagen%2Cediting%2Clinux%2Crants%2Csubway%2Cvideo%2Cyoutube%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

