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

RPi + Other Software Switch between grabber configs on the fly (input, crop settings,...)

Discussion in 'Software Support' started by Fenderman, 2 August 2020.

  1. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    Hello!

    First, thank you very much for this great software project. I am using Hyperion fr a few years already and it is really great!

    A few days I go I updated to Hyperion-NG.
    Now I have some questions, as it seems that there is some functionality missing, which I was using with the old Hyperion.

    My setup consists of a USB grabber which has two different kind of inputs: 1) Composte and 2) S-Video.
    The Composite input is needed for my media boxes and the S-Video input is needed for my TV (using a SCART adapter).
    With the new Hyperion-NG Alpha 7 you have implemented the "Input" setting for USB Grabbers again which is great.

    But now there is one usability problem.
    With the old Hyperion I could switch between different config files (json).
    For example like that:
    --> I have a shortcut for that script on my TV remote

    Code:
    sudo killall hyperiond
    sleep 1
    /usr/share/hyperion/bin/hyperiond /etc/hyperion/hyperion.Scart.config.json
    
    Then when I switch back to one of my media boxes I use:
    Code:
    sudo killall hyperiond
    sleep 1
    /usr/share/hyperion/bin/hyperiond /etc/hyperion/hyperion.config.json
    
    There are different kind of settings for the USB grabber inside this file:
    - input
    - crop settings
    - color calibcication (this is not priority though)

    Can I implement the same behaviour with Hyperion-ng?

    Thank you very much in advance!
     
  2. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    Any help would be appreciated :)
     
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,849
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    maybe with instances
     
  4. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    The problem ist that the settings on the grabber settings page are global settings, independent from instances. So i cannot change it. I would need different grabber settings for different instances. Or an option to change it "on the fly" with the remote.
     
  5. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    hyperion-v4l2
     
    • Like Like x 1
  6. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    Thanks :)
    I am not really an expert with the command line functions of Hyperion-ng.
    Could you give me an example on how to change the following settings:
    • Input
    • Crop settings
    • Color calibration
    Code:
    sudo service hyperion stop
    hyperion-v4l2 ....??
    
     
  7. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Werd ich die Woche nachreichen. Hab zur Zeit viel um die Ohren. Gruß
     
    • Like Like x 1
  8. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    Just a little reminder. Maybe you have forgotten about this thread. Thanks in advance for your help! :)
     
    Last edited: 31 August 2020
  9. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Ich habe dich in der Tat vergessen. Sorry.

    Also hier mal ein paar Erklärungen:
    Mit 'hyperion-v4l2' überträgst du das Bild eines externen v4l2 Gerätes zu Hyperion.
    Das Hyperion laufen muss sollte eigentlich klar sein.
    In Hyperion sollte der extrerne v4l2 grabber ausgeschaltet sein. Sonst kann es zu Komplikationen beim Zugriff kommen.

    Die Argumente von 'hyperion-v4l2' kannst du dir jederzeit anzeigen lassen:
    Code:
    ./hyperion-v4l2 --help
    Da ich dir jetzt nicht alle Möglichkeiten aufschreiben möchte (wegen Zeitmangel) kannst du dir auch auf GitHub die Argumente anzeigen.
    Hier mal ein Beispiel:

    Code:
    ./hyperion-v4l2 --input /dev/video0 --crop-left 20 --crop-right 50
    Ich hoffe du kommst klar. Wenn nicht. Du weißt wo du mich findest. ;)
     
    • Like Like x 1
  10. Fenderman

    Fenderman New Member

    Messages:
    7
    Hardware:
    RPi3
    Ich habe endlich Zeit gefunden, mich damit zu beschäftigen und meine Skripte umzuschreiben.
    Vielen Dank nochmals für die Hilfe!

    Im Prinzip funktioniert alles soweit, bis auf die Umstellung des "Inputs" mit hyperion-v4l2:
    Code:
    hyperion-v4l2 --device /dev/video0 --input 0
    
    liefert den selben Output wie:
    Code:
    hyperion-v4l2 --device /dev/video0 --input 1
    
    Im Webinterface funktioniert es dagegen problemlos...
    Je nach Einstellung bekomme ich verschiedene Bilder meines Grabbers angezeigt.
    Kannst du mir hier weiterhelfen?
    Ist die Funktion in hyperion-v4l2 noch nicht implementiert?