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

kilamski malik.cisse at gmx.net
Fri Jul 5 14:19:28 UTC 2019


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/

More information about the gstreamer-devel mailing list