1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + LibreELEC Hyperion.ng - wrong pixel format?

Discussion in 'Software Support' started by hotpotato, 9 August 2020.

  1. hotpotato

    hotpotato New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    I'm having an issue getting my setup working. I've tried several different grabbers (UTVF with the no-change workaround) with both OpenELEC and LibreELEC, and I've gotten furthest with Libre. The current error I'm getting is:

    "V4L2GRABBER ERROR: Only pixel formats UYVY, YUYV, and RGB32 are supported ERROR"

    Honestly this is an improvement over OpenELEC because I struggled to get it to even recognize my grabber. Is there some way I can change the pixel format coming from my grabber?

    Any advice would be greatly appreciated!

    HyperCON log:
    JSON File:
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,849
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    you dont have hyperion.ng
     
  3. hotpotato

    hotpotato New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    I have both versions downloaded on my computer, and I stepped back into this project after rage-quitting quite a while ago so I’m actually not surprised that I left off on the wrong version. I’ll start over and see where it gets me. Thanks!
     
    • Like Like x 1
  4. Techguy

    Techguy New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    After you install the software on the pi open up a ssh connection and run “lsusb” with out quotations. Make sure the usb grabber is not connected then after that command plug in your usb grabber and re-run the command to see if it shows up if it doesn’t then it means your devices is not being recognized by the pi.
     
  5. hejjisoft

    hejjisoft New Member

    Messages:
    1
    Hardware:
    32/64bit
    hey there hotpotato. i am interested if you have solved your problem. can you come with some updates?
     
  6. pclin

    pclin Active Member

    Messages:
    290
    Hardware:
    +nodeMCU/ESP8266
    With hyperion (classic), v4l2-ctl -v pixelformat = YUYV must be set.

    greetings pclin
     
  7. shub

    shub New Member

    Messages:
    2
    Hardware:
    RPi3, +Arduino
    @pclin is there a way to automate that so it runs/is applied on each reboot or the pi ?
    Thanks!
     
  8. pclin

    pclin Active Member

    Messages:
    290
    Hardware:
    +nodeMCU/ESP8266
    Search for the hyperion.service file, and add befor ExecStart=
    ExecStartPre=/usr/bin/v4l2-ctl -v pixelformat = YUYV

    This is how it looks for me on the Dreambox TWO. the RPI should look similar.
    Use a linux compliant editor geany, notepad++, set end of line to LF (Unix).

    Code:
    [Unit]
    Description=Hyperion-v4l2 Systemd service
    
    Conflicts=hyperionaml.service
    Conflicts=hyperion.service
    
    After=network-online.target
    
    [Service]
    Type=simple
    User=root
    Group=root
    UMask=007
    ExecStartPre=/root/.hyperion/hyperion-v4l2-ctl.conf
    ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config-v4l2.json
    ExecStartPost=/usr/bin/curl -X SET "http://192.168.178.82/win&T=1&RD=1&SN=0&RN=0"
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=on-failure
    TimeoutStopSec=10
    [Install]
    WantedBy=multi-user.target
    greetings pclin
     
    Last edited: 7 September 2020
    • Like Like x 1
  9. shub

    shub New Member

    Messages:
    2
    Hardware:
    RPi3, +Arduino
    Thanks, works like a charm :)
     
  10. Me_Bart

    Me_Bart New Member

    Messages:
    5
    Hardware:
    RPi1/Zero
    Hi pclin,

    I tried your advice but I still get the
    VIDIOC_S_STD ERROR 25, Inappropriate ioctl for device


    When I use Putty to manually send:
    v4l2-ctl -v pixelformat = YUYV

    And then afterwards send the command:

    hyperion-v4l2 --device /dev/video0 --input 0 --width -1 --height -1 --crop-left 0 --crop-right 0 --crop-top 0 --crop-bottom 0 --size-decimator 1 --frame-decimator 2 --red-threshold 0.0 --green-threshold 0.0 --blue-threshold 0.0 --screenshot

    I can then afterwards see the grabbed image in HyperCon, so I know it works, but still Hyperion fails to work.

    Is it maybe possible to send me your hyperion.config.json and hyperion.service file?

    Or are there other things I'm missing.

    Thank you again for the quick replies :)
     
  11. pclin

    pclin Active Member

    Messages:
    290
    Hardware:
    +nodeMCU/ESP8266
    My hyperion.config.js and hyperion.service files are created by me for the Dreambox ONE / TWO, as is my version of hyperion (classic), which you cannot simply use. I don't use an RPI either, but ESP8266 with WLED. My config.json also had additional entries. The service file also contains additional entries for my system.

    Here I posted the part for the grabber.
    The part can be taken over 1:1.

    greetings pclin
     

    Attached Files:

    Last edited: 9 September 2020