<?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>Jason L. Froebe - Tech tips and How Tos for Fellow Techies &#187; video</title>
	<atom:link href="http://froebe.net/blog/index.php/tag/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://froebe.net/blog</link>
	<description>Tips &#38; Tricks for Databases (Sybase, Oracle, MySQL, PostgreSQL, SQLite), Windows, Linux, Solaris, Perl, Java, Bash and so much much more</description>
	<lastBuildDate>Sat, 07 Jan 2012 22:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>What are the sofa cushions that women buy really for?</title>
		<link>http://froebe.net/blog/2010/09/18/what-are-the-sofa-cushions-that-women-buy-really-for/</link>
		<comments>http://froebe.net/blog/2010/09/18/what-are-the-sofa-cushions-that-women-buy-really-for/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 16:34:17 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[comedy]]></category>
		<category><![CDATA[coupling]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1277</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/Lp0-8Ibkczc?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Lp0-8Ibkczc?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2010/09/18/what-are-the-sofa-cushions-that-women-buy-really-for/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is every father (especially my dad and father-in-law) when no one else is around</title>
		<link>http://froebe.net/blog/2010/08/07/this-is-every-father-especially-my-dad-and-father-in-law-when-no-one-else-is-around/</link>
		<comments>http://froebe.net/blog/2010/08/07/this-is-every-father-especially-my-dad-and-father-in-law-when-no-one-else-is-around/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 03:05:17 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[muppets]]></category>
		<category><![CDATA[popcorn]]></category>
		<category><![CDATA[swedish chef]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1267</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/B7UmUX68KtE&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/B7UmUX68KtE&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2010/08/07/this-is-every-father-especially-my-dad-and-father-in-law-when-no-one-else-is-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FW (Sun): MVC, DCI, and NetBeans Platform Applications</title>
		<link>http://froebe.net/blog/2009/12/16/fw-sun-mvc-dci-and-netbeans-platform-applications/</link>
		<comments>http://froebe.net/blog/2009/12/16/fw-sun-mvc-dci-and-netbeans-platform-applications/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 18:31:23 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[dci]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1159</guid>
		<description><![CDATA[MVC, DCI, and NetBeans Platform Applications Jaroslav Tulach discusses the relationship between MVC and the NetBeans Platform and explains why the DCI approach offers a better understanding.]]></description>
			<content:encoded><![CDATA[<blockquote><p><em><a href="http://blip.tv/play/AYGh7k8C"><strong>MVC, DCI, and NetBeans Platform Applications</strong></a></p>
<p></em></p>
<p><em>Jaroslav Tulach discusses the relationship between MVC and the NetBeans Platform and explains why the DCI approach offers a better understanding.</em></p></blockquote>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://blip.tv/play/AYGh7k8C" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://blip.tv/play/AYGh7k8C" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/12/16/fw-sun-mvc-dci-and-netbeans-platform-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Be a supervillain for halloween (FW: Space Channel)</title>
		<link>http://froebe.net/blog/2009/10/30/be-a-supervillain-for-halloween-fw-space-channel/</link>
		<comments>http://froebe.net/blog/2009/10/30/be-a-supervillain-for-halloween-fw-space-channel/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 21:35:55 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[canada]]></category>
		<category><![CDATA[children]]></category>
		<category><![CDATA[halloween]]></category>
		<category><![CDATA[kids]]></category>
		<category><![CDATA[scifi]]></category>
		<category><![CDATA[space channel]]></category>
		<category><![CDATA[supervillain]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1145</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/x8tbEg9UsQY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/x8tbEg9UsQY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/10/30/be-a-supervillain-for-halloween-fw-space-channel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Be a superhero for Halloween (fw: Space Channel)</title>
		<link>http://froebe.net/blog/2009/10/30/be-a-superhero-for-halloween-fw-space-channel/</link>
		<comments>http://froebe.net/blog/2009/10/30/be-a-superhero-for-halloween-fw-space-channel/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 21:33:31 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[children]]></category>
		<category><![CDATA[halloween]]></category>
		<category><![CDATA[kids]]></category>
		<category><![CDATA[scifi]]></category>
		<category><![CDATA[space channel]]></category>
		<category><![CDATA[super hero]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1143</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/fH_C4Of1KvY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/fH_C4Of1KvY&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/10/30/be-a-superhero-for-halloween-fw-space-channel/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Howto convert an entire directory of videos to play on your Sony Playstation 3 using ffmpeg</title>
		<link>http://froebe.net/blog/2009/09/23/howto-convert-an-entire-directory-of-videos-to-play-on-your-sony-playstation-3-using-ffmpeg/</link>
		<comments>http://froebe.net/blog/2009/09/23/howto-convert-an-entire-directory-of-videos-to-play-on-your-sony-playstation-3-using-ffmpeg/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 14:16:00 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[checkinstall]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[libxvid]]></category>
		<category><![CDATA[mediatomb]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[mpeg4]]></category>
		<category><![CDATA[pearl]]></category>
		<category><![CDATA[ps3]]></category>
		<category><![CDATA[sony]]></category>
		<category><![CDATA[sony playstation 3]]></category>
		<category><![CDATA[storm]]></category>
		<category><![CDATA[transcode]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[x264]]></category>
		<category><![CDATA[xvid]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1127</guid>
		<description><![CDATA[I think a lot of people have been struggling with mass converting of videos for the ps3&#8230; I&#8217;ve been searching for a way to mass convert my videos (mostly podcasts) to play on my Sony PlayStation 3 over the wire with Mediatomb.  For a long time I&#8217;ve been using a hodpodge of mp4box and mencoder [...]]]></description>
			<content:encoded><![CDATA[<p>I think a lot of people have been struggling with mass converting of videos for the ps3&#8230;<br />
I&#8217;ve been searching for a way to mass convert my videos (mostly podcasts) to play on my <a href="http://www.amazon.com/gp/product/B002I0J4VQ?ie=UTF8&amp;tag=froebe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B002I0J4VQ">Sony PlayStation 3</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=froebe-20&amp;l=as2&amp;o=1&amp;a=B002I0J4VQ" border="0" alt="" width="1" height="1" /> over the wire with <a href="http://mediatomb.cc/">Mediatomb</a>.  For a long time I&#8217;ve been using a hodpodge of <a href="http://gpac.sourceforge.net/">mp4box</a> and <a href="http://www.mplayerhq.hu">mencoder</a> to convert the videos.  The problem was that mp4box more often then not would crash or get stuck in a loop where it fills up a 1TB harddrive converting a 20mb file.  There had to be a better way.</p>
<p>If your ffmpeg doesn&#8217;t support x264 (video) or aac (audio) encoding, like all Ubuntu Linux distributions, then you will have to recompile ffmpeg.  Don&#8217;t worry, it is easier then you think!</p>
<p><a href="http://ubuntuforums.org/member.php?u=162846">FakeOutdoorsman</a> over on the Ubuntu Forums posted the method to <a href="http://ubuntuforums.org/showthread.php?t=7860j95">build ffmpeg from scratch</a>:</p>
<blockquote><p>
<strong>Choose your Ubuntu</strong></p>
<p>0.The instructions on the page are for Ubuntu Jaunty Jackalope 9.04 and Ubuntu Intrepid Ibex 8.10. Separate instructions are also available for other releases:</p>
<p>    * Install FFmpeg and x264 on Ubuntu Hardy Heron 8.04 LTS<br />
    * Install FFmpeg and x264 on Ubuntu Dapper Drake 6.06 LTS</p>
<p><strong>Getting the Dependencies</strong></p>
<p>1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following:</p>
<div class="bash dean_ch"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> purge <span class="kw2">ffmpeg</span> x264 libx264-dev</div>
<p>2. Next, get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):</p>
<p>Code:</p>
<div class="bash dean_ch"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> update<br />
<span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libx11-dev libxvidcore4-dev zlib1g-dev</div>
<p><strong>Install x264</strong><br />
3. Get the most current source files from the official x264 git repository, compile, and install. You can run &#8220;./configure &#8211;help&#8221; to see what features you can enable/disable. If you are behind a firewall or unable to use git, then daily source tarballs are also available.</p>
<div class="bash dean_ch"><span class="kw3">cd</span><br />
<span class="kw2">git</span> clone <span class="kw2">git</span>:<span class="sy0">//</span>git.videolan.org<span class="sy0">/</span>x264.git<br />
<span class="kw3">cd</span> x264<br />
.<span class="sy0">/</span>configure<br />
<span class="kw2">make</span><br />
<span class="kw2">sudo</span> checkinstall <span class="re5">&#8211;fstrans</span>=no <span class="re5">&#8211;install</span>=<span class="kw2">yes</span> <span class="re5">&#8211;pkgname</span>=x264 <span class="re5">&#8211;pkgversion</span> <span class="st0">&quot;1:0.svn<span class="es5">`date +%Y%m%d`</span>-0.0ubuntu1&quot;</span> <span class="re5">&#8211;default</span></div>
<p><strong>Install FFmpeg</strong><br />
4. Get the most current source files from the official FFmpeg svn, compile, and install. Run &#8220;./configure &#8211;help&#8221; to see what features you can enable/disable. If you are behind a firewall or unable to use subversion, then nightly FFmpeg snapshots are also available.</p>
<div class="bash dean_ch"><span class="kw3">cd</span><br />
<span class="kw2">svn</span> checkout <span class="kw2">svn</span>:<span class="sy0">//</span>svn.ffmpeg.org<span class="sy0">/</span>ffmpeg<span class="sy0">/</span>trunk <span class="kw2">ffmpeg</span><br />
<span class="kw3">cd</span> <span class="kw2">ffmpeg</span><br />
.<span class="sy0">/</span>configure <span class="re5">&#8211;enable-gpl</span> <span class="re5">&#8211;enable-nonfree</span> <span class="re5">&#8211;enable-pthreads</span> <span class="re5">&#8211;enable-libfaac</span> <span class="re5">&#8211;enable-libfaad</span> <span class="re5">&#8211;enable-libmp3lame</span> <span class="re5">&#8211;enable-libtheora</span> <span class="re5">&#8211;enable-libx264</span> <span class="re5">&#8211;enable-libxvid</span> <span class="re5">&#8211;enable-x11grab</span><br />
<span class="kw2">make</span><br />
<span class="kw2">sudo</span> checkinstall <span class="re5">&#8211;fstrans</span>=no <span class="re5">&#8211;install</span>=<span class="kw2">yes</span> <span class="re5">&#8211;pkgname</span>=<span class="kw2">ffmpeg</span> <span class="re5">&#8211;pkgversion</span> <span class="st0">&quot;3:0.svn<span class="es5">`date +%Y%m%d`</span>-12ubuntu3&quot;</span> <span class="re5">&#8211;default</span> </div>
<p>That&#8217;s it for installation. You can keep the ~/x264 and ~/ffmpeg directories if you later want to update the source files to a new revision. See &#8220;Updating Your Installation&#8221; below for more details.</p></blockquote>
<p>Now that we have a working ffmpeg, we can go on to the converting the video files (<a href='http://froebe.net/blog/wp-content/uploads/2009/10/convert_videos.sh'>convert_videos.sh</a>):</p>
<div class="bash dean_ch"><span class="co0">#!/bin/bash</span></p>
<p><span class="kw1">function</span> print_usage <span class="br0">&#123;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;=============================================================================================&quot;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot; &nbsp; &nbsp; &nbsp; &nbsp;convert_videos.sh [file|directory] [output directory] {bb|bb_storm|ps3} {file prefix}&quot;</span> <br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;=============================================================================================&quot;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">function</span> verify_file <span class="br0">&#123;</span><br />
&nbsp; <span class="kw3">echo</span> j<br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">function</span> process_file <span class="br0">&#123;</span><br />
&nbsp; <span class="re2">ORIG_FILE</span>=<span class="st0">&quot;$1&quot;</span><br />
&nbsp; <span class="re2">DEST_DIR</span>=<span class="st0">&quot;$2&quot;</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-z</span> <span class="co1">${BLACKBERRY}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="re2">DEST_FILE</span>=<span class="co1">${DEST_DIR}</span><span class="sy0">/</span><span class="co1">${FILE_PREFIX}</span>$<span class="br0">&#40;</span> <span class="kw2">basename</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="sy0">|</span> <span class="kw2">perl</span> <span class="re5">-ne</span> <span class="st_h">&#8216;s/\.(?:[a-z,A-Z,0-9]{3,4})$/\.mp4/; print $_&#8217;</span> <span class="br0">&#41;</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="re2">DEST_FILE</span>=<span class="co1">${DEST_DIR}</span><span class="sy0">/</span><span class="co1">${FILE_PREFIX}</span>$<span class="br0">&#40;</span> <span class="kw2">basename</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="sy0">|</span> <span class="kw2">perl</span> <span class="re5">-ne</span> <span class="st_h">&#8216;s/\.(?:[a-z,A-Z,0-9]{3,4})$/_bb\.mp4/; print $_&#8217;</span> <span class="br0">&#41;</span><br />
&nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-f</span> <span class="st0">&quot;<span class="es3">${DEST_FILE}</span>&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot; &nbsp; &nbsp;We already processed <span class="es1">\&quot;</span><span class="es3">${ORIG_FILE}</span><span class="es1">\&quot;</span> &#8230; skipping&quot;</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="re2">VID_INFO_FPS</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-nosound</span> <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> FPS <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">VID_INFO_FPS</span>=<span class="co1">${VID_INFO_FPS#*=}</span><br />
&nbsp; &nbsp; <span class="re2">VID_INFO_WIDTH</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-nosound</span> <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> WIDTH <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">VID_INFO_WIDTH</span>=<span class="co1">${VID_INFO_WIDTH##*=}</span><br />
&nbsp; &nbsp; <span class="re2">VID_INFO_HEIGHT</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-nosound</span> <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> HEIGHT <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">VID_INFO_HEIGHT</span>=<span class="co1">${VID_INFO_HEIGHT##*=}</span><br />
&nbsp; &nbsp; <span class="re2">VID_INFO_ASPECT</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-nosound</span> <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> ASPECT <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">VID_INFO_ASPECT</span>=<span class="co1">${VID_INFO_ASPECT##*=}</span></p>
<p>&nbsp; &nbsp; <span class="re2">AUD_INFO_FORMAT</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-ao</span> null <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> AUDIO_FORMAT <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">AUD_INFO_FORMAT</span>=<span class="co1">${AUD_INFO_FORMAT##*=}</span><br />
&nbsp; &nbsp; <span class="re2">AUD_INFO_CHANNELS</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-ao</span> null <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> AUDIO_NCH <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">AUD_INFO_CHANNELS</span>=<span class="co1">${AUD_INFO_CHANNELS##*=}</span><br />
&nbsp; &nbsp; <span class="re2">AUD_INFO_BITRATE</span>=$<span class="br0">&#40;</span> <span class="kw2">mplayer</span> <span class="re5">-identify</span> <span class="re5">-ao</span> null <span class="re5">-vo</span> null <span class="re5">-nocache</span> <span class="re5">-really-quiet</span> <span class="re5">-frames</span> <span class="nu0">1</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="nu0">2</span><span class="sy0">&gt;/</span>dev<span class="sy0">/</span>null <span class="sy0">|</span> <span class="kw2">grep</span> ID_AUDIO_BITRATE <span class="br0">&#41;</span> <br />
&nbsp; &nbsp; <span class="re2">AUD_INFO_BITRATE</span>=<span class="co1">${AUD_INFO_BITRATE##*=}</span></p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${AUD_INFO_BITRATE}</span> <span class="sy0">&lt;</span> <span class="nu0">163840</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">AUD_INFO_BITRATE</span>=<span class="nu0">160</span><br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">AUD_INFO_BITRATE</span>=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${AUD_INFO_BITRATE}</span> <span class="sy0">/</span> <span class="nu0">1024</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; &nbsp; <span class="co0">###############</span><br />
&nbsp; &nbsp; <span class="co0"># &nbsp;We need to make the frame rate an acceptible amoun</span><br />
&nbsp; &nbsp; <span class="co0">###############</span><br />
&nbsp; &nbsp; <span class="kw1">case</span> <span class="co1">${VID_INFO_FPS}</span> <span class="kw1">in</span><br />
&nbsp; &nbsp; &nbsp; <span class="nu0">60.000</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co0"># HD</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_FPS</span>=<span class="nu0">59.94</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; <span class="nu0">30.000</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co0"># NTSC</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_FPS</span>=<span class="nu0">29.97</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; <span class="nu0">24.000</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co0"># PAL</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_FPS</span>=<span class="nu0">23.97</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; <span class="kw1">esac</span> </p>
<p>&nbsp; &nbsp; <span class="co0">###############</span><br />
&nbsp; &nbsp; <span class="co0"># &nbsp;We need to make the video resolution a multiple of 16 for it to be properly compressed</span><br />
&nbsp; &nbsp; <span class="co0">###############</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_HEIGHT}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL</span>=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="nu0">16</span> &#8211; <span class="co1">${VID_INFO_HEIGHT}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL</span>=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${VID_BORDER_VERTICAL}</span> <span class="sy0">/</span> <span class="nu0">2</span> <span class="br0">&#41;</span></p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_BORDER_VERTICAL}</span> <span class="sy0">%</span> <span class="nu0">2</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">let</span> VID_BORDER_VERTICAL_TOP+=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${VID_BORDER_VERTICAL}</span> &#8211; <span class="nu0">1</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">let</span> VID_BORDER_VERTICAL_BOTTOM+=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${VID_BORDER_VERTICAL}</span> + <span class="nu0">1</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL_TOP</span>=<span class="co1">${VID_BORDER_VERTICAL}</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL_BOTTOM</span>=<span class="co1">${VID_BORDER_VERTICAL}</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL_TOP</span>=<span class="nu0">0</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_VERTICAL_BOTTOM</span>=<span class="nu0">0</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL</span>=$<span class="br0">&#40;</span> <span class="nu0">16</span> &#8211; <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL</span>=$<span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">/</span> <span class="nu0">2</span> <span class="br0">&#41;</span></p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_BORDER_HORIZONTAL}</span> <span class="sy0">%</span> <span class="nu0">2</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">let</span> VID_BORDER_HORIZONTAL_RIGHT+=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${VID_BORDER_HORIZONTAL}</span> + <span class="nu0">1</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">let</span> VID_BORDER_HORIZONTAL_LEFT+=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${VID_BORDER_HORIZONTAL}</span> &#8211; <span class="nu0">1</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL_RIGHT</span>=<span class="co1">${VID_BORDER_HORIZONTAL}</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL_LEFT</span>=<span class="co1">${VID_BORDER_HORIZONTAL}</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL_LEFT</span>=<span class="nu0">0</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_BORDER_HORIZONTAL_RIGHT</span>=<span class="nu0">0</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-z</span> <span class="co1">${VID_INFO_ASPECT}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">||</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="co1">${VID_INFO_ASPECT}</span> == <span class="st0">&quot;0.0000&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_ASPECT</span>=<span class="st0">&quot;16:9&quot;</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-z</span> <span class="co1">${AUD_INFO_CHANNELS}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">AUD_INFO_CHANNELS</span>=<span class="nu0">2</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span></p>
<p>
&nbsp; &nbsp; <span class="co0">##############</span><br />
&nbsp; &nbsp; <span class="co0"># If we&#8217;re not converting for the blackberry, perform a normal conversion </span><br />
&nbsp; &nbsp; <span class="co0">##############</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-z</span> <span class="co1">${BLACKBERRY}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_RESOLUTION</span>=<span class="st0">&quot;<span class="es3">${VID_INFO_WIDTH}</span>x<span class="es3">${VID_INFO_HEIGHT}</span>&quot;</span></p>
<p>&nbsp; &nbsp; &nbsp; convert_file_first_pass </p>
<p>&nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="sy0">!</span> <span class="re5">-z</span> <span class="co1">${FIRST_PASS_BITRATE}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">BITRATE</span>=<span class="co1">${FIRST_PASS_BITRATE}</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; <span class="co0">############</span><br />
&nbsp; &nbsp; &nbsp; <span class="co0"># if we have a blackberry, set the resolution appropriately</span><br />
&nbsp; &nbsp; &nbsp; <span class="co0">############</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">case</span> <span class="co1">${BB_TYPE}</span> <span class="kw1">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; STORM<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_RESOLUTION</span>=<span class="st0">&quot;480&#215;360&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">*</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">VID_INFO_RESOLUTION</span>=<span class="st0">&quot;240&#215;180&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">esac</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; &nbsp; convert_file_second_pass <br />
&nbsp; <span class="kw1">fi</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">function</span> process_directory <span class="br0">&#123;</span><br />
&nbsp;<span class="re2">ORIG_VIDEO_DIR</span>=<span class="st0">&quot;$1&quot;</span><br />
&nbsp;<span class="re2">DEST_VIDEO_DIR</span>=<span class="st0">&quot;$2&quot;</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-d</span> <span class="st0">&quot;<span class="es3">${ORIG_VIDEO_DIR}</span>&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-d</span> <span class="st0">&quot;<span class="es3">${DEST_VIDEO_DIR}</span>&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="re2">IFS</span>=$<span class="st_h">&#8216;\n&#8217;</span></p>
<p>&nbsp; &nbsp; <span class="kw1">for</span> ORIG_VIDEO_FILE <span class="kw1">in</span> $<span class="br0">&#40;</span> <span class="kw2">find</span> <span class="st0">&quot;<span class="es3">${ORIG_VIDEO_DIR}</span>&quot;</span> <span class="re5">-depth</span> <span class="re5">-maxdepth</span> <span class="nu0">1</span> <span class="re5">-type</span> f <span class="re5">-readable</span> <span class="re5">-iregex</span> <span class="st_h">&#8216;.*\.\(3gp\|3g2\|avi\|divx\|flv\|m4v\|mj2\|mov\|mp1\|mp2\|mp4\|mpe\|mpeg\|mpeg4\|mpg\|mkv\|mv\|ogm\|rm\|rmvb\|rv\|qt\|wmv\)&#8217;</span> <span class="br0">&#41;</span>; <span class="kw1">do</span><br />
&nbsp; &nbsp; &nbsp; process_file <span class="st0">&quot;<span class="es3">${ORIG_VIDEO_FILE}</span>&quot;</span> <span class="st0">&quot;<span class="es3">${DEST_VIDEO_DIR}</span>&quot;</span><br />
&nbsp; &nbsp; <span class="kw1">done</span><br />
&nbsp; <span class="kw1">fi</span> <br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">function</span> convert_file_first_pass <span class="br0">&#123;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&quot;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot; &nbsp; First pass: <span class="es3">${ORIG_FILE}</span>&quot;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;ffmpeg -i <span class="es1">\&quot;</span><span class="es3">${ORIG_FILE}</span><span class="es1">\&quot;</span> -an -pass 1 <span class="es1">\<br />
</span> &nbsp; &nbsp;-vcodec libx264 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 <span class="es1">\<br />
</span> &nbsp; &nbsp;-me_method epzs -subq 1 -trellis 0 -refs 1 -bf 3 -b_strategy 1 -level 31 -coder 1 -me_range 16 -g 250 -keyint_min 25 <span class="es1">\<br />
</span> &nbsp; &nbsp;-sc_threshold 40 -i_qfactor 0.71 -bt 200kb -rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.6 -qmin 1 -qmax 51 -qdiff 4 <span class="es1">\<br />
</span> &nbsp; &nbsp;-padtop <span class="es3">${VID_BORDER_VERTICAL_TOP}</span> -padbottom <span class="es3">${VID_BORDER_VERTICAL_BOTTOM}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp;-padleft <span class="es3">${VID_BORDER_HORIZONTAL_LEFT}</span> -padright <span class="es3">${VID_BORDER_HORIZONTAL_RIGHT}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp;-threads 2 <span class="es1">\<br />
</span> &nbsp; &nbsp;-s <span class="es3">${VID_INFO_RESOLUTION}</span> -aspect <span class="es3">${VID_INFO_ASPECT}</span> -f rawvideo -y /dev/null&quot;</span> </p>
<p>&nbsp; <span class="kw2">ffmpeg</span> <span class="re5">-i</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="re5">-an</span> <span class="re5">-pass</span> <span class="nu0">1</span> \<br />
&nbsp; &nbsp; <span class="re5">-vcodec</span> libx264 <span class="re5">-flags</span> +loop <span class="re5">-cmp</span> +chroma <span class="re5">-partitions</span> +parti4x4+partp8x8+partb8x8 \<br />
&nbsp; &nbsp; -me_method epzs <span class="re5">-subq</span> <span class="nu0">1</span> <span class="re5">-trellis</span> <span class="nu0">0</span> <span class="re5">-refs</span> <span class="nu0">1</span> <span class="re5">-bf</span> <span class="nu0">3</span> -b_strategy <span class="nu0">1</span> <span class="re5">-level</span> <span class="nu0">31</span> <span class="re5">-coder</span> <span class="nu0">1</span> -me_range <span class="nu0">16</span> <span class="re5">-g</span> <span class="nu0">250</span> -keyint_min <span class="nu0">250</span> \<br />
&nbsp; &nbsp; -sc_threshold <span class="nu0">40</span> -i_qfactor <span class="nu0">0.71</span> <span class="re5">-bt</span> 200kb -rc_eq <span class="st_h">&#8216;blurCplx^(1-qComp)&#8217;</span> <span class="re5">-qcomp</span> <span class="nu0">0.6</span> <span class="re5">-qmin</span> <span class="nu0">1</span> <span class="re5">-qmax</span> <span class="nu0">51</span> <span class="re5">-qdiff</span> <span class="nu0">4</span> \<br />
&nbsp; &nbsp; <span class="re5">-padtop</span> <span class="co1">${VID_BORDER_VERTICAL_TOP}</span> <span class="re5">-padbottom</span> <span class="co1">${VID_BORDER_VERTICAL_BOTTOM}</span> \<br />
&nbsp; &nbsp; <span class="re5">-padleft</span> <span class="co1">${VID_BORDER_HORIZONTAL_LEFT}</span> <span class="re5">-padright</span> <span class="co1">${VID_BORDER_HORIZONTAL_RIGHT}</span> \<br />
&nbsp; &nbsp; <span class="re5">-threads</span> <span class="nu0">2</span> \<br />
&nbsp; &nbsp; <span class="re5">-s</span> <span class="co1">${VID_INFO_RESOLUTION}</span> <span class="re5">-aspect</span> <span class="co1">${VID_INFO_ASPECT}</span> <span class="re5">-f</span> rawvideo <span class="re5">-y</span> <span class="sy0">/</span>dev<span class="sy0">/</span>null <span class="nu0">2</span><span class="sy0">&gt;&amp;</span><span class="nu0">1</span> <span class="sy0">|</span> <span class="kw2">tee</span> pass2.out</p>
<p>&nbsp; <span class="re2">BITRATE</span>=$<span class="br0">&#40;</span> <span class="kw2">grep</span> <span class="re5">-e</span> <span class="st0">&quot;\[libx264.*kb\/s&quot;</span> pass2.out <span class="br0">&#41;</span><br />
&nbsp; <span class="re2">BITRATE</span>=<span class="co1">${BITRATE##*:}</span><br />
&nbsp; <span class="re2">BITRATE</span>=<span class="co1">${BITRATE/.*}</span></p>
<p>&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;average first pass bitrate: <span class="es3">${BITRATE}</span>&quot;</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="co1">${BITRATE}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${BITRATE}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw3">let</span> BITRATE+=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${BITRATE}</span> <span class="sy0">%</span> <span class="nu0">16</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">&gt;</span> <span class="nu0">1024</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">BITRATE</span>=<span class="nu0">15360</span><br />
&nbsp; &nbsp; <span class="kw1">elif</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">&gt;</span> <span class="nu0">900</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">BITRATE</span>=<span class="nu0">10240</span> <br />
&nbsp; &nbsp; <span class="kw1">elif</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">&gt;</span> <span class="nu0">719</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">BITRATE</span>=<span class="nu0">8192</span><br />
&nbsp; &nbsp; <span class="kw1">elif</span> <span class="br0">&#40;</span><span class="br0">&#40;</span> <span class="co1">${VID_INFO_WIDTH}</span> <span class="sy0">&gt;</span> <span class="nu0">620</span> <span class="br0">&#41;</span><span class="br0">&#41;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">BITRATE</span>=<span class="nu0">2560</span><br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">BITRATE</span>=<span class="nu0">512</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span><br />
&nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; <span class="re2">MAX_BITRATE</span>=$<span class="br0">&#40;</span> <span class="kw2">expr</span> <span class="co1">${BITRATE}</span> + <span class="nu0">512</span> <span class="br0">&#41;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">function</span> convert_file_second_pass <span class="br0">&#123;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&quot;</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st0">&quot; &nbsp; Second pass: <span class="es3">${ORIG_FILE}</span>&quot;</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="co1">${BLACKBERRY}</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;ffmpeg -i <span class="es1">\&quot;</span><span class="es3">${ORIG_FILE}</span><span class="es1">\&quot;</span> -vcodec mpeg4 -vtag XVID -s <span class="es3">${VID_INFO_RESOLUTION}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-qscale 10 -ab 48k -ar 22050 -ac 2 -acodec libmp3lame -deinterlace <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-b 512kb -qmin 1 -qmax 51 <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-padtop <span class="es3">${VID_BORDER_VERTICAL_TOP}</span> -padbottom <span class="es3">${VID_BORDER_VERTICAL_BOTTOM}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-padleft <span class="es3">${VID_BORDER_HORIZONTAL_LEFT}</span> -padright <span class="es3">${VID_BORDER_HORIZONTAL_RIGHT}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-aspect <span class="es3">${VID_INFO_ASPECT}</span> <span class="es1">\&quot;</span><span class="es3">${DEST_FILE}</span><span class="es1">\&quot;</span>&quot;</span></p>
<p>&nbsp; &nbsp; <span class="kw2">ffmpeg</span> <span class="re5">-i</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="re5">-vcodec</span> mpeg4 <span class="re5">-vtag</span> XVID <span class="re5">-s</span> <span class="co1">${VID_INFO_RESOLUTION}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-ab</span> 48k <span class="re5">-ar</span> <span class="nu0">22050</span> <span class="re5">-ac</span> <span class="nu0">2</span> <span class="re5">-acodec</span> libmp3lame <span class="re5">-deinterlace</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-b</span> 512kb <span class="re5">-qmin</span> <span class="nu0">1</span> <span class="re5">-qmax</span> <span class="nu0">51</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-padtop</span> <span class="co1">${VID_BORDER_VERTICAL_TOP}</span> <span class="re5">-padbottom</span> <span class="co1">${VID_BORDER_VERTICAL_BOTTOM}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-padleft</span> <span class="co1">${VID_BORDER_HORIZONTAL_LEFT}</span> <span class="re5">-padright</span> <span class="co1">${VID_BORDER_HORIZONTAL_RIGHT}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-aspect</span> <span class="co1">${VID_INFO_ASPECT}</span> <span class="st0">&quot;<span class="es3">${DEST_FILE}</span>&quot;</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;ffmpeg -i <span class="es1">\&quot;</span><span class="es3">${ORIG_FILE}</span><span class="es1">\&quot;</span> -acodec libfaac -ar 44100 -ac <span class="es3">${AUD_INFO_CHANNELS}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-async 1 -f mp4 -pass 2 -vcodec libx264 -vtag XVID -flags +loop+ilme -cmp +chroma <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me_method umh -subq 5 <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-trellis 1 -refs 5 -bf 3 -b_strategy 1 -level 31 -coder 1 -me_range 16 <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-g 250 -keyint_min 250 -sc_threshold 40 -i_qfactor 0.71 -bt 200kb <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.6 -qmin 3 -qmax 15 -qdiff 4 <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-s <span class="es3">${VID_INFO_RESOLUTION}</span> -aspect <span class="es3">${VID_INFO_ASPECT}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-padtop <span class="es3">${VID_BORDER_VERTICAL_TOP}</span> -padbottom <span class="es3">${VID_BORDER_VERTICAL_BOTTOM}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-padleft <span class="es3">${VID_BORDER_HORIZONTAL_LEFT}</span> -padright <span class="es3">${VID_BORDER_HORIZONTAL_RIGHT}</span> <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-b <span class="es3">${BITRATE}</span>kb -maxrate <span class="es3">${MAX_BITRATE}</span>kb <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-bufsize <span class="es3">${MAX_BITRATE}</span>kb -ab <span class="es3">${AUD_INFO_BITRATE}</span>kb <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-threads 2 <span class="es1">\<br />
</span> &nbsp; &nbsp; &nbsp;-r <span class="es3">${VID_INFO_FPS}</span> <span class="es1">\&quot;</span><span class="es3">${DEST_FILE}</span><span class="es1">\&quot;</span>&quot;</span></p>
<p>&nbsp; &nbsp; <span class="kw2">ffmpeg</span> <span class="re5">-i</span> <span class="st0">&quot;<span class="es3">${ORIG_FILE}</span>&quot;</span> <span class="re5">-acodec</span> libfaac <span class="re5">-ar</span> <span class="nu0">44100</span> <span class="re5">-ac</span> <span class="co1">${AUD_INFO_CHANNELS}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-async</span> <span class="nu0">1</span> <span class="re5">-f</span> mp4 <span class="re5">-pass</span> <span class="nu0">2</span> <span class="re5">-vcodec</span> libx264 <span class="re5">-vtag</span> XVID <span class="re5">-flags</span> +loop+ilme <span class="re5">-cmp</span> +chroma \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-partitions</span> +parti4x4+partp8x8+partb8x8 <span class="re5">-flags2</span> +mixed_refs -me_method umh <span class="re5">-subq</span> <span class="nu0">5</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-trellis</span> <span class="nu0">1</span> <span class="re5">-refs</span> <span class="nu0">5</span> <span class="re5">-bf</span> <span class="nu0">3</span> -b_strategy <span class="nu0">1</span> <span class="re5">-level</span> <span class="nu0">31</span> <span class="re5">-coder</span> <span class="nu0">1</span> -me_range <span class="nu0">16</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-g</span> <span class="nu0">250</span> -keyint_min <span class="nu0">250</span> -sc_threshold <span class="nu0">40</span> -i_qfactor <span class="nu0">0.71</span> <span class="re5">-bt</span> 200kb \<br />
&nbsp; &nbsp; &nbsp; -rc_eq <span class="st_h">&#8216;blurCplx^(1-qComp)&#8217;</span> <span class="re5">-qcomp</span> <span class="nu0">0.6</span> <span class="re5">-qmin</span> <span class="nu0">1</span> <span class="re5">-qmax</span> <span class="nu0">51</span> <span class="re5">-qdiff</span> <span class="nu0">4</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-s</span> <span class="co1">${VID_INFO_RESOLUTION}</span> <span class="re5">-aspect</span> <span class="co1">${VID_INFO_ASPECT}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-padtop</span> <span class="co1">${VID_BORDER_VERTICAL_TOP}</span> <span class="re5">-padbottom</span> <span class="co1">${VID_BORDER_VERTICAL_BOTTOM}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-padleft</span> <span class="co1">${VID_BORDER_HORIZONTAL_LEFT}</span> <span class="re5">-padright</span> <span class="co1">${VID_BORDER_HORIZONTAL_RIGHT}</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-b</span> <span class="co1">${BITRATE}</span>kb <span class="re5">-maxrate</span> <span class="co1">${MAX_BITRATE}</span>kb \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-bufsize</span> <span class="co1">${MAX_BITRATE}</span>kb <span class="re5">-ab</span> <span class="co1">${AUD_INFO_BITRATE}</span>kb \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-threads</span> <span class="nu0">2</span> \<br />
&nbsp; &nbsp; &nbsp; <span class="re5">-r</span> <span class="co1">${VID_INFO_FPS}</span> <span class="st0">&quot;<span class="es3">${DEST_FILE}</span>&quot;</span><br />
&nbsp; <span class="kw1">fi</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="st0">&quot;$1&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="st0">&quot;$2&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="st0">&quot;$3&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="kw1">case</span> <span class="st0">&quot;$3&quot;</span> <span class="kw1">in</span><br />
&nbsp; &nbsp; &nbsp; bb<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">BLACKBERRY</span>=<span class="nu0">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">BB_TYPE</span>=<span class="st0">&quot;norm&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; bb_storm<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">BLACKBERRY</span>=<span class="nu0">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">BB_TYPE</span>=<span class="st0">&quot;STORM&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; ps3<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; &nbsp; <span class="sy0">*</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">;;</span><br />
&nbsp; &nbsp; <span class="kw1">esac</span><br />
&nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-n</span> <span class="st0">&quot;$4&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="re2">FILE_PREFIX</span>=<span class="st0">&quot;<span class="es3">${4}</span>_&quot;</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="re2">FILE_PREFIX</span>=<span class="st0">&quot;&quot;</span><br />
&nbsp; <span class="kw1">fi</span></p>
<p>&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-f</span> <span class="st0">&quot;$1&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; process_file <span class="st0">&quot;$1&quot;</span> <span class="st0">&quot;$2&quot;</span><br />
&nbsp; <span class="kw1">elif</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re5">-d</span> <span class="st0">&quot;$1&quot;</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; process_directory <span class="st0">&quot;$1&quot;</span> <span class="st0">&quot;$2&quot;</span><br />
&nbsp; <span class="kw1">fi</span><br />
<span class="kw1">else</span><br />
&nbsp; print_usage<br />
&nbsp; <span class="kw3">exit</span><br />
<span class="kw1">fi</span><br />
&nbsp;</div>
<p>The ffmpeg parameters are based off of <a href="http://ps3wiki.qj.net/index.php/Using_ffmpeg_to_transcode_video_for_the_PS3">Using ffmpeg to transcode video for the PS3</a>.  Hope his works for you too.</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/09/23/howto-convert-an-entire-directory-of-videos-to-play-on-your-sony-playstation-3-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The 5th Amendment of the US Constitution&#8230; why you DON&#8217;T want to speak to the police</title>
		<link>http://froebe.net/blog/2009/09/08/the-5th-amendment-of-the-us-constitution-why-you-dont-want-to-speak-to-the-police/</link>
		<comments>http://froebe.net/blog/2009/09/08/the-5th-amendment-of-the-us-constitution-why-you-dont-want-to-speak-to-the-police/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 00:39:53 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[5th amendment]]></category>
		<category><![CDATA[bill of rights]]></category>
		<category><![CDATA[law professor]]></category>
		<category><![CDATA[us constitution]]></category>
		<category><![CDATA[usa]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1118</guid>
		<description><![CDATA[Nope, I am not in trouble with the police nor do I think ill of any police officers or their jobs.]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/6wXkI4t7nuc&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/6wXkI4t7nuc&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object><br />
Nope, I am not in trouble with the police nor do I think ill of any police officers or their jobs.</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/09/08/the-5th-amendment-of-the-us-constitution-why-you-dont-want-to-speak-to-the-police/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Sun/Oracle&#8217;s Netbeans 6.7 and the GlassFish version 3 application server</title>
		<link>http://froebe.net/blog/2009/08/17/video-sunoracles-netbeans-6-7-and-the-glassfish-version-3-application-server/</link>
		<comments>http://froebe.net/blog/2009/08/17/video-sunoracles-netbeans-6-7-and-the-glassfish-version-3-application-server/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 18:25:37 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Podcast]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[app server]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[glassfish]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1096</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object id="flashObj" width="486" height="322" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/1640183659?isVid=1&#038;publisherID=1460825906" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=17084640001&#038;linkBaseURL=http%3A%2F%2Fchannelsun.sun.com%2Fvideo%2Fnetbeans%2B6.7%2Band%2Bglassfish%2Bv3%2F17084640001&#038;playerID=1640183659&#038;domain=embed&#038;" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/1640183659?isVid=1&#038;publisherID=1460825906" bgcolor="#FFFFFF" flashVars="videoId=17084640001&#038;linkBaseURL=http%3A%2F%2Fchannelsun.sun.com%2Fvideo%2Fnetbeans%2B6.7%2Band%2Bglassfish%2Bv3%2F17084640001&#038;playerID=1640183659&#038;domain=embed&#038;" base="http://admin.brightcove.com" name="flashObj" width="486" height="322" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/08/17/video-sunoracles-netbeans-6-7-and-the-glassfish-version-3-application-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Because it is friday: Werewolf Bar Mitzvah</title>
		<link>http://froebe.net/blog/2009/06/19/because-it-is-friday-werewolf-bar-mitzvah/</link>
		<comments>http://froebe.net/blog/2009/06/19/because-it-is-friday-werewolf-bar-mitzvah/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:35:46 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[bar mitzvah]]></category>
		<category><![CDATA[Tracy Jordan]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1078</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" data="http://widgets.nbc.com/o/4727a250e66f9723/4a3baf75879a0557/4741e3c5156499a7/b8939032/-cpid/fb6415522dd79dae" id="W4727a250e66f97234a3baf75879a0557" width="384" height="283"><param name="movie" value="http://widgets.nbc.com/o/4727a250e66f9723/4a3baf75879a0557/4741e3c5156499a7/b8939032/-cpid/fb6415522dd79dae" /><param name="wmode" value="transparent" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/06/19/because-it-is-friday-werewolf-bar-mitzvah/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Excellent Training Videos from India&#8217;s National Programme of Technology Enhanced Learning (on YouTube)</title>
		<link>http://froebe.net/blog/2009/04/17/excellent-training-videos-from-indias-national-programme-of-technology-enhanced-learning-on-youtube/</link>
		<comments>http://froebe.net/blog/2009/04/17/excellent-training-videos-from-indias-national-programme-of-technology-enhanced-learning-on-youtube/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 17:42:52 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[india]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[National Programme of Technology Enhanced Learning]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[training videos]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1052</guid>
		<description><![CDATA[India&#8217;s National Programme of Technology Enhanced Learning provides technical lectures from all seven Indian Institutes of Technology and Indian Institute of Science, Bangalore. The Video Courses are organised as PLAYLISTS under the following Categories: Core Sciences Civil Engineering Computer Science and Engineering Electrical Engineering Electronics and Communication Engineering Mechanical Engineering Lecture 21 PERL &#8211; Part [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>India&#8217;s <a href=" http://nptel.iitm.ac.in">National Programme of Technology Enhanced Learning</a> provides technical lectures from all seven Indian Institutes of Technology and Indian Institute of Science, Bangalore.</p>
<p>The Video Courses are organised as <a href="http://www.youtube.com/profile?user=nptelhrd&amp;view=playlists">PLAYLISTS</a> under the following Categories:</p>
<ol>
<li>Core Sciences</li>
<li>Civil Engineering</li>
<li>Computer Science and Engineering</li>
<li>Electrical Engineering</li>
<li>Electronics and Communication Engineering</li>
<li>Mechanical Engineering</li>
</ol>
</blockquote>
<p><a href="http://www.youtube.com/watch?v=1pVolaKhxVM&amp;feature=PlayList&amp;p=04D5787E247DC324&amp;index=20"><em>Lecture 21 PERL &#8211; Part I</em></a> from the <a href="http://www.youtube.com/view_play_list?p=04D5787E247DC324">Computer Science &amp; Engineering&#8217;s Internet Technologies course</a> is an excellent example of these training videos:<br />
<object width="425" height="344" data="http://www.youtube.com/v/1pVolaKhxVM&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/1pVolaKhxVM&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2009/04/17/excellent-training-videos-from-indias-national-programme-of-technology-enhanced-learning-on-youtube/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FW (Slashdot): Freedom Fry — &#8220;Happy birthday to GNU&#8221;</title>
		<link>http://froebe.net/blog/2008/09/02/fw-slashdot-freedom-fry-%e2%80%94-happy-birthday-to-gnu/</link>
		<comments>http://froebe.net/blog/2008/09/02/fw-slashdot-freedom-fry-%e2%80%94-happy-birthday-to-gnu/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 16:15:38 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[birthday]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[stephen fry]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=685</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/3dcxtEKShXA&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/3dcxtEKShXA&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/09/02/fw-slashdot-freedom-fry-%e2%80%94-happy-birthday-to-gnu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anne Walker wins Sybase&#8217;s video contest!</title>
		<link>http://froebe.net/blog/2008/08/23/anne-walker-wins-sybases-video-contest/</link>
		<comments>http://froebe.net/blog/2008/08/23/anne-walker-wins-sybases-video-contest/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 15:25:54 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[Sybase]]></category>
		<category><![CDATA[TechWave]]></category>
		<category><![CDATA[anne walker]]></category>
		<category><![CDATA[ISUG]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=666</guid>
		<description><![CDATA[From the official announcement: A video featuring an intrepid corporate reporter and her real-time hunt for her on-the-move CEO was the winner of the Sybase “How We Did It” Video Challenge. “Finding Jono,” created by Anne Walker of St George Bank, Treasury &#038; Valorem Systems Australia, follows Walker from Valorem Systems headquarters to the local [...]]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/VgyXiXyQoIs&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/VgyXiXyQoIs&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>From the <a href="http://www.sybase.com/techwave">official announcement</a>:</p>
<blockquote><p><i>A video featuring an intrepid corporate reporter and her real-time hunt for her on-the-move CEO was the winner of the Sybase “How We Did It” Video Challenge.</p>
<p>“Finding Jono,” created by Anne Walker of St George Bank, Treasury &#038; Valorem Systems Australia, follows Walker from Valorem Systems headquarters to the local mall and ultimately the mall parking garage in her quest to find CEO Jon Tinberg. She is able to track his movements thanks to a company system featuring such Sybase solutions as ASE, PowerBuilder, PocketBuilder and MobiLink synchronization technology.</p>
<p>Attendees of TechWave 2008 selected “Finding Jono” as the winner of the challenge after viewing it and other video submissions over the course of the conference week and voting via text message. Walker won the top prize of $5,000 for the submission.</p>
<p>Second-place winner in the contest was “Desktop Widget,” produced by Team Sybase’s Bruce Armstrong. The second-place ranking earned Armstrong a Flip Mino compact video camera.</p>
<p>Contest voters rated the videos based on originality, creativity and how well the video showcased the company’s innovative use of Sybase software to solve a real-world challenge.</p>
<p>Sybase extends its congratulations to the winners. </i></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/08/23/anne-walker-wins-sybases-video-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>At Sybase TechWave in Vegas, I demonstrate the &#8220;Tim Tam Slam&#8221;</title>
		<link>http://froebe.net/blog/2008/08/07/at-sybase-techwave-in-vegas-i-demonstrate-the-tim-tam-slam/</link>
		<comments>http://froebe.net/blog/2008/08/07/at-sybase-techwave-in-vegas-i-demonstrate-the-tim-tam-slam/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 03:06:17 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[ISUG]]></category>
		<category><![CDATA[Sybase]]></category>
		<category><![CDATA[TeamSybase]]></category>
		<category><![CDATA[TechWave]]></category>
		<category><![CDATA[Las Vegas]]></category>
		<category><![CDATA[Tim Tam Slam]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=649</guid>
		<description><![CDATA[Jason L. Froebe, TeamSybase, ISUG Board Member, and MyDatabases magazine publisher, demonstrates the Tim Tam Slam: http://en.wikipedia.org/wiki/Tim_tam_slam]]></description>
			<content:encoded><![CDATA[<p><embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" src="http://video.google.com/googleplayer.swf?docid=221820594635002666&#038;hl=en&#038;fs=true" type="application/x-shockwave-flash"> </embed></p>
<p>Jason L. Froebe, TeamSybase, ISUG Board Member, and MyDatabases magazine publisher, demonstrates the Tim Tam Slam: http://en.wikipedia.org/wiki/Tim_tam_slam </p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/08/07/at-sybase-techwave-in-vegas-i-demonstrate-the-tim-tam-slam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>With all the craziness of trolls the past few months on the ISUG forums and Sybase newsgroups, Cali Lewis has advice</title>
		<link>http://froebe.net/blog/2008/07/31/with-all-the-craziness-of-trolls-the-past-few-months-on-the-isug-forums-and-sybase-newsgroups-cali-lewis-has-advice/</link>
		<comments>http://froebe.net/blog/2008/07/31/with-all-the-craziness-of-trolls-the-past-few-months-on-the-isug-forums-and-sybase-newsgroups-cali-lewis-has-advice/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 18:46:39 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[Sybase]]></category>
		<category><![CDATA[Cali Lewis]]></category>
		<category><![CDATA[forums]]></category>
		<category><![CDATA[GeekBrief]]></category>
		<category><![CDATA[GeekBrief.tv]]></category>
		<category><![CDATA[ISUG]]></category>
		<category><![CDATA[newsgroups]]></category>
		<category><![CDATA[trolls]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=629</guid>
		<description><![CDATA[I think we can all relate to this]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle" height="300" width="400"><param name="quality" value="best"></param><param name="allowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param><param name="movie" value="http://mevio.com/mc/videos/flash/player/fleapit.swf?conf=http%3A%2F%2Fmevio.com%2Fmc%2Fvideos%2Fscripts%2FmplayerXML2.php%3Fguid%3D7fe1ab314fed16b6cb8e74f7a5193faa"><embed wmode="opaque" classname="video-player-embed" type="application/x-shockwave-flash" src="http://mevio.com/mc/videos/flash/player/fleapit.swf?conf=http%3A%2F%2Fmevio.com%2Fmc%2Fvideos%2Fscripts%2FmplayerXML2.php%3Fguid%3D7fe1ab314fed16b6cb8e74f7a5193faa" allowscriptaccess="always" quality="best" flashvars="playerMode=embedded" pluginspage="http://www.macromedia.com/go/getflashplayer" height="300" width="400"></embed></param></object><br />
I think we can all relate to this</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/31/with-all-the-craziness-of-trolls-the-past-few-months-on-the-isug-forums-and-sybase-newsgroups-cali-lewis-has-advice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FW: Revision 3: System Episode 45 &#8211; Practically Free DIY WiFi Antennas</title>
		<link>http://froebe.net/blog/2008/07/16/fw-revision-3-system-episode-45-practically-free-diy-wifi-antennas/</link>
		<comments>http://froebe.net/blog/2008/07/16/fw-revision-3-system-episode-45-practically-free-diy-wifi-antennas/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 17:19:12 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[antennas]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[revision3]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=576</guid>
		<description><![CDATA[The building of the free windsurfer (using the Ez-12 Parabolic Reflector Template) from freeantennas.com is particularly interesting. The website claims an amplification of about 9 dBi of gain with the standard size template and 12 dBi of gain if you double the size. Something I will definitely try tonight]]></description>
			<content:encoded><![CDATA[<p><a href='http://revision3.com/systm/'><img src="http://froebe.net/blog/wp-content/uploads/2008/07/system.jpg" alt="" title="Revision3\&#039;s System" width="299" height="102" class="aligncenter size-full wp-image-577" /></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="455" height="237" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="base" value="http://bitcast-a.bitgravity.com/revision3/swf/" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#171717" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="src" value="http://bitcast-a.bitgravity.com/revision3/swf/rev3_player.swf?AutoPlay=off&amp;Buffer=120&amp;File=http://www.podtrac.com/pts/redirect.flv/bitcast-a.bitgravity.com/revision3/flv/systm/0045/systm--0045--surfer--800kbps.flv&amp;ScrubMode=advanced&amp;Thumb=http://bitcast-a.bitgravity.com/revision3/thumbs/systm--0045--surfer--thumb.jpg&amp;DefaultRatio=0.56&amp;PostRoll=http://bitcast-a.bitgravity.com/revision3/flv/sponsors/Go_Daddy_Sandwich_v.3--800kbps.flv&amp;AutoSize=off" /><embed type="application/x-shockwave-flash" width="455" height="237" src="http://bitcast-a.bitgravity.com/revision3/swf/rev3_player.swf?AutoPlay=off&amp;Buffer=120&amp;File=http://www.podtrac.com/pts/redirect.flv/bitcast-a.bitgravity.com/revision3/flv/systm/0045/systm--0045--surfer--800kbps.flv&amp;ScrubMode=advanced&amp;Thumb=http://bitcast-a.bitgravity.com/revision3/thumbs/systm--0045--surfer--thumb.jpg&amp;DefaultRatio=0.56&amp;PostRoll=http://bitcast-a.bitgravity.com/revision3/flv/sponsors/Go_Daddy_Sandwich_v.3--800kbps.flv&amp;AutoSize=off" allowfullscreen="true" allowscriptaccess="sameDomain" bgcolor="#171717" quality="high" loop="false" base="http://bitcast-a.bitgravity.com/revision3/swf/"></embed></object><br />
The building of the free windsurfer (using the <a href="http://www.freeantennas.com/projects/template2/index.html">Ez-12 Parabolic Reflector Template</a>) from <a href="http://www.freeantennas.com">freeantennas.com</a> is particularly interesting.  The website claims an amplification of about 9 dBi of gain with the standard size template and 12 dBi of gain if you double the size.  Something I will definitely try tonight <img src='http://froebe.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/16/fw-revision-3-system-episode-45-practically-free-diy-wifi-antennas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rip a dvd with HandbrakeCLI on Ubuntu Linux 8.04 (Hardy Heron) for the Sony PS3 (mpeg4 / h.264)</title>
		<link>http://froebe.net/blog/2008/07/14/rip-a-dvd-with-handbrakecli-on-ubuntu-linux-804-hardy-heron-for-the-sony-ps3-mpeg4-h264/</link>
		<comments>http://froebe.net/blog/2008/07/14/rip-a-dvd-with-handbrakecli-on-ubuntu-linux-804-hardy-heron-for-the-sony-ps3-mpeg4-h264/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 02:45:18 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[dvd rip]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[handbrake]]></category>
		<category><![CDATA[handbrakecli]]></category>
		<category><![CDATA[make_ps3_hb.sh]]></category>
		<category><![CDATA[mediatomb]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[playstation 3]]></category>
		<category><![CDATA[ps3]]></category>
		<category><![CDATA[RippedWire]]></category>
		<category><![CDATA[ripping]]></category>
		<category><![CDATA[sony ps3]]></category>
		<category><![CDATA[sourceforge.net]]></category>
		<category><![CDATA[th3rmite]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=571</guid>
		<description><![CDATA[After much trial and error, I chose HandbrakeCLI for ripping a dvd to a h.264 mpeg4 file that I can play on my Sony Playstation 3 console. Please note that HandBrake does quite well on live action video but not so good on animation. % sudo aptitude install build-essential % sudo aptitude install zlib1g-dev jam [...]]]></description>
			<content:encoded><![CDATA[<p>After much trial and error, I chose <a href="http://handbrake.fr/">HandbrakeCLI</a> for ripping a dvd to a h.264 mpeg4 file that I can play on my <a href="http://www.amazon.com/gp/product/B000XGJH1O?ie=UTF8&amp;tag=froebe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B000XGJH1O">Sony Playstation 3 console</a>.  Please note that HandBrake does quite well on live action video but not so good on animation.</p>
<div class="bash dean_ch"><span class="sy0">%</span> <span class="kw2">sudo</span> <span class="kw2">aptitude</span> <span class="kw2">install</span> build-essential<br />
<span class="sy0">%</span> <span class="kw2">sudo</span> <span class="kw2">aptitude</span> <span class="kw2">install</span> zlib1g-dev jam yasm<br />
<span class="sy0">%</span> <span class="kw2">wget</span> http:<span class="sy0">//</span>handbrake.fr<span class="sy0">/</span>rotation.php?<span class="re2">file</span>=HandBrake-0.9.2.tar.gz<br />
<span class="sy0">%</span> <span class="kw2">tar</span> zxvf HandBrake-0.9.2.tar.gz<br />
<span class="sy0">%</span> <span class="kw3">cd</span> HandBrake<br />
<span class="sy0">%</span> .<span class="sy0">/</span>configure<br />
<span class="sy0">%</span> jam<br />
<span class="sy0">%</span> <span class="kw2">cp</span> HandBrakeCLI ..<span class="sy0">/</span>bin &nbsp;<span class="co0"># to copy the binary into the user&#8217;s bin dir</span></div>
<p>We need yasm installed to pick up any cpu extensions that our cpu supports.  For example: MMX MMXEXT SSE SSE2 3DNow!</p>
<p>Now that we have a working HandBrakeCLI binary built for our system (works for 32bit or 64bit depending on which system we built it on).</p>
<p>I wrote a very simple script that will rip the dvd (legal dvd rip btw) into a mp4 file, copy it to the media-server which will be picked up automatically by <a href="http://mediatomb.cc/">mediatomb</a>.</p>
<p>make_ps3_hb.sh:</p>
<div class="bash dean_ch"><span class="co0">#!/bin/bash</span></p>
<p><span class="co0"># make_ps3_hb.sh &lt;video_name .mp4&gt; [genre]</span></p>
<p><span class="kw2">nice</span> <span class="re5">-n</span> <span class="nu0">15</span> ~<span class="sy0">/</span>bin<span class="sy0">/</span>HandBrakeCLI <span class="re5">-i</span> <span class="sy0">/</span>dev<span class="sy0">/</span>dvd <span class="re5">-e</span> x264 <span class="re5">-b</span> <span class="nu0">1200</span> <span class="re5">-B</span> <span class="nu0">160</span> <span class="re5">-R</span> <span class="nu0">48</span> <span class="re5">-E</span> faac <span class="re5">-f</span> mp4 <span class="re5">-P</span>=<span class="nu0">16</span> <span class="re5">-x</span> <span class="re2">level</span>=<span class="nu0">41</span>:<span class="re2">subme</span>=<span class="nu0">5</span>:<span class="re2">me</span>=umh <span class="re5">-T</span> <span class="re5">-2</span> <span class="re5">-d</span> <span class="re5">-7</span> <span class="re5">-8</span> <span class="re5">-O</span> <span class="re5">&#8211;crop</span> <span class="re5">-m</span> <span class="re5">-N</span> eng <span class="re5">-o</span> <span class="st0">&quot;$1&quot;</span></p>
<p><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re5">-f</span> <span class="st0">&quot;$1&quot;</span> <span class="br0">&#93;</span><br />
<span class="kw1">then</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re4">$2</span> <span class="br0">&#93;</span><br />
&nbsp; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> copying <span class="re4">$1</span> to media-server <span class="sy0">/</span>home<span class="sy0">/</span>jason<span class="sy0">/</span>Videos<span class="sy0">/</span><span class="re4">$2</span><br />
&nbsp; &nbsp; <span class="kw2">scp</span> <span class="st0">&quot;$1&quot;</span> <span class="st0">&quot;jason@media-server:/home/jason/Videos/$2/$1&quot;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">rm</span> <span class="re5">-f</span> <span class="st0">&quot;$1&quot;</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> copying <span class="re4">$1</span> to media-server <span class="sy0">/</span>home<span class="sy0">/</span>jason<span class="sy0">/</span>Videos<br />
&nbsp; &nbsp; <span class="kw2">scp</span> <span class="st0">&quot;$1&quot;</span> <span class="st0">&quot;jason@media-server:/home/jason/Videos/$1&quot;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">rm</span> <span class="re5">-f</span> <span class="st0">&quot;$1&quot;</span><br />
&nbsp; <span class="kw1">fi</span><br />
<span class="kw1">fi</span><span class="sy0">&lt;/</span>video_name<span class="sy0">&gt;</span></div>
<p><a href="http://handbrake.fr">Handbrake</a> documentation is available on the <a href="http://trac.handbrake.fr/wiki/HandBrakeGuide">Handbrake wiki website</a>.</p>
<p><strong>UPDATE</strong>: If you&#8217;re looking for a GUI front end for HandBrakeCLI on Linux, check out <a href="http://sourceforge.net/projects/rippedwire/">RippedWire</a> by <a href="http://sourceforge.net/users/th3rmite/">th3rmite</a>.</p>
<p><a href="http://froebe.net/blog/wp-content/uploads/2008/07/rippedwire.jpg"><img class="aligncenter size-medium wp-image-574" title="RippedWire" src="http://froebe.net/blog/wp-content/uploads/2008/07/rippedwire-269x300.jpg" alt="Screenshot: HandBrakeGTK 1.0.1 - Queue Tab" width="269" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/14/rip-a-dvd-with-handbrakecli-on-ubuntu-linux-804-hardy-heron-for-the-sony-ps3-mpeg4-h264/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Get $5,000 from Sybase for your &#8220;How We Did It&#8221; video (contest)</title>
		<link>http://froebe.net/blog/2008/07/10/get-5000-from-sybase-for-your-how-we-did-it-video-contest/</link>
		<comments>http://froebe.net/blog/2008/07/10/get-5000-from-sybase-for-your-how-we-did-it-video-contest/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 21:58:10 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[ISUG]]></category>
		<category><![CDATA[Sybase]]></category>
		<category><![CDATA[TeamSybase]]></category>
		<category><![CDATA[TechWave]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[how we did it]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=563</guid>
		<description><![CDATA[Now until July 30th, Sybase is accepting videos from companies, students, mega corps, hobbyists and the ghost that lives in your attic.  The video has to describe how you used Sybase products to do something &#8216;cool&#8217; (in Sybase marketing speak: create an innovative solution to a real-world challenge).  The videos must be original (you own [...]]]></description>
			<content:encoded><![CDATA[<p>Now until July 30th, Sybase is accepting videos from companies,<br />
students, mega corps, hobbyists and the ghost that lives in your<br />
attic.  The video has to describe how you used Sybase products to do<br />
something &#8216;cool&#8217; (in Sybase marketing speak: <em>create an innovative solution to a  real-world challenge</em>).  The videos must be original (you own the rights), under 3 minutes and file size of less than 50MB.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/nJlwpU_m68M&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/nJlwpU_m68M&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p style="text-align: left;">From <a href="http://www.sybase.com/videochallenge">The Sybase &#8220;How We Did It&#8221; Video Challenge</a>:</p>
<blockquote><p><em><strong>Prizes</strong></em></p>
<ul>
<li><em>First Prize: $5,000 </em></li>
<li><em>Second Prize: Flip Mino       compact video camera ($180 value) </em></li>
<li><em>Third Prize: Flip Ultra compact video camera       ($150 value)</em></li>
</ul>
<p><em><strong>Contest Rules</strong></em></p>
<ul>
<li><em>Please submit only your own original content </em></li>
<li><em>Any video content or comments will be approved       by Sybase prior to being posted to the site </em></li>
<li><em>Sybase<br />
employees and contractors and members of their immediate families are<br />
not eligible to participate in the contest. Sybase reserves the right<br />
to terminate the contest at our discretion </em></li>
<li><em>You must accept the <a href="http://www.sybase.com/detail?id=1057247">terms &amp;       conditions</a> of the contest </em></li>
<li><em>Non-English entries are welcome but need to be       subtitled </em></li>
<li><em>You must be at least 18 years of age to       participate</em></li>
</ul>
<p><em><a title="Enter Now" href="http://www.sybase.com/detail?id=1057247"><img title="Enter the Sybase Video Challenge" src="http://www.sybase.com/image/Buttons/videochallenge_enternow.gif" border="0" alt="Enter the Sybase Video Challenge" width="135" height="27" /></a></em></p>
<p><em><strong>Submission  Requirements &amp; Judging Criteria</strong></em></p>
<ul>
<li><em>Deadline for submissions is on July 31, 2008 </em></li>
<li><em>Video must be less than three minutes in length       with a file size of no more than 50MB</em></li>
<li><em>Please include a “credits” section at the end       of your video with your name and contact information</em></li>
<li><em>Include a mention of the Sybase, Sybase       iAnywhere or Sybase 365 product used in your solution</em></li>
<li><em>Online viewers and <a href="http://www.sybase.com/techwave">TechWave</a><br />
attendees will rate the videos throughout the contest. A panel of<br />
judges will select finalists from the top online rated videos, based on<br />
the following criteria: </em></p>
<ul>
<li><em>Originality </em></li>
<li><em>Creativity </em></li>
<li><em>Clarity of message showing        how you succeeded using Sybase software</em></li>
</ul>
</li>
<li><em>The winner will be chosen at TechWave by       popular vote via SMS </em></li>
<li><em>To enter your video, follow the Submission       Guidelines section below</em></li>
</ul>
<p><em><strong>Submission Guidelines</strong></em></p>
<ul>
<li><em>Videos can be submitted online after agreeing to the Terms and Conditions, or by sending a DVD to</em><em> Sybase Inc.</em>
<p><em> Video Contest</em></p>
<p><em> One Sybase Dr.,       A2014B</em></p>
<p><em> Dublin, CA        94568</em></li>
<li><em>Before uploading please fill out the <a title="The Sybase Video Challenge entry form" href="http://www.sybase.com/files/Thankyou_Pages/Sybase_VideoChallenge_EntryForm.doc">entry form</a> and create a zip file       containing the video and the entry form. Upload this zip file to submit       your entry</em></li>
<li><em>You must agree to the contest <a href="http://www.sybase.com/detail?id=1057247">Terms &amp;       Conditions</a> before you can upload your video</em></li>
</ul>
<p><em><strong><a href="http://www.sybase.com/detail?id=1057247">Review the terms and conditions and upload your video. </a></strong></em></p></blockquote>
<p>So, get out there and create your video because if you don&#8217;t, you won&#8217;t win $5,000 from Sybase!  TeamSybase and ISUG members are eligible! <img src='http://froebe.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/10/get-5000-from-sybase-for-your-how-we-did-it-video-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve been seeing a lot of &#8216;younger&#8217; drivers throwing stuff out their windows in Chicago lately</title>
		<link>http://froebe.net/blog/2008/07/09/ive-been-seeing-a-lot-of-younger-drivers-throwing-stuff-out-their-windows-in-chicago-lately/</link>
		<comments>http://froebe.net/blog/2008/07/09/ive-been-seeing-a-lot-of-younger-drivers-throwing-stuff-out-their-windows-in-chicago-lately/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 03:12:59 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[Chicago]]></category>
		<category><![CDATA[litter]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[younger drivers]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=555</guid>
		<description><![CDATA[Not sure if it is getting worse or that I&#8217;m just noticing it more&#8230; The subject of litter should not be political &#8230; just pick up your crap.]]></description>
			<content:encoded><![CDATA[<p>Not sure if it is getting worse or that I&#8217;m just noticing it more&#8230;<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/m4ozVMxzNAA&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/m4ozVMxzNAA&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object><br />
The subject of litter should <strong>not</strong> be political &#8230;  just pick up your crap.</p>
<p> <img src='http://froebe.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/09/ive-been-seeing-a-lot-of-younger-drivers-throwing-stuff-out-their-windows-in-chicago-lately/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FW (MAKE):  Robert Bruce Thompson on the demise of the chemistry set</title>
		<link>http://froebe.net/blog/2008/07/01/fw-make-robert-bruce-thompson-on-the-demise-of-the-chemistry-set/</link>
		<comments>http://froebe.net/blog/2008/07/01/fw-make-robert-bruce-thompson-on-the-demise-of-the-chemistry-set/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 17:56:13 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[Bruce Thompson]]></category>
		<category><![CDATA[chemistry]]></category>
		<category><![CDATA[chemistry sets]]></category>
		<category><![CDATA[liability]]></category>
		<category><![CDATA[make magazine]]></category>
		<category><![CDATA[sad]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=544</guid>
		<description><![CDATA[read more&#8230; It&#8217;s sad that we have become so terrified of litigation that we safe-tify the world that we simply dumbify ourselves and our children.]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fmake%2Eblip%2Etv%2Frss%2Fflash&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F1046531%3Freferrer%3Dhttp%3A%2F%2Fwww%2Egoogle%2Ecom%2Freader%2Fview%2F%26source%3D3&#038;brandlink=http%3A%2F%2Fblip%2Etv%2F%3Futm%5Fsource%3Dbrandlink&#038;brandname=blip%2Etv&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" width="400" height="255" allowfullscreen="true" id="showplayer"><param name="movie" value="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fmake%2Eblip%2Etv%2Frss%2Fflash&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F1046531%3Freferrer%3Dhttp%3A%2F%2Fwww%2Egoogle%2Ecom%2Freader%2Fview%2F%26source%3D3&#038;brandlink=http%3A%2F%2Fblip%2Etv%2F%3Futm%5Fsource%3Dbrandlink&#038;brandname=blip%2Etv&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" /><param name="quality" value="best" /><embed src="http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&#038;feedurl=http%3A%2F%2Fmake%2Eblip%2Etv%2Frss%2Fflash&#038;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F1046531%3Freferrer%3Dhttp%3A%2F%2Fwww%2Egoogle%2Ecom%2Freader%2Fview%2F%26source%3D3&#038;brandlink=http%3A%2F%2Fblip%2Etv%2F%3Futm%5Fsource%3Dbrandlink&#038;brandname=blip%2Etv&#038;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" quality="best" width="400" height="255" name="showplayer" type="application/x-shockwave-flash"></embed></object><br />
<a href="http://blog.makezine.com/archive/2008/07/robert_bruce_thompson_on.html?CMP=OTC-0D6B48984890">read more&#8230;</a></p>
<p>It&#8217;s sad that we have become so terrified of litigation that we safe-tify the world that we simply dumbify ourselves and our children.</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/07/01/fw-make-robert-bruce-thompson-on-the-demise-of-the-chemistry-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My wife says this video is about me&#8230;  what do you think? :)</title>
		<link>http://froebe.net/blog/2008/06/29/my-wife-says-this-video-is-me-what-do-you-think/</link>
		<comments>http://froebe.net/blog/2008/06/29/my-wife-says-this-video-is-me-what-do-you-think/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 17:14:15 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[DBI]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[my wife]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=535</guid>
		<description><![CDATA[My wife says this is so me&#8230; the fact that I&#8217;m not allowed to touch her macbook says something&#8230; *big grin*]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/FPE9-YozpyQ&#038;rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/FPE9-YozpyQ&#038;rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object><br />
My wife says this is so me&#8230;  the fact that I&#8217;m not allowed to touch her macbook says something&#8230;  *big grin*</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/06/29/my-wife-says-this-video-is-me-what-do-you-think/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

