AW: AW: AW: AW: record H264 stream use multifilesink

Thornton, Keith keith.thornton at zeiss.com
Wed Jan 3 09:38:19 UTC 2018


Hi,
When I create a splitmuxsink without setting the sink property, the sink cannot be got by name. If you want to access the filesink by name you have to create a filesink with a name and set it in the splitmuxsink using the sink property.

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Michelle Guo
Gesendet: Samstag, 23. Dezember 2017 15:53
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: AW: AW: AW: record H264 stream use multifilesink

Hi Thornton;
I use the following way to create splitmuxsink: 
GstElement *splitmuxsink;
splitmuxsink= gst_element_factory_create (splitmuxsink, "splitmuxsink");

 I use the default sink, and in my program, I have never set the splitmuxsink sink property, so I think in the following function,  the return value lastelement will be "filesink", and I can get the sinkpad of lastelement.
    GstElement*lastelement = gst_bin_get_by_name((GstBin*)splitmuxsink,
"sink");
However, the lastelement is NULL, so I can not get the sinkpad of this element. I was confused by this result.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list