Date time format splitmuxsink location pattern

Can you please tell me how can I set pattern for naming output videos for rtsp stream, so that every time new video is created I get a new name containing current date and time name for the videos.
I am using splitmuxsink , please tell me what pattern should I write in location of splitmuxsink so that I get updated date time format every time a new video is created every 20 sec.
This command creates a video from rtsp source every 20 seconds in mp4 format.

gst-launch-1.0  rtspsrc location=rtsp:// ! queue ! rtph264depay ! h264parse ! splitmuxsink location=./out/file%02d.mp4 max-size-time=20000000000 muxer=mp4mux

Seems this is what you want : splitmuxsink files naming format (
In case you have more questions on this plugin, you may check with gstreamer supporting to get better support.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.