<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://babgvant.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom DVRMSToolbox Profiles</title><link>http://babgvant.com/forums/36.aspx</link><description>Forum to discuss and share custom profiles.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Work around Vista's "Incorrect duration bug" with FixDVRMSDuration.exe</title><link>http://babgvant.com/forums/thread/10404.aspx</link><pubDate>Sun, 14 Sep 2008 06:02:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:10404</guid><dc:creator>HT Slider</dc:creator><slash:comments>0</slash:comments><comments>http://babgvant.com/forums/thread/10404.aspx</comments><wfw:commentRss>http://babgvant.com/forums/commentrss.aspx?SectionID=36&amp;PostID=10404</wfw:commentRss><description>&lt;p&gt;Many Vista Media Center users have been&amp;nbsp;affected by Microsoft&amp;#39;s&amp;nbsp;&amp;quot;Incorrect duration bug&amp;quot; since Vista was first released (getting close to 2 years ago now).&amp;nbsp; For more information on this very annoying bug, have a look at this thread &lt;a href="http://thegreenbutton.com/forums/thread/286741.aspx"&gt;http://thegreenbutton.com/forums/thread/286741.aspx&lt;/a&gt;.&amp;nbsp; Microsoft has recently said they will &amp;quot;likely&amp;quot; release a patch to fix this issue in the next cumalative Media Center update.&amp;nbsp; Until they do release a patch...&lt;/p&gt;
&lt;p&gt;This bug randomly affects roughly 5-10% of my recordings and makes it so a 1 hour recording may only appear to be perhaps 7 minutes in length.&amp;nbsp; It&amp;nbsp;breaks the&amp;nbsp;ability to reliably FF, RW, Skip, Replay and worst of all breaks automatic commercial skipping (the addin jumps to the wrong point in the show).&lt;/p&gt;
&lt;p&gt;Andy produced an executable, FixDVRMSDuration.exe,&amp;nbsp;that can be manually used to repair broken files.&amp;nbsp; It can be downloaded here:&amp;nbsp; &lt;a href="http://babgvant.com/files/folders/misc/entry6485.aspx"&gt;http://babgvant.com/files/folders/misc/entry6485.aspx&lt;/a&gt;&amp;nbsp;(note I included it in the attached .zip file since the syntax&amp;nbsp;has changed slightly through revisions&amp;nbsp;and my batch file was modified to work with the current version; it doesn&amp;#39;t work with older versions and may not work with newer ones...).&lt;/p&gt;
&lt;p&gt;Although there may be&amp;nbsp;more elegant solutions, I created a custom profile condition (Execute Find Commercials and Fix Duration Bug),&amp;nbsp;a custom profile (Find Commercials and Fix Duration Bug, named &amp;quot;FindCommFixDuration&amp;quot;), and a custom batch file (&amp;quot;FixDuration.bat&amp;quot;)&amp;nbsp;that detects recordings with incorrect durations and automatically repairs them.&amp;nbsp; Note this has only been tested with Show Analyzer.&lt;/p&gt;
&lt;p&gt;Key to this working properly, I wanted to ensure Media Center&amp;#39;s scheduler considered that the repaired recording&amp;nbsp;was actually the same recording.&amp;nbsp; This way Media Center will abide by series limit settings, associate the recording with&amp;nbsp;any series recordings, and be aware that the episode exists on the hard drive.&amp;nbsp; Note that maintaining the link between the Media Center scheduler and the&amp;nbsp;physical file&amp;nbsp;was the most difficult part to get working properly and this is why I ended up using a batch file.&lt;/p&gt;
&lt;p&gt;How this works:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Media Center records a show.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The custom profile condition (Execute Find Commercials and Fix Duration Bug) examines the show and if it appears to be short, it&amp;nbsp;executes the&amp;nbsp;custom profile (Find Commercials and Fix Duration Bug).&amp;nbsp; Note that since DVRMSToolbox acts on files shortly after MC starts to record,&amp;nbsp;that the custom profile actually runs on all recordings as they are recording.&amp;nbsp;&amp;nbsp;The only time it doesn&amp;#39;t get used is if a completed recording is moved/copied into the Recorded TV folder from somewhere else.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&amp;quot;Find Commercials and Fix Duration Bug&amp;quot;&amp;nbsp;does everything the same as the default &amp;quot;Find Commercials/nativecommdetect&amp;quot; profile, except at the very end it runs the custom batch file (FixDuration.bat).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;FixDuration.bat first sets up a few variables (file names without quotation marks).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;It then calls FixDVRMSDuration.exe, with a 1% file duration&amp;nbsp;accuracy&amp;nbsp;tolerance which creates a new &amp;quot;.fixed&amp;quot; file if the duration was out by more than 1%.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Finally it moves the &amp;quot;fixed&amp;quot; file over top of the original file and forces the fixed file to replace the original file.&amp;nbsp; I found that this was the only way I could maintain the relationship between the Media Center scheduler and the recording.&amp;nbsp; If I ever deleted the original recording or used a different file name for the &amp;quot;fixed&amp;quot; recording, Media Center would loose track of the recording (and often schedule it to be recorded again right away&amp;nbsp;as well as ignore series limit settings, etc).&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;How to install:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Create a folder &amp;quot;C:\Utilities&amp;quot; and place &amp;quot;FixDVRMSDuration.exe&amp;quot; and &amp;quot;FixDuration.bat&amp;quot; in here.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Place &amp;quot;FindCommFixDuration.dpc&amp;quot; and &amp;quot;81497ecd-fb89-471b-99a2-91771ee4b1be.dcc&amp;quot; in the DVRMSToolbox profiles directory (default:&amp;nbsp; &amp;quot;C:\Program Files\DVRMSToolbox\Profiles&amp;quot;).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Launch the DVRMSToolbox Processing Condition Editor and make sure that &amp;quot;Execute Find Commercials and Fix Duration Bug&amp;quot; is directly under &amp;quot;Processed Files&amp;quot;.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item></channel></rss>