RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Modified Background Music Script with added overlays!

    Scheduled Pinned Locked Moved Ideas and Development
    bgmoverlaymusicsongscript
    114 Posts 22 Posters 39.1k Views
    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.
    • mituM
      mitu Global Moderator @wmarcio
      last edited by

      @wmarcio said in Modified Background Music Script with added overlays!:

      sudo /usr/local/bin/pngview

      I don't understand what are you trying to do here. pngview is meant to display an image on the screen, and it needs to have a filename as a parameter.

      1 Reply Last reply Reply Quote 0
      • D
        DarishZone Banned
        last edited by DarishZone

        Someone got random black screen on ES? It seems to happen when a new track starts and overlay change, can't see anything, even on terminal, i can resolve only starting emulator, then back to es.
        Not sure if can be related to overlay actually, any thoughts?

        Turns out is my own setting issue. Sorry.

        1 Reply Last reply Reply Quote 0
        • D
          DarishZone Banned
          last edited by

          It's a pity this thread got so little attention, it deserves so much.
          If the author still looking on this, some suggestions that could make that script perfect:

          • Add some script to fade out the track title overlay after few seconds (dunno if possible), because that overlay still remains even on terminal.
          • Less important - Made the background image rounded on the edges.
          madmodder123M 2 Replies Last reply Reply Quote 1
          • darkniorD
            darknior
            last edited by

            For my part i have a bug from a long time i don't report ...
            I love this script and can't imagine my Retropie without it, so bad it is not official and added to experimental script in RP setup.
            And why not one day include in ES with some settings possible from ES for this script in background ... like they do on Recallbox for many scripts ...

            My bug :
            Some time when i come back to my pi after many days ... the pi working fine, i can see my video screensaver with sound, and when i stop the screensaver and come back to ES, i see the title of the song but i can't hear it, no script sound ... i must restart my PI for it :(

            Life is game, just play it !

            1 Reply Last reply Reply Quote 0
            • madmodder123M
              madmodder123 @DarishZone
              last edited by

              @DarishZone said in Modified Background Music Script with added overlays!:

              It's a pity this thread got so little attention, it deserves so much.
              If the author still looking on this, some suggestions that could make that script perfect:

              • Add some script to fade out the track title overlay after few seconds (dunno if possible), because that overlay still remains even on terminal.
              • Less important - Made the background image rounded on the edges.

              I have been really busy with my new job and I just bought a VR headset so my time is pretty well occupied :P
              I will try to add a setting to fade the text if I get some free time :)

              @darknior said in Modified Background Music Script with added overlays!:

              For my part i have a bug from a long time i don't report ...
              I love this script and can't imagine my Retropie without it, so bad it is not official and added to experimental script in RP setup.
              And why not one day include in ES with some settings possible from ES for this script in background ... like they do on Recallbox for many scripts ...

              My bug :
              Some time when i come back to my pi after many days ... the pi working fine, i can see my video screensaver with sound, and when i stop the screensaver and come back to ES, i see the title of the song but i can't hear it, no script sound ... i must restart my PI for it :(

              Hmmm that is interesting, not sure if I will look into it though since most people don't leave their Pi's on for days. Sorry :/

              D darkniorD 2 Replies Last reply Reply Quote 0
              • D
                DarishZone Banned @madmodder123
                last edited by

                @madmodder123 Thanx for the answer, don't worry, you did more than much creating that incredible script, even i can't get enough of it, wish ES will add default in the next updates.

                1 Reply Last reply Reply Quote 1
                • darkniorD
                  darknior @madmodder123
                  last edited by

                  @madmodder123 said in Modified Background Music Script with added overlays!:

                  Hmmm that is interesting, not sure if I will look into it though since most people don't leave their Pi's on for days. Sorry :/

                  Seriously you power off your PI ??
                  I never do it lol ... i only shut down my TV, the pi is always running :p
                  But why not, you are right, i will try to think to turn it down.
                  But it is a strange bug ... i don't found why i have it ...

                  Life is game, just play it !

                  1 Reply Last reply Reply Quote 0
                  • madmodder123M
                    madmodder123 @DarishZone
                    last edited by

                    @DarishZone
                    I updated the script so it now hides the overlay after 8 seconds by default (you have the option to change it to more/less time or have it always showing)
                    :)

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      DarishZone Banned @madmodder123
                      last edited by DarishZone

                      @madmodder123 said in Modified Background Music Script with added overlays!:

                      @DarishZone
                      I updated the script so it now hides the overlay after 8 seconds by default (you have the option to change it to more/less time or have it always showing)
                      :)

                      OMG!
                      What is the procedure?
                      I have to reinstall script with your installer or i can just replace BGM.py with the updatet one?

                      madmodder123M 1 Reply Last reply Reply Quote 0
                      • madmodder123M
                        madmodder123 @DarishZone
                        last edited by madmodder123

                        @DarishZone
                        You can just replace the BGM.py script (but you might have to delete it with a sudo cmd, remember to make it executable too!)
                        I updated the install script but all I added was code to change the BGM.py file owner and the permissions.

                        @legacy
                        It should stop showing the no process found message too.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          DarishZone Banned @madmodder123
                          last edited by

                          @madmodder123 said in Modified Background Music Script with added overlays!:

                          @DarishZone
                          You can just replace the BGM.py script (but you might have to delete it with a sudo cmd, remember to make it executable too!)
                          I updated the install script but all I added was code to change the BGM.py file owner and the permissions.

                          I've just replaced the whole BGM.py file, all good for now, you are a frickin genius my friend :)

                          madmodder123M 1 Reply Last reply Reply Quote 0
                          • madmodder123M
                            madmodder123 @DarishZone
                            last edited by

                            @DarishZone
                            I might be able to add an option to round the edges at a later date :)

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              DarishZone Banned @madmodder123
                              last edited by DarishZone

                              @madmodder123 said in Modified Background Music Script with added overlays!:

                              @DarishZone
                              I might be able to add an option to round the edges at a later date :)

                              Great, it just match ES main menu window :D
                              Massive work, thanks so much

                              1 Reply Last reply Reply Quote 0
                              • D
                                DarishZone Banned
                                last edited by DarishZone

                                Please man make edge rounded, i would do it by myself but i'm afraid is beyond my knowledge :D

                                madmodder123M 1 Reply Last reply Reply Quote 0
                                • madmodder123M
                                  madmodder123 @DarishZone
                                  last edited by

                                  @DarishZone
                                  I updated it!
                                  Just download it and change it to:
                                  overlay_rounded_corners = True
                                  and you are good to go :)

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    DarishZone Banned @madmodder123
                                    last edited by

                                    @madmodder123 said in Modified Background Music Script with added overlays!:

                                    @DarishZone
                                    I updated it!
                                    Just download it and change it to:
                                    overlay_rounded_corners = True
                                    and you are good to go :)

                                    What a wonderful christams gift, thank u so much man :)

                                    1 Reply Last reply Reply Quote 0
                                    • JesseBlueJ
                                      JesseBlue
                                      last edited by

                                      Is it possible to edit the font size and the font alignment?

                                      madmodder123M 1 Reply Last reply Reply Quote 0
                                      • madmodder123M
                                        madmodder123 @JesseBlue
                                        last edited by madmodder123

                                        @JesseBlue
                                        If you change the overlay size it will automatically resize the text.
                                        If you want to edit the font alignment/other font attributes, you can look at this page: http://www.imagemagick.org/Usage/text/
                                        and edit the following line of code to add whatever code you need:

                                        generate_image = "sudo convert " + overlay_rounded + "-background " + overlay_background_color + " -fill " + overlay_text_color + " -font " + overlay_text_font + " -gravity center -size " + overlay_size + " label:\"" + song_title + "\" " + overlay_tmp_file # Generate png from text
                                        

                                        PS: I would download the latest version of the BGM.py script, I cleaned up the code to make it easier to edit (the functionality remains unchanged though)

                                        1 Reply Last reply Reply Quote 2
                                        • N
                                          neonlightning
                                          last edited by

                                          any chance of making this a bit more system agnostic? as is it'll take a fair bit of editing to work on the odroid since you hardcode /home/pi/ in it and odroid uses /home/pigaming/

                                          madmodder123M 2 Replies Last reply Reply Quote 0
                                          • madmodder123M
                                            madmodder123 @neonlightning
                                            last edited by madmodder123

                                            @neonlightning
                                            I will make it more compatible with other systems :)
                                            Not sure when, but i'll update this topic when I do

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

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.