PiCam as Source for V4l2

  • Hello


    is it posible to use a PiCam directly connected with a pi Zero as hyperion Video Source
    i tried it, but become always this Error:


    V4L2GRABBER INFO: width=640 height=480
    terminate called after throwing an instance of 'std::runtime_error'
    what(): V4L2GRABBER ERROR: Only pixel formats UYVY, YUYV, and RGB32 are supported ERROR


    the PiCam Works fine with: raspistill -o /home/pi/testbild.jpg or with raspivid


    i tried to change the output format with
    --pixel-format

    but the Version of hyperion 1.03 dont know this parameter!

  • Hello


    the same like User GIOVANNE





    but I found my First Problem:


    I use the Parameter --pixel-format false


    i used -pixel-YUYV and not --pixel-format -YUYV

    sorry, i am not so good with Linux!
    i have to Check it at home

  • sudo hyperion-v4l2 -d /dev/video0 --video-standard "no-change" --pixel-format "uyvy" --screenshot


    hyperion-v4l2:
    version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    build time: Jun 3 2017 02:06:37
    V4L2GRABBER INFO: width=1024 height=768
    V4L2GRABBER INFO: pixel format=UYVY
    V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    V4L2GRABBER INFO: started
    V4L2GRABBER INFO: stopped

    all OK, but not in HyperCon
    how looks your config for the Grabber in Hyperion direkt


    i have:


    // V4L2 GRABBER CONFIG
    "grabber-v4l2" :
    {
    "device" : "/dev/video0",
    "input" : 0,
    "standard" : "no-change",
    "width" : -1,
    "height" : -1,
    "frameDecimation" : 1,
    "sizeDecimation" : 4,
    "priority" : 900,
    "mode" : "2D",
    "cropLeft" : 0,
    "cropRight" : 0,
    "cropTop" : 0,
    "cropBottom" : 0,
    "redSignalThreshold" : 0.0,
    "greenSignalThreshold" : 0.0,
    "blueSignalThreshold" : 0.0

  • Hi, have you new findings on the config for the grabber in hyperion.config.json?
    I think that for hyperion itself somthing like:
    // V4L2 GRABBER CONFIG
    "grabber-v4l2" :
    {
    "pixel-format" : "YUYV"
    ...
    will be necessary :confused:
    But currently not supported...


    My hyperion with PiCam currently also throwing error. (raspistill is working fine):
    terminate called after throwing an instance of 'std::runtime_error'
    what(): V4L2GRABBER ERROR: Only pixel formats UYVY, YUYV, and RGB32 are supported ERROR


    Edit: my PiCam isn't stable, after some Screenshots with hyperion-v4l2 my PiCam freezes with the following and also a reboot of the Pi isn't possible without power off :(
    ...
    root@Pi-WiP:/home/pi/screenshots# hyperion-v4l2 --video-standard "no-change" --pixel-format YUYV --crop-top 0 --crop-bottom 0 --crop-left 0 --crop-right 0 --size-decimator 1 --frame-decimator 1 --red-threshold 0.0 --green-threshold 0.0 --blue-threshold 0.0 --screenshot
    hyperion-v4l2:
    version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    build time: Jun 3 2017 02:06:37
    V4L2GRABBER INFO: width=1024 height=768
    V4L2GRABBER INFO: pixel format=YUYV
    V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    V4L2GRABBER INFO: started
    V4L2GRABBER INFO: stopped
    root@Pi-tmpWiP:/home/pi/screenshots# hyperion-v4l2 --video-standard "no-change" --pixel-format YUYV --crop-top 0 --crop-bottom 0 --crop-left 0 --crop-right 0 --size-decimator 1 --frame-decimator 1 --red-threshold 0.0 --green-threshold 0.0 --blue-threshold 0.0 --screenshot
    hyperion-v4l2:
    version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
    build time: Jun 3 2017 02:06:37
    VIDIOC_S_FMT ERROR 22, Invalid argument


    Tried it before in my running environment and also now when setting up a new Pi with OSMC/hyperion/... from scratch...
    Maybe a bad PiCam ;)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!