Unable to set the pipeline to the playing state using gst_parse_launch()

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

Unable to set the pipeline to the playing state using gst_parse_launch()

kilamski
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;
    }



Thank you




--
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: Unable to set the pipeline to the playing state using gst_parse_launch()

pisymbol .


On Sat, Jul 6, 2019 at 5:08 AM kilamski <[hidden email]> 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?


-aps

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

Re: Unable to set the pipeline to the playing state using gst_parse_launch()

kilamski
Thanks pisymbol,
You are the man. I was not aware of this powerfull debugging feature.
My problem was an attempt to access a non existing folder which ist not
obviously related to the initial error message.
Ithink that one cannot do without the debugging enabled.



--
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: Unable to set the pipeline to the playing state using gst_parse_launch()

pisymbol .


On Mon, Jul 8, 2019 at 4:45 AM kilamski <[hidden email]> wrote:
Thanks pisymbol,
You are the man. I was not aware of this powerfull debugging feature.
My problem was an attempt to access a non existing folder which ist not
obviously related to the initial error message.
Ithink that one cannot do without the debugging enabled

Great work! Glad you fixed it!

-aps

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel