RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. bgm
    Log in to post
    • All categories
    • madmodder123M

      Modified Background Music Script with added overlays!

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development bgm overlay music song script
      114
      6 Votes
      114 Posts
      45k Views
      C

      @Cascote
      Solved: The issue lies on the Sample rate of the Mp3 file. It seems that Pygame is not able to correctly play anything that's not on 44100Hz Rate, so I Resampled the mp3s that were not on that rate using Audacity

      @legacy said in Modified Background Music Script with added overlays!:

      I click a game, the video loading screen kicks in and the music fades out.
      Black screen appears to load the game, but the music kicks in for 1 second and fades out, then the game loads.
      is there a fix for this. Thank you

      I know, I know, you have probably solved this or not interested on it anymore, but for whomever needs it, I had this issue too, I solved it by adding the following lines at the end of the runcommands scripts:
      runcommand-onend.sh

      pkill -CONT python

      runcommand-onstart.sh

      sleep 1 pkill -STOP python
    • Z

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

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming bgm guide music music rips vgm
      22
      6 Votes
      22 Posts
      7k Views
      H

      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.
    • MapleStoryM

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

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming music bgm synack guide
      165
      10 Votes
      165 Posts
      126k Views
      L

      @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

    • L

      Background Music [Continued from Help/Support]

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming music bgm
      343
      14 Votes
      343 Posts
      367k Views
      A

      @michel30
      hello, I'm a noobie.
      But I have a question:
      Are you saying you have a code that will constantly play a mp3 file and play in the background and will continue to play while you do other things in the background
      using pygame?

      I got mine to play when i boot up the raspberry pi but, as soon as I do something like start my MAIN.py the mp3 stops playing: and I need it to KEEP PLAYING?
      Can you help?
      Thank you?