Run Command Video Splashscreens
-
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 -
Here is the part of
/opt/retropie/supplementary/runcommand/runcommand.sh
that displays the launching image using eitherfeh
orfbi
. If you're good with scripting, maybe you could jigger it to play a video withvlc
oromxplayer
, 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 includemp4
, 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
orfbi
commands. You'll need to craft a command with the proper options to show your brief video snap, probably with eithervlc
oromxplayer
. 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.)
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.