<?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>Philip Roche &#187; photos</title>
	<atom:link href="http://www.philroche.net/category/photos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philroche.net</link>
	<description>All things Geek</description>
	<lastBuildDate>Sat, 05 Jun 2010 15:24:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gallery update frenzy</title>
		<link>http://www.philroche.net/archives/gallery-update-frenzy/</link>
		<comments>http://www.philroche.net/archives/gallery-update-frenzy/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 22:43:14 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[halfviking]]></category>
		<category><![CDATA[marathon]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/gallery-update-frenzy/</guid>
		<description><![CDATA[I haven't updated my gallery @ halfviking.com since September so this weekend I uploaded all my New Year, Christmas, Frank and Nic's wedding, Franks Stag, Marathon and visits to Clare photos as well as updating my Colwyn Bay gallery. Plenty of fun photos there... enjoy.

]]></description>
			<content:encoded><![CDATA[<p>I haven't updated my <a href="http://halfviking.com/">gallery @ halfviking.com</a> since September so this weekend I uploaded all my <a href="http://halfviking.com/newyeardec2008/">New Year</a>, <a href="http://halfviking.com/christmas2008-dublin/">Christmas</a>, <a href="http://halfviking.com/frankandnicsweddingweekend/">Frank and Nic's wedding</a>, <a href="http://halfviking.com/franksstag/">Franks Stag</a>, <a href="http://halfviking.com/dublinmarathon08/">Marathon</a> and <a href="http://halfviking.com/clareoct-nov2008/">visits to Clare</a> photos as well as updating my <a href="http://halfviking.com/livingincolwynbay2008/">Colwyn Bay gallery</a>. Plenty of fun photos there... enjoy.</p>
<p><a href="http://halfviking.com/"><img alt="New Year Dec 2008" id="image944" src="http://www.philroche.net/wp-content/uploads/2009/01/20391_thumb.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/gallery-update-frenzy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mr. and Mrs. Smyth</title>
		<link>http://www.philroche.net/archives/mr-and-mrs-smyth/</link>
		<comments>http://www.philroche.net/archives/mr-and-mrs-smyth/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 13:41:43 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[wedding]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/mr-and-mrs-smyth/</guid>
		<description><![CDATA[My two friends, Frank and Nicola, finally got married at the weekend. It was without a doubt one of the best weekends ever. I expect the hangover following the weekend to be equally epic. Well done guys!!!! Sadly I've no pictures of the weekend trip to Roundstone as my camera was mysteriously smashed (there's no [...]]]></description>
			<content:encoded><![CDATA[<p>My two friends, Frank and Nicola, finally got married at the weekend. It was without a doubt one of the best weekends ever. I expect the hangover following the weekend to be equally epic. Well done guys!!!! Sadly I've no pictures of the weekend trip to Roundstone as my camera was mysteriously smashed (there's no mystery really - there's a 100% chance it was me acting the billy goat).</p>
<p><img alt="Frank and Nic" id="image920" src="http://www.philroche.net/wp-content/uploads/2008/09/img_3467-custom.JPG" /></p>
<p>Frank and Nic walk down the aisle as man and wife (FINALLY!!!!!!!!!!!!!)</p>
<p><img alt="I can only presume this is the pre-nup they're signing." id="image923" src="http://www.philroche.net/wp-content/uploads/2008/09/img_3466-custom.JPG" /></p>
<p>I can only presume this is the pre-nup they're signing.</p>
<p><img alt="Me and the beautiful bride" id="image921" src="http://www.philroche.net/wp-content/uploads/2008/09/img_3516-custom.JPG" /><br />
Me and the beautiful bride</p>
<p><img alt="All the lads" id="image922" src="http://www.philroche.net/wp-content/uploads/2008/09/img_3496-custom.JPG" /></p>
<p>All the lads</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/mr-and-mrs-smyth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phil and Al get kinky&#8230;&#8230;again</title>
		<link>http://www.philroche.net/archives/phil-and-al-get-kinkyagain/</link>
		<comments>http://www.philroche.net/archives/phil-and-al-get-kinkyagain/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 08:47:57 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[friends]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/phil-and-al-get-kinkyagain/</guid>
		<description><![CDATA[As most of you already know - Alan and Jean (long term mates and former housemates from sydney) got engaged last week in Goa... good man Al. They had an engagemant party last saturday. As part of my month off the booze, I had planned on not drinking but with peer pressure (I'm 27 guys, [...]]]></description>
			<content:encoded><![CDATA[<p>As most of you already know - Alan and Jean (long term mates and former <a href="http://halfviking.com/livinginsydney/">housemates from sydney</a>) got engaged last week in Goa... good man Al. They had an engagemant party last saturday. As part of my month off the booze, I had planned on not drinking but with peer pressure (I'm 27 guys, peer pressure should be a thing of the past) and champagne thrust into my hand - I lost my resolve after about 10 minutes. A great night was had by all although my "eyes closed roundy roundy" dance did make me knock over a load of beer.  Well done guys - may you have a happy happy future together <img src='http://www.philroche.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img id="image824" alt="Phil and Al get kinky......again" src="http://www.philroche.net/wp-content/uploads/2007/11/allandjeanengagementpartyphilandalkinky.JPG" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/phil-and-al-get-kinkyagain/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Norway July 2007 photos up</title>
		<link>http://www.philroche.net/archives/norway-july-2007-photos-up/</link>
		<comments>http://www.philroche.net/archives/norway-july-2007-photos-up/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 07:10:00 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/norway-july-2007-photos-up/</guid>
		<description><![CDATA[ http://halfviking.com/norwayjuly2007/   I've uploaded 267 images and a few videos of my recent trip to Norway. Some of them are pretty good but but for the most it's just photos to jog my memory of when I was there.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://halfviking.com/norwayjuly2007/images/18577#curimage"><img alt="Storvatnet on Handnes island" id="image775" class="floatleft" src="http://www.philroche.net/wp-content/uploads/2007/08/storvatnetmirror_thumb.jpg" /></a> <a href="http://halfviking.com/norwayjuly2007/">http://halfviking.com/norwayjuly2007/</a>   I've uploaded 267 images and a few videos of my recent trip to Norway. Some of them are pretty good but but for the most it's just photos to jog my memory of when I was there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/norway-july-2007-photos-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Norway trip coming to an end</title>
		<link>http://www.philroche.net/archives/norway-trip-coming-to-an-end/</link>
		<comments>http://www.philroche.net/archives/norway-trip-coming-to-an-end/#comments</comments>
		<pubDate>Sun, 12 Aug 2007 19:10:00 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[halfviking]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/norway-trip-coming-to-an-end/</guid>
		<description><![CDATA[I've been in Norway for the last ten days so expect tons of photos over on halfviking.com over the next week.




]]></description>
			<content:encoded><![CDATA[<p>I've been in Norway for the last ten days so expect tons of photos over on <a href="http://www.halfviking.com">halfviking.com</a> over the next week.
</p>
<p><!--499205084a964959c39cca505bd41655-->
</p>
<p><!--499205084a964959c39cca505bd41655--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/norway-trip-coming-to-an-end/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Halfviking get&#8217;s videos (ffmpeg, convert, flvmdi, flvplayer)</title>
		<link>http://www.philroche.net/archives/halfviking-gets-videos/</link>
		<comments>http://www.philroche.net/archives/halfviking-gets-videos/#comments</comments>
		<pubDate>Fri, 26 Jan 2007 12:22:39 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[halfviking]]></category>
		<category><![CDATA[pea]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/halfviking-gets-videos/</guid>
		<description><![CDATA[I've always wanted my online gallery export script to handle videos and last weekend, I bit the bullet and wrote it. I used quite a few Open source projects to accomplish this which means that PEAExport has a few dependencies but I think it's worth it. My Canon Ixus takes AVI movies. The sizes of [...]]]></description>
			<content:encoded><![CDATA[<p>I've always wanted my online gallery export script to handle videos and last weekend, I bit the bullet and wrote it. I used quite a few Open source projects to accomplish this which means that <a title="Photoshop Elements/Album Export" href="http://sourceforge.net/projects/peaexport">PEAExport</a> has a few dependencies but I think it's worth it. My Canon Ixus takes AVI movies. The sizes of the movies range from 1MB to 50MB. To upload these would just be silly and each viewer would have to have an AVI viewer, which probably wouldn't load in the browser. I really like flash movies players like those found on YouTube and Google Video so I anted to find a free one to use, I found the wonderful <a href="http://www.jeroenwijering.com/?item=Flash_Video_Player">flvplayer</a> @ <a href="http://www.jeroenwijering.com/">http://www.jeroenwijering.com/</a>. It's an excellent player and free for non-commercial use.</p>
<p>So at this stage, I have my Videos in AVI format and a flash video (flv) player. I need to transcode them from AVI to FLV to work with the player. In work a few weeks ago we came across the <a href="http://www.erightsoft.com/SUPER.html">SUPER application</a>. This is a GUI front end to <a href="http://ffmpeg.mplayerhq.hu/">FFMPEG</a> which is an absolutely wonderful utility, It handles tens of formats and hundreds of options. I used the FFMPEG.exe bundled with SUPER to tanscode them from AVI to FLV</p>
<pre class="bash">ffmpeg.exe -i <span style="color: #ff0000;">'video.avi'</span> -y -ab <span style="color: #000000;">64</span> -<span style="color: #c20cb9; font-weight: bold;">ar</span> <span style="color: #000000;">22050</span> -b <span style="color: #000000;">200</span> -r <span style="color: #000000;">25</span> -s <span style="color: #000000;">650</span>*<span style="color: #000000;">450</span> <span style="color: #ff0000;">'video.flv'</span></pre>
<p>The options above (<a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC5">full list of options</a>):</p>
<ul>
<li>-i 'video.avi'= input file is video.avi</li>
<li>-y = overwrite existing file if it exists</li>
<li>-ab 64 = audio bitrate is 64 kbit/s</li>
<li>-ar 22050 = audio sampling rate is 22050  Hz</li>
<li>-b 200 = video bitrate is 200 kbit/s</li>
<li>-r 25 = frame rate is 25Hz</li>
<li>-s 650*450 =  rame size is 650 pixels by 450 pixels (WxH)</li>
<li>'video.flv' = output file</li>
</ul>
<p>Running this converts the hefty AVI video to a lightweight (relatively) FLV video. I then need to get the flvplayer playing this newly generated FLV.</p>
<p>&lt;object data="flvplayer.swf" type="application/x-shockwave-flash"&gt;<br />
&lt;param value="file=video.flv&image=medium.jpg&linkfromdisplay=true&link=../14" name="flashvars" /&gt;<br />
&lt;param name="movie" value="flvplayer.swf?file=video.flv&image=medium.jpg&linkfromdisplay=true&link=../14" /&gt;<br />
&lt;/object&gt;</p>
<p>There are many options for the flvplayer (<a href="http://www.jeroenwijering.com/embed/readme.html#flashvars">full list of options</a>). I only needed a few -</p>
<ul>
<li>file=video.flv = input file is video.flv</li>
<li>image=medium.jpg = the loading image before you press play is medium.jpg</li>
<li>linkfromdisplay=true = when the user clicks directly on the movie area then they will be redirected to another page</li>
<li>link=../14 = when they click on the video, they will be redirected to the relative link "../14"</li>
</ul>
<p>This plays fine but the progressbar isn't running, This is a known limitation of FFMPEG (it's fixed in the SVN version), FFMPEG does not write the metadata like video length etc to the FLV file. To do this, I was able to use another free utility called <a href="http://www.buraks.com/flvmdi/">FLVMDI</a></p>
<pre class="bash">flvdmi.exe video.flv video.flv</pre>
<p>Running this inserts all the required metadata into the FLV video. The progress Bar now works perfectly.</p>
<p>You'll notice that in the options for the flvplayer, I included "image=medium.jpg". I could have used any image here but I wanted to use a frame from the video. Fortunately FFMPEG can do this.</p>
<pre class="bash">ffmpeg.exe -i <span style="color: #ff0000;">'video.avi'</span> -y -vcodec png -vframes <span style="color: #000000;">1</span> -an -f rawvideo -s 650x450 <span style="color: #ff0000;">'videoimage.png'</span></pre>
<p>The options above (<a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC5">full list of options</a>):</p>
<ul>
<li>-i 'video.avi'= input file is video.avi</li>
<li>-y = overwrite existing file if it exists</li>
<li>-vcodec png = force video codec to png</li>
<li>-vframes 1 = set the number of video frames to one</li>
<li>-an = disable audio</li>
<li>-f rawvideo = force format to rawvideo</li>
<li>-s 650*450 =  frame size is 650 pixels by 450 pixels (WxH)</li>
<li>'videoimage.png' = output file</li>
</ul>
<p>This results in a PNG file, quite a big one, taken from the first frame of the video. The file was too big for web use so I needed to convert it to JPEG. I could have used the <a href="http://www.pythonware.com/products/pil/">Python image library PIL</a> to do this (PEAExport already uses PIL) but I was already using some command utilities utilites to create videos and images. I thought, there's no harm in another. That other was <a href="http://www.imagemagick.org/script/convert.php">Convert.exe</a> from the <a href="http://www.imagemagick.org/">ImageMagick</a> Library.</p>
<pre class="bash">convert.exe -quality <span style="color: #000000;">75</span> videoimage.png videoimage.jpg</pre>
<p>The options above (<a href="http://www.imagemagick.org/script/command-line-options.php">full list of options</a>):</p>
<ul>
<li>-quality 75 = compression level set to 75%</li>
<li>videoimage.png = videoimage.png is the input file</li>
<li>videoimage.jpg = videoimage.jpg is the output file</li>
</ul>
<p>Excellent, I now have a lightweight flv video but I want a thumbnail to display in my gallery index pages. I ran the FFMPEG fram grap command but with "-s 250x186" to reduce the size to thumbnail size. I also want to indicate that it's a video that the users is going to see and not another photo. So I need to Annotate it with the word "Video"</p>
<pre class="bash">convert.exe -quality <span style="color: #000000;">75</span> -gravity South -font C:WINDOWSFontsGOTHICB.TTF -pointsize <span style="color: #000000;">50</span> -fill black -annotate <span style="color: #000000;">+1</span><span style="color: #000000;">+1</span> Video -fill white -annotate <span style="color: #000000;">+0</span><span style="color: #000000;">+0</span> Video videoimage.png videoimage.jpg</pre>
<p>The options above (<a href="http://www.imagemagick.org/script/command-line-options.php">full list of options</a>):</p>
<ul>
<li>-quality 75 = compression level set to 75%</li>
<li>-gravity South = direction primitive gravitates to when annotating the image - In this case, we want the annotation loacted in the South of the image</li>
<li>-font C:\\WINDOWS\\Fonts\\GOTHICB.TTF = The font for the annotation. In this case I am using Century Gothic Bold</li>
<li>-pointsize 50 = The font size is set to 50 points</li>
<li>-fill black = The fill of the annotation is to be black</li>
<li>-annotate +1+1 Video = Annotate the word "Video" plus one pixel in both directions from the base position of "South"</li>
<li>-fill white =  The fill of the next annotation is to be white</li>
<li>-annotate +0+0 Video =  Annotate the word "Video" plus zero pixels in both directions from the base position of "South"</li>
<li>videoimage.png = videoimage.png is the input file</li>
<li>videoimage.jpg = videoimage.jpg is the output file</li>
</ul>
<p>This creates a thumbnail image with the word "Video" in white with a black drop shadow, in Century Gothic Bold font, size 50 points.</p>
<p><img alt="thumbnail image with the word Video" id="image745" src="http://www.philroche.net/wp-content/uploads/2007/01/bobbydivingthumb.jpg" /></p>
<p>And that my friends is it. Enjoy all my vidoes @ <a href="http://www.halfviking.com">http://www.halfviking.com</a>. I have also created a new page @ <a href="http://www.halfviking.com/videos/">http://www.halfviking.com/videos</a> using flvplayer's <a href="http://www.jeroenwijering.com/embed/readme.html#playlists">playlist feature</a>. My<a href="http://halfviking.com/bobbysuperdog/images/17636#curimage"> favourite single video</a> is Bobby very bemused as to what on earth is planted in the ground at Crosby beach north of Liverpool.
</p>
<p><!--12cb85e49d3b7f1e8118af67b5220ef5-->
</p>
<p><!--d36506d40b454e9de601a640e84df91a-->
</p>
<p><!--12cb85e49d3b7f1e8118af67b5220ef5--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/halfviking-gets-videos/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Australia Day 2007</title>
		<link>http://www.philroche.net/archives/australia-day-2007/</link>
		<comments>http://www.philroche.net/archives/australia-day-2007/#comments</comments>
		<pubDate>Fri, 26 Jan 2007 11:06:47 +0000</pubDate>
		<dc:creator>philroche</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[australia]]></category>
		<category><![CDATA[halfviking]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.philroche.net/archives/australia-day-2007/</guid>
		<description><![CDATA[It's been a whole three years since I was in Sydney celebrating Australia day. I've done a lot since then but so much of me wishes I was back there waving my paper flags. Those were good times . It's also nice to see the Aussies kicking England's ass in the cricket once again. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://halfviking.com/livinginsydney/"><img alt="Australia Day 2004 " id="image743" class="floatleft" src="http://www.philroche.net/wp-content/uploads/2007/01/philaustraliaday.jpg" /></a>It's been a whole three years since I was in Sydney celebrating Australia day. I've done a lot since then but so much of me wishes I was back there waving my paper flags. Those were <a href="http://halfviking.com/livinginsydney/">good times</a> . It's also nice to see the Aussies kicking England's ass in the cricket once again. I don't watch cricket as it's hellishly boring, I only heard it on the news.
</p>
<p><!--099f846bfa3c9ea4445af19e6b5b2738-->
</p>
<p><!--099f846bfa3c9ea4445af19e6b5b2738--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philroche.net/archives/australia-day-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
