Playing a sound upon displaying the splash screen.

Home Forums RetroPie Project Everything else related to the RetroPie Project Playing a sound upon displaying the splash screen.

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 6 replies, has 3 voices, and was last updated by Profile photo of moorens moorens 3 years, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2904
    Profile photo of foob
    foob
    Participant

    I just finished a custom sonic-inspired splash screen (here http://puu.sh/4MzzA.png if anyone wants to use it, feel free) and i would very much like for the sonic 1 title screen music to play when the splash screen is displayed. Is it possible to actually do this or is it super hard?

    #2907
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Actually, this is on the to-do list for the RetroPie Setup Script for quite a while now, see https://github.com/retropie/RetroPie-Setup/issues/135. In general, it is possible to what you described!
    I am sure that the people here would be glad if you would post any descriptions etc. when you were successful with that 🙂

    #2910
    Profile photo of foob
    foob
    Participant

    ill have a crack but i think its beyond my skill level to script edit. I mean, i might get a sound to play but i doubt ill be able to time it to be on par with the splash.

    That said, and maybe im just asking far too much here, but is there any chance of animated splash screens as well? i make gifs regularly and i have a few ideas for splash screens that would be so much more amazing if they were animated (like a Commodore 64 startup screen im working on). I assume because a .ong is being displayed it could also handle a .gif.. but would the animation be there are just the first frame?

    #2923
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Animated splash screens would be great!

    As far as I know it would be possible to provide a series of images as individual files that could be played in sequence.

    For the beginning, you could provide your animation frames as a packed zip file here. We could come up with a menu entry in the RetroPie Script to choose between different splash screens.

    #2934
    Profile photo of foob
    foob
    Participant

    ive had a few commissions for other stuff so ill knock something together when i get around to it, most likely just something to test with first then ill do some proper stuff if it works okay.

    What would be useful to know though, is how quickly would the pi flick through the animations? obviously this is a huge factor as this is basically how smooth the animation will display, and i would usually aim for around 25 frames per second which is roughly would you would find from a TV programme or something. Of course, i can still make animations with very few frames (such as 3 or 4) but i would have to tailor the splash screen with that in mind.

    #2941
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Hi,

    I think 25 frames are more than enough!

    I already started to add a splashscreen configuration menu to the Setup Script …

    #4002
    Profile photo of moorens
    moorens
    Participant

    Fairly simple…

    http://blog.petrockblock.com/forums/topic/video-splash-screen/
    https://vimeo.com/83644752 Splash Screen Video
    https://vimeo.com/83644752 Full System Video
    http://nicholasmoore.net/2013/09/29/retroconsole-with-custom-music-rev3-1/

    how to:

    edit /boot/cmdline.txt file:
    sudo nano /boot/cmdline.txt
    Add quiet
    dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quiet
    Press ctrl-x, type y to confirm save, then press enter and return to the terminal.
    Copy your video to your Raspberry Pi
    create a script that will run omxplayer on bootup.
    sudo nano /etc/init.d/asplashscreen
    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides: asplashscreen
    # Required-Start:
    # Required-Stop:
    # Should-Start:
    # Default-Start: S
    # Default-Stop:
    # Short-Description: Show custom splashscreen
    # Description: Show custom splashscreen
    ### END INIT INFO
    do_start () {
    omxplayer /home/pi/video.mov &
    exit 0
    }
    case “$1″ in
    start|””)
    do_start
    ;;
    restart|reload|force-reload)
    echo “Error: argument ‘$1′ not supported” >&2
    exit 3
    ;;
    stop)
    # No-op
    ;;
    status)
    exit 0
    ;;
    *)
    echo “Usage: asplashscreen [start|stop]” >&2
    exit 3
    ;;
    esac
    :
    Press ctrl-x, and save
    make file executable
    sudo chmod a+x /etc/init.d/asplashscreen
    activate
    sudo insserv /etc/init.d/asplashscreen
    Reboot and wait

Viewing 7 posts - 1 through 7 (of 7 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar