<?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>The Road to Elysium &#187; Snippets</title>
	<atom:link href="http://jorge.fbarr.net/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://jorge.fbarr.net</link>
	<description>The life of a geek, father and husband</description>
	<lastBuildDate>Sat, 12 Jun 2010 04:34:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Embedding subtitles srt into avi files with mencoder</title>
		<link>http://jorge.fbarr.net/2010/03/17/embedding-subtitles-srt-into-avi-files-with-mencoder/</link>
		<comments>http://jorge.fbarr.net/2010/03/17/embedding-subtitles-srt-into-avi-files-with-mencoder/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 08:59:09 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://jorge.fbarr.net/?p=942</guid>
		<description><![CDATA[Easier than you might think: $ mencoder -sub movie_subtitle.srt -ovc xvid -xvidencopts bitrate=-700000 -oac copy -o new.movie.name.avi movie.avi]]></description>
			<content:encoded><![CDATA[<p>Easier than you might think:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ mencoder <span style="color: #660033;">-sub</span> movie_subtitle.srt <span style="color: #660033;">-ovc</span> xvid <span style="color: #660033;">-xvidencopts</span> <span style="color: #007800;">bitrate</span>=-<span style="color: #000000;">700000</span> <span style="color: #660033;">-oac</span> copy <span style="color: #660033;">-o</span> new.movie.name.avi movie.avi</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jorge.fbarr.net/2010/03/17/embedding-subtitles-srt-into-avi-files-with-mencoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing your Master Boot Record (MBR)</title>
		<link>http://jorge.fbarr.net/2009/11/26/removing-your-master-boot-record-mbr/</link>
		<comments>http://jorge.fbarr.net/2009/11/26/removing-your-master-boot-record-mbr/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:42:20 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://jorge.fbarr.net/?p=816</guid>
		<description><![CDATA[Removing MBR (including the partition table): # dd if=/dev/null of=/dev/sdX bs=512 count=1 Removing MBR (excluding the partition table): # dd if=/dev/null of=/dev/sdX bs=446 count=1 sdX is the device you want to remove the MBR of (like a USB-stick).]]></description>
			<content:encoded><![CDATA[<p>Removing MBR (including the partition table):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># dd if=/dev/null of=/dev/sdX bs=512 count=1</span></pre></div></div>

<p>Removing MBR (excluding the partition table):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># dd if=/dev/null of=/dev/sdX bs=446 count=1</span></pre></div></div>

<p><b>sdX</b> is the device you want to remove the MBR of (like a USB-stick).</p>
]]></content:encoded>
			<wfw:commentRss>http://jorge.fbarr.net/2009/11/26/removing-your-master-boot-record-mbr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate a htpasswd password without installing Apache</title>
		<link>http://jorge.fbarr.net/2009/08/31/generate-a-htpasswd-password-without-installing-apache/</link>
		<comments>http://jorge.fbarr.net/2009/08/31/generate-a-htpasswd-password-without-installing-apache/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 14:23:37 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://jorge.fbarr.net/?p=778</guid>
		<description><![CDATA[A oneliner with Perl does the trick: $ perl -le 'print crypt(&#34;password&#34;, &#34;salt&#34;)' Your htpasswd-file should then look like so: UserName:EncryptedPassword:YourComment]]></description>
			<content:encoded><![CDATA[<p>A oneliner with Perl does the trick:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">$ perl <span style="color: #339933;">-</span><span style="color: #b1b100;">le</span> <span style="color: #ff0000;">'print crypt(&quot;password&quot;, &quot;salt&quot;)'</span></pre></div></div>

<p>Your htpasswd-file should then look like so:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">UserName:EncryptedPassword:YourComment</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jorge.fbarr.net/2009/08/31/generate-a-htpasswd-password-without-installing-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to join multiple .avi or .mpg files &#8211; part two</title>
		<link>http://jorge.fbarr.net/2009/08/13/how-to-join-multiple-avi-or-mpg-files-part-two/</link>
		<comments>http://jorge.fbarr.net/2009/08/13/how-to-join-multiple-avi-or-mpg-files-part-two/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 07:41:02 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://jorge.fbarr.net/?p=751</guid>
		<description><![CDATA[25th of May 2008 I wrote a post about how you could join multiple files that looked something like movie.avi.001, movie.avi.002 and so on. I found a new tool that does the job a bit easier, lxsplit. The syntax of lxsplit is like so: &#91;jorge@ashitaka ~&#93;$ lxsplit LXSplit v0.2.4 by Richard Stellingwerff, O. Sezer. Home [...]]]></description>
			<content:encoded><![CDATA[<p>25th of May 2008 I wrote a post about how you could join multiple files that looked something like <strong>movie.avi.001</strong>, <strong>movie.avi.002</strong> and so on. I found a new tool that does the job a bit easier, <strong>lxsplit</strong>. The syntax of <strong>lxsplit</strong> is like so:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jorge<span style="color: #000000; font-weight: bold;">@</span>ashitaka ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ lxsplit 
LXSplit v0.2.4 by Richard Stellingwerff, O. Sezer.
Home page: http:<span style="color: #000000; font-weight: bold;">//</span>lxsplit.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
Usage: lxsplit <span style="color: #7a0874; font-weight: bold;">&#91;</span>OPTION<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>FILE<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>SPLITSIZE<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Available options:
 <span style="color: #660033;">-j</span> : <span style="color: #c20cb9; font-weight: bold;">join</span> the files beginning with the given name
 <span style="color: #660033;">-s</span> : <span style="color: #c20cb9; font-weight: bold;">split</span> the given file.  requires a valid <span style="color: #c20cb9; font-weight: bold;">size</span>
Splitsize examples: 15M, 100m, 5000k, 30000000b
&nbsp;
Examples:
	lxsplit <span style="color: #660033;">-s</span> hugefile.bin 15M
	lxsplit <span style="color: #660033;">-j</span> hugefile.bin.001</pre></div></div>

<p>So to join all our files, we execute:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ lxsplit <span style="color: #660033;">-j</span> movie.avi.001</pre></div></div>

<p>And it will join all files named <strong>movie.avi.00{1,2,3}</strong> and so on. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://jorge.fbarr.net/2009/08/13/how-to-join-multiple-avi-or-mpg-files-part-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting an avi to the Nokia E71 size</title>
		<link>http://jorge.fbarr.net/2009/07/24/converting-an-avi-to-the-nokia-e71-size/</link>
		<comments>http://jorge.fbarr.net/2009/07/24/converting-an-avi-to-the-nokia-e71-size/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 06:09:32 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://jorge.fbarr.net/?p=743</guid>
		<description><![CDATA[This is a oneliner to convert an avi-file to the correct dimensions of a Nokia E71. The screen is small, but sure beats to buy an iTouch if your cell already can play movies for you. :) $ ffmpeg -y -i input.avi -acodec libfaac -ab 72k -s 320x176 -aspect 16:9 -vcodec libx264 -b 300k -qcomp [...]]]></description>
			<content:encoded><![CDATA[<p>This is a oneliner to convert an avi-file to the correct dimensions of a Nokia E71. The screen is small, but sure beats to buy an iTouch if your cell already can play movies for you. :)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-acodec</span> libfaac <span style="color: #660033;">-ab</span> 72k <span style="color: #660033;">-s</span> 320x176 <span style="color: #660033;">-aspect</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">9</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-b</span> 300k <span style="color: #660033;">-qcomp</span> <span style="color: #000000;">0.6</span> <span style="color: #660033;">-r</span> <span style="color: #000000;">25</span> <span style="color: #660033;">-qmin</span> <span style="color: #000000;">16</span> <span style="color: #660033;">-qmax</span> <span style="color: #000000;">51</span> <span style="color: #660033;">-qdiff</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-flags</span> +loop <span style="color: #660033;">-cmp</span> +chroma <span style="color: #660033;">-subq</span> <span style="color: #000000;">7</span> <span style="color: #660033;">-refs</span> <span style="color: #000000;">6</span> <span style="color: #660033;">-g</span> <span style="color: #000000;">250</span> -keyint_min <span style="color: #000000;">25</span> -rc_eq <span style="color: #ff0000;">'blurCplx^(1-qComp)'</span> -sc_threshold <span style="color: #000000;">40</span> -me_range <span style="color: #000000;">12</span> -i_qfactor <span style="color: #000000;">0.71</span> <span style="color: #660033;">-directpred</span> <span style="color: #000000;">3</span> output.mp4</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jorge.fbarr.net/2009/07/24/converting-an-avi-to-the-nokia-e71-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.417 seconds -->
