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

Guide: Video on Launching Game



  • @wcarvalho said in Guide: Video on Launching Game:

    Sorry for the delay in answering, I had some personal problems.

    No problem at all, you're welcome. Tidy your things in RL then you have more fun at all and for RP ;)



  • I found this post recently and thought it was a great idea, so I have modified the launching image for each system I have installed into an animation instead. I've created a little script that pulls through the system variable and then looks for the launching.mp4 file in each of the image directories I have my scraped artwork in.

    It works great, so thought I'd share it:

    #!/usr/bin/env bash
    
    system="$1"
    viddir="$HOME/RetroPie/roms/$system/images"
    
    omxplayer -b "$viddir/launching.mp4" > /dev/null
    
    fi
    

    I saved this as launch-video.sh and placed it in the configs/all directory and then edited the runcommand-onstart.sh file to include the path of the script in quotations so it will load. I admit, I'm really not a coder, so I copied the layout of @meleu 's joystick-selection script and added the same "$@" at the end of the line. I assume this did something fancy, as my script didn't work without it, and worked great with it. (I'd be happy if somebody could enlighten me as to it's purpose, as I'm always wanting to learn.)

    So anyways, same thing applies as with the OP's guide and you'll need to turn off the runcommand menu for it to not appear after the video has ran. I basically mocked up a similar loading screen to my Original NES splash I made ages ago -

    but instead of it loading up the "Nintendo Presents" bit, it loads a system-specific loading splash then fades to black. It's dead simple, but I like it.

    Anyway, feel free to steal my hashed-together script it you want.



  • @markyh444 $@ expands all command parameters....
    so $@ pathes $1 $2 $3 ... to your script



  • hey thnx for the share , i like this video loading it give an extra to this great retro gaming Pi ....
    but my problem is i cant get it to run i think i forgot something ..When i start a game i still get the Image instead of video launching.
    I adjust the run command and linked my Video Dir In it. Im pretty sure i need to do something else or adjust another script , but here im Lost haha :D i Video Tutorial would be great since the One ETA Prime shared is Broken , that link wont work --->

    Greets



  • @markyh444 said in Guide: Video on Launching Game:

    I found this post recently and thought it was a great idea, so I have modified the launching image for each system I have installed into an animation instead. I've created a little script that pulls through the system variable and then looks for the launching.mp4 file in each of the image directories I have my scraped artwork in.

    It works great, so thought I'd share it:

    #!/usr/bin/env bash
    
    system="$1"
    viddir="$HOME/RetroPie/roms/$system/images"
    
    omxplayer -b "$viddir/launching.mp4" > /dev/null
    
    fi
    

    I saved this as launch-video.sh and placed it in the configs/all directory and then edited the runcommand-onstart.sh file to include the path of the script in quotations so it will load. I admit, I'm really not a coder, so I copied the layout of @meleu 's joystick-selection script and added the same "$@" at the end of the line. I assume this did something fancy, as my script didn't work without it, and worked great with it. (I'd be happy if somebody could enlighten me as to it's purpose, as I'm always wanting to learn.)

    So anyways, same thing applies as with the OP's guide and you'll need to turn off the runcommand menu for it to not appear after the video has ran. I basically mocked up a similar loading screen to my Original NES splash I made ages ago -

    but instead of it loading up the "Nintendo Presents" bit, it loads a system-specific loading splash then fades to black. It's dead simple, but I like it.

    Anyway, feel free to steal my hashed-together script it you want.

    This seems like a nice way to do it, so thanks!

    Can you post the exact line you added to runcommand-onstart.sh ? I looked at meleu's joystick-selection script but couldn't find anything. Thanks in advance.



  • @peridot it was the path to my script with "$@" at the end



  • @peridot The user @7heSandman created some wonderfull system startup videos. I think that will fit all your needs



  • Is something like this possible for the ubuntu version of retropie? I have tried searching all over but cant seem to find anything. Maybe im just out of luck.



  • I was looking to something like this. My idea was to add something like the retro analog tv snow/noise before launching the game.

    I disabled the runcommand output and added the video to the runcommand-onstart.sh as suggested but there is a big delay between the end of the video and the start on the game and I don't see such delay in your video @wcarvalho.

    Am I missing something?

    Thanks for information guys :)



  • @albpara
    You can try to add an ampersand after the launching line in runcommand
    omxplayer -b "path/to/video/launching.mp4" > /dev/null &



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.