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

Quick and easy guide for adding -EMULATED- music to Emulationstation on RetroPie

Scheduled Pinned Locked Moved General Discussion and Gaming
bgmguidemusicmusic ripsvgm
22 Posts 11 Posters 6.7k 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
    MapleStory
    last edited by MapleStory 19 Dec 2017, 02:57

    @zerojay

    Dude, this is amazing! Something that I've always wished for was the ability to use vgmplay for music, as the source material from consoles and arcade games are usually bite-sized in filesize and lossless in quality. I'll definitely put this to use tonight on my pi.

    1 Reply Last reply Reply Quote 1
    • A
      adjuntor
      last edited by 14 Jun 2018, 17:18

      I was cracking my head on why it was not working and realised you forgot to add this to step 5:
      sudo chmod a+x /opt/retropie/configs/all/generatem3u.sh

      Z 1 Reply Last reply 14 Jun 2018, 18:34 Reply Quote 1
      • Z
        zerojay @adjuntor
        last edited by 14 Jun 2018, 18:34

        @adjuntor said in Quick and easy guide for adding -EMULATED- music to Emulationstation on RetroPie:

        I was cracking my head on why it was not working and realised you forgot to add this to step 5:
        sudo chmod a+x /opt/retropie/configs/all/generatem3u.sh

        I made the fix, thank you.

        1 Reply Last reply Reply Quote 0
        • Z
          zerojay
          last edited by zerojay 7 Sept 2018, 02:48 9 Jul 2018, 01:43

          I'm planning on taking a second run at this. The main change would be that the playlist creation would allow mp3s and all the vgm file types and if it sees an mp3, it will play through mpg123. If it finds a vgm, it'll play with vgmplay. That way, you can have the best of both worlds with one script.

          Also, I have an idea of how to do the music fade in/fade out on launch and quit of games so hoping to get that in too.

          EDIT: Also fixed a minor coding mistake in generatem3u.sh.

          E 1 Reply Last reply 16 Sept 2018, 11:52 Reply Quote 1
          • E
            Eric_McTrainshit @zerojay
            last edited by 16 Sept 2018, 11:52

            @zerojay said in Quick and easy guide for adding -EMULATED- music to Emulationstation on RetroPie:

            'm planning on taking a second run at this. The main change would be that the playlist creation would allow mp3s and all the vgm file types and if it sees an mp3, it will play through mpg123. If it finds a vgm, it'll play with vgmplay. That way, you can have the best of both worlds with one script.

            That'd be nice for a multitude of reasons and would be highly appreciated.

            Did you make any progress with that?

            E C 2 Replies Last reply 28 Nov 2018, 01:15 Reply Quote 0
            • E
              Eric_McTrainshit @Eric_McTrainshit
              last edited by 28 Nov 2018, 01:15

              @zerojay I'm guessing that's a no. Hopefully you've been alright. Your activity has been kind of slow in recent months.

              1 Reply Last reply Reply Quote 0
              • B
                brimby
                last edited by 28 Nov 2018, 02:19

                I'm getting permissions errors when I try to transfer files to the vgm folder. I tried running

                sudo chown -R pi:pi vgm
                sudo chown -R 777 vgm
                

                and I still got the same denial afterward

                1 Reply Last reply Reply Quote 0
                • B
                  brimby
                  last edited by 28 Nov 2018, 03:47

                  Whoops my issue was that I accidentally did chown instead of chmod for that second line. All good now.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cyperghost @Eric_McTrainshit
                    last edited by 29 Nov 2018, 06:34

                    @Eric_McTrainshit said in Quick and easy guide for adding -EMULATED- music to Emulationstation on RetroPie:

                    @zerojay said in Quick and easy guide for adding -EMULATED- music to Emulationstation on RetroPie:

                    'm planning on taking a second run at this. The main change would be that the playlist creation would allow mp3s and all the vgm file types and if it sees an mp3, it will play through mpg123. If it finds a vgm, it'll play with vgmplay. That way, you can have the best of both worlds with one script.

                    That'd be nice for a multitude of reasons and would be highly appreciated.

                    Did you make any progress with that?

                    Already done here
                    https://retropie.org.uk/forum/topic/19829/bgm-music-mpg123-with-fade-in-out

                    E 1 Reply Last reply 28 Feb 2019, 04:05 Reply Quote 0
                    • D
                      djDarkX
                      last edited by 15 Feb 2019, 02:16

                      Sorry for the slight necro, but I just wanted to know if the music playing would be looped or not and if not, is there a way to loop it? I want to make my own background music in SPC format, kind of like SNES Classic, or NSF format, also like NES Classic, where it loops properly.

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eric_McTrainshit @cyperghost
                        last edited by 28 Feb 2019, 04:05

                        @cyperghost That would allow me to play VGM and MP3 files?

                        C 1 Reply Last reply 28 Feb 2019, 16:00 Reply Quote 0
                        • C
                          cyperghost @Eric_McTrainshit
                          last edited by 28 Feb 2019, 16:00

                          @Eric_McTrainshit No with this script is is possible to realize fade in and fade out of any music. It has nothing to do with the player or file format itself.
                          I assumed I wrote that comment because someone asked for feature like the python script for BGM has.

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zerojay
                            last edited by zerojay 27 Aug 2020, 07:07

                            Yeah, I've been gone awhile but I'm necroing this thread to say that I'm going back to working on my RetroPie-Extras repo and bringing it up to speed with Buster and RetroPie 4.6 and I'm starting with vgmplay. I seem to remember having made a script that allowed both mp3 and vgm to be played depending on the files found in the playlist so I don't think that will be an issue, but we'll see. I have another idea up my sleeve that might be interesting.

                            EDIT: Everything in this thread still works with RetroPie 4.6 and with lower requirements on the Pi 4. :)

                            1 Reply Last reply Reply Quote 0
                            • Z
                              zerojay
                              last edited by 27 Aug 2020, 12:11

                              I've switched the repository for vgmplay to a fork that removes the console UI which was causing breakage in something I was trying.

                              I will be updating the instructions above soon to match the new vgmplay repository as well as adding support for playing mp3 files through mpg123 in the same playlist as the .vgm and .vgz files.

                              E 1 Reply Last reply 27 Aug 2020, 13:06 Reply Quote 0
                              • E
                                ExarKunIv @zerojay
                                last edited by 27 Aug 2020, 13:06

                                @zerojay sweet that you are back. cant wait to see what you do on your RetroPie-Extras.

                                and i think ill give this BGM a try on my Pi4 once i go back to messing with it

                                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
                                • Z
                                  zerojay
                                  last edited by 8 Sept 2020, 00:28

                                  I've updated the original post with the info for getting mp3 and vgm/vgz into the same playlists for those of you who want to use both.

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    zerojay
                                    last edited by 10 Sept 2020, 04:53

                                    Minor fix for generatem3u.sh accidentally erasing the created playlist.

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by 11 Sept 2020, 09:47

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        HellenButterlips
                                        last edited by HellenButterlips 14 Feb 2021, 22:52

                                        Thank you @zerojay ! This is tremendous. Very easy to install, and after a minor issue with the vgm directory permissions, was able to get everything up and running....kind of.

                                        Few issues below. Any help would be much appreciated.
                                        *Update Recreating the autostart.sh file fixed issues 1 and 2.

                                        • Both the playmusic.sh and generatem3u.sh scripts are running without issue, but music will not start automatically after boot.
                                        • I can start it by running the playmusic.sh script from the command line (or via ssh), but it only plays through HDMI port. I don't see anyplace in the vgmplay config file to point it to the Headphone output on RPI4.
                                        • The playlist does not loop. Playback terminates after reaching the last item in the m3u file.
                                        1 Reply Last reply 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