Modified Background Music Script with added overlays!
-
@madmodder123 Hi
Today i have try to test your script but i have a problem.apt-get install imagemagick git clone https://github.com/AndrewFromMelbourne/raspidmx.git cd pngview/ make
pi@retropie:~/src/raspidmx/pngview $ make cc -Wall -g -O3 -I../common -I/usr/include/libpng12 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -g -c pngview.c -o pngview.o -Wno-deprecated-declarations cc -o pngview -Wl,--whole-archive pngview.o -L/opt/vc/lib/ -lbcm_host -lm -lpng12 -L../lib -lraspidmx -Wl,--no-whole-archive -rdynamic /usr/bin/ld: ne peut trouver -lraspidmx collect2: error: ld returned 1 exit status Makefile:16: recipe for target 'pngview' failed make: *** [pngview] Error 1
Must we install all the package ?
Thanks -
@darknior said in Modified Background Music Script with added overlays!:
@madmodder123 Hi
Today i have try to test your script but i have a problem.apt-get install imagemagick git clone https://github.com/AndrewFromMelbourne/raspidmx.git cd pngview/ make
pi@retropie:~/src/raspidmx/pngview $ make cc -Wall -g -O3 -I../common -I/usr/include/libpng12 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -g -c pngview.c -o pngview.o -Wno-deprecated-declarations cc -o pngview -Wl,--whole-archive pngview.o -L/opt/vc/lib/ -lbcm_host -lm -lpng12 -L../lib -lraspidmx -Wl,--no-whole-archive -rdynamic /usr/bin/ld: ne peut trouver -lraspidmx collect2: error: ld returned 1 exit status Makefile:16: recipe for target 'pngview' failed make: *** [pngview] Error 1
Must we install all the package ?
ThanksHere's how I handled it, starting inside the git clone of that repo:
cd lib
make
cp libraspidmx.so* /usr/local/bin
nano /etc/ld.so.conf
(type /usr/local/lib into a new line alone, save and quit nano
ldconfig
cd ../pngview
make
cp pngview /usr/local/bin/
ldd /usr/local/bin/pngview (if you did everything right here, you should see all required libraries are present and accounted for) -
@madmodder123 It's probably a better idea to actually have the song_title.png be output to somewhere like /dev/shm which is a tmpfs kept in RAM so that you don't keep writing this file to the SD card.
-
@zerojay Great idea! Thanks for letting me know i'll adjust the code! I'm glad you told me about that folder, you learn something new with linux every day :)
-
Hey @madmodder123 thanks for working on such a nice addition to my retropie build, however, I would like to pick your brain a bit since I'm having. Issues with it.
I followed adding your script to the PyScripts folder and switched the previous music script I had with your updated one, despite this fact, there's no song_title.png being created ever and I can't seem to find out what the problem is, would you mind help me figuring it out?
Music plays fine so I'm sure I did THAT right at least.
Best regards
EDIT: Found out why it wasn't working, the script point to /usr/bin/pngview where as @zerojay mentioned at a previous comment the following:
Here's how I handled it, starting inside the git clone of that repo:cd lib
make
cp libraspidmx.so* /usr/local/bin
nano /etc/ld.so.conf
(type /usr/local/lib into a new line alone, save and quit nano
ldconfig
cd ../pngview
make
cp pngview /usr/local/bin/
ldd /usr/local/bin/pngview (if you did everything right here, you should see all required libraries are present and accounted for)As you can see within these instructions pngview points at /usr/local/bin
-
I'm having a similar problem, I get the background music but I never get the overlay or images created, I double checked and pngview is in /usr/local/bin and the command is executable with out error from the terminal. How can I troubleshoot this script?
-
@war3zlod3r
I wrote a script that gets everything all set up for ya!
https://github.com/madmodder123/retropie_music_overlay/blob/master/BGM_Install.sh
Just download that, make it executable and then run it and it should work just fine, I just tested it on a fresh install :) -
I updated the main post with the script and more instructions :)
-
I updated the script so it makes a menu item that lets you instantly enable/disable the BGM :)
-
Thanks a lot, all is perfect for me now :D
-
any way to music change in selection of plataforms?
-
@lokize What do you mean?
-
@madmodder123 for example: when i select snes in main menu of plataforms play a super mario sound...
-
@lokize I don't think you can do that in EmulationStation, I think it is a feature in Attract Mode though
-
@madmodder123 in recalbox i using this feature with emulation Station, but i prefer Retropie
-
@madmodder123 please can share an install guide as I've not been able to install the script. When I tried the run command it failed for me.
-
@lokize Out of curiosity, why do you prefer RetroPie over Recalbox ?
-
@mitu Recalbox consume ALL memory of my Rpi3 B And left only 10% of ram, i try fresh install but not solve, Retropie consume 20% of ram running games...
-
@gleam2003 You can Share this script?
-
problem i have is the: /usr/local/bin/pngview procces issue and
(sudo python /home/pi/BGM.py) & is not working for me on reboot.
help would be appreciated, before i sack this off.
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.