Heilan X3D Browser

Offline Rendering

Heilan is able to render it's visual and audio output to files instead of streaming it. To activate offline rendering, either click the offline button in Heilan Front End, or (on the command line) pass it the --offline (or -of) switch, followed by the number of audio samples to record for (in the future this will be the number of samples), and a filename. The visual frames will be rendered to jpeg and written to <filename>XXXX.jpg, and the audio will be written as individual .wav files for each active speaker feed, to <filename>n.wav. You can then combine these files into a movie using mencoder, for example.

Example Usage with MEncoder

This will record 10 seconds worth (this can also be done from within Heilan Front End).

heilanbrowser -of 10 output/temp testFile.x3d
			

First convert the wavs into an MP3 (I use Audacity for this).

The following commands will combine the mp3 and jpegs into an xvid avi file, using a 2-pass process for the best video quality (720 and 576 are the resolution of the jpegs - I'm not sure if this is entirely necessary).

mencoder mf://*.jpg -audiofile temp.mp3 -mf w=720:h=576:fps=30:type=jpg \
-ovc xvid -xvidencopts pass=1 -oac copy -o tempOutput.avi

mencoder mf://*.jpg -audiofile temp.mp3 -mf w=720:h=576:fps=30:type=jpg \
-ovc xvid -xvidencopts pass=2:bitrate=800 -oac copy -o tempOutput.avi