splitmuxsink split-now?

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

splitmuxsink split-now?

killerrats
Administrator
anyone know how to use this so i can start a new file? How do i call to tell
splitmuxsink to start to split?



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: splitmuxsink split-now?

Mathieu Duponchelle
That is an action signal, you can think of it as a function call. See <https://developer.gnome.org/gobject/stable/gobject-Signals.html#GSignalFlags>
and <https://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-emit-by-name>

On 3/23/19 12:43 AM, killerrats wrote:

> anyone know how to use this so i can start a new file? How do i call to tell
> splitmuxsink to start to split?
>
>
>
> -----
> ------------------------------
> Gstreamer 1.14.3
> ------------------------------
> Windows
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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: splitmuxsink split-now?

killerrats
Administrator
so basically like this:

CustomData* data;
GstElement* splitmuxsink = gst_element_factory_make("splitmuxsink","split");

g_signal_emit_by_name (splitmuxsink, "split-now",data);



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: splitmuxsink split-now?

Tim Müller
Hi,

> so basically like this:
>
> CustomData* data;
> GstElement* splitmuxsink =
> gst_element_factory_make("splitmuxsink","split");
>
> g_signal_emit_by_name (splitmuxsink, "split-now",data);

Just

  g_signal_emit_by_name (splitmuxsink, "split-now");

should do the trick.

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
|

Re: splitmuxsink split-now?

killerrats
Administrator
for some reason it throws the pipeline out of sync. it says trying to dispose
elements but it is in playing instead of null state. it should go back to
the signal "format-location-full" or "format-location" right?



-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows