• 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 24.6k 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, 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
        • C Offline
          cowboysdude Module Developer @Reotch2
          last edited by Sep 28, 2017, 11:32 AM

          @Reotch2 would be cool if you could package up what you have to share ;)

          R 1 Reply Last reply Sep 29, 2017, 2:36 AM Reply Quote 0
          • N Offline
            Nystro0m @Reotch2
            last edited by Nystro0m Sep 28, 2017, 4:17 PM Sep 28, 2017, 4:15 PM

            @Reotch2
            Make it a .mp4 with a h.264 codec.
            Make a folder in your module called videos.

            videoSRC: "/videos/YOURVIDEONAME.mp4",
            loop: true,
            

            You could also try:
            http://127.0.0.1:8080/modules/MMM-htmlvideo/videos/YOURVIDEONAME.mp4

            If that don’t work. Put it on a fileshare somewhere.
            Maybe drive or dropbox could work if the share settings is public.

            A

            R 1 Reply Last reply Sep 29, 2017, 2:29 AM Reply Quote 3
            • R Offline
              Reotch2 @Nystro0m
              last edited by Sep 29, 2017, 2:29 AM

              @Nystro0m This finally worked. Unfortunately, it turns out running the video as a module within electron is super “clunky” on my RPI-3. OMXplayer seemed to play the video flawlessly.

              It’s really unfortunate, because although it was choppy, it was BEAUTIFUL. Are there any overclocking options or MM tweaks that may improve embedded video quality? (yes… now I’m getting greedy).

              Also, as an amateur mirror-ist(?), how would I have found the MMM-htmlvideo since it wasn’t published on the module page?

              Really appreciate the help

              M 1 Reply Last reply Sep 30, 2017, 3:47 PM Reply Quote 0
              • R Offline
                Reotch2 @cowboysdude
                last edited by Sep 29, 2017, 2:36 AM

                @cowboysdude I’d really love to, and in my younger/bolder days it’d probably already be posted; unfortunately it’s not worth risking the Copyright issues. Sorry man.

                1 Reply Last reply Reply Quote 1
                • R Offline
                  Reotch2 @pyrosmiley
                  last edited by Sep 29, 2017, 2:42 AM

                  @pyrosmiley said in Ghost Overlay / OMXPlayerTransparency:

                  @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!

                  @pyrosmiley This was the fix. You and @Nystro0m nailed it. Unfortunately after all that work, the video gets choppy when run within MM. I’m going to toy with some of my RPI-3 overclock settings, but if that doesn’t work, I’m just going to stick with OMXPlayer and dimmed modules. :(

                  Thanks for the help.

                  P N 2 Replies Last reply Sep 29, 2017, 6:54 AM Reply Quote 0
                  • P Offline
                    pyrosmiley @Reotch2
                    last edited by Sep 29, 2017, 6:54 AM

                    @Reotch2 If you’re still shooting for this, I HIGHLY recommend using ffmpeg to convert the clip to .webm format, which was developed for web streaming video — it’s crazy efficient with file size and perfect for this type of thing. If you’ve never used ffmpeg before it can be daunting, but the gist of what you do is ‘’’ffmpeg -i .mp4 -o .webm’’’ and then let it do its thing. It may take some googling to get exactly the settings you want but a basic conversion should do pretty well for you.

                    Good luck!

                    P 1 Reply Last reply Sep 29, 2017, 6:56 AM Reply Quote 0
                    • P Offline
                      pyrosmiley @pyrosmiley
                      last edited by Sep 29, 2017, 6:56 AM

                      @pyrosmiley said in Ghost Overlay / OMXPlayerTransparency:

                      @Reotch2 If you’re still shooting for this, I HIGHLY recommend using ffmpeg to convert the clip to .webm format, which was developed for web streaming video — it’s crazy efficient with file size and perfect for this type of thing. If you’ve never used ffmpeg before it can be daunting, but the gist of what you do is ‘’’ffmpeg -i .mp4 -o .webm’’’ and then let it do its thing. It may take some googling to get exactly the settings you want but a basic conversion should do pretty well for you.

                      Good luck!

                      Formatting got messed up on my phone but the ffmpeg command is ffmpeg -i input.mp4 -o output.webm

                      It should work just fine, I literally did it for my mirror today.

                      R J 2 Replies Last reply Sep 30, 2017, 2:14 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        17/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