• 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.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.
  • M
    Muddyhardcore @tmak
    last edited by 8 Jun 2017, 21:34

    Ok so if I followed this video, which I did, and my folder containing my mp3 is located in /home/pi/bgm

    What file name and where is it located that contains the script which has the list I need to edit so that the music stops when I launch kodi?

    @tmak said in Background Music [Continued from Help/Support]:

    I installed background music on retropie 4.2 pi3 per drew talks youtube video:

    Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

    E 1 Reply Last reply 8 Jun 2017, 21:38 Reply Quote 0
    • E
      ExarKunIv @Muddyhardcore
      last edited by 8 Jun 2017, 21:38

      @Muddyhardcore

      if you followed the vid word for word. then the script should be in a folder called scripts inside the music folder

      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 .

      M 1 Reply Last reply 8 Jun 2017, 22:00 Reply Quote 1
      • M
        Muddyhardcore @ExarKunIv
        last edited by 8 Jun 2017, 22:00

        @ExarKunIv
        Wow I feel like a jerk. I must have done something wrong or followed another guide. I don't have a music folder in the roms directory. I only have a "bgm" folder in /home/pi and I can't remember the directory they're in but I do have runcommand-onend & runcommand-onstart. I'm sorry for wasting everyone's time.

        Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

        E 1 Reply Last reply 9 Jun 2017, 13:08 Reply Quote 0
        • E
          ExarKunIv @Muddyhardcore
          last edited by 9 Jun 2017, 13:08

          @Muddyhardcore

          its cool

          you followed this guide then here
          if you only have a bgm folder

          but i think you changing the kodi script should work, if not we can figure something out

          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 .

          M 2 Replies Last reply 9 Jun 2017, 13:39 Reply Quote 0
          • M
            Muddyhardcore @ExarKunIv
            last edited by Muddyhardcore 6 Sept 2017, 14:57 9 Jun 2017, 13:39

            @ExarKunIv
            My kodi.sh file looks like this

            Kodi-standalone

            I set it up using this
            Kodi Wiki

            Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

            1 Reply Last reply Reply Quote 0
            • M
              Muddyhardcore @ExarKunIv
              last edited by 9 Jun 2017, 14:45

              @ExarKunIv
              I tried to edit the current kodi.sh and it said access denied. I renamed it to kodi.sh.bak and just created a new kodi.sh using the code you provided and now the music stops when I launch Kodi. Thanks for the help and patience.

              Pi 3, Retropie 4.2.7, 128GB SanDisk SD , CanaKit 5.1v Power Supply, 8bitdo NES30,

              E 1 Reply Last reply 9 Jun 2017, 15:04 Reply Quote 1
              • E
                ExarKunIv @Muddyhardcore
                last edited by 9 Jun 2017, 15:04

                @Muddyhardcore

                im glad that it worked for you.
                :)

                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
                  madmodder123
                  last edited by 11 Jun 2017, 23:32

                  Is there a way to modify this script to play an .m3u music stream from the internet?
                  It would be even more awesome to allow it to play the local files if no internet is connected.
                  To top it off I would like to make an entry in the Retropie to manage the background music (Play from internet, play local files, or no background music).

                  I was able to successfully play a .m3u but I am not sure how I would go about editing the script
                  Example:

                  wget -O - `wget -O - http://dir.xiph.org/listen/1677870/listen.m3u` | mpg123 -
                  

                  If anyone could point me in the right direction I would be extremely grateful

                  1 Reply Last reply Reply Quote 0
                  • topic:timeago-later,8 days
                  • M
                    madmodder123
                    last edited by madmodder123 19 Jun 2017, 22:55

                    Does anyone else get audio static when resuming/restarting the music after exiting an emulator?
                    EDIT: It seems to fix itself when I select "Restart Emulation Station" from the menu
                    This is with audio playing through the 3.5mm jack.

                    B 1 Reply Last reply 20 Jun 2017, 14:24 Reply Quote 0
                    • B
                      backstander @madmodder123
                      last edited by 20 Jun 2017, 14:24

                      @madmodder123

                      Does anyone else get audio static when resuming/restarting the music after exiting an emulator?

                      I'm not sure if this is related to your static issues but you can try adding disable_audio_dither=1 to /boot/config.txt
                      If that doesn't help, you can also try adding audio_pwm_mode=2 to /boot/config.txt

                      More information here:
                      https://retropie.org.uk/docs/Sound-Issues/#white-noise-fix

                      1 Reply Last reply Reply Quote 1
                      • C
                        cyperghost @synack
                        last edited by cyperghost 21 Jun 2017, 10:35

                        @synack Genious hack my friend!
                        I love tracked music btw. :D
                        Now my BGM is .....


                        Would be nice if someone can create a theme for this ;)

                        1 Reply Last reply Reply Quote 1
                        • topic:timeago-later,12 days
                        • C
                          ChelMaster04
                          last edited by 2 Jul 2017, 22:57

                          Hi,
                          I just searched about if theres anything like this, with which you can add bgm to your Retropie system.. thing... sorry, my English isnt very good.

                          But anyways: I fount this post, instantly tried it and it worked perfectly :)

                          But now i have a Problem...
                          I added the NDS Emulator DraStic from the experimental packages to my ES an of course your code isnt programmed to work with drastic, so the music continued playing after i launched a game in it.

                          so to fix it, i added "drastic" to the list of emulatornames, following the example of the other emulators, that were written down in it.

                          But it didn't work...

                          I then changed the entry to "DraStic" and launched a game again and this time it worked, although the fading was to slow for my taste, so i went on increasing the volumefadespeed variable.

                          Now it doesn't work again, even after returning the volumefadespeed to 0.02

                          do you have any idea whats going on and how to fix this?

                          1 Reply Last reply Reply Quote 0
                          • Y
                            yfresh59
                            last edited by 5 Jul 2017, 04:06

                            Hi,
                            I am using the python script to play background music! It works great without issue until now.

                            I just started using a usb drive to put all my roms on. I'm using the method from the video link below for my usb drive.


                            I know there are a few ways to use a usb flash drive with retropie, so I thought it would helpful for you to know how I'm using my usb flashdrive with my sd card still inserted.

                            So after following the method in the video to use a usb stick with retropie, music no longer plays inside the retropie menu. Before I added a usb stick, the python script worked flawless and music played when it should without issue. Now with the new usb stick, no music plays anymore. My music sits inside a folder I named "music" and it's in my roms folder. How can I get music to play again with the new usb stick inserted?

                            If I take out the usb stick, music plays just fine as it should

                            E 1 Reply Last reply 5 Jul 2017, 15:30 Reply Quote 0
                            • E
                              ExarKunIv @yfresh59
                              last edited by 5 Jul 2017, 15:30

                              @yfresh59

                              the only thing i can think of is when you have the USB drive plugged in. RetroPie changes where it looks for the ROMs. so the script that runs the music is looking in the wrong place. that is why when you remove the USB, the music starts again.

                              so you will have to change the script to look in the correct place for your music

                              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 .

                              Y 1 Reply Last reply 5 Jul 2017, 21:39 Reply Quote 0
                              • Y
                                yfresh59 @ExarKunIv
                                last edited by 5 Jul 2017, 21:39

                                @ExarKunIv
                                Thank you!
                                I managed to figure it out this morning while exploring through Retropie files via ssh. My music folder (with the .py script) was still on my sd card. But I was curious about using the mpg123 for music. So I installed it and ran into the same problem. So I simply moved the bgm file from my sd card to my usb stick. I also changed the path in the config file for mpg123 via putty to match the new location on my usb stick. Now it works great!
                                Sound I uninstall the python script? Mpg123 and python doesn't seem to be interfering with each other.

                                I find weird that since using a usb stick, my custom splash screen videos and rom launcher splash screen pictures are all working just fine with or without the usb stick inserted. But the music folder had to be moved manually to the usb stick.

                                Now, my setup is almost complete, just having trouble with scrapping data for roms, but I'll request help for that in the appropriate thread. This Pi has turned out to be a fun little project! I'm still a brand new to the Pi, but I'm loving it so far. Thank you for the help

                                E 1 Reply Last reply 6 Jul 2017, 17:53 Reply Quote 0
                                • E
                                  ExarKunIv @yfresh59
                                  last edited by 6 Jul 2017, 17:53

                                  @yfresh59

                                  glad that you got it cleared up

                                  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
                                  • T
                                    time2purge
                                    last edited by 7 Jul 2017, 05:58

                                    got a question. i got the python script working a few days ago and it's awesome but today when i turned on the pie, there was no music. it was like the script just diapered. try restarting the ES, nothing,restarted the system, nothing. i checked the files and the command and everything still there. so is there away to get the script back working or do i have to undo and redo everything.

                                    E 1 Reply Last reply 7 Jul 2017, 18:58 Reply Quote 0
                                    • E
                                      ExarKunIv @time2purge
                                      last edited by 7 Jul 2017, 18:58

                                      @time2purge

                                      its hard to say what you have to do. we need to find out what is going on first.

                                      i would say that we need to see if the script will work or not. so you will need to SSH in to you pie and put this command down

                                      sudo python /home/pi/PyScripts/Test1.py of course change what you need. this will force the script to start to work, if its going to.

                                      if the music plays then the script is working. you just need to look into why it will not start

                                      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 .

                                      T 1 Reply Last reply 8 Jul 2017, 02:46 Reply Quote 0
                                      • Y
                                        yfresh59
                                        last edited by 7 Jul 2017, 20:26

                                        Hey I was just thinking.... Right now I'm currently very pleased with using background music, "scraped images" from UXS and switching to different ES themes to change the "mood." This is a quick and easy way to get retropie setup just the way I like!

                                        But I think it is becoming easier these days to add videos instead of using images in retropie. Currently using mpg123 for my background music. I want to add videos, but either have the videos' audio "muted" by editing a command line or something (seems like the hard way); or when prior to taking videos of my gameplay to use as retropie preview video snaps, I could just mute the emulators audio and record the video only (seems like the easier way).

                                        So, if I use my own video snaps WITHOUT audio and with video ONLY (I think recording videos with audio muted seems easier), will my background music still play while the video snaps are playing at the same time? Even though the videos audio will be muted prior to recording it, will the video snaps in emulation station overwrite my background music? That would be my ideal setup! My own music playlist in the background with video snaps (recorded video only) for each game.

                                        Also, with mpg123, can the music be shuffled? Or at least play a different song after exiting a game? It Currently continues from the same song from where it left off. I have my gbm folder on my usb drive so I can have lots of music.

                                        E 1 Reply Last reply 10 Jul 2017, 17:24 Reply Quote 0
                                        • T
                                          time2purge @ExarKunIv
                                          last edited by 8 Jul 2017, 02:46

                                          @ExarKunIv i'll have to give it a try and let ya know the outcome thanks for the reply .

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