Build stream script

Hi, i want to capture frame by frame from camera, play detection on frame and after that stream out the frame to rtmp server. i want to that with nvidia tools in python because without them the ram up very high and shut down the jetson nano. if someone can help me with what and give me idea how to that with deepstream.

You can try DeepStream SDK:
Announcing DeepStream 5.0.1

And there are python samples:

By default we demonstrate RTSP streaming in

You would need to refer to it and customize to RTMP.