HowTo: “Hello World” – Profiles

September 22nd, 2007 | Categories: DVRMSToolbox | Tags:

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.

  1. June 19th, 2008 at 16:56
    Reply | Quote | #1

    Wow this blog has been very helpful particularly with the profiles. However, I need to edit another kind of profile which can be found in the ffmpeg.conf inside DVRMSToolbox/Applications/ConvertFfmpeg folder.

    What I need to do is create a profile to convert to flv, I am sure ffmpeg is able to do it as I have it running in my server; but I have no idea what settings to put in the tag.

    Here is an example of a working profile:

    Xvid with MP3
    Xvid with MP3
    avi
    -async 1 -deinterlace -vcodec libxvid -qscale 4 -vtag DX50
    -acodec libmp3lame -ac 2 -ab 128000
    -threads 2

    Any new profile edited in this file will show up in DVRMS settings profile editor.

  2. June 19th, 2008 at 16:57
    Reply | Quote | #2

    Xvid with MP3
    Xvid with MP3
    avi
    -async 1 -deinterlace -vcodec libxvid -qscale 4 -vtag DX50
    -acodec libmp3lame -ac 2 -ab 128000
    -threads 2

  3. June 19th, 2008 at 16:57
    Reply | Quote | #3

    the code tags arent working in your blog, sorry for the mess

  4. June 27th, 2008 at 22:47
    Reply | Quote | #4

    Sorry, I only use mencoder profiles. Try posting to the developer’s forum at http://www.babgvant.com/