Capturing, displaying, and recording with GStreamer

I need to make a GStreamer pipeline that can capture a video, display , and record in a file simultaneously. I made a lot of tests but I cannot make them work; Anyone can help me? I am new to Gstreamer .