Modified Background Music Script with added overlays!
-
Can anyone test the script on the dev version of emulation station.
For some reason on my build the script will not run at boot and im not prepared to rebuild my retropie image as it take ages and works perfect. Clean install may fix the issue.
As ive said I have no loading screens on boot and the emulation station logo disabled so it boots straight into the front end, mainly for an arcade cabinet, no text no nothing.
Something is blocking the RC.local file from running. So it would be a shame to abandon this script for now.
update error:
Warning: rc.local.service changed on disk. Run 'systemctl daemon-reload' to relo ad units.
Job for rc-local.service failed because the control process exited with error co de.
See "systemctl status rc-local.service" and "journalctl -xe" for details. -
@legacy said in Modified Background Music Script with added overlays!:
Warning: rc.local.service changed on disk.
I wonder why everyone wants to edit these poor creatures rc.local. There is an explicite
autostart.sh
(edit with:nano /opt/retropie/configs/all/autostart.sh
) and then writesudo python /home/pi/BGM.py &
BEFORE starting EmulationStation ;)@madmodder123 Do we really need sudo command? For rc.local it is obsolete anyway....
-
@cyperghost , you have hit the nail on the head.
Its working fine, only issue i have is the
/usr/local/bin/pngview : no process found.
any idea on how to fix this. Thank you
-
@legacy type
ls /usr/local/bin/pngview
is the file available?
If yes typesudo chmod +x /usr/local/bin/pngview
If no type
cd /usr/local/bin
then typesudo wget "http://raw.githubusercontent.com/madmodder/retropie_music_overlay/master/pngview"; sudo chmod +x pngview
-
@cyberghost,
awesome work. Its working now. Thank you.
I have one small problem and maybe you can help.
Im using video loading screens, so the music fades out and then when the loading screen ends the music kicks back in for 1 second then stops and loads my game. Can this be fixed. It must be in the BGM.py file
Update:
on reboot: /usr/local/bin/pngview: process error returns
-
On video loading screens, the volume fades, then at the end of the screen, the music plays again and fades and then loads the game.
-
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
-
Hello madmodder123, your script is great, love how music fades when snap video audio starts, and overlays are ace, however there's a fix to prevent them to show on terminal or Retropie dos-like menu (Retropie setup for example) ? It may interfere with text.
-
@DarishZone for my part i launch it with autostart.sh
And i addpython /home/pi/scripts/BGM.py 2>&1 1>/dev/null &
The printf are not writing in console, but some time like you it write on some setup menu i don't know why :( -
@darknior said in Modified Background Music Script with added overlays!:
@DarishZone for my part i launch it with autostart.sh
And i addpython /home/pi/scripts/BGM.py 2>&1 1>/dev/null &
The printf are not writing in console, but some time like you it write on some setup menu i don't know why :(I will try this! In that case i have to remove the line added on rc.local file?
I also wonder if there's a way to move track names overlays to upper right screen instead of left, seems a more convenient position. -
@DarishZone said in Modified Background Music Script with added overlays!:
I will try this! In that case i have to remove the line added on rc.local file?
Yes you are, it is explained. You can't use the two files.
I also wonder if there's a way to move track names overlays to upper right screen instead of left, seems a more convenient position.
Not for me, but all of this is on the script, you must modify it by yourself. It is explain on git.
-
@darknior said in Modified Background Music Script with added overlays!:
@DarishZone said in Modified Background Music Script with added overlays!:
I will try this! In that case i have to remove the line added on rc.local file?
Yes you are, it is explained. You can't use the two files.
I also wonder if there's a way to move track names overlays to upper right screen instead of left, seems a more convenient position.
Not for me, but all of this is on the script, you must modify it by yourself. It is explain on git.
Thank you, but not seems to work for me, can you show me excatly the complete line on autostart.sh?
Edit: managed to move overlay, but now terminal report me an error (?)
/usr/local/bin/pngview: no process foundIs that normal? I'm afraid it was always there and overlay covered it.
Edit 2: I've found edit autostart.sh to run script instead of rc.local trigger that message
-
Even with local edit, systemlog often report /usr/local/bin/pngview: no process found, and also terminal triggered it if i disable bgm music, also on terminal i can see some strange icons like "[["
Also, it's rare but could happen system hangs at boot, before splashscreen starts, it left with only blinking cursor on top left of screen, not sure if that one is related to my setting (probably)
Any advice? -
This script dont work on Lubuntu 18.4 x64 (Retropie install) on a DELL 3020m.
Its say something about tvservice. U can help US?Thxs for your great work.
-
@wmarcio
tvservice
is specific to the Raspberry Pi installation, used to determine the current screen size. You should modify the Python script to use another method (xrandr
comes to mind) and it should work. -
@mitu thxs brow, but i am a total linux noob, you can instruct me?
-
-
@mitu if i understand i need to change the command tvservice on all lines he apear in the script, for the command:
xdpyinfo | grep dimensions | sed -r 's/^[^0-9]([0-9]+x[0-9]+).$/\1/'
Is that?
Many tanks for your help. -
@mitu worked, but now i have a problem with pngview.
Output terminal command:
sudo /usr/local/bin/pngview
/usr/local/bin/pngview: 1: /usr/local/bin/pngview: Syntax error: word unexpected (expecting ")")You can help a bit more???
-
@wmarcio said in Modified Background Music Script with added overlays!:
sudo /usr/local/bin/pngview
I don't understand what are you trying to do here.
pngview
is meant to display an image on the screen, and it needs to have a filename as a parameter.
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.