For DeepStream plugin, please refer to Deepstream Python - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums
Theoretically, you can do processing with probe, the limitation is the processing should not be time consuming processing, it will hold buffers and the probe callback will block the whole pipeline before the processing finishes.