Deepstream_test1_rtsp_in_rtsp_out.py how to output both rtsp and video

deepstream_test1_rtsp_in_rtsp_out.py
How can I output rtsp video stream and save video at the same time

You can use the tee plugin like below:

     rtsp_out channel
tee->
    save_video channel

About how to use tee plugin, you can refer to the deepstream_test_4.py