I created the pipeline gst_parse_launch("rtspsrc location=rtsp://192.168.0.77:554/user=admin_password_=tlJwpbo6_channel=1_stream=0.sdp?real_stream ! queue !rtph264depay ! h264parse ! splitmuxsink muxer=\"mp4mux name=muxer\" max-size-bytes=20000000 location=/storage/emulated/0/DVR/CameraX/the_file_%d.mp4",NULL);
and it works fine with Gstreamer version 1.9.1. I want to use newer versions for some other reasons but with above versions 1.10.X and 1.11.X pipeline stops after working for some indeterminate time between seconds to minutes. Logcat output is here:
gstqtmux.c:3391:gst_qt_mux_add_buffer: error: Buffer has no PTS.
W/GStreamer+basesrc: 0:01:06.383504349 0xb9380000 gstbasesrc.c:2950:gst_base_src_loop: error: Internal data stream error.
W/GStreamer+basesrc: 0:01:06.383623672 0xb9380000 gstbasesrc.c:2950:gst_base_src_loop: error: streaming stopped, reason error (-5)
I tried for different camera models. I removed splitmuxsink and tried with mp4mux but result did not change. I changed "presentation-time" property of mp4mux but nothing changes.