Deepstream pipeline not linked

You have filesink at the end of your pipeline, it should be able to create output if the pipeline is well configured and run without issue.
Please refer Deepstream 5.1 - deepstream_test_1.py Error: gst-stream-error-quark to fix the error in Output[19].