<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 6, 2019 at 5:08 AM kilamski <<a href="mailto:malik.cisse@gmx.net">malik.cisse@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I use method bellow to buid a pipeline and it works on one ARM-embedded<br>
system but not on another one with similar GST configuration. Any idea? <br>
<br>
<br>
descr =<br>
    g_strdup_printf ("v4l2src device=/dev/video0 num-buffers=1 !<br>
video/x-raw, width=1920, height=1080 ! jpegenc quality=99 ! filesink<br>
location=%s ",pic_file);<br>
<br>
    data.pipeline = gst_parse_launch (descr, &error);<br>
    if (error != NULL)<br>
    {<br>
      g_print ("could not construct pipeline: %s\n", error->message);<br>
      g_clear_error (&error);<br>
      return 0;<br>
    }<br>
<br>
    /* Start playing */<br>
    ret = gst_element_set_state (data.pipeline, GST_STATE_PLAYING);<br>
    if (ret == GST_STATE_CHANGE_FAILURE) {<br>
        g_printerr ("Unable to set the pipeline to the playing state.\n");<br>
        gst_object_unref (data.pipeline);<br>
        return 0;<br>
    </blockquote><div><br></div><div><br></div><div>Can you post what the debug log says when it fails via the GST_DEBUG environment variable?</div><div><br></div><div>See here: <a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c</a></div><div><br></div><div>-aps<br></div></div></div>