Save the output video of the deepstream pipeline

Please refer to the link below: https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/30