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

    Quick and easy guide for adding music to Emulatonstation on RetroPie. Noob friendly!

    Scheduled Pinned Locked Moved General Discussion and Gaming
    musicbgmsynackguide
    165 Posts 59 Posters 113.6k 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.
    • J
      jose__macedo
      last edited by

      I turn on my retropie and no music are played. Once I enter the command line with F4, the music starts and even I exit back to ES, it continues playing. Why it's not initializing automatically when I boot the system? Any help?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @jose__macedo
        last edited by

        @jose__macedo How did you configure the music start-up ?

        1 Reply Last reply Reply Quote 0
        • J
          jh56666
          last edited by

          @MapleStory said in Quick and easy guide for adding music to Emulatonstation on RetroPie. Noob friendly!:

          I hope this helps some of you out and if there's any questions, please feel free to ask! Also, if there's any suggestions in how to tidy this guide up, please let me know as well.

          Looks great but how does one turn it off, you ask?

          1 Reply Last reply Reply Quote 0
          • M
            MeanJoeA
            last edited by

            Configuration for playing .ogg files
            @Naprosnia thanks for the great install script. Made my noob life easy.
            I couldn't get my system to play ogg files in the music folder.
            I edited bgm_system.sh and added ogg to the mp3file type list (line 77). Next I reloaded music and ... SUCCESS!
            7feea4b4-e3ff-47be-bbfb-8060d343b380-image.png

            Does anyone else have issues playing .ogg files?
            Is this the correct fix? (or just a workaround for something wonky in my system?)

            1 Reply Last reply Reply Quote 0
            • agboju_logunA
              agboju_logun
              last edited by

              Another thumbs up for @Naprosnia's solution.

              I've recently rebuilt my 3b+ from scratch and I had a bit of bother getting the fade in/out function working when launching/quitting games.

              After a bit of trial and error, I got it working by amending the CHANNEL variable in bgm_system.sh from "PCM" to "HDMI":

              #ALSA related vars
              readonly CHANNEL="HDMI"

              All working nicely now :)

              1 Reply Last reply Reply Quote 1
              • C
                Codafire @MapleStory
                last edited by

                @maplestory i dont know why but this works perfect in my rasp3 but in the rasp4 i follow the same guide but always start with the same song. any way to make a random music selection at start?

                1 Reply Last reply Reply Quote 0
                • ICYBAWSSI
                  ICYBAWSS
                  last edited by

                  when i do sudo nano /home/pi/.bashrc, retropie_welcome does not show up. im using a pi 4 btw

                  1 Reply Last reply Reply Quote 0
                  • L
                    Logiurser09
                    last edited by

                    i have no idea where to put my mp3 file

                    1 Reply Last reply Reply Quote 0
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • ExarKunIvE ExarKunIv referenced this topic on
                    • S sleve_mcdichael referenced this topic on
                    • L
                      luckyluca @Soryn79
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • L
                        luckyluca @Soryn79
                        last edited by

                        @Soryn79 said in Quick and easy guide for adding music to Emulatonstation on RetroPie. Noob friendly!:

                        I recommend changing:

                        while pgrep omxplayer >/dev/null; do sleep 1; done
                        (sleep 10; mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1) &
                        emulationstation #auto
                        

                        to this: (the --no-splash is optional)

                        emulationstation --no-splash &
                        while pgrep omxplayer >/dev/null; do sleep 1; done
                        (mpg123 -Z /home/pi/bgm/*.mp3 >/dev/null 2>&1) #auto
                        

                        Changing it so that it starts after ES loads just makes more sense to me. This makes sure that the music will always start 1 second after the video ends regardless of video length.

                        Hi there, I tried your version and whilst it works beatifully on startup, it breaks emulationstation when pressing F4, it just hangs on a blank screen.

                        I thought I'd let you know.

                        Any ideas?

                        Best!
                        Luca

                        1 Reply Last reply Reply Quote 0
                        • S sleve_mcdichael referenced this topic on
                        • 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.