Home > Programming, Replay2DVRMS > Replay2DVRMS – Watching ReplayTV shows on Windows Media Center

Replay2DVRMS – Watching ReplayTV shows on Windows Media Center

September 13th, 2008

Back in the early days of DVRs you had 2 choices; TiVO and ReplayTV.  Well it’s no mystery which company won the DVR war but for those of us that made the technologically superior choice, we can still reap a few benefits from our “obsolete” device. :)

My boss and I are ReplayTV users who are now using Windows Media Center for our main DVR.  About 3-4 months ago we were dreaming of a way to somehow integrate the 2 technologies.  Wouldn’t it be great to be able to leverage the Replay to record shows but then have those shows show up on the Media Center?

Yep.  It sure would.  And so Replay2DVRMS was born.

Replay2DVRMS is a tool used to convert ReplayTV files to the Windows Media Center file format (dvr-ms). This allows ReplayTV owners to continue to record TV shows on their device but access them through the Window Media Center interface.  In order to accomplish this, users must download the TV shows off of their ReplayTV device using the tool DVArchive.  DVArchive will create 2 files for each TV show it downloads; an mpeg file which contains the TV show and an XML file that contains all of the show’s metadata. Replay2DVRMS can then be used to convert the Replay show to a dvr-ms file and retain all of the original show’s metadata.  The program usage is as follows:

Replay2DVRMS source [destination] [-d]

Where source is a ReplayTV mpeg file or a folder containing ReplayTV mpeg file(s) and destination is the name of the file or folder to output the dvr-ms file(s) to.  If no destination is given the program will just write the output file to the source location.  If the ReplayTV xml file is not found for the source file the program will still convert the file, but the show’s information will not be copied into the dvr-ms file.  If the -d flag is specified the program will delete the source file after the conversion is complete.

Once the files are converted they can be copied to the Media Center’s “Recorded TV” folder which will allow the shows to display in the Recorded TV section of the Media Center interface.

This entire process can be automated to provide seamless integration between the ReplayTV and Windows Media Center.  Automating the process can be accomplished in just a few steps:

  1. Use DVArchive’s scheduling functionality to automatically download shows each day to a folder on your machine (for instance: c:\ReplayShows\).
  2. Setup a scheduled job in windows to run the following command: Replay2DVRMS “c:\ReplayShows\” “c:\Recorded TV\”.

Assuming c:\Recorded TV\ was the folder your Media Center was storing its TV shows this would be all you needed to do to automatically see shows recorded on your Replay alongside those recorded on your Media Center.

HUGE thanks goes out to andy vt for his todvrms tool which is at the heart of Replay2DVRMS doing all of the hard work. He also graciously helped me work out a few kinks in getting the Replay files to convert correctly.

Download Replay2DVRMS EXE Download Replay2DVRMS Source

Please note: this program requires the .NET Framework version 3.5 be installed on your computer.

Programming, Replay2DVRMS , , , , , ,

  1. Ted F.
    February 27th, 2009 at 23:48 | #1

    This utility is just what I’m looking for – but I’ve tried it on two systems and gotten errors like this:
    C:\>replay2dvrms c:\scott c:\fulmer
    Converting c:\scott\Seinfeld – The Merv Griffin Show.mpg :: c:\fulmer\Seinfeld_K
    DFW_05_03_2006_10_30_00.dvr-ms

    Unhandled Exception: System.InvalidCastException: Unable to cast COM object of t
    ype ‘DirectShowLib.StreamBufferConfig’ to interface type ‘DirectShowLib.SBE.IStr
    eamBufferConfigure3′. This operation failed because the QueryInterface call on t
    he COM component for the interface with IID ‘{7E2D2A1E-7192-4BD7-80C1-061FD1D104
    02}’ failed due to the following error: No such interface supported (Exception f
    rom HRESULT: 0×80004002 (E_NOINTERFACE)).
    at todvrms.SBEHelper.Convert(String sourceFile, String targetFile, IDictionar
    y addAttributes, String grfPath, Boolean verbose, Boolean debug)
    at Jez.Replay2DVRMS.ConversionEngine.ConvertFile(String replayFile, String ou
    tputFile, Boolean deleteReplayFile)
    at Jez.Replay2DVRMS.Program.Main(String[] args)

    Any idea what I’m doing wrong?

  2. ray
    March 3rd, 2009 at 16:24 | #2

    Ted, what OS are you using? Also, are you able to play the mpg file on that machine?

  3. Jim
    August 4th, 2009 at 17:48 | #3

    Hey, great tool… Unfortunately, I am having trouble using it. I was able to successfully move 3 videos to this format. Now, however, whenever I try to run it, I get the following error:

    C:\Users\Jimrin\Downloads\Replay2DVRMS>replay2dvrms.exe “C:\Users\Jimrin\Documen
    ts\ReplayTV\TV” “C:\Users\Public\TV\CSI- NY – Boo.mpg”
    Converting C:\Users\Jimrin\Documents\ReplayTV\TV\CSI- NY – Boo.mpg :: C:\Users\P
    ublic\TV\CSI: NY_KTVT_31_10_2007_08_00_00.dvr-ms

    Unhandled Exception: System.Runtime.InteropServices.COMException (0×8007007B): T
    he filename, directory name, or volume label syntax is incorrect.

    at DirectShowLib.DsError.ThrowExceptionForHR(Int32 hr)
    at todvrms.SBEHelper.Convert(String sourceFile, String targetFile, IDictionar
    y addAttributes, String grfPath, Boolean verbose, Boolean debug)
    at Jez.Replay2DVRMS.ConversionEngine.ConvertFile(String replayFile, String ou
    tputFile, Boolean deleteReplayFile)
    at Jez.Replay2DVRMS.Program.Main(String[] args)

    As you can see, this example is for converting a specific TV show, but I get the error too as well for folders. I tried various folder names, too, since the message refers to path. It starts to create the file (ie, the SBE file starts to be created in the destination directory), but this error occurs pretty much immediately. I tried various things like rebooting, etc. I am running Windows 7 RC 1.

  1. No trackbacks yet.