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://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 ! queue ! rtph264depay ! h264parse ! splitmuxsink location=./out/file%02d.mp4 max-size-time=20000000000 muxer=mp4mux