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

RPi + Other Software Help capturing MJPG

Discussion in 'Software Support' started by Knskan3, 25 October 2020.

  1. Knskan3

    Knskan3 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Hi guys, this is my first time using rasperypi for ambilight purposes

    I've been playing around a lot with the previous hyperion, now I'm on hyperion ng using the hyperian image baked on raspberry pi 1

    First I was using a HDMI2AV module + a video grabber AV to USB, but the resolution on YUYV was very low compared to the MJPG one.

    Now I have purchased an HDMI capturer which comes with higher resolutions, but still the one on MJPG comes with way more fps.

    I was wondering if there's any way to force the MJPG format, in previous hyperion I was able to modify the resolution by using a prestart command on the service, but in hyperian ng everything gets overwritten everytime I start the service.

    I tried modifying the `hyperion-v4l2` and `v4l2-ctl`, I have no idea about their differences to be honest don't know which one is used in which case, I tried both, `hyperion-v4l2` doesn't support MJPG and `v4l2-ctl` doesn't seem to persist as its reseted after service starts.

    I'm checking the current value with `v4l2-ctl --get-fmt-video` and setting the value with `sudo v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=MJPG`

    Thanks a lot in advance.

    PS: sorry for the probable wrong prefix on the thread
     
  2. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    851
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Is the USB grabber used on the same pi to which your LEDs are connected?
     
  3. Knskan3

    Knskan3 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    hi, thanks for your reply, yes I have one raspberry , LEDs are 3 wired ws2812b connected to a 5v 3a usb adapter and one wire to pin 18 of raspberry. the setup works fine, Id just like to use mjpg to increase resolution and fps
     
  4. Knskan3

    Knskan3 New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Anyway I can force using pixel format MJPG ? cannot find the option in the web interface