How can I add a branch for stream video to rtmp server?

here is gstreamer pipeline, and I used a Ip camera , rtsp protocol 。
//-----------------------------------------------------------------------------
// When we finish our pipeline will look like this:
//
// ±->queue–>decoder–>_videosink
// |
// datasource–>demux–>parser–>tee
// |
// | ±-------------_sink-------------------+
// | | |
// we are adding these elements-> ±>teepad–>queue–>matroskamux–>_filesink |
// | |
// ±-------------------------------------+

here is my command
gst-launch-1.0 rtspsrc location=rtsp://192.168.1.168/main ! rtph264depay ! video/x-h264,width=1920,height=1080,framerate=25/1 ! h264parse ! flvmux name=mux streamable=true ! queue ! rtmpsink location=‘rtmp://localhost/videotest’
and it works