Issue while saving MPEG-PS Packets with splitmuxsink and mpegpsmux in GStreamer

Trying to save MPEG-PS packets from an RTP stream using GStreamer. My goal is to use splitmuxsink to split the output into files based on time, with the muxer set to mpegpsmux. However, I am encountering an issue where the pipeline doesn’t seem to work as expected.

Pipeline -

GST_DEBUG=3 gst-launch-1.0 udpsrc address=239.202.34.9 port=6310 timeout=60000000000 buffer-size=0 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2P,payload=(int)96" ! rtpbin name=recv_rtp ! watchdog timeout=300000 ! rtpmp2pdepay ! mpegpsdemux name=d splitmuxsink location=stream.ps max-size-time=150000000000 muxer=mpegpsmux name=mpegpsmux d. ! queue ! mpegvideoparse ! queue ! mpegpsmux.

  • GStreamer version: 1.24.5

suggestions on what might be going wrong here?
Thank you for your help!