Save output to video using filesink

Yes, I am

I am referring to this thread Python in DeepStream: error {Internal data stream error} while running deepstream-test1

I am sharing same error with thread author:

error {Internal data stream error} while running deepstream-test1

It works when I deactivate OSD and unset DISPLAY in docker image. But this is the only way I can make it work.

Note I added a filesink to save video output to a video file