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, using the default 44100Hz samplerate and stereo sound (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 (800 and 600 are the resolution of the jpegs - I'm not sure if this is entirely necessary). The higher the value you give to bitrate on the second pass, the better quality video you'll get.

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

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

See also these links for help on generating 5.1 ac3 files, DVD-compatible movies and MP4 files suitable for uploading to vimeo:

(note that I tend to do any video work on Linux - I don't know what the best equivalents are for Windows and OSX)