<?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>Mike Chambers &#187; d90</title>
	<atom:link href="http://www.mikechambers.com/blog/tag/d90/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog</link>
	<description>code = joy</description>
	<lastBuildDate>Sun, 15 Jan 2012 05:46:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Converting Nikon D90 Videos to work with Adobe Premiere Pro CS4</title>
		<link>http://www.mikechambers.com/blog/2009/08/02/convert-nikon-d90-videos-to-work-with-adobe-premiere-pro-cs4/</link>
		<comments>http://www.mikechambers.com/blog/2009/08/02/convert-nikon-d90-videos-to-work-with-adobe-premiere-pro-cs4/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 19:43:02 +0000</pubDate>
		<dc:creator>mikechambers</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[d90]]></category>
		<category><![CDATA[nikon]]></category>
		<category><![CDATA[premiere]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1779</guid>
		<description><![CDATA[I recently bought my first DSLR, the Nikon D90, which I have been having a blast with. One of the cool features of the camera, is that it supports creating HD video clips (of up to 5 minutes) (view an example here). However, the way the clips are created seems to confuse Adobe Premiere Pro [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.mikechambers.com%2Fblog%2F2009%2F08%2F02%2Fconvert-nikon-d90-videos-to-work-with-adobe-premiere-pro-cs4%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif&amp;source=mesh&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently bought my first DSLR, the <a href="http://www.nikonusa.com/Find-Your-Nikon/Product/Digital-SLR/25446/D90.html">Nikon D90</a>, which I have been <a href="http://www.flickr.com/photos/mikechambers/collections/72157621787429394/">having a blast with</a>. One of the cool features of the camera, is that it supports creating HD video clips (of up to 5 minutes) (view an example <a href="http://www.flickr.com/photos/mikechambers/3774623194/in/set-72157621777297569/">here</a>). However, the way the clips are created seems to confuse <a href="http://tryit.adobe.com/us/cs4/premiere/p/?sdid=ETRZP">Adobe Premiere Pro CS4</a>, which won&#8217;t open or import the clips without a little work on your part.<br />
<span id="more-1779"></span><br />
I found instructions <a href="http://www.alexbeckett.co.uk/blog/2009/07/02/techie-importing-d90-dmovie-video-into-premiere-pro/">here</a> on how to use the terminal to get Premiere to understand the clips, and based on that (with some tweaks and fixes), I have put together a bash script that will &#8220;fix&#8221; all of the Nikon D90 AVI clips in a directory so that Premiere Pro will recognize them.</p>
<p><strong>Usage:</strong></p>
<p><code>d90topremier [dirWithClips]</code></p>
<p>The &#8220;dirWithClips&#8221; argument is optional, and if not specified will assume the clips are in the current working director.</p>
<p>The output will look something like this:</p>
<pre><code>./DSC_0002.AVI --> ./DSC_0002.mov
./DSC_0003.AVI --> ./DSC_0003.mov
./DSC_0004.AVI --> ./DSC_0004.mov
./DSC_0005.AVI --> ./DSC_0005.mov
./DSC_0007.AVI --> ./DSC_0007.mov
./DSC_0008.AVI --> ./DSC_0008.mov
./DSC_0009.AVI --> ./DSC_0009.mov
./DSC_0010.AVI --> ./DSC_0010.mov
./DSC_0011.AVI --> ./DSC_0011.mov
./DSC_0014.AVI --> ./DSC_0014.mov
</code></pre>
<p>&nbsp;</p>
<p><strong>Requirements</strong></p>
<p>The script requires the &#8220;setfile&#8221; command, which is available in the free <a href="https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414">Mac OS X Developer SDK</a>.</p>
<p><strong>Script</strong></p>
<div class="highlight">
<pre><span style="color: #408080; font-style: italic">#/bin/bash</span>

<span style="color: #408080; font-style: italic">#################################################</span>
<span style="color: #408080; font-style: italic">#</span>
<span style="color: #408080; font-style: italic"># Bash script that modifies Nikon D90 AVI Video</span>
<span style="color: #408080; font-style: italic"># file so they are reconized by Adobe Preiere Pro CS4</span>
<span style="color: #408080; font-style: italic">#</span>
<span style="color: #408080; font-style: italic"># Created by Mike Chambers</span>
<span style="color: #408080; font-style: italic"># http://www.mikechambers.com</span>
<span style="color: #408080; font-style: italic"># Based on original script at:</span>
<span style="color: #408080; font-style: italic"># http://www.alexbeckett.co.uk/blog/2009/07/02/techie-importing-d90-dmovie-video-into-premiere-pro/</span>
<span style="color: #408080; font-style: italic">#</span>
<span style="color: #408080; font-style: italic">#################################################i</span>

<span style="color: #19177C">oldExt</span><span style="color: #666666">=</span>mov
<span style="color: #19177C">newExt</span><span style="color: #666666">=</span>AVI

<span style="color: #19177C">d</span><span style="color: #666666">=</span><span style="color: #BA2121">&quot;./&quot;</span>

<span style="color: #008000; font-weight: bold">if</span> <span style="color: #666666">[</span> -n <span style="color: #BA2121">&quot;$1&quot;</span> <span style="color: #666666">]</span>;then
        <span style="color: #19177C">d</span><span style="color: #666666">=</span><span style="color: #BA2121">&quot;$1&quot;</span>
<span style="color: #008000; font-weight: bold">fi</span>

<span style="color: #008000; font-weight: bold">if</span> <span style="color: #666666">[</span> ! -e <span style="color: #BA2121">&quot;$d&quot;</span> <span style="color: #666666">]</span>; <span style="color: #008000; font-weight: bold">then</span>
<span style="color: #008000; font-weight: bold">        </span><span style="color: #008000">echo</span> <span style="color: #BA2121">&quot;$d does not exist&quot;</span>
        <span style="color: #008000">exit </span>0;
<span style="color: #008000; font-weight: bold">fi</span>

<span style="color: #008000; font-weight: bold">for </span>filename in <span style="color: #BA2121">&quot;$d&quot;</span>*.<span style="color: #19177C">$oldExt</span>
  <span style="color: #008000; font-weight: bold">do</span>
<span style="color: #008000; font-weight: bold">        if</span> <span style="color: #666666">[</span> ! -e <span style="color: #BA2121">&quot;$filename&quot;</span> <span style="color: #666666">]</span>; <span style="color: #008000; font-weight: bold">then</span>
<span style="color: #008000; font-weight: bold">                continue</span>;
        <span style="color: #008000; font-weight: bold">fi</span>

<span style="color: #008000; font-weight: bold">        </span>setfile -t <span style="color: #BA2121">&quot;VfW &quot;</span> <span style="color: #BA2121">&quot;$filename&quot;</span>

        <span style="color: #19177C">newFileName</span><span style="color: #666666">=</span><span style="color: #BA2121">&quot;${filename%$oldExt}$newExt&quot;</span>
        mv <span style="color: #BA2121">&quot;$filename&quot;</span> <span style="color: #BA2121">&quot;$newFileName&quot;</span>

        <span style="color: #008000">echo</span> <span style="color: #BA2121">&quot;$filename --&gt; $newFileName&quot;</span>
  <span style="color: #008000; font-weight: bold">done</span>
</pre>
</div>
<p>&nbsp;<br />
Just place this into a file called &#8220;d90topremier&#8221;, place it in your path, and make sure to chmod it like so:</p>
<p><code>chmod 755 d90topremier</code></p>
<p>If you run into any issues, or have any improvements for the script, post them in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikechambers.com/blog/2009/08/02/convert-nikon-d90-videos-to-work-with-adobe-premiere-pro-cs4/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

