Hello Raj.
gchararray
format_location_callback (GstElement *splitmux, guint fragment_id, struct data *my_data) {
char filename[MAX_LEN] = '0';
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);
//or you can get realtime within callback.
return g_strdup(filename);
}
g_signal_connect (splitmuxsink, "format-location", G_CALLBACK (format_location_callback), my_data);
Best regards,
Anton.
Hi
For the below command,
g_object_set(G_OBJECT(splitmux),"location","/home/video%02d.mov" ,NULL);
we get output as below
video01.mov video02.mov video03.mov video04.mov video05.mov
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?
Regards
Raj
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel