http://www.perlmonks.org?node_id=1062521

3D stereo cameras save in a format called MPO. Script uses Perl to make calls for splitting the left and right, then recombining as a cross-eye stereogram for posting on the web.
Link