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

    Guide: Video on Launching Game

    Scheduled Pinned Locked Moved Help and Support
    retropielaunching imagelaunch menuemulationstaioncustomize
    16 Posts 7 Posters 8.0k 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.
    • cyperghostC
      cyperghost @wcarvalho
      last edited by cyperghost

      @wcarvalho I think you misunderstood me ;)

      type nano /opt/retropie/configs/all/runcommand-onstart.sh
      and enter your line omxplayer -b "directory where my video is.mp4" > /dev/null
      Than your video should launched everytime before ROM is called. And it will work for all systems. So you don't have to edit 20x the es_systems.cfg. I agree I didn't test this approach but it sounds logical to me, that it should work.

      But nice catch with the XML and &amp thing.

      A video download available would be nice anyway - youtube would be enough and it will widespread a mass of audience ;)

      EDIT:
      You can do same with runcommand-onend.sh and can play a small video like .... Back to ES or something. I like the idea!

      W 2 Replies Last reply Reply Quote 0
      • W
        wcarvalho @cyperghost
        last edited by wcarvalho

        @cyperghost I understood the runcommand_onstart question, sorry for not being explicit about it. when I mentioned that I edited the source code, it went straight to runcommand.sh
        But it is good to know and know other ways to do the same thing, I ended up making this guide because I have not seen anywhere teaching it. I have not even discovered that it is possible to remove that rainbow splashscreen when raspberry is turned on by editing /boot/config.txt and adding the command disable_splash = 1 together with custom videos the effect gets cool

        Edit: This issue of & amp; I realized during a scrap done by the retropie in one of my systems, that he add this code so that xml reads and writes on the screen & without peo

        1 Reply Last reply Reply Quote 0
        • W
          wcarvalho @cyperghost
          last edited by

          @cyperghost said in Guide: Video on Launching Game:

          You can do same with runcommand-onend.sh and can play a small video like .... Back to ES or something. I like the idea!

          Sorry for the delay in answering, I had some personal problems.
          I tested the command directly on runcommand-onstart and it worked perfectly. Thanks for the tip

          cyperghostC 1 Reply Last reply Reply Quote 1
          • cyperghostC
            cyperghost @wcarvalho
            last edited by

            @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 ;)

            1 Reply Last reply Reply Quote 0
            • markyh444M
              markyh444
              last edited by markyh444

              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.

              Retropie in a NES - Pi 3 with Mausberry circuit shutdown switch wired to buttons and 8bitdo NesPro30 controller
              Retropie in a Saturn Controller - Pi Zero, GPIO controls using DB9 driver
              Retropie in a PSX - Pi3
              https://markyh444.wordpress.com

              cyperghostC PeridotP 2 Replies Last reply Reply Quote 0
              • cyperghostC
                cyperghost @markyh444
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • EldelinCuentE
                  EldelinCuent
                  last edited by EldelinCuent

                  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

                  1 Reply Last reply Reply Quote 0
                  • PeridotP
                    Peridot @markyh444
                    last edited by

                    @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.

                    markyh444M cyperghostC 2 Replies Last reply Reply Quote 0
                    • markyh444M
                      markyh444 @Peridot
                      last edited by

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

                      Retropie in a NES - Pi 3 with Mausberry circuit shutdown switch wired to buttons and 8bitdo NesPro30 controller
                      Retropie in a Saturn Controller - Pi Zero, GPIO controls using DB9 driver
                      Retropie in a PSX - Pi3
                      https://markyh444.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • cyperghostC
                        cyperghost @Peridot
                        last edited by

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

                        1 Reply Last reply Reply Quote 1
                        • N
                          n4tur3502
                          last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • A
                            albpara
                            last edited by

                            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 :)

                            cyperghostC 1 Reply Last reply Reply Quote 0
                            • cyperghostC
                              cyperghost @albpara
                              last edited by

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

                              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.