• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.2k 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.
  • D
    DarishZone Banned
    last edited by DarishZone 24 Oct 2018, 23:07

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

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

    I will try this! In that case i have to remove the line added on rc.local file?

    Yes you are, it is explained. You can't use the two files.

    I also wonder if there's a way to move track names overlays to upper right screen instead of left, seems a more convenient position.

    Not for me, but all of this is on the script, you must modify it by yourself. It is explain on git.

    Thank you, but not seems to work for me, can you show me excatly the complete line on autostart.sh?

    Edit: managed to move overlay, but now terminal report me an error (?)
    /usr/local/bin/pngview: no process found

    Is that normal? I'm afraid it was always there and overlay covered it.

    Edit 2: I've found edit autostart.sh to run script instead of rc.local trigger that message

    1 Reply Last reply Reply Quote 0
    • D
      DarishZone Banned
      last edited by DarishZone 11 Jan 2018, 23:22 1 Nov 2018, 23:21

      Even with local edit, systemlog often report /usr/local/bin/pngview: no process found, and also terminal triggered it if i disable bgm music, also on terminal i can see some strange icons like "[["
      Also, it's rare but could happen system hangs at boot, before splashscreen starts, it left with only blinking cursor on top left of screen, not sure if that one is related to my setting (probably)
      Any advice?

      1 Reply Last reply Reply Quote 0
      • W
        wmarcio
        last edited by wmarcio 11 Apr 2018, 10:05 4 Nov 2018, 10:04

        This script dont work on Lubuntu 18.4 x64 (Retropie install) on a DELL 3020m.
        Its say something about tvservice. U can help US?

        Thxs for your great work.

        M 1 Reply Last reply 4 Nov 2018, 10:09 Reply Quote 0
        • M
          mitu Global Moderator @wmarcio
          last edited by 4 Nov 2018, 10:09

          @wmarcio tvservice is specific to the Raspberry Pi installation, used to determine the current screen size. You should modify the Python script to use another method (xrandr comes to mind) and it should work.

          W 1 Reply Last reply 4 Nov 2018, 10:19 Reply Quote 0
          • W
            wmarcio @mitu
            last edited by 4 Nov 2018, 10:19

            @mitu thxs brow, but i am a total linux noob, you can instruct me?

            M 1 Reply Last reply 4 Nov 2018, 10:59 Reply Quote 0
            • M
              mitu Global Moderator @wmarcio
              last edited by 4 Nov 2018, 10:59

              @wmarcio That's really easy - replace the command that call tvservice... with the command that gets your the screen size. Here is an example command that gives you the width and height of your screen, which you can use in the python script at the lines I indicated in my previous post.

              W 1 Reply Last reply 4 Nov 2018, 16:06 Reply Quote 0
              • W
                wmarcio
                last edited by 4 Nov 2018, 12:11

                @mitu if i understand i need to change the command tvservice on all lines he apear in the script, for the command:

                xdpyinfo | grep dimensions | sed -r 's/^[^0-9]([0-9]+x[0-9]+).$/\1/'

                Is that?
                Many tanks for your help.

                1 Reply Last reply Reply Quote 0
                • W
                  wmarcio @mitu
                  last edited by 4 Nov 2018, 16:06

                  @mitu worked, but now i have a problem with pngview.

                  Output terminal command:

                  sudo /usr/local/bin/pngview
                  /usr/local/bin/pngview: 1: /usr/local/bin/pngview: Syntax error: word unexpected (expecting ")")

                  You can help a bit more???

                  M 1 Reply Last reply 4 Nov 2018, 18:29 Reply Quote 0
                  • M
                    mitu Global Moderator @wmarcio
                    last edited by 4 Nov 2018, 18:29

                    @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 13 Nov 2018, 14:02

                      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 13 Dec 2018, 23:18

                        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.
                        M 2 Replies Last reply 16 Dec 2018, 13:58 Reply Quote 1
                        • D
                          darknior
                          last edited by 16 Dec 2018, 12:23

                          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
                          • M
                            madmodder123 @DarishZone
                            last edited by 16 Dec 2018, 13:58

                            @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 D 2 Replies Last reply 16 Dec 2018, 18:17 Reply Quote 0
                            • D
                              DarishZone Banned @madmodder123
                              last edited by 16 Dec 2018, 18:17

                              @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
                              • D
                                darknior @madmodder123
                                last edited by 17 Dec 2018, 00:28

                                @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
                                • M
                                  madmodder123 @DarishZone
                                  last edited by 20 Dec 2018, 17:07

                                  @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 20 Dec 2018, 17:15 Reply Quote 0
                                  • D
                                    DarishZone Banned @madmodder123
                                    last edited by DarishZone 20 Dec 2018, 17:15

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

                                    M 1 Reply Last reply 20 Dec 2018, 17:26 Reply Quote 0
                                    • M
                                      madmodder123 @DarishZone
                                      last edited by madmodder123 20 Dec 2018, 17:26

                                      @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 20 Dec 2018, 17:38 Reply Quote 0
                                      • D
                                        DarishZone Banned @madmodder123
                                        last edited by 20 Dec 2018, 17:38

                                        @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 :)

                                        M 1 Reply Last reply 20 Dec 2018, 18:21 Reply Quote 0
                                        • M
                                          madmodder123 @DarishZone
                                          last edited by 20 Dec 2018, 18:21

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

                                          D 1 Reply Last reply 20 Dec 2018, 19:04 Reply Quote 0
                                          • 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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received