Timestamp based video file spliting

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

Timestamp based video file spliting

transport raj
Hi All,

Using splitmuxsink element, the following source code snippet results in  
 g_object_set(G_OBJECT(splitmux),"location","/home/video%02d.mov");

output as below
video02.mov   video05.mov   video08.mov   video11.mov   video14.mov   video17.mov
 video00.mov                          video03.mov   video06.mov   video09.mov   video12.mov   video15.mov
 video01.mov                          video04.mov   video07.mov   video10.mov   video13.mov   video16.mov

I need resulting videos to be generated based on timestamps dd:mm:yy hh:mm:ss.

How to generate the same?

Thanks in advance
Regards
Raj

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

Re: Timestamp based video file spliting

Tim Müller
On Mon, 2020-10-12 at 21:34 +0530, transport raj wrote:

Hi,

> Using splitmuxsink element, the following source code snippet results
> in
>  g_object_set(G_OBJECT(splitmux),"location","/home/video%02d.mov");

There's a NULL terminator argument missing here for this vararg
function.


> output as below
> video02.mov   video05.mov   video08.mov   video11.mov   video14.mov  
>
> I need resulting videos to be generated based on timestamps dd:mm:yy
> hh:mm:ss.
>
> How to generate the same?

If the filename timestamps are based on wall clock time, then you can
use the "format-location" signal.

If they are based on timestamps on the buffers you can use the "format-
location-full" signal:

https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=c#splitmuxsink::format-location-full

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