How to make file name as Current date and time.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make file name as Current date and time.

Shubham Shrivastava
g_object_set (G_OBJECT (data.filesink), "location","/home/shubham/
Videos/video_%03d.mp4","async",0, NULL);

As it makes file nameed after 10 minutes gap like this .....video_000.mp4,

                                                                                     video_001.mp4

                                                                                     video_999.mp4

                                                                                     and goes on...


But how to make a file named like      --------- Wednesday 02:30 2018 .mp4
                                                       --------- Wednesday 02:40 2018.mp4
                                                       --------- Wednesday 02:30 2018.mp4



pLZ hELP!

I m new to gstreamer.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to make file name as Current date and time.

Nicolas Dufresne-5
Le vendredi 06 juillet 2018 à 10:01 +0530, Shubham Shrivastava a écrit :

> g_object_set (G_OBJECT (data.filesink), "location","/home/shubham/
> Videos/video_%03d.mp4","async",0, NULL);
>
> As it makes file nameed after 10 minutes gap like this .....video_000.mp4,
>
>                                                                                      video_001.mp4
>
>                                                                                      video_999.mp4
>
>                                                                                      and goes on...
>
>
> But how to make a file named like      --------- Wednesday 02:30 2018 .mp4
>                                                        --------- Wednesday 02:40 2018.mp4
>                                                        --------- Wednesday 02:30 2018.mp4

It's not currently possible with multifilesink, the element would need
to be enhanced. Maybe like splitmuxsink, with a format-location signal.

>
>
>
> pLZ hELP!
>
> I m new to gstreamer.
> _______________________________________________
> 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