<?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>Random notes &#38; other stuff... &#187; photo/video</title>
	<atom:link href="http://leucos.lstilde.org/wp/category/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://leucos.lstilde.org/wp</link>
	<description>...about Linux, electronics, digital photography, whatever...</description>
	<lastBuildDate>Wed, 16 Dec 2009 00:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nikon D50/D70 IR remote control</title>
		<link>http://leucos.lstilde.org/wp/2008/09/nikon-d50d70-ir-remote-control/</link>
		<comments>http://leucos.lstilde.org/wp/2008/09/nikon-d50d70-ir-remote-control/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 16:45:46 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[photo/video]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[d50]]></category>
		<category><![CDATA[infrared]]></category>
		<category><![CDATA[nikon]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=29</guid>
		<description><![CDATA[Nikon infrared remote control with some special features (interval shots, multiples shots, continuous shots, ...).]]></description>
			<content:encoded><![CDATA[<p align="left"><strong>The Project</strong></p>
<p align="left">After chasing the idea of building a remote for my D50, I found <a title="IR Remote Control" href="http://www.bigmike.it/ircontrol/">this</a> really interesting page with all you need (especially the IR timing) to get your remote up and running.</p>
<p align="left">But using a AtTiny2313 for this leaves a lot of room to play with. So I made an enhanced version with a 7-segments display and a menu system. The new firmware let&#8217;s you choose among several shooting modes.</p>
<p align="left">
<p align="left">
<p>The remote is almost identical to the BigMike&#8217;s one except :</p>
<ul>
<li>the firmware is, of course, modified</li>
<li>there is no On/Off button</li>
<li>there are two buttons for the menu (change/select)</li>
<li>there is a 7-segments display for the menu</li>
</ul>
<div id="attachment_32" class="wp-caption aligncenter" style="width: 209px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_0.jpg"><img class="size-medium wp-image-32" title="Remote control" src="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_0-199x300.jpg" alt="Remote control" width="199" height="300" /></a><p class="wp-caption-text">Remote control</p></div>
<p>The firmware sets the Tiny2313 in sleep mode after 5 seconds of inactivity.<br />
In tis mode, the datasheet gives at most 2µA current usage. So, since a CR2032 yields 220 mAh, and if I didn&#8217;t mess up somehere, you should be up and running for 10 years.</p>
<p><strong>Modes description</strong></p>
<p>The remote offers 9 shot modes, which of course can be changed in the firmware.</p>
<p>Whatever the mode, the <em>dp</em> dot blinks everytime a &laquo;&nbsp;take shot&nbsp;&raquo; IR frame is sent.</p>
<ul>
<li>Single shot mode (symbol : reversed lower &#8216;c&#8217;) : one button press makes a single shot</li>
</ul>
<ul>
<li>Double shot mode (symbol : two horizontal dashes ) : one button press makes two shots in a row</li>
</ul>
<ul>
<li>Triple shot mode (symbol : three horizontal dashes ) : one button press makes three shots in a row</li>
</ul>
<ul>
<li>Continuous shot (symbol : lower &#8216;c&#8217;) : one  button press starts continuous shooting as fast as possible until the &#8216;menu&#8217; button is pressed again or the battery is dead <img src='http://leucos.lstilde.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<ul>
<li>Continuous shot every second (symbol : number 1) : one  button press starts shooting 1 picture per second until the &#8216;menu&#8217; button is pressed again or the battery is dead</li>
</ul>
<blockquote><p>Numbers 2, 5, 0 and 6 are also continuous shoot mode with 1 picture every 2, 5 10 and 60 seconds respectively.</p></blockquote>
<div id="attachment_33" class="wp-caption aligncenter" style="width: 209px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_1.jpg"><img class="size-medium wp-image-33" title="Modes selection" src="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_1-199x300.jpg" alt="Modes selection" width="199" height="300" /></a><p class="wp-caption-text">Modes selection</p></div>
<p><strong>Files</strong></p>
<p>Wanna build yours ? You&#8217;ll need :</p>
<div id="attachment_35" class="wp-caption aligncenter" style="width: 310px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_schematics.png"><img class="size-medium wp-image-35" title="Schematic" src="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_schematics-300x212.png" alt="Circuit schematic" width="300" height="212" /></a><p class="wp-caption-text">Circuit schematic</p></div>
<div id="attachment_34" class="wp-caption aligncenter" style="width: 223px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_board.png"><img class="size-medium wp-image-34" title="Board" src="http://leucos.lstilde.org/wp/wp-content/uploads/2008/09/d50r_board-213x300.png" alt="Circuit board layout" width="213" height="300" /></a><p class="wp-caption-text">Circuit board layout</p></div>
<p>The core of the code (IR timing loop) is taken straight from <a title="IR Remote Control" href="http://www.bigmike.it/ircontrol/">BigMike&#8217;s</a> ASM source.</p>
<p><strong>Issues</strong></p>
<p>There are some issues in my version. I am not sure if they are firmware/hardware/ir issues. The problem is the reliability of triggering : sometimes it just doesn&#8217;t work. This does make the remote of reduced usability for continuous shooting modes where timing is critical.</p>
<p>I wonder where this problem comes from : IR receptor low sensitivity ? inaccurate frequency generation ? AF mode induced triggering problems in some situations ?<br />
Since I have relatively few hardware here (no friend with another D50, no oscilloscope, &#8230;) I didn&#8217;t dig it up for now.</p>
<p>And oh, BTW, the usual warnings apply : this remote can brick your MCU, destroy your Nikon, set your house on fire, etc&#8230; You&#8217;ve been warned !</p>
<p><strong>Thanks</strong></p>
<p>Big thanks to <a href="http://www.bigmike.it/ircontrol/" target="_blank">Bighignoli Michele</a>, <a href="http://www.jonas-diemer.de/english/projects/nikon-ir-remote-control.html" target="_blank">Jonas Diemer</a> and <a href="http://www.natemc.com/nikontrigger.php" target="_blank">Nate</a> who pioneered the area.</p>
<p>EDIT : I finally managed to put my hands back on the firmware ! You can grab the <a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/12/nikon_remote2asm.gz">ASM source</a> or the <a href="http://leucos.lstilde.org/wp/wp-content/uploads/2008/12/nikon_remote-2hex.gz">hex</a> file. Have fun !</p>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2008/09/nikon-d50d70-ir-remote-control/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Video snippets</title>
		<link>http://leucos.lstilde.org/wp/2008/09/video-snippets/</link>
		<comments>http://leucos.lstilde.org/wp/2008/09/video-snippets/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 15:09:21 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[photo/video]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[dvgrab]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[mencoder]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=8</guid>
		<description><![CDATA[Few usefull video snippets.
Grabbing from DV cam, autosplitting scenes :
dvgrab -- autosplit -timestamp &#160;–format=dv2 video
Deinterlacing :
ffmpeg -i in-dv.avi -deinterlace -vcodec huffyuv -pix_fmt yuv422p -target pal-dvd out.avi
Flv encoding :
ffmpeg -i input.avi -ar 22050 -ab 64 -aspect 4:3 -b 768k -pass 1 -f flv -s 640x480 -acodec mp3 output.flv
then again with
-pass 2
.
Another solution :
mencoder out.avi -o out.flv [...]]]></description>
			<content:encoded><![CDATA[<p>Few usefull video snippets.</p>
<p><strong>Grabbing from DV cam, autosplitting scenes :</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dvgrab -- autosplit -timestamp &nbsp;–format=dv2 video</div></div>
<p><strong>Deinterlacing :</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ffmpeg -i in-dv.avi -deinterlace -vcodec huffyuv -pix_fmt yuv422p -target pal-dvd out.avi</div></div>
<p><strong>Flv encoding :</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ffmpeg -i input.avi -ar 22050 -ab 64 -aspect 4:3 -b 768k -pass 1 -f flv -s 640x480 -acodec mp3 output.flv</div></div>
<p>then again with</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-pass 2</div></div>
<p>.</p>
<p>Another solution :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mencoder out.avi -o out.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames</div></div>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2008/09/video-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
