Skip to content

POV–Ray on Amazon EC2

Jakob Flierl edited this page Dec 20, 2021 · 16 revisions

Initial setup

To create a dedicated EC2 instance for POV-Ray 3.7 with Ubuntu 14.04 LTS:

AWS Console

  • Click "Compute -> EC2 -> Launch Instance":

EC2

  • Select "Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-9abea4fb":

EC2 AMI

  • Select "Filter by: Compute optimized":

EC2 filter by

  • Select "Type: c4.8xlarge" and click "Next: Configure Instance Details":

EC2 c4.8xlarge

  • Select "Auto-assign Public IP: Enable" and click "Review and Launch":

EC2 automatic public ip enable

  • Select an existing key pair or create a new key pair and click "Launch instance":

EC2 SSH

Setup ssh on your computer

$ chmod 400 ~/.ssh/ec2.pem
  • Add to your ~/.ssh/config the following lines:
Host ec2
 Hostname ec2-52-25-43-224.us-west-2.compute.amazonaws.com # your EC2 hostname
 User ubuntu
 IdentitiesOnly yes
 IdentityFile ~/.ssh/ec2.pem
  • Check that ssh works.

    You now should be able to login to the EC2 instance without entering a password:

$ ssh ec2

Setup POV-Ray, ffmpeg, youtube-upload

ubuntu@ec2~$ sudo apt-get -y install htop screen make povray

Render your first POV-Ray movie on EC2

  • Upload the 00-hello POV-Ray scene files exported with BPP to EC2:
$ cd ~/bpp/exports/00-hello
$ make ec2-up
  • Login to the EC2 instance and start the rendering process in a screen session:
$ ssh ec2
$ screen
$ cd 00-hello
$ make final

POV-Ray creates the files 00-hello-[N].png.

  • To create the movie file 00-hello.mkv run:
$ make mkv

or a looped version 00-hello-loop.mkv:

$ make mkv-loop

Upload your first POV-Ray movie to YouTube (optional):

  • Upload 00-hello.mkv to YouTube:
$ make youtube-up

or upload 00-hello-loop.mkv to YouTube:

$ make youtube-up-loop

Please post your results at: