<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Sony Vegas Script to Change the Pixel Aspect Ratio of Images</title>
	<atom:link href="http://granades.com/2008/04/21/sony-vegas-change-pixel-aspect-ratio/feed/" rel="self" type="application/rss+xml" />
	<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images</link>
	<description>Like a blog, but explodier</description>
	<lastBuildDate>Sun, 20 May 2012 16:01:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Stephen</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-330012&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-330012</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Thu, 07 Apr 2011 15:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-330012</guid>
		<description>Wonderful! I&#039;m glad you found it useful.</description>
		<content:encoded><![CDATA[<p>Wonderful! I&#8217;m glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas godon</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-329989&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-329989</link>
		<dc:creator>nicolas godon</dc:creator>
		<pubDate>Thu, 07 Apr 2011 10:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-329989</guid>
		<description>This works like a charm... switched to .mov, it didn&#039;t even blinked and BAM, 25 Mov files go from 4:3 to 16:9

You rule :-) thanks a lot!</description>
		<content:encoded><![CDATA[<p>This works like a charm&#8230; switched to .mov, it didn&#8217;t even blinked and BAM, 25 Mov files go from 4:3 to 16:9</p>
<p>You rule <img src='http://granades.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-260337&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-260337</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 27 May 2009 13:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-260337</guid>
		<description>Excellent catch! I&#039;ve updated the script to fix that. Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent catch! I&#8217;ve updated the script to fix that. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-260308&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-260308</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 27 May 2009 05:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-260308</guid>
		<description>This error:
C:\Program Files (x86)\Sony\Vegas Pro 8.0\Script Menu\Change pixel aspect ratio.cs(13) : ‘System.Text.RegularExpressions.Regex’ does not contain a definition for ‘match’

Is caused because of a typo in the script.  It should be Regex.Match, not Regex.match.  It needs to be capital M.</description>
		<content:encoded><![CDATA[<p>This error:<br />
C:\Program Files (x86)\Sony\Vegas Pro 8.0\Script Menu\Change pixel aspect ratio.cs(13) : ‘System.Text.RegularExpressions.Regex’ does not contain a definition for ‘match’</p>
<p>Is caused because of a typo in the script.  It should be Regex.Match, not Regex.match.  It needs to be capital M.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitalii Zdanevich</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-233940&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-233940</link>
		<dc:creator>Vitalii Zdanevich</dc:creator>
		<pubDate>Fri, 26 Dec 2008 14:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-233940</guid>
		<description>I google work script:




/**
 * This script sets the Pixel Aspect Ratio all media with a video
 * stream to the desired value. The value must be edited below.
 * The file extension of this file needs to be changed from .txt to .js
 * and then drag it into the appropriate script folder, for example
 * C:/Program Files/Sony/Vegas 7.0/Script Menu
 *
 * c.2006 DVFilm
 *
 **/
import Sony.Vegas;

// Set the following variable to the Pixel Aspect Ratio you wish to
// have all video streams use.

var targetPAR = 1.0926;


var mediaEnum = new Enumerator(Vegas.Project.MediaPool);
while (!mediaEnum.atEnd()) {
    var media = mediaEnum.item();
    if (media.HasVideo())
    {
        var videoStream = media.Streams.GetItemByMediaType(MediaType.Video, 0);
        videoStream.PixelAspectRatio = targetPAR;
    }
    mediaEnum.moveNext();
}</description>
		<content:encoded><![CDATA[<p>I google work script:</p>
<p>/**<br />
 * This script sets the Pixel Aspect Ratio all media with a video<br />
 * stream to the desired value. The value must be edited below.<br />
 * The file extension of this file needs to be changed from .txt to .js<br />
 * and then drag it into the appropriate script folder, for example<br />
 * C:/Program Files/Sony/Vegas 7.0/Script Menu<br />
 *<br />
 * c.2006 DVFilm<br />
 *<br />
 **/<br />
import Sony.Vegas;</p>
<p>// Set the following variable to the Pixel Aspect Ratio you wish to<br />
// have all video streams use.</p>
<p>var targetPAR = 1.0926;</p>
<p>var mediaEnum = new Enumerator(Vegas.Project.MediaPool);<br />
while (!mediaEnum.atEnd()) {<br />
    var media = mediaEnum.item();<br />
    if (media.HasVideo())<br />
    {<br />
        var videoStream = media.Streams.GetItemByMediaType(MediaType.Video, 0);<br />
        videoStream.PixelAspectRatio = targetPAR;<br />
    }<br />
    mediaEnum.moveNext();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitalii Zdanevich</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-233939&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-233939</link>
		<dc:creator>Vitalii Zdanevich</dc:creator>
		<pubDate>Fri, 26 Dec 2008 14:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-233939</guid>
		<description>C:\Program Files (x86)\Sony\Vegas Pro 8.0\Script Menu\Change pixel aspect ratio.cs(13) : &#039;System.Text.RegularExpressions.Regex&#039; does not contain a definition for &#039;match&#039;

____________

In Vegas 8.</description>
		<content:encoded><![CDATA[<p>C:\Program Files (x86)\Sony\Vegas Pro 8.0\Script Menu\Change pixel aspect ratio.cs(13) : &#8216;System.Text.RegularExpressions.Regex&#8217; does not contain a definition for &#8216;match&#8217;</p>
<p>____________</p>
<p>In Vegas 8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-153344&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-153344</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Fri, 09 May 2008 15:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-153344</guid>
		<description>You should be able to modify it to find .mp4 files instead of still images. Try changing &quot;(jpe?g&#124;png&#124;gif)&quot; to &quot;mp4&quot; in the script. And Vegas 8 should do the compilation for you. You shouldn&#039;t need to compile it yourself.</description>
		<content:encoded><![CDATA[<p>You should be able to modify it to find .mp4 files instead of still images. Try changing &#8220;(jpe?g|png|gif)&#8221; to &#8220;mp4&#8243; in the script. And Vegas 8 should do the compilation for you. You shouldn&#8217;t need to compile it yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-153159&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-153159</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 09 May 2008 05:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-153159</guid>
		<description>Hi Stephen

This looks exactly what I need!  But I need it to change the p.a.r. on a video file.

Could it be modified to work with a .MP4 file?

See link above for more info.

Also, do I need to compile it in Visual c#??

Thanks a lot,</description>
		<content:encoded><![CDATA[<p>Hi Stephen</p>
<p>This looks exactly what I need!  But I need it to change the p.a.r. on a video file.</p>
<p>Could it be modified to work with a .MP4 file?</p>
<p>See link above for more info.</p>
<p>Also, do I need to compile it in Visual c#??</p>
<p>Thanks a lot,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-145725&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-145725</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Fri, 25 Apr 2008 01:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-145725</guid>
		<description>Sorry, Mirko, I don&#039;t. I&#039;m running 8 here.</description>
		<content:encoded><![CDATA[<p>Sorry, Mirko, I don&#8217;t. I&#8217;m running 8 here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mirko</title>
		<link>http://granades.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fgranades.com%2F2008%2F04%2F21%2Fsony-vegas-change-pixel-aspect-ratio%2F%23comment-145329&#038;seed_title=Sony+Vegas+Script+to+Change+the+Pixel+Aspect+Ratio+of+Images/comment-page-1/#comment-145329</link>
		<dc:creator>Mirko</dc:creator>
		<pubDate>Thu, 24 Apr 2008 11:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://granades.com/?p=1396#comment-145329</guid>
		<description>Hey this sounds extremely useful, but I tried this in Vegas 6 with a bunch of photos on my timeline but it gives the following error:
Compilation errors:

&#039;System.Text.RegularExpressions.Regex&#039; does not contain a definition for &#039;match&#039;
&#039;Sony.Vegas.Media&#039; does not contain a definition for &#039;GetVideoStreamByIndex&#039;

System.ApplicationException: Failed to compile.
   at Sony.Vegas.CodeDomScriptManager.Compile()
   at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)

Do you know a quick fix? I have zero experience with scripts in Vegas... 
Cheers, Mirko</description>
		<content:encoded><![CDATA[<p>Hey this sounds extremely useful, but I tried this in Vegas 6 with a bunch of photos on my timeline but it gives the following error:<br />
Compilation errors:</p>
<p>&#8216;System.Text.RegularExpressions.Regex&#8217; does not contain a definition for &#8216;match&#8217;<br />
&#8216;Sony.Vegas.Media&#8217; does not contain a definition for &#8216;GetVideoStreamByIndex&#8217;</p>
<p>System.ApplicationException: Failed to compile.<br />
   at Sony.Vegas.CodeDomScriptManager.Compile()<br />
   at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)</p>
<p>Do you know a quick fix? I have zero experience with scripts in Vegas&#8230;<br />
Cheers, Mirko</p>
]]></content:encoded>
	</item>
</channel>
</rss>

