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.
    • D
      DarishZone Banned
      last edited by DarishZone

      I confirm it working fine on Retropie Stretch 4.4.4, with last updates is like an official bgm player.
      I suggest turn background overlay white, text black (gray is too light, i don't know the command for darkgray, not seem to work) to match ES menu style.

      Edit: "DimGray" for text is very close to ES palette!

      B 1 Reply Last reply Reply Quote 0
      • B
        BJRetro @DarishZone
        last edited by

        @DarishZone thank you! Building a bar top this week on a fresh load of Retropie so will try to incorporate this!

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

          I was able to set a config similar to gleam2003 with last madmodder123 update! The overlay is placed on same area of ES notifications. Thanks for your great work, that thread should be more alive...

          alt text

          1 Reply Last reply Reply Quote 0
          • Z
            zaibatsu
            last edited by

            Completely new to this and I'm having some issues with installing the script. When I try to run the install command i'm met with these "No such file or directory" errors alt text, and it's not installing the BGM.py and BGM_Toggle.sh either. i'd appreciate if if anyone can help me out here.

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

              @zaibatsu
              I have updated the script and it should work now.
              Just make sure you delete the old install script and the /home/pi/retropie_music_overlay folder if it is there.
              Just run it and it should work

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zaibatsu @madmodder123
                last edited by

                @madmodder123 Thanks, just tried it and it seems to be working just fine now.

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

                  @neonlightning
                  IF you haven't check GitHub, I have an ODROID on the way :)

                  cyperghostC Z 2 Replies Last reply Reply Quote 1
                  • cyperghostC
                    cyperghost @madmodder123
                    last edited by cyperghost

                    @madmodder123 Hehe ;) Rather to mess with the TV-Service you should take a look to to OGST-case... It looks like a N64 case but has a build in display in front. So you might want to send the song information to that display?

                    My experience for the ORA-image (or TheRA) were really good. I wrote also some scripts to make reset button work. There are also some other scripts in my github account for XU4 ....

                    But imho the Raspberry gives the better retro experience. You will be lucky with the ODroid if you use it as Media Center, too. For RetroPie alone the RPi is the better choice. If you are a heavy N64 and Dolphin user then the XU4 is your friend ;)

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      neonlightning @cyperghost
                      last edited by

                      @cyperghost not dolphin but dreamcast yes

                      cyperghostC 1 Reply Last reply Reply Quote 0
                      • cyperghostC
                        cyperghost @neonlightning
                        last edited by cyperghost

                        @neonlightning yes indeed

                        Just saw you forked my xu4 git. Be careful with that scripts.... The WiFi script works flawless. The reset button script needs sudo command for proper work.

                        The ogst display screen scripts need some modification to runcommand script. I simply deleted display code from runcommand script and ported back to ogst display script. I can give you further instructions if you are interested.

                        Are you the author of the OGST system pictures?

                        1 Reply Last reply Reply Quote 0
                        • Z
                          zaibatsu @madmodder123
                          last edited by

                          @madmodder123 Sorry to bother again. But i'm installing the script again with a new build and i'm having another issue where I do ./BGM_Install.sh and it creates all the folders but I don't get any music playing nor will the overlay pop up, oh and the bgm_toggle doesn't show in the menu. Now when I rerun the install using sudo ./BGM_Install.sh, the music starts playing but there is still no bgm_toggle or any overlays showing up. Any thoughts? alt text Also while looking at the installation you can see some errors with it trying to pick up 'imagemagick' could that be the reason why? Oh and another thing, when I install using sudo I get an error saying "rc.local[516]: sh: 1: /usr/local/bin/pngview-n: not found" I checked that folder and pngview is in there so at this point I really don't know what could be the issue.

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

                            @zaibatsu
                            Yeah you need imagemagick to get it to work. Fix that issue first.
                            Script has been updated a bit, download a new copy, don't run it with sudo.
                            Also the rc.local entry needs to be changed to:

                            su pi -c 'python ~/BGM.py &'
                            

                            @neonlightning
                            Good news and bad news.
                            Good news is that I have the script and the installer working on ODROID!
                            Bad news is that pngview doesn't work on ODROID so the overlay isn't working.
                            I'll have to find a way to display images on the framebuffer without it.

                            I was in a car accident cause some dumb bitch hit me so I don't have much free time to work on it until I get shit sorted out :P

                            cyperghostC Z 2 Replies Last reply Reply Quote 1
                            • cyperghostC
                              cyperghost @madmodder123
                              last edited by

                              @madmodder123 Is there need for such a language? ;)

                              Maybe you can send the songinfos to a second screen like I considered some posts above. The pngview trick uses special abilities from broadcom videocore plus the gpu driver from odroid are not very good documented ... so it is surly possible to add an overlay but I think you should consider to use a full grown media player like vlc to do this task... or just send the picture to a seconds screen ;)

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

                                @madmodder123 Alright I fixed the imagemagick issue. But I still am getting this error here. I have su pi -c 'python ~/BGM.py &' in the rc.local entry, it's weird since I wasn't having these issues with my other build it worked perfectly and i've done the same exact steps. alt text

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

                                  @zaibatsu
                                  not sure why it says pngview-n, in the BGM.py script does it say: overlay_pngview_location = '/usr/local/bin/pngview' ?
                                  Ah I think I got it fixed, download the BGM.py file, replace your current one, and then try it.

                                  @cyperghost
                                  If you were in much pain as I was you would be swearing too.
                                  I'll think about buying that case.

                                  Z MarcoM 2 Replies Last reply Reply Quote 0
                                  • Z
                                    zaibatsu @madmodder123
                                    last edited by

                                    @madmodder123 Now I get this alt text Looks like it still has something to do with pngview-n or something. I checked that folder and its exactly 'pngview'.

                                    1 Reply Last reply Reply Quote 0
                                    • MarcoM
                                      Marco @madmodder123
                                      last edited by

                                      @madmodder123
                                      I created this account just to thank you for your work :) Hope you can recover fully and fast from your accident!
                                      I would like to report one thing that might be useful: in emulatorlist string array from BGM.py i noticed it missed the pcsx-rearmed emulator, which is different from the lr-pcsx-emulator one, if you want to add that in the name is "pcsx". It's probably 2-sec work for you but i had trouble finding the actual name of the emulator so i just wanted to help as i could.. I'm no programmer so sorry for non-technical language :/

                                      @zaibatsu
                                      I had your same problem.. Probably in these days pngview updated so that it no loger supports the -n command (however this is just an assumption). I solved by modifying madmodder123's BGM.py at line 179 by removing such command. So modifying the line from

                                      show_overlay = overlay_pngview_location + " -n -d 0 -b 0x0000 -l 15000 -y " + overlay_y_offset + " -x " + overlay_x_offset + " " + overlay_tmp_file + " &"

                                      to

                                      show_overlay = overlay_pngview_location + " -d 0 -b 0x0000 -l 15000 -y " + overlay_y_offset + " -x " + overlay_x_offset + " " + overlay_tmp_file + " &"

                                      And it starts working again. Hope i could help you :)

                                      Z madmodder123M 2 Replies Last reply Reply Quote 0
                                      • Z
                                        zaibatsu @Marco
                                        last edited by

                                        @Marco Thanks! It's working just fine now. I knew it was something simple but I wouldn't have known how to fix it. Thanks again

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

                                          @Marco
                                          Glad you enjoyed it :)
                                          I removed the "-n" in the code for now, I also added pcsx-rearmed to the emulator list (along with some other optional games/apps/emulators).
                                          If you run into any more that don't stop the music when launched all you have to do is connect via SSH and type in the "top" command which will show you a list of all the process names.
                                          Then all you do is add it to this line:

                                          emulatornames = ["retroarch","ags","uae4all2","uae4arm","capricerpi","linapple","hatari","stella","atari800","xroar","vice","daphne","reicast","pifba","osmose","gpsp","jzintv","basiliskll","mame","advmame","dgen","openmsx","mupen64plus","gngeo","dosbox","ppsspp","simcoupe","scummvm","snes9x","pisnes","frotz","fbzx","fuse","gemrb","cgenesis","zdoom","eduke32","lincity","love","kodi","alephone","micropolis","openbor","openttd","opentyrian","cannonball","tyrquake","ioquake3","residualvm","xrick","sdlpop","uqm","stratagus","wolf4sdl","solarus","drastic","coolcv","PPSSPPSDL","moonlight","Xorg","smw","omxplayer.bin","wolf4sdl-3dr-v14","wolf4sdl-gt-v14","wolf4sdl-spear","wolf4sdl-sw-v14","xvic","xvic cart","xplus4","xpet","x128","x64sc","x64","prince","fba2x","steamlink","pcsx-rearmed","limelight","sdltrs","ti99sm","dosbox-sdl2","minivmac","quasi88","xm7","yabause","abuse","cdogs-sdl","cgenius","digger","gemrb","hcl","love","love-0.10.2","openblok","openfodder","srb2","yquake2","amiberry","zesarux","dxx-rebirth","zesarux"]
                                          

                                          If anyone runs into some that aren't on the list, please let me know and i'll update the script!
                                          I might try to work on the script more this weekend if I have time.

                                          @cyperghost
                                          Oh and I ended up buying an OGST kit for ODROID, so I may work on that ;)

                                          1 Reply Last reply Reply Quote 1
                                          • madmodder123M
                                            madmodder123
                                            last edited by

                                            Preview of OGST script
                                            alt text

                                            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.