Gstreamer Query

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

Gstreamer Query

Shubham Shrivastava
How to change file name after 10 mins and split multiple files.
I can spilt files but not able to change their name .

g_object_set(G_OBJECT (data.filesink), "location", "/home/shubham/splintng/Videos/Shubham.mp4","next-file", 4, "multifilesink", "max-file-size",  10000000,0, NULL); 

This is working but same file overrides after max size so i want to change name after spilt can u people help me.

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

Re: Gstreamer Query

Tim Müller
On Thu, 2018-06-07 at 13:07 +0530, Shubham Shrivastava wrote:

Hi,

> How to change file name after 10 mins and split multiple files.
> I can spilt files but not able to change their name .
>
> g_object_set(G_OBJECT (data.filesink), "location",
> "/home/shubham/splintng/Videos/Shubham.mp4","next-file", 4,
> "multifilesink", "max-file-size",  10000000,0, NULL);
>
> This is working but same file overrides after max size so i want to
> change name after spilt can u people help me.

Have a look at the splitmuxsink element instead. It has a "format-
location" signal that allows you to dynamically generate the filename
for each chunk, and also a "split-now" action signal (Since: 1.14).

Cheers
-Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Gstreamer Query

Thornton, Keith
In reply to this post by Shubham Shrivastava

Hi,

Have you tried splitmuxsink?

What does your pipeline look like, which version are you using.

regards

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Shubham Shrivastava
Gesendet: Donnerstag, 7. Juni 2018 09:37
An: [hidden email]
Betreff: Gstreamer Query

 

How to change file name after 10 mins and split multiple files.

I can spilt files but not able to change their name .

 

g_object_set(G_OBJECT (data.filesink), "location", "/home/shubham/splintng/Videos/Shubham.mp4","next-file", 4, "multifilesink", "max-file-size",  10000000,0, NULL); 

 

This is working but same file overrides after max size so i want to change name after spilt can u people help me.


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