Camera does not work on UDOObuntu 2 RC1 for UDOO quad

Discussion in 'Troubleshooting' started by Cornstalks, Feb 12, 2016.

  1. Cornstalks

    Cornstalks New Member

    Joined:
    Feb 12, 2016
    Messages:
    8
    Likes Received:
    2
    Does UDOObuntu 2 not support the camera?

    It's missing all the libraries in /usr/lib/gstreamer-0.10/* and does not support the camera. Trying to get some info from the camera results in an error:

    Code:
    $ gst-inspect mfw_v4lsrc
    No such element or plugin 'mfw_v4lsrc'
    Is this intentional, or have things changed and I'm doing it wrong? Is the camera intended to be supported in UDOObuntu 2?
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    With "the camera" you mean the UDOO Camera in our shop, do you?
     
  3. Cornstalks

    Cornstalks New Member

    Joined:
    Feb 12, 2016
    Messages:
    8
    Likes Received:
    2
  4. Cornstalks

    Cornstalks New Member

    Joined:
    Feb 12, 2016
    Messages:
    8
    Likes Received:
    2
    UDOObuntu 1.1 comes with the package gst-fsl-plugins-3.5.7 installed, which provides the /usr/lib/gstreamer-0.10/libmfw_gst_v4lsrc.so file that gst-launch-0.10 uses to provide the mfw_v4lsrc element.

    However, UDOObuntu 2.0 RC1 does not have that package. I tried installing the gst1.0-fsl-plugins and gstreamer-imx packages, but the when I run `gst-inspect-1.0 mfw_v4lsrc` I get the above error in the top post.

    If I instead try to use the imxv4l2src element, it fails with this:

    Code:
    $ gst-launch-1.0 imxv4l2src ! ximagesink
    ====== IMXV4L2SRC: 4.0.7 build on Nov 11 2015 12:14:17. ======
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.
    Additional debug info:
    gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:
    streaming task paused, reason not-negotiated (-4)
    Execution ended after 0:00:00.041349545
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...
    And if I try to use the imxv4l2videosrc element, then it fails with essentially the same error:

    Code:
    $ gst-launch-1.0 imxv4l2videosrc ! ximagesink
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    ERROR: from element /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0: Internal data flow error.
    Additional debug info:
    gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0:
    streaming task paused, reason not-negotiated (-4)
    Execution ended after 0:00:00.096622726
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...
    Does the camera module work with UDOObuntu 2 RC1? Is there some important step I'm missing?
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Cornstalks likes this.
  6. Cornstalks

    Cornstalks New Member

    Joined:
    Feb 12, 2016
    Messages:
    8
    Likes Received:
    2
    Oh sweet, those instructions work! Were they updated recently? I could swear they didn't mention gstreamer 1.0 or the imxv4l2videosrc element last week, but maybe I just missed them.
     
    Andrea Rovai likes this.
  7. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    The commit to this part in the docs was made last month, but I can't confirm when, since we restructured the docs this week. Anyway, about one month ago. Maybe last commit was only visible on github directly and not on the docs in this website. That's the reason why we restructured the docs, so github and the docs are always in sync.
     
    waltervl and Cornstalks like this.
  8. Cornstalks

    Cornstalks New Member

    Joined:
    Feb 12, 2016
    Messages:
    8
    Likes Received:
    2
    Cool. Well, thanks for the help and the fresh docs!
     
  9. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Your welcome!
     

Share This Page