Unable to set the pipeline to the playing state using gst_parse_launch()
pisymbol .
pisymbol at gmail.com
Sat Jul 6 12:45:33 UTC 2019
On Sat, Jul 6, 2019 at 5:08 AM kilamski <malik.cisse at gmx.net> wrote:
> Hello,
>
> I use method bellow to buid a pipeline and it works on one ARM-embedded
> system but not on another one with similar GST configuration. Any idea?
>
>
> descr =
> g_strdup_printf ("v4l2src device=/dev/video0 num-buffers=1 !
> video/x-raw, width=1920, height=1080 ! jpegenc quality=99 ! filesink
> location=%s ",pic_file);
>
> data.pipeline = gst_parse_launch (descr, &error);
> if (error != NULL)
> {
> g_print ("could not construct pipeline: %s\n", error->message);
> g_clear_error (&error);
> return 0;
> }
>
> /* Start playing */
> ret = gst_element_set_state (data.pipeline, GST_STATE_PLAYING);
> if (ret == GST_STATE_CHANGE_FAILURE) {
> g_printerr ("Unable to set the pipeline to the playing state.\n");
> gst_object_unref (data.pipeline);
> return 0;
>
Can you post what the debug log says when it fails via the GST_DEBUG
environment variable?
See here:
https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c
-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190706/aa2209e5/attachment.html>
More information about the gstreamer-devel
mailing list