andy vt's tools & blog

Flexibility isn't free

About this Page

  • Title:
  • Moderated By:
  • Created:
  • Modified:
  • Modified By: babgvant
  • Revision:

  • Internal Url:

Common Tasks

Context

Contexts are essentially variables.  DTb uses a set of name-value pairs (specifically, a hashtable), that allows an Action to get values from other Actions prior to it in the Profile or to set values for other Actions after it in the Profile.

For the most part the only ones that you will use are InputFilecreate it (the file specified in the input parameter "/if"), OutputFilecreate it (the file specified in the input parameter "/of"), and CutDvrmsFilecreate it (the location of the file created by the dvrmscutoutcommercialscreate it action (cutcommercialsdvrmsfilecreate it is the file created if the outputcommercials parameter is selected).

FilterGuid, GrameRate, Graph, MultiplexorFilterGuid, are legacy Context values that do not appear to be used by any of the Actions anymore.

The remaining Contextscreate it are used by the Actions, and are only important for other Actions.  The Commercialscreate it context is an example of this type.  It is an array (created by the FindCommercialscreate it Action) of the commercial spans.  It is used by the dvrmscutoutcommercialscreate it and dumpcommercialscreate it Contexts.

You can also create your own Context by using the ChangeContextValuecreate it Action.

@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems