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

Background Music [Continued from Help/Support]

Scheduled Pinned Locked Moved General Discussion and Gaming
musicbgm
343 Posts 109 Posters 324.4k 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.
  • M
    MicroMachineV5 @Livewire
    last edited by 8 Oct 2017, 00:46

    @livewire
    wow, thank you so much, this works perfect for me. :)

    1 Reply Last reply Reply Quote 0
    • L
      linkreincarnate
      last edited by 12 Oct 2017, 09:15

      I found a tutorial that allows you to use voice commands to play songs from youtube.

      if you install python3-pip then it works great. You just tell google to play whatever you want to hear and it plays it from youtube. in the background.

      It's not really easier than this because you have to install google assistant (which means setting up an oauth key) but if you can follow semi-technical walkthroughs you can do it and have remote storage of most songs.

      1 Reply Last reply Reply Quote 0
      • V
        Vic3Vers4
        last edited by 19 Oct 2017, 00:36

        Hi Im having a hard time getting this to run. I used all the same locations as you did, i used the latest script you wrote, put all the music which were ogg files in a music folder inside the roms folder, my file is called Test1.py, and placed inside PyScripts which is in /home/pi. I wrote out the rc.local line exactly as you did, including the quotes and &. The music just wont play, and im not getting any sort of error messages when i go back to the terminal. Whats even stranger about all of this, is Ive gotten this to work on other pies in the past, this time i did a fresh install of everything on a 128gb sd card, and the background music wont work (this is the first time ive tried to install it on retropie 4.3, and the first time i have video scraped roms) . But after updating one of my old pies, the background music still works on them. Is anyone else having trouble with this????

        1 Reply Last reply Reply Quote 0
        • C
          COOL_IRON
          last edited by 24 Oct 2017, 15:09

          Is it possible to create custom launch file for specific rom that will not disable music?

          1 Reply Last reply Reply Quote 0
          • M
            monstergubl
            last edited by 25 Oct 2017, 18:10

            hey guys i follow the easy way but i have one problem: my pi says the bgm folder already exsist but i cannot find the folder anywhere i tried over USB and Windows PC to copie my mp3, when i create the folder my pi says that he cannot create an exsisting folder

            1 Reply Last reply Reply Quote 0
            • A
              AnAssassinsBlade @Livewire
              last edited by 25 Oct 2017, 22:48

              @livewire so I Googled how to put background music on my retro pi. Well I get this error about one songs says it's not an Ogg file yet all the songs play it doesn't even tell me which song it is so I have no idea which one it could be you got any suggestions?

              E 1 Reply Last reply 26 Oct 2017, 13:19 Reply Quote 0
              • Z
                zerojay
                last edited by 26 Oct 2017, 04:37

                I've found that mpg123 will occasionally make my entire pi freeze when idle for a while so just in case you've been getting this like I have, kill mpg123 and see if it fixes your stability problems.

                1 Reply Last reply Reply Quote 0
                • E
                  ExarKunIv @AnAssassinsBlade
                  last edited by 26 Oct 2017, 13:19

                  @anassassinsblade
                  that is odd, i have only mp3 in mine and i dont get any errors

                  other then having to remove and put one song in at a time, i would say try a different format maybe

                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                  Maintainer of RetroPie-Extra .

                  1 Reply Last reply Reply Quote 0
                  • M
                    milleland @jman
                    last edited by 29 Oct 2017, 20:05

                    @jman Hi did you solved the problem with the music background while you run Daphne? Thanks a lot

                    N 1 Reply Last reply 21 Nov 2017, 22:25 Reply Quote 0
                    • topic:timeago-later,23 days
                    • N
                      Nayin @milleland
                      last edited by 21 Nov 2017, 22:25

                      @milleland Change the emulator name to: daphne.sh

                      1 Reply Last reply Reply Quote 0
                      • topic:timeago-later,about a month
                      • M
                        mitaholo @gazzhally
                        last edited by 30 Dec 2017, 17:20

                        @gazzhally

                        "vice.sh" seems to work.

                        You can see the tree of running processes with the shell command pstree. Compare the trees while running different emulators or ports and you should find the correct process name.

                        1 Reply Last reply Reply Quote 0
                        • A
                          Auz10
                          last edited by 31 Dec 2017, 23:23

                          EXCELLENT METHOD, by far the best and most simplist so far. No errors anywhere either. My only issue is as stated previously when launching LXDE/Pixel from ES, music continues. Also when launching PPSSPP for PSP games, the music continues. Any advice sir? Any and all assistance will be highly appreciated!

                          Some just re-image. Some actually look for the break in the code. I am somewhere between~

                          B 1 Reply Last reply 2 Jan 2018, 17:02 Reply Quote 0
                          • B
                            BobHarris @Auz10
                            last edited by 2 Jan 2018, 17:02

                            @auz10 You need to edit this file: bgmusic.py (located in /home/pi/PyScripts). In here add PPSSPPSDL to the list of emulators. Now the music will stop when you start PPSSPP.

                            Pi 3B , 64 GB Sandisk ultra flashdrive, 19 systems, 872 hand picked classic gaming gems :-) Dual shock 4v2

                            B 1 Reply Last reply 4 Jan 2018, 04:31 Reply Quote 0
                            • B
                              ByteThis @BobHarris
                              last edited by 4 Jan 2018, 04:31

                              @bobharris Would you have a solution to kill the music when launching the Pixel Desktop (Chromium) ?

                              B 1 Reply Last reply 4 Jan 2018, 08:41 Reply Quote 0
                              • Z
                                zerojay
                                last edited by 4 Jan 2018, 06:05

                                Is there a particular reason you guys aren't using the runcommand-onstart and onend scripts to kill and restart the music without needing to add emulator names anywhere?

                                E 1 Reply Last reply 4 Jan 2018, 14:35 Reply Quote 0
                                • B
                                  BobHarris @ByteThis
                                  last edited by BobHarris 1 Apr 2018, 08:52 4 Jan 2018, 08:41

                                  @bytethis No sorry. I figured out the names of some emulators by starting an emulator, opening winscp on my pc, connecting to the pi, opening a terminal in winscp and typing: ps -A . This shows you the names of all the running programs. You could find out what name is used for the Pixel Desktop and add it to the emulator list (treating it as an emulator). But I have no idea if that even works. I can't think of any other solution, except trying a different route , like the method Zerojay is talking about.

                                  @zerojay There are some extra functionalities: Set a startsong, start a new song after exiting a game, music fade out when starting a game. When you add the missing emulators, it works just as well.

                                  Pi 3B , 64 GB Sandisk ultra flashdrive, 19 systems, 872 hand picked classic gaming gems :-) Dual shock 4v2

                                  B 1 Reply Last reply 4 Jan 2018, 11:44 Reply Quote 0
                                  • B
                                    ByteThis @BobHarris
                                    last edited by 4 Jan 2018, 11:44

                                    @bobharris Ok..thanks ! I will play around with it and see what I can come up with.

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      ExarKunIv @zerojay
                                      last edited by 4 Jan 2018, 14:35

                                      @zerojay

                                      i believe the other way that is posted here uses the runcommand to kill it, but it is way to sudden. some people like that way.
                                      personally i like this way, yes it can be a pain to get the emulator to stop the music, but for me that is half the fun :)

                                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                      Maintainer of RetroPie-Extra .

                                      1 Reply Last reply Reply Quote 0
                                      • topic:timeago-later,14 days
                                      • L
                                        Lexx
                                        last edited by 18 Jan 2018, 10:19

                                        Hey. I'm using the script from OP for a while now. Is there a way to mute and resume or start/stop it?
                                        I can't figure out how :(

                                        1 Reply Last reply Reply Quote 0
                                        • topic:timeago-later,25 days
                                        • R
                                          Ranma
                                          last edited by 12 Feb 2018, 13:00

                                          Just wanted to add thanks for this method of adding music to the Pi. It works beautifully and has been glitch free for me so far. :-) Very easy to setup. Brilliant!

                                          1 Reply Last reply Reply Quote 0
                                          299 out of 343
                                          • First post
                                            299/343
                                            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