• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum
FORUM

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] Gate video if video doesn't exist

    How To... ?
    gate user actor
    6
    14
    2122
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • peuclid
      peuclid last edited by Woland

      I have a video that is sometimes gated off upstream, but in this actor, I add a mask to the video. But I don't want to see the mask if there is nothing in the incoming foreground video.

      Here's the picture. The question is what can I do with that incoming video to cause it to turn the gate on/off?


      Thanks for all your help!

      Bernie

      Bernie Bernstein
      MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
      Based in Newton, MA USA

      RIL jfg Kathmandale DusX 4 Replies Last reply Reply Quote 1
      • RIL
        RIL @peuclid last edited by

        @peuclid maybe using the trigger output of the video out ? 

        Best,

        Maxi

        Red Isadora Latina | redisadoralatina.blogspot.com | redisadoralatina@gmail.com
        page facebook.com/Red-Isadora-Latina-1319037108171197/ | Group https://www.facebook.com/groups/315960249155308/
        MacBook Pro 2015 High Sierra. Isadora 3.2
        MacBook Pro M3 Pro Sonoma. Isadora 4.1

        1 Reply Last reply Reply Quote 0
        • jfg
          jfg @peuclid last edited by

          @peuclid

          best

          Jean-François

          • Izzy 3.2.6
          - MacBook Pro M1 Max 16" 64GB RAM, Mac OS 15.3.2 Sequoia
          - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB ),
          Mac OS 10.14.6 (Mojave)
          - Mac mini Pro M4, Mac OS 15.3.2 Sequoia

          • A range of deployable older Macs
            Located in Bremen, Germany
          1 Reply Last reply Reply Quote 1
          • Kathmandale
            Kathmandale @peuclid last edited by

            @peuclid I think for best results go with @jfg suggestion. If your video source changes, or it's coming from lots of different places in the patch so it's complicated to use triggers, or if you just want to play with something that responds to the video, then you could try something like this. Wont be great if there are any all black frames in the video though.

            2014 MBP Mojave 10.14.6 OS with 16GB, 2.5Ghz i7 quad core, Intel Iris Pro 1536 & Geforce GT 750m 2GB - Izzy 3.0.8
            Gigabyte Brix Windows 10 with 32GB, i7-6700 quad core, 4GB GeForce GTX 950 - Izzy 3.0.8
            Based in Manchester, UK.

            peuclid 1 Reply Last reply Reply Quote 0
            • peuclid
              peuclid @Kathmandale last edited by

              @kathmandale

              I like the brightness idea. I was originally trying to do something with the video size but that didn't reliably go to zero when the video was empty. At least with brightness I can see something consistent.

              I'll give that a try!

              Thanks,

              Bernie

              Bernie Bernstein
              MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
              Based in Newton, MA USA

              1 Reply Last reply Reply Quote 1
              • DusX
                DusX Tech Staff @peuclid last edited by

                @peuclid

                When the incoming video is Not, what do you actually have?
                Do you have a black video stream, or do you have a dead video link (red not green)?

                If you have a black video feed, you might use the Calculate brightness actor to detect black, and activate the gate.
                If you have a dead/red video link, then you may need to use something like a Decay Actor. The Decay actor will return to Zero if no input trigger is received (the timing is adjustable), you can then use this to activate the gate.. I think this has a min time of 1 second.
                It's possible to do something similar with a Tap Tempo actor. This may react more quickly. Both will take some adjustment since you are 'deciding' something is inactive based on values over time.

                Troikatronix Technical Support

                • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                peuclid 1 Reply Last reply Reply Quote 0
                • peuclid
                  peuclid @DusX last edited by

                  @dusx

                  Thanks @dusx I am getting a red line, no video at all, and you're right, it's not even changing the brightness value in the Calc Brightness actor, so it showed the brightness from the last time that scene was active and doesn't change to zero.

                  Sounds like I need to try one of your other ideas.

                  Thanks,

                  Bernie

                  Bernie Bernstein
                  MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
                  Based in Newton, MA USA

                  1 Reply Last reply Reply Quote 0
                  • Juriaan
                    Juriaan Tech Staff last edited by

                    Hmm weird. I get proper results here when I use a Get Video Size actor. (DirectShow as engine for the Movie Player)

                    I also made the same actor as @jfg in my first attempt with a Trigger delay actor. If you keep feeding it values it will never trigger the output. So basically your trigger 'time-outs' if it doesn't receive a valid video signal.

                    Isadora 3.1.1, Dell XPS 17 9710, Windows 10
                    Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
                    Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

                    1 Reply Last reply Reply Quote 0
                    • jfg
                      jfg last edited by

                      you can also connect to the video output instead if the trigger out. It works also good 

                      Jean-François 

                      • Izzy 3.2.6
                      - MacBook Pro M1 Max 16" 64GB RAM, Mac OS 15.3.2 Sequoia
                      - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB ),
                      Mac OS 10.14.6 (Mojave)
                      - Mac mini Pro M4, Mac OS 15.3.2 Sequoia

                      • A range of deployable older Macs
                        Located in Bremen, Germany
                      peuclid 1 Reply Last reply Reply Quote 0
                      • peuclid
                        peuclid @jfg last edited by

                        @jfg

                        I'm trying your idea. Connecting the vid-gpu directly into the "Trigger Delay" and "Trigger Value" like (I think) you suggested, but now when there is a signal, it continuously flashes for that .1 sec and then toggles off again. When there is no video, it does go off, so that was the harder part that is now working, I feel like it's getting close.

                        Bernie Bernstein
                        MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
                        Based in Newton, MA USA

                        Juriaan jfg 2 Replies Last reply Reply Quote 0
                        • Juriaan
                          Juriaan Tech Staff @peuclid last edited by

                          @peuclid

                          Do not add it to both the Trigger value 0 and Trigger value 1. What you basically do is set the Gate on open (init) position and use Trigger value 0 to close it again if the Video input time-outs. (by using the Trigger delay actor set to 0.1 sec)

                          See the example file that I made for you, basically what I added is a simple Trigger value that holds our current state and a way for us to activate the gate again if the video signal is there.

                          Example

                          Isadora 3.1.1, Dell XPS 17 9710, Windows 10
                          Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
                          Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

                          peuclid 1 Reply Last reply Reply Quote 0
                          • peuclid
                            peuclid @Juriaan last edited by

                            @juriaan

                            Thanks @Juriaan that's a great example. I'll need to watch carefully to understand it.

                            I'm also looking at some refactoring my stuff to make some more of this simpler.

                            Bernie Bernstein
                            MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
                            Based in Newton, MA USA

                            1 Reply Last reply Reply Quote 0
                            • jfg
                              jfg @peuclid last edited by

                              @peuclid

                              you can use an higher delay depending of the video. I had flicker with 0,1 if I go down with the speed (movie player)

                              Jean-François

                              • Izzy 3.2.6
                              - MacBook Pro M1 Max 16" 64GB RAM, Mac OS 15.3.2 Sequoia
                              - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB ),
                              Mac OS 10.14.6 (Mojave)
                              - Mac mini Pro M4, Mac OS 15.3.2 Sequoia

                              • A range of deployable older Macs
                                Located in Bremen, Germany
                              DusX 1 Reply Last reply Reply Quote 0
                              • DusX
                                DusX Tech Staff @jfg last edited by

                                Using the Trigger Delay as the timeout is perfect.
                                I just added a bit here to calculate a 'good' delay time based on the FPS setting (might use Performance monitor to set this)
                                I didn't see any need for the Buffer actor.

                                Troikatronix Technical Support

                                • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                                • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                                • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                                Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                                1 Reply Last reply Reply Quote 1
                                • First post
                                  Last post