RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Run Command Video Splashscreens

    Scheduled Pinned Locked Moved Help and Support
    runcommandsplashscreenrun commandsplashscreens
    2 Posts 2 Posters 760 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.
    • MJTKGM
      MJTKG
      last edited by

      Hey everyone! Recently finished setting up the run command slash screen following a youtube tutorial to get images to show before a game launches instead of the configuration screen. I was wondering if its possible to show a video instead of a still image using this same setup. Currently it only grabs launching.png to .jpg and I don't know how to configure it to take a .mp4 or if thats' even possible. I followed and replied to an older thread but couldn't find anything there either. I'm currently running a Pi3b on the latest retropie firmware. Thank you.

      Tutorial I followed:

      Original old thread:
      https://retropie.org.uk/forum/topic/4611/runcommand-system-splashscreens

      No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconveniencd

      1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael
        last edited by sleve_mcdichael

        Here is the part of /opt/retropie/supplementary/runcommand/runcommand.sh that displays the launching image using either feh or fbi. If you're good with scripting, maybe you could jigger it to play a video with vlc or omxplayer, instead:

        function show_launch() {
            local images=()
        
            if [[ "$IS_SYS" -eq 1 && "$USE_ART" -eq 1 ]]; then
                # if using art look for images in paths for es art.
                images+=(
                    "$HOME/RetroPie/roms/$SYSTEM/images/${ROM_BN}-image"
                    "$HOME/.emulationstation/downloaded_images/$SYSTEM/${ROM_BN}-image"
                    "$HOME/.emulationstation/downloaded_media/$SYSTEM/screenshots/${ROM_BN}"
                    "$HOME/RetroPie/roms/$SYSTEM/media/screenshots/${ROM_BN}"
                )
            fi
        
            # look for custom launching images
            if [[ "$IS_SYS" -eq 1 ]]; then
                images+=(
                    "$HOME/RetroPie/roms/$SYSTEM/images/${ROM_BN}-launching"
                    "$CONF_ROOT/launching"
                )
            fi
            [[ "$IS_PORT" -eq 1 ]] && images+=("$CONFIGDIR/ports/launching")
            images+=("$CONFIGDIR/all/launching")
        
            local image
            local path
            local ext
            for path in "${images[@]}"; do
                for ext in jpg png; do
                    if [[ -f "$path.$ext" ]]; then
                        image="$path.$ext"
                        break 2
                    fi
                done
            done
        
            if [[ -n "$image" ]]; then
                # if we are running under X use feh otherwise try and use fbi
                if [[ -n "$DISPLAY" ]]; then
                    feh -F -N -Z -Y -q "$image" & &>/dev/null
                    IMG_PID=$!
                    sleep "$IMAGE_DELAY"
                else
                    fbi -1 -t "$IMAGE_DELAY" -noverbose -a "$image" </dev/tty &>/dev/null
                fi
            elif [[ "$DISABLE_MENU" -ne 1 && "$USE_ART" -ne 1 ]]; then
                local launch_name
                if [[ -n "$ROM_BN" ]]; then
                    launch_name="$ROM_BN ($EMULATOR)"
                else
                    launch_name="$EMULATOR"
                fi
                DIALOGRC="$CONFIGDIR/all/runcommand-launch-dialog.cfg" dialog --infobox "\nLaunching $launch_name ...\n\nPress a button to configure\n\nErrors are logged to $LOG" 9 60
            fi
        }
        

        You can see where it shows the paths and filename-patterns to look for art, (near the top) and where it defines the accepted extensions (for ext in jpg png; do). You'd want to change this part to include mp4, or whatever format your videos will be in, and possibly also add paths above to include ${ROM_BN}-video or similar if that's how you'll name them.

        Then there's the part where the image is displayed with the feh or fbi commands. You'll need to craft a command with the proper options to show your brief video snap, probably with either vlc or omxplayer. Probably also a check on which extension is used to determine whether to use the video or image command, unless you're going to only have videos, and then you'll need to remove the parts referencing images at all, including the "ports" and system-wide launch images (or change them to use the videos too.)

        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.