<div dir="ltr">Hello Raj.<div><br></div><div>gchararray<br>format_location_callback (GstElement  *splitmux, guint fragment_id, struct data *my_data) {<br></div><div>char filename[MAX_LEN] = '0';</div><div>snprintf(filename, MAX_LEN, "file_%01d:%01d:%d%01d_%01d%:%01d:%01d.mov", my_data->day, my_data->month, my_data->year, my_data->hour, my_data->minute, my_data->second);</div><div>//or you can get realtime within callback.</div><div>return g_strdup(filename);</div><div>}</div><div><br></div><div>g_signal_connect (splitmuxsink, "format-location", G_CALLBACK (format_location_callback), my_data);<br></div><div><br></div><div>Best regards,</div><div>Anton.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 9:18 PM transport raj <<a href="mailto:rajtransport08@gmail.com">rajtransport08@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi </div><div><br></div><div>For the below command,</div><div>g_object_set(G_OBJECT(splitmux),"location","/home/video%02d.mov" ,NULL);<br></div><div><br></div><div> we get output as below</div><div>video01.mov   video02.mov   video03.mov   video04.mov   video05.mov <br></div><div><br></div><div><br></div><div>In order to get the output as timestamp-based dd:mm:yy hh:mm:ss video files, I was suggested to use the format_location_callback signal. How to implement the same? Please can anyone share a sample code?</div><div> </div><div><pre style="box-sizing:border-box;overflow:auto;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:13px;padding:1em;margin-top:0.5em;margin-bottom:0.5em;line-height:1.5;word-break:normal;color:black;background:rgb(245,242,240);border:1px solid rgb(204,204,204);border-radius:0px"><a title="gchararray" href="https://developer.gnome.org/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#gchararray" style="box-sizing:border-box;background-color:transparent;color:rgb(21,140,186);text-decoration-line:none;outline:none" target="_blank">gchararray</a>
format_location_callback (<a title="GstElement" href="https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html#GstElement" style="box-sizing:border-box;background-color:transparent;color:rgb(21,140,186);text-decoration-line:none;outline:none" target="_blank">GstElement</a>  splitmux,
                          <a title="guint" href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint" style="box-sizing:border-box;background-color:transparent;color:rgb(21,140,186);text-decoration-line:none;outline:none" target="_blank">guint</a> fragment_id,
                          <a title="gpointer" href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer" style="box-sizing:border-box;background-color:transparent;color:rgb(21,140,186);text-decoration-line:none;outline:none" target="_blank">gpointer</a> udata)</pre></div><div><br></div><div>Regards</div><div>Raj</div><div><br></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>