Fixing the Duration Bug

January 15th, 2008 | Categories: Windows Media Center | Tags:

NOTE: This post is in progress. If it doesn’t work, try this workaround instead.

What’s the Problem?

In certain scenarios, VMC will record a show and incorrectly set the duration to approximately 5-6 minutes.  VMC thinks the show is that long, so skipping through causes it to jump around erratically.  This does not affect Windows MCE 2005, and it does not happen with all cards.  It also does not happen with all capture cards, or to everyone with a particular capture card.

For more information, see this thread over at TGB.

What You Need

Step 1: Create a new Profile

  1. Add ChangeContextValue Action:
    1. SourceContext = InputFile
    2. TargetContext = OutputFile
    3. FindRegex = ^((.*\\)(.*)\.(.*))\z
    4. ReplaceRegex = E:\$3 (FIXED).$4
      (NOTE: use a path to a temporary location that is outside the Watched Folder but on the same drive)
  2. Add RunExternal Action:
    1. ProcessName = C:\Program Files\DVRMSToolbox\FixDVRMSDuration.exe
    2. ArgumentsContext = “%InputFile%” “%OutputFile%”
      (NOTE: you must include the quotes)
  3. Add FileOperation Action:
    1. ContextFile = InputFile
    2. DestinationPath = E:\BAD_DURATION_FILES\
      (NOTE: use a path to a temporary location that is outside the Watched Folder but on the same drive. You can also just delete the input files if you want.)
    3. WhatOperation = Move
      (NOTE: you could also just delete the input files by setting this to “Delete”)
  4. Add FileOperation Action:
    1. ContextFile = OutputFile
    2. DestinationPath = E:\Recorded TV\
      (NOTE: this should be your Recorded TV directory. Once the file is moved, it will be processed as a new file)

Step 2: Create a New Processing Condition

  1. Two criteria:
    1. Filename does not contain “(FIXED)”
    2. Duration < ~15 minutes
  1. cohoman
    February 24th, 2008 at 23:43
    Reply | Quote | #1

    So, what’s the impact of this bug? What exactly is it not doing correctly?

  2. March 4th, 2008 at 17:56
    Reply | Quote | #2

    This is the issue:
    http://thegreenbutton.com/forums/thread/246174.aspx

    I’ll add it to the post for context.

Comments are closed.