Camera support - Simple example

Discussion in 'UDOO NEO' started by jas-mx, Feb 28, 2016.

  1. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    If you want to capture jpeg (or h264) have tried using a usb camera which output jpeg?
     
  2. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    fyi, usb camera's have two streams, h.252 and mpeg, or mpeg vs raw. (The H3 AW chip has some of the same issues this chip) here is a discussion about using USB cameras.
     
  3. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    I'm waiting on cables; but I was going to try stream the images to sdcard and WiFi (goal ~20 fps) and post process the stream later on another device. Does anyone see an issue with this?
     
  4. Hannes Bo

    Hannes Bo New Member

    Joined:
    Jan 14, 2016
    Messages:
    24
    Likes Received:
    6

    A usb camera is no option for me. I only bought the UDOO NEO because of its VADC. My goal is to implement an analogue video capture device which streams the input on a network (as kind of a surveillance camera, where >4fps would be sufficient), so I thought the udoo neo would be the perfect choice. Next week I will try to capture some images (raw and jpeg). I will post my process.


    My first attempts to stream a usb webcam (to test the streaming capabilities of gstreamer), were not very good (at this point I have never worked with gstreamer before), but it worked, although it had a huge latency (I think, I did it via UDP). Any helpful information about this topic is welcome for me as well.
     
    Last edited: Mar 17, 2016
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    @Hannes Bo, to answer your question no, we are not.
     
  6. NickZano

    NickZano New Member

    Joined:
    Apr 8, 2016
    Messages:
    9
    Likes Received:
    0
    Hi, I ssh'd into my neo and have it connected to the HDMI so I can see it's output. I set everything up correctly and when I go to run it I get the appropriate output of :

    imx6sx_vadc_pxp.c:206 Found v4l2 capture device /dev/video0.
    imx6sx_vadc_pxp.c:220 pixelformat (output by camera): YUV4
    imx6sx_vadc_pxp.c:285 VIDIOC_G_PARM failed
    imx6sx_vadc_pxp.c:289 WxH@fps = 720x480@30 Image size = 1382400
    imx6sx_vadc_pxp.c:476 opening this fb_dev - /dev/fb0
    imx6sx_vadc_pxp.c:565 imx6sx_vdac_pxp finished!

    However, on my monitor all I see is a blue box assumedly 720x480 as I am using a NTSC camera. Any help would be wonderful.

    Thank you.
     
  7. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Blue box would indicate the code is reading the VADC output however there's no valid signal from the camera. This may indicate:

    1. The camera is not powered.
    2. The camera isn't wired correctly to the J12 connector.

    What does your dmesg output show from the VADC ? eg:

    dmesg | grep -i vadc
     
  8. NickZano

    NickZano New Member

    Joined:
    Apr 8, 2016
    Messages:
    9
    Likes Received:
    0
    I know the camera is powered, I have it hooked up to a 12V supply and I wired it to the J12 connector myself, only connecting the video in and ground to the camera and wiring the VCC and ground from the camera to the power supply.

    When I run dmesg | grep -i vadc I get:

    [ 6.910741] CSI: Registered sensor subdevice: fsl_vadc

    [ 6.923358] wait vadc auto detect video mode....

    [ 9.023354] vadc driver loaded
     
  9. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The output from that dmesg isn't enough, can you 'pastebin' the full dmesg output (without grep) somewhere.
     
  10. NickZano

    NickZano New Member

    Joined:
    Apr 8, 2016
    Messages:
    9
    Likes Received:
    0
    Here's the pastebin for it: http://pastebin.com/Xp93G8SL
     
  11. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Unfortunately the dmesg output posted doesn't shown the initial kernel boot and more importantly the output of when the vadc driver is initialising. Without that I can't see if the vadc has detected the camera correctly or not.
     
  12. Vijay Panchal

    Vijay Panchal New Member

    Joined:
    Apr 30, 2018
    Messages:
    2
    Likes Received:
    0
    @jas-mx Can you How can I write the camera capture in file ??
     
  13. Vijay Panchal

    Vijay Panchal New Member

    Joined:
    Apr 30, 2018
    Messages:
    2
    Likes Received:
    0
    Where can camera.zip founded ??
     
  14. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,312
    Likes Received:
    580
    In the first message of this discussion as an attached file.
     
  15. Jaynil

    Jaynil UDOOer

    Joined:
    Jan 20, 2020
    Messages:
    5
    Likes Received:
    0

    Thanks @jas-mx, i have gone through your blog and it is helpful but can you tell me how did you connect camera to UDOO board. the link you provided is expired.
     

Share This Page