Add arbitrary tags to converted file

Is it possible to on a per “conversion task” basis to add either an arbitrary tag to metadata or to at least have the name of the task written as a tag? My specific use case is separating DVR recordings from WebRips I use additional post processing stages and all I have reliable access to is the metadata so I was hoping something would be possible.