Emulator Resources / Making AVI / Gens / Linux
This page is part of the
Emulator resources / Making AVI page collection. Back to:
<<
Emulator Resources / Making AVI / Gens<<
Emulator Resources / Making AVI<<
Emulator Resources
This page explains how to create AVI files from Gens movies
when you have a GNU/Linux operating system (any flavor will do).
Table of contents [
expand all] [
collapse all]
Program requirements
Compiling Gens
Extract the source code.
Apply the patch.
cd gens_linux
zcat ../Gens212a-moviepatchv2-jyzero,bisqwit.gz | patch -p1
Compile the source code.
cd gens
make
Note that you must have
gtk+ 2 and
SDL development libraries installed in your system.
And a C++ compiler (gcc) of course.
Creating the script to run it all
For running Gens, I use this kind of shell script:
RUNSEGA
#!/bin/sh
# Which file do you want to place your audio in.
AUDIO_RESULT="audiolog.mp3"
# Where is your Gens binary?
GENS="./gens"
rm -f s.log
mkfifo s.log
lame -rx -b 256 -m s -q 2 s.log "$AUDIO_RESULT" &
$GENS $*
rm -f s.log
# Fix the ownership of the files - doesn't matter if this fails.
chown bisqwit test0.avi "$AUDIO_RESULT"
I call the script
RUNSEGA.
Again, you can edit it to suit your setup and needs.
Running Gens
To run Gens, start your newly created shell script.
Example:
./RUNSEGA
I prefer to do this as root, but I can not recommend
it to others due to security reasons.
When Gens starts up, select
File and
Open ROM.
Locate your ROM and open it.
Then select
CPU and
Play Movie.
Locate your movie file and open it.
When Gens is done playing the movie,
exit it by normal means (select
File and
Quit).
Now you should have
test0.avi and
audiolog.mp3 on your disk.
Names may vary if you have changed the script/source files.
Note that Gens is lag-tolerant.
It doesn't matter if you watch anime while recording the movie.
The encoding environment
The rest of this documentation is at the
Linux AVI scripts
page, because it's common in all the different emulators.
Troubleshooting
Do you get error messages such as this?
glade/interface.c:2072: error: invalid type argument of `->'
Tough luck. Backward compatibility isn't the strongest feature
of Gnome stuff...
- Edit Makefile
- Locate "-DGTK_DISABLE_DEPRECATED" and delete it
- Recompile. If it works, enjoy.
- Otherwise - install Glade
- Go to the glade/ directory
- Run glade: glade-2 *.glade
- Select "Options" from the "Project menu"
- Put "." where it says "src"
- Go to "C Options" and check "Output Build Files"
- Click "Ok"
- Select "Build" from the "Project menu"
- Exit Glade
- Run ./autogen.sh
- Run make. Ignore the complaint about "main".
- Then return to the "gens" directory (1 level up) and issue "make".
- Notice how it complains of linker errors. Eat your shorts.
Author