Beiträge von Phil1988

    What does "in combination with a RPI2" mean?
    What is the Odroid and what the Raspberry doing?


    If the image capturing and color calculation work properly I shouldnt have a big issue with flickering as I am using an Arduino to control the LEDs.


    I would really appreciate if you could share how you managed to get this working on an C2 (and which OS you used).


    Thanks a lot!

    It feels like I am close to get hyperion running on my Odroid C2.
    I am using the latest Armbian but as I hat the exact same problems on Ubuntu, the way should be the same for both.
    My plan is to make a step by step tutorial for Ubuntu and Armbian for the Odroid C2.


    The Problem is, that hypercon can not install Hyperion on this machine.
    Also all the given tutorials here on the hyperion-project.org wiki dont work at all.


    So far there are only LibreELEC builds with this SoC and only redPanther (not seen anywhere on the internet for ~ a year) had it running on Ubuntu.
    LibreELEC is nice, but its only limited to media center stuff...
    The Odroid has by far more to give and should in my case also beeing used as a apache server, cloudserver, 3d-printserver etc...


    The compileHowTo's for different plattforms on the github (and every other tutorial) are missing commands and information are outdated and mostly for LibreELEc so you get stuck on a different points.
    I have managed to compile and install hyperion on the Odroid C2 but its not working correctly (but it is somehow doing something)...


    After compiling and installing I did
    sudo cp ./bin/hyperion-remote /usr/bin/
    sudo cp ./bin/hyperiond /usr/bin/



    For me it looks like the paths are not correctly or the files has not beeing copied correctly.


    For example there is no "/etc/hyperion/" folder beeing created
    The effects are in "/opt/hyperion/effects".


    After all that my LEDs showed nothing...
    I tried to connect via the hyperion app to set static colors using the colorwheel - not working.


    Then I tried to stop or restart hyperion and now its getting interessting:
    sudo /usr/local/bin/hyperiond restart
    Hyperion Ambilight Deamon (9678)
    Version : master (brindosch-c750c41/dc6a602-1522918225
    Build Time: Jul 6 2018 09:39:14
    ERROR: No valid config found


    No valid config found?


    so I created the folder "/etc/hyperion/" by hand using ftp and copied the hyperion.config.json into it.


    Still NO valid config found...
    hmm.. so lets try to start the hyperion deamon directly on this config:
    hyperiond /etc/hyperion/hyperion.config.json


    Suddenly:
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    EFFECTENGINE ERROR: effect Rainbow swirl fast not found
    failed
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    V4L2GRABBER INFO: width=720 height=576
    V4L2GRABBER INFO: pixel format=UYVY
    BLACKBORDER INFO: threshold set to 0.1 (26)
    BLACKBORDER INFO: mode:default
    V4L2GRABBER INFO: signal threshold set to: {25,25,25}
    V4L2GRABBER INFO: started
    INFO: V4L2 grabber created and started



    The LEDs flickering and are not really showing the correct colors - so there are still some problems else then the wrong paths but at least it is doing something.


    I can now use the hyperion app and connect to the json server.
    Its works 100% like it should while I use the colorwheel.
    As soon as I let the colorwheel go or dont cange the colors continuously the LEDs flicker again.
    Also there are no effects selectable (so the effect folder path is also wrong)



    I hope you guys can help me out with the messed up paths/folders/directories because it feels like there are just a few wrong depencies or paths.


    where should I place the hyperion.config.json correctly or where can I look up the paths that directs to it?
    where should the effects beeing copied to, to be found by hyperion?


    Maybe you also know a possibility why the LEDs fllickering and showing not the right color (with the given paths problems...)


    Thanks a lot!
    Lets make hyperion great again :D

    Hello folks!


    I'm having trouble installing hyperion on my Pi 3B+.


    Tried to install via HyperCon gave me this:


    root@raspberrypi:/home/pi# sudo sh ./install_hyperion.sh
    *******************************************************************************
    This script will install/update Hyperion Ambient Light
    Created by brindosch - hyperion-project.org - the official Hyperion source.
    *******************************************************************************
    ---> Stop Hyperion, if necessary
    ---> Install/Update Hyperion dependencies (This may take a while)
    ---> Downloading the appropriate Hyperion release
    GnuTLS: Error in the pull function.
    Es ist nicht möglich, eine SSL-Verbindung herzustellen.


    gzip: stdin: unexpected end of file
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    chmod: Zugriff auf '/usr/share/hyperion/bin' nicht möglich: Datei oder Verzeichnis nicht gefunden
    ---> Installing systemd script
    cp: der Aufruf von stat für '/usr/share/hyperion/services/hyperion.systemd.sh' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
    Failed to enable unit: File hyperion.service: No such file or directory
    rm: das Entfernen von '/usr/share/hyperion/services' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
    ---> Starting Hyperion
    Failed to start hyperion.service: Unit hyperion.service not found.
    *******************************************************************************
    Hyperion Installation/Update finished!
    Please download the latest HyperCon version to benefit from new features!
    To create a config, follow the HyperCon Guide at our Wiki (EN/DE)!
    Wiki: wiki.hyperion-project.org Webpage: www.hyperion-project.org
    *******************************************************************************


    So it might have started with the impossible SSH connection fault.


    This time I was connected as root user (but the before testet user 'pi' had the same issue)


    Any known issues with Raspberry Pi 3B+ and/or raspbian stretch?


    If you need further information let me know.
    I just have no idea right now, what the problem is :(


    Thanks a lot!

    The problems starts already at the very first step, as ubuntu has no /storage folder.
    I just created a folder called /root/projects/hyperion and copied the stuff from your "hyperion (v1) odroid-aml patched" folder into it.
    (and replaced the hyperion.config.json of course)


    Then I did
    chmod +x /root/projects/hyperion/bin/*


    and
    echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode


    which returned a "1" :)


    I then set the autostart command and did:
    sudo nano /etc/rc.local


    My old looked like this:


    ==============================
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.



    sysctl -w net.core.somaxconn=65535


    if [ -f /aafirstboot ]; then /aafirstboot start ; fi
    exit 0
    ==============================



    new one is this:
    ==============================
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.



    sysctl -w net.core.somaxconn=65535


    if [ -f /aafirstboot ]; then /aafirstboot start ; fi
    echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
    (
    /storage/hyperion/bin/hyperiond.sh /storage/hyperion/config/hyperion.config.json
    ) &
    exit 0
    ==============================


    No light is showing (also not after a restart) and if I use "top" I see no hyperion task

    Thanks Cédric for your fast reply.


    I am not very familiar with linux.
    I dont know how to download your binary and what to do next.


    for the comiling I would do it like this:
    export HYPERION_DIR="hyperion"
    git clone --recursive https://github.com/Starbix/hyperion "$HYPERION_DIR"
    mkdir "$HYPERION_DIR/build"
    cd "$HYPERION_DIR/build"
    cmake -DENABLE_DISPMANX=OFF ..
    make


    should this be ok?

    I am having troubles to install hyperion on my Odroid C2 running ubuntu64-16.04.2.


    Can you tell me how you managed it Cédric?


    I started using the HyperCon tool but it gaves me this error:
    -------------------------------------------------------
    ssh in: ---> Critical Error: CPU information does not match any known releases -> abort
    -------------------------------------------------------



    Then I tried to install it manually which gave me some errors.
    First I had to install git:
    ##########
    apt-get install git
    ##########


    then I installed CMake:
    ##########
    sudo apt-get install build-essential
    https://cmake.org/files/v3.9/cmake-3.9.1.tar.gz
    wget https://cmake.org/files/v3.9/cmake-3.9.1.tar.gz
    tar xf cmake-3.9.1.tar.gz
    cd cmake-3.9.1
    ./configure
    make
    sudo apt-get install checkinstall
    sudo checkinstall
    ##########


    then I installed qt4
    ##########
    sudo apt-get install libQt4-dev
    apt install cmake gcc g++ qt{4,5}-qmake libqt4-dev
    ##########


    Trying installing hyperion gave me an error where qt5 is blocking:
    -------------------------------------------------------
    root@odroid64:~/projects/hyperion/build# cmake -DENABLE_DISPMANX=OFF ..
    CMake Deprecation Warning at CMakeLists.txt:8 (CMAKE_POLICY):
    The OLD behavior for policy CMP0026 will be removed from a future version
    of CMake.


    The cmake-policies(7) manual explains that the OLD behaviors of all
    policies are deprecated and that a policy should be set to OLD only under
    specific short-term circumstances. Projects should be ported to the NEW
    behavior and not rely on setting a policy to OLD.



    -- ENABLE_ZEROCONF = OFF
    -- ENABLE_AMLOGIC = OFF
    -- ENABLE_DISPMANX = OFF
    -- ENABLE_FB = OFF
    -- ENABLE_OSX = OFF
    -- ENABLE_SPIDEV = OFF
    -- ENABLE_TINKERFORGE = ON
    -- ENABLE_V4L2 = ON
    -- ENABLE_WS2812BPWM = OFF
    -- ENABLE_WS281XPWM = OFF
    -- ENABLE_X11 = OFF
    -- ENABLE_QT5 = OFF
    -- ENABLE_TESTS = OFF
    -- ENABLE_PROFILER = OFF
    -- Current Version: master (brindosch-2fbbcff/2f01dfa-1495880388)
    -- Looking for Q_WS_X11
    -- Looking for Q_WS_X11 - not found
    -- Looking for Q_WS_WIN
    -- Looking for Q_WS_WIN - not found
    -- Looking for Q_WS_QWS
    -- Looking for Q_WS_QWS - not found
    -- Looking for Q_WS_MAC
    -- Looking for Q_WS_MAC - not found
    CMake Error at cmake/qt4/FindQt4.cmake:1216 (message):
    Found unsuitable Qt version "5.5.1" from /usr/bin/qmake, this code requires
    Qt 4.x
    Call Stack (most recent call first):
    CMakeLists.txt:154 (find_package)



    -- Configuring incomplete, errors occurred!
    See also "/root/projects/hyperion/build/CMakeFiles/CMakeOutput.log".
    See also "/root/projects/hyperion/build/CMakeFiles/CMakeError.log".
    -------------------------------------------------------



    so I had to uninstall qt5:
    sudo apt-get --purge remove qt5-default:arm64



    then I had to install libusb
    ##########
    sudo apt-get install libusb-1.0-0-dev
    ##########


    and then python
    ##########
    sudo apt-get install python-dev
    ##########


    After that I again tried to do this:
    ##########
    export HYPERION_DIR="hyperion"
    git clone --recursive https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR"
    mkdir "$HYPERION_DIR/build"
    cd "$HYPERION_DIR/build"
    cmake -DENABLE_DISPMANX=OFF ..
    make
    ##########


    This gave me multiple errors like this:
    -----------------------------------------------------


    make[2]: *** [dependencies/external/protobuf/src/CMakeFiles/protobuf-lite.dir/google/protobuf/stubs/common.cc.o] Error 1
    CMakeFiles/Makefile2:449: recipe for target 'dependencies/external/protobuf/src/CMakeFiles/protobuf-lite.dir/all' failed
    make[1]: *** [dependencies/external/protobuf/src/CMakeFiles/protobuf-lite.dir/all] Error 2
    Makefile:151: recipe for target 'all' failed
    make: *** [all] Error 2
    -----------------------------------------------------


    I have no idea what I can do now to get hyperion working on my Odroid C2 with Ubuntu.
    Any hints and help is highly appreciated :)


    regards!
    Phil

    The problem with the fushicai grabber is, that it produces an over saturated image by hardware.
    So you will irreversible lose colors and therefore get a worse ambilight because you will have sand color or skin as "orange" so the ambilight is really way off.


    So fushicai is no real option if you want a good ambilight (I own this one and tested it completely on a PC to see what image it produces "out of the box" and then checked the result on hyperion/ambilight).


    The only really usable option is to use the STK1160 and get it working.
    You are right, that the "frame too small" message is just "annoying" for me on the terminal as long as the rejeceted frames are not that often.
    But I have to get the real image of the TV with un-croped top and bottom.


    As far as I know (and tested) the PAL image (HDMI converter to PAL) is always croped.
    The NTSC (HDMI converter to NTSC) seems not to work anymore...


    To restart is not really a solution because we all want stable ambilights right?
    I dont want to pause a film on a movie night and go to my computer to restart the raspberry.
    It must be possible somehow - either to get rid of the "VIDIOC_S_FMT ERROR 16, Device or resource busy" error
    or to make the grabber get the whole image on PAL.


    I am grateful for any hints and help!

    The last days I was test everything I could.
    Your post didnt help me.


    The frame too small error still appears but it looks like hyperions working with "no big problems" (no freezes, flicker or unsmooth).
    The problem above could be solved by setting the HDMI->AV converter to "PAL" and also set the V4L2 grabber to PAL.


    But you will get a new problem:
    On PAL the FullHD screen is croped 30px from the bottom and 20px from the top. (this is about 5% missing of the source image area)
    I dont know if it is a driver issue, the HDMI->AV converter has a problem on converting in PAL or what exactly cause this issue, but I know that I used "back in the days" the HDMI->AV converter in NTSC mode because then the screen is fully grabbed and I get no "frame too small" errors.


    Do you have any hints how I could get hyperion to work with NTSC?
    If I set the converter to NTSC the ambilight is just showing for ~1sec. and then turns off the LEDs.
    I can say that hyperion is still running and sending data (probably black/off colors) to the LEDs because my Arduino is blinking (which indicates data incoming from the Raspberry).


    This might be the same problem that appears when I try to take a screenshot:
    sudo hyperion-v4l2 --width 720 --height 576 --screenshot


    Output:
    hyperion-v4l2:
    version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
    build time: Jul 25 2016 06:54:40
    VIDIOC_S_FMT ERROR 16, Device or resource busy



    The "VIDIOC_S_FMT ERROR 16, Device or resource busy"- message is weird because hyperion is stopped an nothing is using the STK1160 device.
    I think that if I can find a solution for this, then the ambilight will be great again.

    Hello everybody,


    I was using hyperion for more then 2 years on my RaspberryPi 2 with an STK1160 grabber and 2015-09-24-raspbian-jessie installed.
    It worked completely stable and with no issues during this period.


    As I had to update some packages and stuff I wiped my system completely and started with a new 2017-03-02-raspbian-jessie-lite a couple of days ago.


    Sadly I cant get hyperion working.
    I can use the android app or HyperCon to send the right colors to my ambilight (so hyperion and my config is right), but the grabbing doesnt work at all.


    I set the HDMI2CVBS Konverter to NTSC (because PAL gave me back in the days allways the "frame too small" error).
    When I set the V4L2 grabber to PAL and do this after reboot:
    sudo service hyperion status


    it gives me:
    hyperion.service - Hyperion Systemd service
    Loaded: loaded (/etc/systemd/system/hyperion.service; enabled)
    Active: active (running) since Fri 2017-03-10 12:55:09 UTC; 1min 8s ago
    Main PID: 410 (hyperiond)
    CGroup: /system.slice/hyperion.service
    └─410 /usr/bin/hyperiond /etc/hyperion/hyperion.config.json
    Mar 10 12:55:10 raspberrypi hyperiond[410]: INFO: Hyperion started and initialised
    Mar 10 12:55:10 raspberrypi hyperiond[410]: INFO: Json server created and started on port 19444
    Mar 10 12:55:10 raspberrypi hyperiond[410]: INFO: Proto server created and started on port 19445
    Mar 10 12:55:10 raspberrypi hyperiond[410]: V4L2GRABBER INFO: width=640 height=480
    Mar 10 12:55:10 raspberrypi hyperiond[410]: V4L2GRABBER INFO: pixel format=UYVY
    Mar 10 12:55:10 raspberrypi hyperiond[410]: BLACKBORDER INFO: threshold set to 0.1 (26)
    Mar 10 12:55:10 raspberrypi hyperiond[410]: BLACKBORDER INFO: mode:default
    Mar 10 12:55:10 raspberrypi hyperiond[410]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    Mar 10 12:55:10 raspberrypi hyperiond[410]: V4L2GRABBER INFO: started
    Mar 10 12:55:10 raspberrypi hyperiond[410]: INFO: V4L2 grabber created and started



    Taking a screenshot with
    sudo hyperion-v4l2 -d /dev/video0 –v NTSC -f 2 -s 1 --screenshot


    is not possible.
    It gives me:
    sudo hyperion-v4l2 -d /dev/video0 –v NTSC -f 2 -s 1 --screenshot
    hyperion-v4l2:
    version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
    build time: Jul 25 2016 06:54:40
    VIDIOC_S_FMT ERROR 16, Device or resource busy


    I remember that I have to stop hyperion first to do this, but the command:
    sudo /etc/init.d/hyperion stop


    is not found.
    Also the process "hyperion" is not found when trying to:
    sudo killall hyperiond


    but :
    sudo service hyperion stop


    seems to work.
    If I then again try to take a screenshot
    sudo hyperion-v4l2 -d /dev/video0 –v NTSC -f 2 -s 1 --screenshot



    The terminal freezes at:
    hyperion-v4l2:
    version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
    build time: Jul 25 2016 06:54:40
    V4L2GRABBER INFO: width=640 height=480
    V4L2GRABBER INFO: pixel format=UYVY
    V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    V4L2GRABBER INFO: started


    The log via the HyperCon gives me:
    ssh in: Mar 10 13:01:36 raspberrypi systemd[1]: Stopping Hyperion Systemd service...
    ssh in: Mar 10 13:01:36 raspberrypi hyperiond[410]: INFO: Application closed with code 0
    ssh in: Mar 10 13:01:36 raspberrypi hyperiond[410]: V4L2GRABBER INFO: stopped
    ssh in: Mar 10 13:01:36 raspberrypi hyperiond[410]: EFFECTENGINE INFO: Cleaning up Python interpreter
    ssh in: Mar 10 13:01:36 raspberrypi systemd[1]: Stopped Hyperion Systemd service.


    On trying to take the picture from HyperCon (right click on the TVscreen and get picture) also HyperCon freezes.


    I hope you guys can help me out and get the V4L2 grabber working with my STK1160 (because fushicai s**ks on grabbing regarding to the colors)