How to give path in location in this form

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

How to give path in location in this form

Shubham Shrivastava
 sprintf(fullpath, "/home/Videos/Date%02d%02d%d/CAM1",tt->tm_mday,tt->tm_mon + 1, tt-> tm_year + 1900);
 g_object_set(G_OBJECT (data.filesink),"location","fullpath/Cam1_%03d.mp4","async",0, NULL);

instead of

g_object_set(G_OBJECT (data.filesink),"location","/home/shubham/Videos/Date16062018/CAM1/Cam1_%03d.mp4","async",0, NULL);

_______________________________________________
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 give path in location in this form

Martin Maurer

Some like

sprintf(fullpath, "/home/Videos/Date%02d%02d%d/CAM1/Cam1_%%03d.mp4",tt->tm_mday,tt->tm_mon + 1, tt-> tm_year + 1900);

 g_object_set(G_OBJECT (data.filesink),"location",fullpath,"async",0, NULL);

Best regards,

Marie

Am 30.06.2018 um 11:05 schrieb Shubham Shrivastava:
 sprintf(fullpath, "/home/Videos/Date%02d%02d%d/CAM1",tt->tm_mday,tt->tm_mon + 1, tt-> tm_year + 1900);
 g_object_set(G_OBJECT (data.filesink),"location","fullpath/Cam1_%03d.mp4","async",0, NULL);

instead of

g_object_set(G_OBJECT (data.filesink),"location","/home/shubham/Videos/Date16062018/CAM1/Cam1_%03d.mp4","async",0, NULL);


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: How to give path in location in this form

Tim Müller
In reply to this post by Shubham Shrivastava
On Sat, 2018-06-30 at 14:35 +0530, Shubham Shrivastava wrote:

Hi,

If you use splitmuxsink, there are the "format-location" and "format-
location-full" signals which you can g_signal_connect() to.

Example for the -full variant here:
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/chec
k/elements/splitmux.c#n335

Cheers
Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference! 25-26 October 2018 in Edinburgh,
Scotland
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Fwd: How to give path in location in this form

Shubham Shrivastava
In reply to this post by Shubham Shrivastava

---------- Forwarded message ----------
From: Shubham Shrivastava <[hidden email]>
Date: Sat, Jun 30, 2018 at 2:35 PM
Subject: How to give path in location in this form
To: [hidden email]


 sprintf(fullpath, "/home/Videos/Date%02d%02d%d/CAM1",tt->tm_mday,tt->tm_mon + 1, tt-> tm_year + 1900);
 g_object_set(G_OBJECT (data.filesink),"location","fullpath/Cam1_%03d.mp4","async",0, NULL);

instead of

g_object_set(G_OBJECT (data.filesink),"location","/home/shubham/Videos/Date16062018/CAM1/Cam1_%03d.mp4","async",0, NULL);


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel