I need to get a video stream from my camera via RTSP and save it to a file. All of this needs to be done via gstreamer.
After some google searching, I tried the foll
You need to add -e flag (end of stream) so that mp4mux can finalize file or else you'll get corrupted non playable file.
gst-launch -e rtspsrc location=url ! decodebin ! x264enc ! mp4mux ! filesink location=file.mp4