HowTo: “Hello World” – Profiles
Posted by onlydarksets on September 22, 2007
Hello World – Profiles
Profiles are the brains behind the DVR-MS processing and conversion performed by DTb. Profiles are stored as individual files in the C:\Program Files\DVRMSToolbox\Profiles directory.
This tutorial will walk you through the building and executing a basic Profile that renames the input file. The screenshots are from Windows XP, but apply equally to Windows Media Center 2005 and Windows Vista.
First, open DVRMStoMPEGGUI from the Start menu.
Select Tools then Settings from the menu to bring up the DVRMSToolboxSettings window (you can also run this directly from the Start menu).
Click the New Profile button to bring up the Profile dialog.
Enter a short name with no spaces in Name and a longer description (spaces OK) in Description.
· The Name field is used to set the filename. Make sure the value you use here is not already in use in the C:\Program Files\DVRMSToolbox\Profiles directory. If you use a value that is the same as a file name (minus the “dpc” extension), it will overwrite the existing file.
· The Description field is displayed in the DVRMSToolboxSettings window. Duplicates are OK, but it makes it very hard to tell which Profile you are executing.
Click the Add button to bring up the NewPlugin (Action selection) window.
Select Durrant.Plugins.AdvancedFileRename, and then click the Select button to bring up the Configure dialog.
Set the ContextFile field to InputFile, and click the OK button.
Click the Save button in the Profile dialog.
Click the Save button in the DVRMSToolboxSettings window.
In the DVRMSToolboxGUI window, double click in the Input File textbox to bring up the File dialog. Select a DVR-MS file.
Enter any valid path and any filename in the Output File textbox (it doesn’t matter for this Profile, because it only modifies the input file).
Select your new Profile from the Profile drop-down listbox.
Click the Run button. The output will be displayed in the window, and, when the Profile is done executing, a confirmation dialog will display asking if you want to save the output to a log file.
Now, when you check the filename of the InputFile, you will see the Title – Episode – Air Date, instead of the default Windows Media Center filename.