I have an IP Camera which gives H264 streams over RTSP. I tried to save the same using below GStreamer pipeline into MKV container and it seems to work fine.
gst-launch rtspsrc location=rtsp://192.168.186.101/FVDO_Plane_4cif.264 typefind=true ! rtph264depay queue-delay=0 ! capsfilter caps="video/x-h264,width=352,height=288,framerate=(fraction)30/1" ! matroskamux ! filesink location=test.mkv
I want to know how can I save it directly into MP4 container format ?