setting pipeline to GST_STATE_PLAYING in callback fails

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

setting pipeline to GST_STATE_PLAYING in callback fails

dlw
I have a camera pipeline streaming to a udp sink.  I am tee'ing this stream
to RidgeRuns interpipesink (having the same issue with intervideosink as
well).  The video streams fine.

I create a second pipeline for writing to file. In my main() function I
simply call

GstElement* pipeline_rec = gst_pipeline_new("pipeline_rec");

and create a timeout to turn recording on/off.

g_timeout_add(5000, cb_record, pipeline_rec);

In the callback I add the recording bin to the pipeline made up of an
interpipesrc, queue, omxh264enc, mp4mux and a filesink.

In the callout I set the pipeline to GST_STATE_PLAY but it always returns
GST_STATE_CHANGE_FAILURE.

The following is the dot file of the pipeline right after I set it to
GST_STATE_PLAY.

https://i.imgur.com/HCCm9Z7.png

Note:
If I add the recording bin to the pipeline in main() and set to
GST_STATE_PLAY
it has no problem running.  My issue seems to be when I set to playing 5
seconds later in the callback.



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

Re: setting pipeline to GST_STATE_PLAYING in callback fails

gotsring
Not sure there's enough info for me to answer. Does anything in the gst-debug
output say what is causing the state change failure? Just run with command
option --gst-debug=3 (or higher if needed)



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

Re: setting pipeline to GST_STATE_PLAYING in callback fails

dlw
Found the issue. I've run it with gst_debug_set_default(GST_LEVEL_LOG) and
found it was an error in the path for filesink, which only shows as a
GST_LEVEL_WARN, not GST_LEVEL_ERROR.

Thanks for the help.
 



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