• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Ghost Overlay / OMXPlayerTransparency

Scheduled Pinned Locked Moved Troubleshooting
mmm-pirvideoplayer
40 Posts 9 Posters 25.1k Views 8 Watching
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.
  • R Offline
    Reotch2 @Nystro0m
    last edited by Sep 27, 2017, 5:15 AM

    @Nystro0m No luck so far. I appreciate you taking the time with the test videos. Looks like OMXPlayer’s layer and alpha functionality can’t recognize an actual alpha layer. I think OMXPlayer treats alpha as a generic term for the player’s overall transparency. I’ll do a little more digging. In the meantime, I’ve dropped the transparency to about 80/255 (31%-ish), and it’s a good enough balance between “ghostly” and keeping the modules functional.

    N 1 Reply Last reply Sep 27, 2017, 3:50 PM Reply Quote 0
    • N Offline
      nobita @Reotch2
      last edited by Sep 27, 2017, 7:53 AM

      @Reotch2 How to make this module and Ghost Video where is come from? Thanks for answer.

      R 2 Replies Last reply Sep 27, 2017, 11:06 PM Reply Quote 0
      • J Offline
        jasondreher
        last edited by jasondreher Sep 27, 2017, 2:43 PM Sep 27, 2017, 1:06 PM

        Please give some more detail on how you put this together! I have tried to do it for quite a while but the video is always choppy and does not look good. And what hardware are you using, I assumed my Raspberry Pi was just too slow for video…
        And can you share the Ghost video or let me know where you got it?

        R 1 Reply Last reply Sep 28, 2017, 2:16 AM Reply Quote 0
        • N Offline
          Nystro0m @Reotch2
          last edited by Nystro0m Sep 27, 2017, 3:53 PM Sep 27, 2017, 3:50 PM

          @Reotch2 Have you tried to make the position of the module behind the modules, or play it as a background? So the other modules is on top?
          In that case you dont need any alpha.
          Position the module with OMXPlayer:
          fullscreen_below

          Also this module may help with that, if you could trigger the module with PIR:
          https://github.com/brobergp/MMM-htmlvideo

          R 2 Replies Last reply Sep 27, 2017, 11:08 PM Reply Quote 0
          • R Offline
            Reotch2 @nobita
            last edited by Reotch2 Sep 27, 2017, 11:41 PM Sep 27, 2017, 11:06 PM

            @nobita @jasondreher So… I’m not what they call a “coder”… haha. I wish I knew how to write javascript, but the best I can do is re-purpose everyone else’s modules. Put simply, I looked into using an I-Frame, or MMM-Podcast, but had trouble referencing a local video file. After having NO success adding a video player module, I decided to run a transparent full-screen video on–top of the magic mirror page, which actually worked better than I hoped. Although the black portions of the video dim the modules slightly, the way the white portions interact with the modules beneath it adds a certain cool-factor.

            After some trial and error… I did the following:

            1. Bought the “Ghostly Apparitions” DVD at a local thrift shop. Amazon link
            2. Combined the highest resolution vertical scenes into a single m4v.
            3. Edited the node_player.js for MMM-PIR-Sensor to include omxplayer. This ensures that when the screen is activated, the video is played with the appropriate flags.
              exec(“/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7”, null); exec(“omxplayer ~/Videos/Ghost.m4v --alpha 80”)
            4. Alternatively, you can just modify the start script to continuously loop the ghost video of your choosing.

            If you need any further details, feel free to ask. But again, I’m a tinkerer… and I’m sure there are 1000 better ways to do this, but this works for me.

            -Rich

            C 1 Reply Last reply Sep 28, 2017, 11:32 AM Reply Quote 0
            • R Offline
              Reotch2 @Nystro0m
              last edited by Sep 27, 2017, 11:08 PM

              @Nystro0m I’ll definitely give this a shot. I’m using a local file and previously had issues because of JS sandboxing. Not sure how I missed this module, this may be what I’ve been looking for. I’ll report back if it works.

              1 Reply Last reply Reply Quote 0
              • R Offline
                Reotch2 @nobita
                last edited by Sep 27, 2017, 11:11 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • R Offline
                  Reotch2 @Nystro0m
                  last edited by Sep 27, 2017, 11:31 PM

                  @Nystro0m said in Ghost Overlay / OMXPlayerTransparency:

                  @Reotch2 Have you tried to make the position of the module behind the modules, or play it as a background? So the other modules is on top?
                  In that case you dont need any alpha.
                  Position the module with OMXPlayer:
                  fullscreen_below

                  Also this module may help with that, if you could trigger the module with PIR:
                  https://github.com/brobergp/MMM-htmlvideo

                  @Nystro0m Is there a workaround to reference a local file? I’m running the same issue I did with MMM-Podcast.

                  P N 2 Replies Last reply Sep 28, 2017, 5:45 AM Reply Quote 0
                  • R Offline
                    Reotch2 @jasondreher
                    last edited by Sep 28, 2017, 2:16 AM

                    @jasondreher Running a pi3, no overclock.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pyrosmiley @Reotch2
                      last edited by Sep 28, 2017, 5:45 AM

                      @Reotch2 I actually just was dealing with something similar trying to get that module to work as a background!

                      Right now I have just a picture instead, but it should be the same idea. Put the video file somewhere on the MagicMirror directory - my image is in the CSS file but it doesn’t matter where. That way it’s included in what’s accessible on MM’s webserver that it starts. That way, in the config, you can specify the URL for the file! On mine, the picture bg.jpg is in the CSS folder, so my file listed in the config is "http://127.0.0.1:8080/css/bg.jpg".

                      The biggest issue with this is that AFAIK it’s liable to get erased in updates to the MagicMirror framework, since I’m pretty sure the only two files that don’t get touched are config.js and custom.css. I’m also pretty sure that someone smarter than I has figured out a great way to get around that. BUt, since it’s just for halloween it’s probably temporary anyways so hopefully this gets you up and going.
                      PS that is a cool as hell idea!

                      R 1 Reply Last reply Sep 29, 2017, 2:42 AM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        8/40
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy