Guide: Video on Launching Game
-
@wcarvalho I think you misunderstood me ;)
type
nano /opt/retropie/configs/all/runcommand-onstart.sh
and enter your lineomxplayer -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
&
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 withruncommand-onend.sh
and can play a small video like .... Back to ES or something. I like the idea! -
@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 coolEdit: 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
-
@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 -
@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.