Adding a new emulator for recording Retropie 4.4.2
-
Hey guys I am running into an issue when it comes to Adding a new emulator option for the SNES.
I have it set up to record my game play, i created a config file in
/home/pi/RetroPie/recording/config.cfg
withformat = matroska
threads = 3
vcodec = libx264rgb
video_preset = ultrafast
video_tune = animation
pix_fmt = rgb24
video_qp = 0
acodec = flac
From the commandline I can run the following and it works!
/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_$(date +%Y-%m%d-%H%M%S).mky --recordconfig /home/pi/RetroPie/recording/config.cfg /media/scandisk_128Gb/roms/snes/~Hacks/JOY\ OF\ KAIZO \1.5.1.smc
However, when I edit
/opt/retropie/configs/snes/emulators
and add in:lr-snes9x2010-record = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_$(date +%Y-%m%d-%H%M%S).mky --recordconfig /home/pi/RetroPie/recording/config.cfg %ROM%"
and
default = "lr-snes9x2010-record
Nothing happens. I go to load a game and the screen loads like it normally does, showing the "press any key to enter config" then it drops me back into the rom selection menu.
I'm trying to figure out what is wrong? The commands are identical. Is there something i'm missing when i have to edit
emulators.cfg
? -
My guess is because of the Date part in the '-record' argument. Look in the log - /dev/shm/runcommand.log - to see the error.
-
Oh Yeah I'm not sure why I haven't checked that, here's what I get:
nano /dev/shm/runcommand.log
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_\$(date +%Y-%m%d-%H%M%S).mkv --recordconfig /home/pi/RetroPie/recording/config.cfg "/media/scandisk_128Gb/roms/snes/~Hacks/Kaizo Mario World.smc" --appendconfig /dev/shm/retroarch.cfg /opt/retropie/supplementary/runcommand/runcommand.sh: eval: line 1008: syntax error near unexpected token `(' /opt/retropie/supplementary/runcommand/runcommand.sh: eval: line 1008: `/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_\$(date +%Y-%m%d-%H%M%S).mkv --recordconfig /home/pi/RetroPie/recording/config.cfg "/media/scandisk_128Gb/roms/snes/~Hacks/Kaizo Mario World.smc" --appendconfig /dev/shm/retroarch.cfg'
So maybe it has to to with the date part? Is there anyway to add the date timestamp to these recordings?
-
@geneworld not via emulators.cfg - you would need to modify runcommand and add support for some custom %DATE% token.
-
Hello
Did you manage to get this working with the Date variable in any way? Looking and looking but cant's seem to find a way. Not sure which "runcommand" script or function should I modify and how is the variable passed.
-
@DromoroK Please don't necro-post by bumping old topics. Open a new topic instead and explain what you're trying to do, maybe adding a reference to this old topic if it's related to your question.
Thank you. -
M mitu locked this topic on
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.