Dynamic stroke

Is there any way to apply a stroke to a movie clip dynamically?

Or has anyone ever tweaked a filter effect to make it look like a clean 1 or 2px stroke?